/* ================================================================
   CAEP DIGITAL AGENCY — DESIGN SYSTEM STYLESHEET
   ================================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;1,600&family=Inter:wght@400;500&display=swap');

/* ================================================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ================================================================ */
:root {
  /* Colors */
  --color-primary:     #1a1a1a;
  --color-accent:      #E8524A;
  --color-bg:          #FAF9F6;
  --color-text:        #333333;
  --color-text-muted:  #777777;
  --color-border:      #E5E2DC;
  --color-white:       #FFFFFF;

  /* Typography Scale */
  --text-xs:   12px;
  --text-sm:   14px;
  --text-base: 16px;
  --text-lg:   18px;
  --text-xl:   22px;
  --text-2xl:  28px;
  --text-3xl:  36px;
  --text-4xl:  48px;
  --text-5xl:  64px;

  /* Spacing Scale */
  --space-xs:   8px;
  --space-sm:   16px;
  --space-md:   24px;
  --space-lg:   48px;
  --space-xl:   80px;
  --space-2xl:  120px;

  /* Border Radius */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-pill: 999px;

  /* Transitions */
  --transition-base: all 0.25s ease;
  --transition-slow: all 0.4s ease;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.10);
}

/* ================================================================
   RESET & BASE
   ================================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--color-primary);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
}

/* ================================================================
   UTILITY CLASSES
   ================================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Inter', sans-serif;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--color-accent);
}

.section-heading {
  text-align: center;
}

.section-heading .eyebrow {
  justify-content: center;
  margin-bottom: 16px;
}

.section-heading h2 {
  font-size: var(--text-4xl);
  margin-bottom: 0;
}

.section-heading .subline {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  color: var(--color-text-muted);
  margin-top: 12px;
  font-weight: 400;
}

.accent {
  color: var(--color-accent);
}

.section {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

/* ================================================================
   PREMIUM SCROLL REVEAL ANIMATIONS
   ================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for grid children */
.reveal-stagger > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger > *:nth-child(6) { transition-delay: 400ms; }
.reveal-stagger > *:nth-child(7) { transition-delay: 480ms; }
.reveal-stagger > *:nth-child(8) { transition-delay: 560ms; }

