/* =============================================
   AIFINANCEO — BRAND DESIGN SYSTEM
   ============================================= */
:root {
  /* AiFinanceo Brand Palette */
  --navy:       #0B1728;
  --deep-navy:  #1C3054;
  --gold:       #C9A84C;
  --deep-gold:  #8B6914;
  --ivory:      #F5F3EC;
  --warm-cream: #FFF8E6;
  --light-gold: #F0E4C0;
  --charcoal:   #4A4A48;
  --white:      #FFFFFF;

  /* Semantic aliases (keep for legacy references) */
  --color-primary:       var(--navy);
  --color-primary-light: var(--deep-navy);
  --color-accent:        var(--gold);
  --color-accent-hover:  var(--deep-gold);
  --color-text-dark:     #1a1a18;
  --color-text-body:     var(--charcoal);
  --color-text-muted:    #6b6b68;
  --color-bg-white:      var(--white);
  --color-bg-light:      var(--ivory);
  --color-bg-dark:       var(--navy);
  --color-border:        #DDD8CC;
  --color-success:       #15803d;
  --color-error:         #dc2626;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Shape */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;

  /* Shadow */
  --shadow-sm: 0 1px 4px rgba(11,23,40,0.08);
  --shadow-md: 0 4px 20px rgba(11,23,40,0.12);
  --shadow-lg: 0 8px 40px rgba(11,23,40,0.18);

  /* Transition */
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

img, svg { display: block; max-width: 100%; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; }

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

input, textarea, select { font-family: inherit; font-size: 1rem; }

/* =============================================
   BASE TYPOGRAPHY
   ============================================= */
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--color-text-dark);
  line-height: 1.2;
  font-weight: normal;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.875rem, 3.5vw, 2.625rem); }
h3 { font-size: 1.2rem; font-weight: bold; font-family: Georgia, serif; }
h4 { font-size: 0.9rem; font-weight: 600; font-family: 'Inter', sans-serif; letter-spacing: 0.08em; text-transform: uppercase; }

p { line-height: 1.75; }

/* =============================================
   UTILITIES
   ============================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section { padding: var(--space-20) 0; }

.bg-white  { background: var(--white); }
.bg-ivory  { background: var(--ivory); }
.bg-navy   { background: var(--navy); }
.bg-light  { background: var(--ivory); }

.text-white { color: var(--white) !important; }
.text-muted-light { color: rgba(255,255,255,0.68) !important; }
.gold-text  { color: var(--gold); }

.section-divider {
  height: 1px;
  background: rgba(201,168,76,0.18);
  margin: 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-12);
}

.section-header h2 { margin: var(--space-4) 0 var(--space-4); }

.section-sub {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

/* Section label — gold caps, no pill */
.section-label {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-3);
}

/* Scroll-triggered animations */
.animate-hidden {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  cursor: pointer;
  border: 1.5px solid transparent;
}

.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Gold filled — primary CTA */
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--deep-gold);
  border-color: var(--deep-gold);
  color: var(--white);
}

/* Outline — secondary CTA (on dark bg) */
.btn-outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--navy);
}

/* Automagic CTA — navy bg, gold text, gold border */
.btn-automagic {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-automagic:hover {
  background: var(--gold);
  color: var(--navy);
}

.btn-full { width: 100%; }

/* =============================================
   NAVBAR
   ============================================= */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--navy);
  border-top: 3px solid var(--gold);
  padding: var(--space-3) 0;
  transition: box-shadow var(--transition);
}

#navbar.navbar--scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.35);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-wordmark {
  font-family: Georgia, serif;
  font-size: 22px;
  color: var(--white);
  letter-spacing: -0.5px;
  line-height: 1;
}

.logo-wordmark span { color: var(--gold); }

.footer-logo .logo-wordmark { font-size: 20px; }

nav { display: flex; align-items: center; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-links li a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  transition: color var(--transition);
  position: relative;
  font-family: 'Inter', sans-serif;
}

