/* ============================================================
   CEP Equestrian — Global Styles
   ============================================================ */

:root {
  --green:      #5DC4A0;
  --green-dark: #3fa882;
  --dark:       #1c1f26;
  --charcoal:   #2d3340;
  --text:       #333840;
  --muted:      #6b7280;
  --light:      #f7f8f6;
  --white:      #ffffff;
  --radius:     6px;
  --transition: 0.25s ease;
  --max-w:      1140px;
  --nav-h:      72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Typography ───────────────────────────────────────────── */

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
  color: var(--dark);
}

h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 20px; }
h3 { font-size: 1.15rem; margin-bottom: 8px; }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 600px;
  margin-bottom: 52px;
}

/* ── Buttons ──────────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 13px 32px;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--green);
  color: var(--white);
}
.btn--primary:hover { background: var(--green-dark); }

.btn--outline {
  background: transparent;
  border-color: var(--green);
  color: var(--green);
}
.btn--outline:hover {
  background: var(--green);
  color: var(--white);
}

.btn--outline-white {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn--outline-white:hover {
  background: var(--white);
  color: var(--dark);
}

/* ── Navigation ───────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  transition: box-shadow var(--transition);
}

.nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.nav__logo img { height: 44px; width: auto; }

.nav__links {
  display: flex;
  list-style: none;
  gap: 36px;
}

.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--charcoal);
  transition: color var(--transition);
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--green);
  transition: width var(--transition);
}

.nav__links a:hover { color: var(--green); }
.nav__links a:hover::after { width: 100%; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Hero ─────────────────────────────────────────────────── */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, #0f1218 0%, #1c2230 50%, #1a2820 100%);
  position: relative;
  overflow: hidden;
  padding: var(--nav-h) 24px 0;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 60% 40%, rgba(93,196,160,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 680px;
}

.hero__logo {
  width: 260px;
  margin: 0 auto 40px;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.hero__tagline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 400;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.35;
}

.hero__sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 44px;
  letter-spacing: 0.04em;
}

.hero__ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(93,196,160,0.6), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.1); }
}

/* ── About ────────────────────────────────────────────────── */

.about { padding: 110px 0; }

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__text p {
  color: var(--muted);
  margin-bottom: 20px;
  font-size: 1.02rem;
}

.about__text .btn { margin-top: 12px; }

.about__panel {
  background: linear-gradient(135deg, #0f1218, #1a2820);
  border-radius: 12px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  position: relative;
  overflow: hidden;
}

.about__panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(93,196,160,0.15) 0%, transparent 70%);
}

.about__panel img {
  width: 70%;
  position: relative;
  z-index: 1;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

/* ── Brands ───────────────────────────────────────────────── */

.brands {
  padding: 110px 0;
  background: var(--light);
}

.brands__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.brand-card {
  background: var(--white);
  border-radius: 10px;
  padding: 32px 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid rgba(0,0,0,0.05);
}

.brand-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.09);
}

.brand-card__logo {
  height: 80px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.brand-card__logo img {
  max-height: 72px;
  max-width: 140px;
  width: auto;
  object-fit: contain;
}

.brand-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 8px;
}

.brand-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ── Contact ──────────────────────────────────────────────── */

.contact {
  padding: 110px 0;
  background: var(--dark);
  color: var(--white);
}

.contact .section-label { color: var(--green); }

.contact h2 {
  color: var(--white);
  max-width: 500px;
}

.contact__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-top: 52px;
}

.contact__intro {
  color: rgba(255,255,255,0.65);
  font-size: 1.02rem;
  margin-bottom: 40px;
}

.contact__details { display: flex; flex-direction: column; gap: 20px; }

.contact__item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact__icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(93,196,160,0.15);
  border: 1px solid rgba(93,196,160,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact__icon svg { width: 18px; height: 18px; stroke: var(--green); }

.contact__item a {
  color: rgba(255,255,255,0.85);
  font-size: 0.98rem;
  transition: color var(--transition);
}

.contact__item a:hover { color: var(--green); }

.contact__socials {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.contact__social {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition);
}

.contact__social:hover {
  background: var(--green);
  border-color: var(--green);
}

.contact__social svg { width: 18px; height: 18px; fill: var(--white); }

.contact__divider {
  width: 1px;
  background: rgba(255,255,255,0.08);
  align-self: stretch;
  display: none;
}

.contact__right {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 44px;
}

.contact__right h3 {
  font-family: 'Playfair Display', serif;
  color: var(--white);
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.contact__right p {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.contact__cta-green {
  display: inline-block;
  padding: 14px 32px;
  background: var(--green);
  color: var(--white);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background var(--transition);
  width: 100%;
  text-align: center;
}

.contact__cta-green:hover { background: var(--green-dark); }

.contact__cta-sep {
  text-align: center;
  color: rgba(255,255,255,0.3);
  font-size: 0.8rem;
  margin: 16px 0;
}

.contact__cta-outline {
  display: inline-block;
  padding: 14px 32px;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all var(--transition);
  width: 100%;
  text-align: center;
}

.contact__cta-outline:hover {
  border-color: var(--green);
  color: var(--green);
}

/* ── Footer ───────────────────────────────────────────────── */

footer {
  background: #0d0f14;
  padding: 28px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__logo img {
  height: 28px;
  filter: brightness(0) invert(1);
  opacity: 0.5;
}

footer p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}

.footer__inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 900px) {
  .brands__grid { grid-template-columns: repeat(2, 1fr); }
  .about__grid  { grid-template-columns: 1fr; gap: 48px; }
  .about__panel { display: none; }
  .contact__layout { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 640px) {
  .brands__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .brand-card   { padding: 24px 16px 20px; }

  .nav__toggle { display: flex; }
  .nav__links  {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    border-top: 1px solid rgba(0,0,0,0.07);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .nav__links.open { display: flex; }
  .nav__links li { border-bottom: 1px solid rgba(0,0,0,0.05); }
  .nav__links a  {
    display: block;
    padding: 16px 24px;
    font-size: 1rem;
  }
  .nav__links a::after { display: none; }

  .hero__logo { width: 180px; }
  .hero__ctas { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 280px; text-align: center; }

  .contact__right { padding: 28px 24px; }
}