/* Eyebrow labels — faster, subtler */
.reveal-fast {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal-fast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-fast {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ================================================================
   NAVBAR
   ================================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: 72px;
  display: flex;
  align-items: center;
  background: transparent;
  transition: var(--transition-base);
}

.navbar.scrolled {
  background: rgba(250, 249, 246, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}

.nav-logo .accent {
  color: var(--color-accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--color-text);
  text-decoration: none;
  padding: 6px 16px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

/* Hover state — ghost coral pill */
.nav-links a:not(.active):hover {
  background: rgba(232,82,74,0.08);
  color: #E8524A;
}

/* Active state — solid coral pill */
.nav-links a.active {
  background: #E8524A;
  color: white;
}

/* Active hover — slightly darker */
.nav-links a.active:hover {
  background: #d4443c;
  color: white;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 24px;
  height: 24px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: var(--transition-base);
}

/* Mobile Overlay */
.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-bg);
  z-index: 9999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-overlay.open {
  display: flex;
  opacity: 1;
}

.mobile-overlay a {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  color: var(--color-primary);
  text-decoration: none;
  padding: 10px 24px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.mobile-overlay a:not(.active):hover {
  background: rgba(232,82,74,0.1);
  color: var(--color-accent);
}

.mobile-overlay a.active {
  background: #E8524A;
  color: white;
}

.mobile-overlay a.active:hover {
  background: #d4443c;
  color: white;
}

.mobile-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-close svg {
  width: 32px;
  height: 32px;
  stroke: var(--color-primary);
  stroke-width: 2;
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn-primary {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-white);
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: var(--transition-base);
}

.btn-primary:hover {
  background: #d4443c;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 82, 74, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(232, 82, 74, 0.2);
}

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--color-primary);
  padding: 13px 31px;
  border-radius: var(--radius-pill);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  border: 1.5px solid var(--color-primary);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: var(--transition-base);
}

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

.btn-sm {
  padding: 10px 24px;
  font-size: 14px;
}

/* ================================================================
   HERO SECTION (Home)
   ================================================================ */
.hero {
  min-height: 100vh;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  padding-top: 72px;
  position: relative;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  width: 100%;
}

.hero-left {
  flex: 1;
  max-width: 580px;
}

.hero-headline {
  font-size: var(--text-5xl);
  line-height: 1.1;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  margin-top: 20px;
}

.hero-subheadline {
  font-family: 'Inter', sans-serif;
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 460px;
  margin-top: 24px;
  font-weight: 400;
}

.hero-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-visual {
  width: 100%;
  height: 480px;
  position: relative;
  overflow: hidden;
}

.hero-shape {
  position: absolute;
}

/* Shape 1: Large outline circle */
.shape-1 {
  width: 340px;
  height: 340px;
  border: 3px solid var(--color-accent);
  border-radius: 50%;
  opacity: 0.12;
  top: 20px;
  right: -40px;
  animation: pulse 4s ease-in-out infinite alternate;
}

@keyframes pulse {
  from { transform: scale(1); }
  to { transform: scale(1.04); }
}

/* Shape 2: Medium filled circle */
.shape-2 {
  width: 200px;
  height: 200px;
  background: var(--color-accent);
  border-radius: 50%;
  opacity: 0.07;
  top: 80px;
  right: 60px;
}

/* Shape 3: Rotated rectangle */
.shape-3 {
  width: 220px;
  height: 5px;
  background: var(--color-accent);
  opacity: 0.5;
  transform: rotate(15deg);
  top: 50%;
  right: 20%;
}

/* Shape 4: Small filled circle */
.shape-4 {
  width: 64px;
  height: 64px;
  background: var(--color-accent);
  border-radius: 50%;
  opacity: 0.7;
  bottom: 80px;
  left: 40px;
}

/* Shape 5: Thin vertical line */
.shape-5 {
  width: 2px;
  height: 140px;
  background: var(--color-primary);
  opacity: 0.12;
  top: 30%;
  right: 15%;
}

/* Shape 6: Small outline circle */
.shape-6 {
  width: 80px;
  height: 80px;
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  opacity: 0.08;
  bottom: 40px;
  right: 80px;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 1.5s ease-in-out infinite;
}

.scroll-indicator svg {
  width: 24px;
  height: 24px;
  color: var(--color-text-muted);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ================================================================
   ABOUT SECTION (Homepage)
   ================================================================ */
.about-inner {
  display: flex;
  align-items: center;
  gap: 64px;
}

.about-left {
  flex: 1;
}

.about-left h2 {
  font-size: var(--text-4xl);
  line-height: 1.15;
}

.about-left .about-subline {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  color: var(--color-text-muted);
  margin-top: 16px;
  max-width: 440px;
  line-height: 1.7;
}

.about-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-brandmark {
  width: 280px;
  height: 280px;
  border: 2px solid rgba(232, 82, 74, 0.15);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.about-brandmark-text {
  font-family: 'Playfair Display', serif;
  font-size: 64px;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.about-brandmark-text .accent {
  color: var(--color-accent);
}

/* ================================================================
   SERVICE CARDS (Home teaser)
   ================================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  cursor: default;
  transition: var(--transition-base);
}

.service-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.service-card-icon {
  width: 48px;
  height: 48px;
  background: rgba(232, 82, 74, 0.08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card-icon svg.filled {
  fill: var(--color-accent);
  stroke: none;
}

.service-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--color-primary);
  margin-top: 16px;
  line-height: 1.3;
}

.services-more {
  text-align: center;
  margin-top: 40px;
}

.services-more a {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--color-accent);
  text-decoration: none;
  transition: var(--transition-base);
}

.services-more a:hover {
  text-decoration: underline;
}

/* ================================================================
   CTA BANNER
   ================================================================ */
.cta-banner {
  background: var(--color-primary);
  padding: var(--space-xl) var(--space-md);
  text-align: center;
}

.cta-banner .btn-primary {
  font-size: 16px;
  padding: 16px 40px;
}

.cta-subtext {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 16px;
}

/* ================================================================
   COMPACT FOOTER
   ================================================================ */
.footer {
  background: var(--color-primary);
  padding: 32px 0 0;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-bottom: 24px;
}

/* Footer Left — logo + tagline */
.footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.footer-left .footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--color-white);
}

.footer-left .footer-logo .accent {
  color: var(--color-accent);
}

.footer-left .footer-sep {
  color: rgba(255, 255, 255, 0.3);
  font-size: 12px;
}

.footer-left .footer-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

/* Footer Center — nav links */
.footer-center {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-center a {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-center a:hover {
  color: var(--color-white);
}

.footer-center .footer-dot {
  color: rgba(255, 255, 255, 0.3);
  font-size: 12px;
  margin: 0 8px;
}

/* Footer Right — contact */
.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.footer-right a {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-right a:hover {
  color: var(--color-white);
}

.footer-right .footer-ig {
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-right .footer-ig svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Footer bottom strip */
.footer-strip {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 0;
  text-align: center;
}

.footer-strip p {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
}

/* ================================================================
   PAGE HERO (compact — Connect, Legal pages)
   ================================================================ */
.page-hero {
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  padding: 140px 0 60px;
  background: var(--color-bg);
}

.page-hero h1 {
  font-size: 52px;
  line-height: 1.15;
  color: var(--color-primary);
  margin-top: 16px;
}

.page-hero .subline {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  color: var(--color-text-muted);
  margin-top: 12px;
  max-width: 520px;
}

/* ================================================================
   PILLAR CARDS
   ================================================================ */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.pillar-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 48px 36px;
  text-align: center;
  transition: var(--transition-base);
}

.pillar-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.pillar-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  background: rgba(232, 82, 74, 0.08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pillar-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pillar-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 24px;
}

/* ================================================================
   TEAM CARDS
   ================================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
  width: 100%;
}

.team-grid > a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.team-grid > a > .team-card {
  height: 100%;
}

.team-card {
  background: #E8524A;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.25s ease;
  position: relative;
  cursor: pointer;
}

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

.linkedin-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,0.2);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.team-card:hover .linkedin-badge {
  opacity: 1;
}

.team-photo {
  width: 100px;
  height: 100px;
  margin: 0 auto;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid rgba(255,255,255,0.5);
  display: block;
}

.team-info {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 10px;
  padding: 14px 12px;
  margin-top: 14px;
}

.team-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  font-weight: 600;
  color: #FFFFFF;
  margin-top: 0;
}

.team-card .team-title {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 6px;
}

.team-card .team-phone {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #FFFFFF;
  font-weight: 500;
  text-decoration: none;
  margin-top: 14px;
  cursor: pointer;
  transition: var(--transition-base);
}

.team-card .team-phone:hover {
  color: rgba(255,255,255,0.8);
  text-decoration: underline;
}

/* ================================================================
   SERVICE TABS (Full — on homepage)
   ================================================================ */
.tab-bar {
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  gap: 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin-bottom: 48px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--color-border);
  scroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
}

.tab-bar::-webkit-scrollbar {
  display: none;
}

.service-tab {
  display: inline-block;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--color-text-muted);
  margin-right: 8px;
  cursor: pointer;
  transition: var(--transition-base);
  background: transparent;
  margin-bottom: 8px;
}

.service-tab:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.service-tab.active {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

/* Service panels */
.service-panel {
  display: none;
  grid-template-columns: 3fr 2fr;
  gap: 64px;
  animation: fadeIn 0.25s ease;
}

.service-panel.active {
  display: grid;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.panel-left h2 {
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.panel-left > p {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  color: var(--color-text);
  line-height: 1.8;
  max-width: 520px;
}

.panel-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  margin-top: 36px;
  margin-bottom: 14px;
}

.included-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.included-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.6;
}

.included-list li .bullet {
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  margin-top: 7px;
  flex-shrink: 0;
}

.process-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.process-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 18px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.6;
}

.process-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.process-list .step-num {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--color-accent);
  line-height: 1;
  flex-shrink: 0;
  width: 20px;
}

.mini-cta {
  margin-top: 32px;
  background: rgba(232, 82, 74, 0.04);
  border: 1px solid rgba(232, 82, 74, 0.15);
  border-radius: var(--radius-md);
  padding: 24px;
}

.mini-cta p {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 14px;
}

/* ================================================================
   CONTACT FORMS (Connect page)
   ================================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.contact-left {
  border-right: 1px solid var(--color-border);
  padding-right: 64px;
}

.form-title {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  color: var(--color-primary);
}

.form-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 28px;
  margin-top: 4px;
}

.field-wrapper {
  margin-bottom: 20px;
}

.field-wrapper label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.field-wrapper input,
.field-wrapper textarea,
.field-wrapper select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--color-text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field-wrapper input:focus,
.field-wrapper textarea:focus,
.field-wrapper select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(232, 82, 74, 0.1);
}

.field-wrapper input::placeholder,
.field-wrapper textarea::placeholder {
  color: var(--color-text-muted);
}

.field-wrapper textarea {
  resize: vertical;
  min-height: 130px;
}

.field-wrapper select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23777' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.field-wrapper select option[disabled] {
  color: var(--color-text-muted);
}

/* Error state */
.field-wrapper.error input,
.field-wrapper.error textarea,
.field-wrapper.error select {
  border-color: var(--color-accent);
}

.field-error {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--color-accent);
  margin-top: 4px;
  display: none;
}

.field-wrapper.error .field-error {
  display: block;
}

/* Form success state */
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  text-align: center;
  gap: 12px;
}