.nav-links li a:hover,
.nav-links li a.active { color: var(--gold); }

.nav-cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
  padding: 10px 20px !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
  transition: background var(--transition) !important;
}

.nav-cta:hover {
  background: var(--deep-gold) !important;
  color: var(--white) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   KEYFRAME ANIMATIONS
   ============================================= */
@keyframes heroGradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes floatUp {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33%       { transform: translateY(-8px) rotate(2deg); }
  66%       { transform: translateY(4px) rotate(-1deg); }
}

@keyframes pulseGold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,168,76,0); }
  50%       { box-shadow: 0 0 24px 4px rgba(201,168,76,0.2); }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes rotateSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =============================================
   HERO
   ============================================= */
#home {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
  padding-top: 80px;
}

#home::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 40%, rgba(201,168,76,0.07) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 70%, rgba(28,48,84,0.5) 0%, transparent 50%);
  pointer-events: none;
}

/* Canvas particle layer */
#heroCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Decorative floating hexagon rings */
#home::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border: 1px solid rgba(201,168,76,0.06);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: rotateSlow 40s linear infinite;
  pointer-events: none;
}

.hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.05);
  pointer-events: none;
  animation: rotateSlow linear infinite;
}

.hero-ring-1 {
  width: 300px; height: 300px;
  top: 10%; right: 8%;
  animation-duration: 25s;
  animation-direction: reverse;
}

.hero-ring-2 {
  width: 200px; height: 200px;
  bottom: 15%; left: 6%;
  animation-duration: 35s;
  border-color: rgba(201,168,76,0.08);
}

.hero-ring-3 {
  width: 450px; height: 450px;
  top: -10%; right: -5%;
  animation-duration: 55s;
  border-color: rgba(201,168,76,0.04);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-20) var(--space-6);
  width: 100%;
}

.hero-content .section-label { margin-bottom: var(--space-6); }

.hero-content h1 {
  color: var(--white);
  margin-bottom: var(--space-4);
  font-size: clamp(2.8rem, 6vw, 4rem);
  line-height: 1.1;
}

.hero-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: var(--space-6);
}

.hero-sub {
  color: rgba(255,255,255,0.72);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  max-width: 600px;
  margin: 0 auto var(--space-8);
}

.hero-buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-12);
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat strong {
  font-family: Georgia, serif;
  font-size: 2rem;
  font-weight: normal;
  color: var(--gold);
  line-height: 1;
}

.stat span {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(201,168,76,0.25);
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
}

.hero-wave svg { width: 100%; height: 70px; }

/* =============================================
   THREE PILLARS STRIP
   ============================================= */
.pillars-strip {
  background: var(--deep-navy);
  padding: 40px 0;
}

.pillars-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.pillar {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-8);
  max-width: 380px;
}

.pillar-icon {
  width: 52px;
  height: 52px;
  background: rgba(201,168,76,0.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pillar-text strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 4px;
}

.pillar-text p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
  margin: 0;
}

.pillar-divider {
  width: 1px;
  height: 60px;
  background: rgba(201,168,76,0.25);
  flex-shrink: 0;
}

/* =============================================
   SERVICES
   ============================================= */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6);
}

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--gold);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(11,23,40,0.14);
  animation: pulseGold 2s ease-in-out infinite;
}

.card-icon {
  width: 52px;
  height: 52px;
  background: rgba(201,168,76,0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
}

.card h3 {
  color: var(--navy);
  margin-bottom: var(--space-3);
}

.card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: var(--space-4);
}

.card-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.card-list li {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  padding-left: var(--space-4);
  position: relative;
}

.card-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* =============================================
   ABOUT — DARK SECTION
   ============================================= */
.about-dark-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.about-dark-text .section-label { margin-bottom: var(--space-4); }
.about-dark-text h2 { margin-bottom: var(--space-6); }

.about-dark-text p {
  margin-bottom: var(--space-6);
  font-size: 1rem;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
}

.check-list li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Stats grid on right side of about */
.about-dark-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.why-stat-card {
  background: var(--deep-navy);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius-md);
  padding: var(--space-8) var(--space-6);
  text-align: center;
}

.why-stat-card strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 2.5rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.why-stat-card span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: 'Inter', sans-serif;
}

/* =============================================
   OUR PROCESS
   ============================================= */
.steps-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-wrap: nowrap;
}

.step {
  flex: 1;
  text-align: center;
  padding: var(--space-8) var(--space-6);
  max-width: 300px;
}

.step-number {
  width: 64px;
  height: 64px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, serif;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto var(--space-6);
  box-shadow: 0 4px 16px rgba(201,168,76,0.3);
}

.step h3 {
  color: var(--navy);
  margin-bottom: var(--space-3);
}

.step p { color: var(--color-text-muted); font-size: 0.95rem; }

.step-arrow {
  display: flex;
  align-items: center;
  padding-top: var(--space-12);
  opacity: 0.8;
}

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.testimonial-card {
  background: var(--white);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.stars {
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: var(--space-4);
  letter-spacing: 3px;
}

.quote {
  font-style: italic;
  color: var(--charcoal);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: var(--space-6);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--deep-navy));
  border: 2px solid var(--gold);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
  font-family: 'Inter', sans-serif;
}

.testimonial-author strong {
  display: block;
  font-size: 0.9rem;
  color: var(--navy);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.testimonial-author span {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* =============================================
   AUTOMATION — AUTOMAGIC
   ============================================= */
.automagic-tagline {
  font-style: italic;
  color: var(--gold);
  font-size: 1.05rem;
  margin-bottom: var(--space-4);
}

.automagic-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: var(--space-12);
  flex-wrap: nowrap;
}

.automagic-step {
  flex: 1;
  max-width: 220px;
  background: var(--deep-navy);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  text-align: center;
  position: relative;
}

.step-badge {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.automagic-icon {
  width: 56px;
  height: 56px;
  background: rgba(201,168,76,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
}

.automagic-step h4 {
  color: var(--white);
  margin-bottom: var(--space-2);
  font-size: 0.85rem;
}

.automagic-step p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
  margin: 0;
}

.automagic-arrow {
  padding: 0 var(--space-3);
  opacity: 0.7;
}

/* Integration highlight box */
.automagic-highlight {
  background: var(--gold);
  border-radius: var(--radius-md);
  padding: var(--space-6) var(--space-8);
  text-align: center;
  margin-bottom: var(--space-8);
}

.highlight-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: var(--space-4);
}

.integration-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
}

.pill {
  display: inline-block;
  background: var(--navy);
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.4);
  border-radius: var(--radius-sm);
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.03em;
}

.automagic-cta {
  text-align: center;
}

/* =============================================
   CONTACT
   ============================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: start;
}

.contact-info .section-label { margin-bottom: var(--space-4); }
.contact-info h2 { margin-bottom: var(--space-4); }
.contact-info > p { margin-bottom: var(--space-8); font-size: 1rem; }

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  line-height: 1.6;
  font-family: 'Inter', sans-serif;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: rgba(201,168,76,0.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
}

/* Form */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  font-family: 'Inter', sans-serif;
}

.required { color: var(--color-error); }
.optional { color: var(--color-text-muted); font-weight: 400; }

.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--navy);
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--white);
  width: 100%;
  outline: none;
  font-family: 'Inter', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}

.form-group input.error,
.form-group textarea.error {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(220,38,38,0.1);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.field-error {
  font-size: 0.78rem;
  color: var(--color-error);
  min-height: 16px;
  display: block;
  font-family: 'Inter', sans-serif;
}

.form-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: var(--space-3);
  font-family: 'Inter', sans-serif;
}

.form-success {
  display: none;
  align-items: center;
  gap: var(--space-3);
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  padding: var(--space-4) var(--space-6);
  margin-top: var(--space-4);
  color: var(--color-success);
  font-weight: 500;
  font-size: 0.9rem;
}