.form-success svg {
  width: 40px;
  height: 40px;
  color: var(--color-accent);
}

.form-success h3 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  color: var(--color-accent);
}

.form-success p {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--color-text-muted);
}

/* Connect page social icons */
.connect-social-icon {
  color: #E8524A;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
}

.connect-social-icon:hover {
  color: #d4443c;
  transform: translateY(-2px);
}

/* Footer social icon hover */
.footer-social-icons a:hover {
  color: white !important;
}

/* ================================================================
   LEGAL PAGES (Privacy, Terms)
   ================================================================ */
.legal-hero {
  padding: 140px 0 40px;
  background: var(--color-bg);
}

.legal-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: var(--text-4xl);
  color: var(--color-primary);
  margin-top: 16px;
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-xl) 24px;
}

.legal-updated {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--color-text-muted);
  font-style: italic;
  margin-bottom: 40px;
}

.legal-section {
  margin-bottom: 40px;
}

.legal-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.legal-section p {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--color-text);
  line-height: 1.8;
}

/* ================================================================
   CUSTOM DROPDOWN (connect.html)
   ================================================================ */
.custom-dropdown {
  position: relative;
  width: 100%;
}

.custom-dropdown-trigger {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  outline: none;
}

.custom-dropdown-trigger.placeholder {
  color: var(--color-text-muted);
}

.custom-dropdown-trigger:focus,
.custom-dropdown.open .custom-dropdown-trigger {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(232, 82, 74, 0.1);
}

.custom-dropdown-trigger.error {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(232, 82, 74, 0.1);
}

.custom-dropdown-chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  color: var(--color-text-muted);
}

.custom-dropdown.open .custom-dropdown-chevron {
  transform: rotate(180deg);
}

.custom-dropdown-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  z-index: 100;
  overflow: hidden;
  max-height: 320px;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.custom-dropdown.open .custom-dropdown-panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Scrollbar styling */
.custom-dropdown-panel::-webkit-scrollbar {
  width: 4px;
}
.custom-dropdown-panel::-webkit-scrollbar-track {
  background: transparent;
}
.custom-dropdown-panel::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 2px;
}

.custom-dropdown-option {
  padding: 11px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--color-text);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  border-bottom: 0.5px solid #F0EDE8;
  display: flex;
  align-items: center;
  gap: 10px;
}

.custom-dropdown-option:last-child {
  border-bottom: none;
}

.custom-dropdown-option:hover {
  background: rgba(232, 82, 74, 0.05);
  color: var(--color-accent);
}

.custom-dropdown-option:hover .cdd-icon {
  color: var(--color-accent);
}

.custom-dropdown-option.selected {
  color: var(--color-accent);
  font-weight: 500;
  background: rgba(232, 82, 74, 0.04);
}

.custom-dropdown-option.selected .cdd-icon {
  color: var(--color-accent);
}

.cdd-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: transparent;
  flex-shrink: 0;
}

.custom-dropdown-option.selected .cdd-dot {
  background: var(--color-accent);
}

.cdd-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--color-text-muted);
}

.cdd-icon svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ================================================================
   RESPONSIVE — TABLET (max-width: 900px)
   ================================================================ */
@media (max-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

/* ================================================================
   RESPONSIVE — MOBILE (max-width: 768px)
   ================================================================ */
@media (max-width: 768px) {
  .section {
    padding-top: var(--space-lg);
    padding-bottom: var(--space-lg);
  }

  /* Navbar */
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding: 100px 0 60px;
  }

  .hero-inner {
    flex-direction: column;
  }

  .hero-right {
    display: none;
  }

  .hero-left {
    max-width: 100%;
  }

  .hero-headline {
    font-size: 42px;
  }

  .hero-subheadline {
    font-size: 16px;
    max-width: 100%;
  }

  .scroll-indicator {
    display: none;
  }

  /* Mobile — smaller reveal distance */
  .reveal {
    transform: translateY(20px);
  }

  /* About section */
  .about-inner {
    flex-direction: column;
    gap: 40px;
  }

  .about-right {
    display: none;
  }

  .about-left h2 {
    font-size: var(--text-3xl);
  }

  /* Section headings */
  .section-heading h2 {
    font-size: var(--text-3xl);
  }

  /* Service cards */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Pillar cards */
  .pillars-grid {
    grid-template-columns: 1fr;
  }

  /* Page hero */
  .page-hero {
    min-height: auto;
    padding: 120px 0 40px;
  }

  .page-hero h1 {
    font-size: 38px;
  }

  /* Service tabs */
  .service-panel,
  .service-panel.active {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .panel-left h2 {
    font-size: 28px;
  }

  /* Contact form */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-left {
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 48px;
  }

  /* Footer */
  .footer-main {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .footer-left {
    justify-content: center;
  }

  .footer-center {
    justify-content: center;
  }

  .footer-right {
    align-items: center;
  }

  /* Legal pages */
  .legal-hero h1 {
    font-size: 36px;
  }
}

/* ================================================================
   RESPONSIVE — TABLET (services grid)
   ================================================================ */
@media (min-width: 769px) and (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