.form-success.visible { display: flex; }

.form-error-msg {
  display: none;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  padding: var(--space-4) var(--space-6);
  margin-top: var(--space-4);
  color: var(--color-error);
  font-size: 0.88rem;
}

.form-error-msg.visible { display: block; }

/* =============================================
   FOOTER
   ============================================= */
#footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: var(--space-16) 0 0;
  border-top: 3px solid var(--gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-brand .footer-logo {
  margin-bottom: var(--space-4);
}

.footer-tagline {
  font-family: Georgia, serif;
  font-style: italic;
  color: var(--gold);
  font-size: 0.9rem;
  margin-bottom: var(--space-3);
}

.footer-brand > p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.social-links {
  display: flex;
  gap: var(--space-3);
}

.social-links a {
  width: 36px;
  height: 36px;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.55);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.social-links a:hover {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-6);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-col ul li a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
  font-family: 'Inter', sans-serif;
}

.footer-col ul li a:hover { color: var(--gold); }

.footer-contact li {
  font-size: 0.875rem;
  line-height: 1.6;
  font-family: 'Inter', sans-serif;
}

.footer-bottom {
  background: rgba(0,0,0,0.25);
  padding: var(--space-4) 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-bottom p {
  font-size: 0.82rem;
  font-family: 'Inter', sans-serif;
}

.footer-legal { display: flex; gap: var(--space-6); }

.footer-legal a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  transition: color var(--transition);
  font-family: 'Inter', sans-serif;
}

.footer-legal a:hover { color: var(--gold); }

/* =============================================
   RESPONSIVE — TABLET (max 1024px)
   ============================================= */
@media (max-width: 1024px) {
  .automagic-flow {
    flex-wrap: wrap;
    gap: var(--space-4);
  }
  .automagic-arrow { display: none; }
  .automagic-step { max-width: calc(50% - 1rem); flex: none; width: calc(50% - 1rem); }
}

/* =============================================
   RESPONSIVE — TABLET (max 900px)
   ============================================= */
@media (max-width: 900px) {
  .about-dark-grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .about-dark-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid { grid-template-columns: 1fr 1fr; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .footer-brand { grid-column: 1 / -1; }

  .pillars-inner {
    flex-direction: column;
    gap: var(--space-4);
  }

  .pillar-divider { width: 60px; height: 1px; }
  .pillar { max-width: 100%; justify-content: center; }
}

/* =============================================
   RESPONSIVE — MOBILE (max 768px)
   ============================================= */
@media (max-width: 768px) {
  /* Nav */
  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--navy);
    border-top: 3px solid var(--gold);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-8);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 999;
  }

  .nav-links.open { transform: translateX(0); }
  .nav-links li a { font-size: 1.15rem; color: rgba(255,255,255,0.85); }
  .nav-cta { padding: 10px 32px !important; }

  /* Hero */
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-stats { flex-direction: column; gap: var(--space-4); }
  .stat-divider { width: 40px; height: 1px; }

  /* Steps */
  .steps-row { flex-direction: column; align-items: center; gap: var(--space-4); }
  .step-arrow { transform: rotate(90deg); padding: 0; }
  .step { max-width: 100%; padding: var(--space-6); }

  /* Testimonials */
  .testimonials-grid { grid-template-columns: 1fr; }

  /* Automagic */
  .automagic-step { max-width: 100%; width: 100%; }

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

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .footer-brand { grid-column: auto; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
}

/* =============================================
   RESPONSIVE — SMALL MOBILE (max 480px)
   ============================================= */
@media (max-width: 480px) {
  .section { padding: var(--space-12) 0; }
  .cards-grid { grid-template-columns: 1fr; }
  .hero-content { padding: var(--space-12) var(--space-4); }
  .contact-form-wrap { padding: var(--space-6); }
  .about-dark-stats { grid-template-columns: 1fr 1fr; }
  .why-stat-card strong { font-size: 2rem; }

  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.875rem; }
}
