/* ==========================================================================
   STARSALIGN DESIGN SYSTEM & COMPONENT STYLESHEET
   Direction: Warm, Minimal, Premium, Modular Rounded Cards, Flat Solid Blocks
   Palette: Warm Off-White (#FAF8F4), Charcoal (#111216), Mint (#2EE6A0), Amber (#FFC21A)
   Typography: Bricolage Grotesque (Display) + Inter (Body)
   ========================================================================== */

/* ==========================================================================
   PHASE 2 - DESIGN TOKENS
   ========================================================================== */
:root {
  /* Surface & Background Palette */
  --bg-canvas: #FAF8F4;             /* Warm off-white canvas */
  --bg-surface: #FFFFFF;            /* Pure clean card surface */
  --bg-tile: #F3EFE7;               /* Warm secondary tile / card inset */
  --bg-tile-hover: #EBE6DC;         /* Secondary tile hover */
  --bg-charcoal: #111216;           /* Deep solid charcoal block */
  --bg-charcoal-card: #191B21;      /* Charcoal inner modular card */
  --bg-charcoal-hover: #22252D;     /* Charcoal element hover */

  /* Text & Inks */
  --ink-primary: #111216;           /* Primary text / ink (100%) */
  --ink-secondary: rgba(17, 18, 22, 0.68);  /* Secondary text (~68% opacity) */
  --ink-tertiary: rgba(17, 18, 22, 0.48);   /* Tertiary text (~48% opacity) */

  /* Text on Solid Charcoal Blocks */
  --text-on-dark: #FAF8F4;
  --text-on-dark-muted: rgba(250, 248, 244, 0.72);
  --text-on-dark-subtle: rgba(250, 248, 244, 0.48);

  /* Curated Accents (One accent per section/card rule) */
  --accent-mint: #2EE6A0;           /* Primary Accent: Mint */
  --accent-mint-hover: #26C789;
  --accent-mint-soft: rgba(46, 230, 160, 0.14);
  --accent-mint-border: rgba(46, 230, 160, 0.35);

  --accent-amber: #FFC21A;          /* Secondary Accent: Amber */
  --accent-amber-hover: #E6AC10;
  --accent-amber-soft: rgba(255, 194, 26, 0.14);
  --accent-amber-border: rgba(255, 194, 26, 0.35);

  /* Status Tokens */
  --color-danger: #E5484D;
  --color-danger-soft: rgba(229, 72, 77, 0.10);
  --color-success: #1E9E68;
  --color-success-soft: rgba(30, 158, 104, 0.12);

  /* Borders */
  --border-subtle: rgba(17, 18, 22, 0.08);
  --border-soft: rgba(17, 18, 22, 0.14);
  --border-strong: rgba(17, 18, 22, 0.28);
  --border-on-dark: rgba(255, 255, 255, 0.12);
  --border-on-dark-soft: rgba(255, 255, 255, 0.20);

  /* Shadows (Strictly one soft warm shadow + one hover shadow, no colored glows) */
  --shadow-warm-sm: 0 2px 8px rgba(17, 18, 22, 0.04);
  --shadow-warm: 0 10px 30px -4px rgba(17, 18, 22, 0.06), 0 2px 6px -1px rgba(17, 18, 22, 0.03);
  --shadow-warm-hover: 0 16px 36px -4px rgba(17, 18, 22, 0.10), 0 4px 12px -2px rgba(17, 18, 22, 0.05);

  /* Typography Families */
  --font-brand: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Strict Radius System (28px large cards, 16px panels, 12px inputs, 9999px pill. Nothing else.) */
  --radius-card: 28px;
  --radius-panel: 16px;
  --radius-input: 12px;
  --radius-pill: 9999px;

  /* Spacing Scale (Strict 4/8px grid) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;

  /* Motion Defaults */
  --duration-fast: 160ms;
  --duration-normal: 240ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   PHASE 1 - CORE FOUNDATION & RESETS
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-canvas);
  color: var(--ink-primary);
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-canvas);
  color: var(--ink-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  min-height: 100vh;
}

/* Selection */
::selection {
  background-color: var(--accent-mint);
  color: var(--ink-primary);
}

/* Accessible Global Focus Ring */
:focus-visible {
  outline: 2px solid var(--accent-mint);
  outline-offset: 2px;
}

/* Anchor Targets Scroll Margin (Ensures fixed navbar never covers headings) */
[id] {
  scroll-margin-top: 5.5rem;
}

/* Typography Hierarchy (Display: tight tracking -0.035em, tight line-height 1 to 1.1) */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--ink-primary);
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h4 {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

p {
  color: var(--ink-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

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

/* Container Utility */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-8);
  }
}

/* Section Padding: Strict 96px desktop / 64px mobile */
.section-padding {
  padding: var(--space-16) 0;
}

@media (min-width: 1024px) {
  .section-padding {
    padding: var(--space-24) 0;
  }
}

/* ==========================================================================
   PHASE 3 - SHARED COMPONENT CLASSES
   ========================================================================== */

/* Base Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 46px;
  padding: 0 var(--space-6);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  user-select: none;
  text-align: center;
  transition:
    transform var(--duration-fast) var(--ease-out),
    background-color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out);
}

.btn:hover {
  transform: scale(1.02);
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Button Variants */
.btn-primary {
  background-color: var(--ink-primary);
  color: var(--bg-canvas);
  border-color: var(--ink-primary);
}

.btn-primary:hover {
  background-color: #22252D;
  border-color: #22252D;
  color: #FFFFFF;
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--ink-primary);
  border-color: var(--border-soft);
  box-shadow: var(--shadow-warm-sm);
}

.btn-secondary:hover {
  background-color: var(--bg-tile);
  border-color: var(--border-strong);
  color: var(--ink-primary);
}

.btn-accent {
  background-color: var(--accent-mint);
  color: var(--ink-primary);
  border-color: var(--accent-mint);
}

.btn-accent:hover {
  background-color: var(--accent-mint-hover);
  border-color: var(--accent-mint-hover);
}

.btn-ghost {
  background-color: transparent;
  color: var(--ink-primary);
  border-color: transparent;
}

.btn-ghost:hover {
  background-color: var(--bg-tile);
}

.btn-danger {
  background-color: var(--color-danger);
  color: #FFFFFF;
  border-color: var(--color-danger);
}

.btn-sm {
  height: 38px;
  padding: 0 var(--space-4);
  font-size: 0.82rem;
}

.btn-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform var(--duration-fast) var(--ease-out);
}

.btn:hover .btn-icon {
  transform: translateX(2px);
}

/* Dedicated Icon Button (40px round hit area) */
.btn-icon-round {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Hero Primary CTA with Distinct Circle Arrow Accent */
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  height: 52px;
  padding: 0 var(--space-6) 0 var(--space-2);
  border-radius: var(--radius-pill);
  background-color: var(--ink-primary);
  color: var(--bg-canvas);
  border: 1px solid var(--ink-primary);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform var(--duration-fast) var(--ease-out), background-color var(--duration-fast) var(--ease-out);
}

.btn-hero-primary:hover {
  transform: scale(1.02);
  background-color: #22252D;
}

.btn-hero-primary:active {
  transform: scale(0.98);
}

.btn-arrow-circle {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  background-color: var(--accent-mint);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-primary);
  flex-shrink: 0;
  transition: transform var(--duration-fast) var(--ease-out);
}

.btn-hero-primary:hover .btn-arrow-circle {
  transform: translateX(2px);
}

.btn-arrow-circle svg {
  width: 16px;
  height: 16px;
}

/* Modular Cards (28px radius, consistent padding) */
.card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: var(--space-8);
  box-shadow: var(--shadow-warm);
  transition: transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal) var(--ease-out);
}

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

.card-inset {
  background-color: var(--bg-tile);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-panel);
  padding: var(--space-6);
}

/* Badges & Tags */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.35rem 0.95rem;
  background-color: var(--bg-surface);
  color: var(--ink-primary);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: var(--shadow-warm-sm);
  margin-bottom: var(--space-4);
}

.badge-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-mint);
  border-radius: var(--radius-pill);
}

/* Inputs & Form Fields (12px radius, visible focus) */
.input-field,
.form-input,
.form-textarea {
  width: 100%;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-input);
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--ink-primary);
  transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}

.input-field::placeholder,
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--ink-tertiary);
}

.input-field:focus,
.form-input:focus,
.form-textarea:focus {
  border-color: var(--ink-primary);
  outline: 2px solid var(--accent-mint);
  outline-offset: 1px;
}

/* Empty State Component */
.empty-state {
  border: 1px dashed var(--border-soft);
  border-radius: var(--radius-card);
  padding: var(--space-12) var(--space-8);
  text-align: center;
  background-color: var(--bg-surface);
}

.empty-state p {
  color: var(--ink-secondary);
  margin-bottom: var(--space-4);
}

/* ==========================================================================
   PHASE 4 - NAVIGATION BAR & MOBILE MENU
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-4) 0;
  transition: padding var(--duration-normal) var(--ease-out);
}

.header.scrolled {
  padding: var(--space-2) 0;
}

.nav-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  background-color: rgba(250, 248, 244, 0.92);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  padding: 0.55rem 1.4rem;
  box-shadow: var(--shadow-warm-sm);
  transition: background-color var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal) var(--ease-out), border-color var(--duration-normal) var(--ease-out);
}

.header.scrolled .nav-pill {
  background-color: #FFFFFF;
  border-color: var(--border-strong);
  box-shadow: var(--shadow-warm);
}

/* Brand Wordmark & Icon */
.logo {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.05em;
  color: var(--ink-primary);
  text-transform: lowercase;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  user-select: none;
}

.logo-icon-wrapper {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  background-color: #FFFFFF;
  border: 1px solid var(--border-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  padding: 4px;
  box-shadow: var(--shadow-warm-sm);
  transition: transform var(--duration-fast) var(--ease-out);
}

.logo:hover .logo-icon-wrapper {
  transform: scale(1.06);
  border-color: var(--ink-primary);
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.logo-text-group {
  display: inline-flex;
  align-items: center;
}

.logo-dot {
  width: 5px;
  height: 5px;
  background-color: var(--accent-amber);
  border-radius: var(--radius-pill);
  display: inline-block;
  margin-left: 2px;
}

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

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

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  position: relative;
  padding: 4px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--ink-primary);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background-color: var(--accent-mint);
  border-radius: var(--radius-pill);
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-out);
}

.nav-link:hover::after,
.nav-link.active::after {
  opacity: 1;
}

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

/* Mobile Toggle (40px hit area) */
.mobile-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  cursor: pointer;
  padding: 0;
}

@media (min-width: 768px) {
  .mobile-toggle {
    display: none;
  }
}

.mobile-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background-color: var(--ink-primary);
  border-radius: 2px;
  transition: transform var(--duration-fast) var(--ease-out), opacity var(--duration-fast) var(--ease-out);
}

/* Mobile Drawer (Clean warm modal, no blur) */
.mobile-menu {
  position: fixed;
  inset: 0;
  background-color: var(--bg-canvas);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-6);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal) var(--ease-out);
  padding: var(--space-8);
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-link {
  font-family: var(--font-brand);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink-primary);
  text-transform: lowercase;
  letter-spacing: 0.05em;
}

.mobile-nav-link:hover {
  color: var(--accent-mint-hover);
}

/* ==========================================================================
   PHASE 4 - HERO SECTION & CINEMATIC SCROLL CANVAS
   ========================================================================== */
.hero-section {
  position: relative;
  background-color: var(--bg-canvas);
  overflow: visible;
  padding: 0;
}

.hero-scroll-wrapper {
  position: relative;
  height: 140vh;
  border-bottom: 1px solid var(--border-soft);
}

.hero-canvas {
  position: sticky;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  display: block;
  opacity: 1;
  filter: saturate(1.1) contrast(1.05);
}

/* Directional Gradient Scrim: lightly tinted on the left behind text, fully transparent on the right */
.hero-canvas-overlay {
  position: sticky;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  margin-top: -100vh;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    to right,
    rgba(250, 248, 244, 0.75) 0%,
    rgba(250, 248, 244, 0.35) 35%,
    rgba(250, 248, 244, 0) 65%
  );
}

.hero-sticky-container {
  position: sticky;
  top: 0;
  height: 100vh;
  margin-top: -100vh;
  z-index: 3;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  padding-bottom: 2rem;
  pointer-events: auto;
}

/* CRITICAL FIX: Hero content is fully visible on load! Never hidden before scroll */
.hero-left-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 780px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hero-brand-focal {
  font-family: var(--font-brand);
  font-size: clamp(3.2rem, 7vw, 6rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--ink-primary);
  margin-bottom: var(--space-4);
}

.hero-brand-focal .gold-dot {
  color: var(--accent-amber);
  display: inline-block;
}

.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: #262930;
  margin-bottom: var(--space-8);
  font-weight: 500;
  line-height: 1.6;
  max-width: 540px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

/* Scroll Indicator */
.hero-scroll-indicator {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.scroll-text {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #3B3F4A;
}

.scroll-line {
  position: relative;
  width: 1px;
  height: 32px;
  background-color: rgba(17, 18, 22, 0.35);
}

.scroll-dot {
  position: absolute;
  top: 0;
  left: -2px;
  width: 5px;
  height: 5px;
  background-color: var(--accent-amber);
  border-radius: var(--radius-pill);
  animation: scrollPulse 2.4s infinite ease-in-out;
}

@keyframes scrollPulse {
  0% { top: 0; opacity: 1; }
  70% { top: 26px; opacity: 0.2; }
  100% { top: 0; opacity: 1; }
}

/* ==========================================================================
   PHASE 4 - SERVICES SECTION (Modular Rounded Cards, 28px Radius)
   ========================================================================== */
.services-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-12) auto;
}

.section-title {
  margin-bottom: var(--space-3);
  color: var(--ink-primary);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: var(--space-8) var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-warm);
  transition: transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal) var(--ease-out), border-color var(--duration-normal) var(--ease-out);
  position: relative;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-warm-hover);
  border-color: var(--border-strong);
}

.service-number {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-primary);
  letter-spacing: 0.06em;
  margin-bottom: var(--space-6);
  padding: 0.25rem 0.8rem;
  background-color: var(--bg-tile);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
}

.service-img-frame {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: var(--space-6);
  border: 3px solid #FFFFFF;
  box-shadow: var(--shadow-warm);
  transition: transform var(--duration-normal) var(--ease-out);
  flex-shrink: 0;
}

.service-card:hover .service-img-frame {
  transform: scale(1.04);
}

.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.service-card p {
  font-size: 0.92rem;
  color: var(--ink-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-6);
  flex-grow: 1;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
  list-style: none;
}

.service-tag {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink-primary);
  background-color: var(--bg-tile);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-soft);
  transition: background-color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out);
}

.service-card:hover .service-tag {
  background-color: var(--bg-tile-hover);
}

/* ==========================================================================
   PHASE 4 - WHY STARSALIGN (Solid Flat Color Block, Charcoal Contrast)
   ========================================================================== */
.why-section {
  background-color: var(--bg-charcoal);
  border-radius: var(--radius-card);
  padding: var(--space-10) var(--space-6);
  box-shadow: var(--shadow-warm);
  border: 1px solid var(--border-on-dark);
}

@media (min-width: 992px) {
  .why-section {
    padding: var(--space-16) var(--space-12);
  }
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 992px) {
  .why-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.why-content h2 {
  color: var(--text-on-dark);
  margin-bottom: var(--space-3);
}

.why-lead {
  font-size: 1.05rem;
  color: var(--text-on-dark-muted);
  margin-bottom: var(--space-8);
  line-height: 1.6;
}

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

@media (min-width: 640px) {
  .features-list {
    grid-template-columns: 1fr 1fr;
  }
}

.feature-item {
  background-color: var(--bg-charcoal-card);
  border: 1px solid var(--border-on-dark);
  border-radius: var(--radius-panel);
  padding: var(--space-5);
  transition: transform var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out);
}

.feature-item:hover {
  transform: translateY(-2px);
  border-color: var(--border-on-dark-soft);
}

.feature-icon {
  width: 32px;
  height: 32px;
  background-color: var(--accent-mint-soft);
  color: var(--accent-mint);
  border: 1px solid var(--accent-mint-border);
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: var(--space-3);
}

.feature-item h4 {
  color: var(--text-on-dark);
  font-size: 1rem;
  margin-bottom: var(--space-1);
}

.feature-item p {
  font-size: 0.88rem;
  color: var(--text-on-dark-muted);
  line-height: 1.5;
}

.why-image-wrapper {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-warm);
  border: 1px solid var(--border-on-dark);
}

.why-image {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   PHASE 4 & 5 - CONTACT SECTION & BRAND INQUIRY FORM
   ========================================================================== */
.contact-section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-10) auto;
}

.contact-main-title {
  margin-bottom: var(--space-3);
  color: var(--ink-primary);
}

.contact-main-sub {
  font-size: 1.02rem;
  color: var(--ink-secondary);
}

.single-form-container {
  max-width: 640px;
  margin: 0 auto;
}

.form-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: var(--space-10) var(--space-8);
  box-shadow: var(--shadow-warm);
  display: flex;
  flex-direction: column;
}

@media (max-width: 640px) {
  .form-card {
    padding: var(--space-6) var(--space-5);
  }
}

.form-card-header {
  margin-bottom: var(--space-6);
}

.form-card-header h3 {
  font-size: 1.45rem;
  margin-bottom: var(--space-1);
  color: var(--ink-primary);
}

.form-card-header p {
  font-size: 0.92rem;
  color: var(--ink-secondary);
}

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

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

.form-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-primary);
}

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

#companyMessage {
  min-height: 120px;
}

/* Custom Phone & Country Picker */
.phone-input-group {
  display: flex;
  gap: var(--space-2);
  position: relative;
}

.phone-number-input {
  flex: 1;
}

.country-picker {
  position: relative;
}

.country-picker-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-input);
  padding: 0.8rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-primary);
  cursor: pointer;
  white-space: nowrap;
  height: 100%;
  transition: border-color var(--duration-fast) var(--ease-out);
}

.country-picker-btn:hover {
  border-color: var(--ink-primary);
}

.country-flag {
  font-size: 1.15rem;
  line-height: 1;
}

.country-dial-code {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink-primary);
}

.picker-chevron {
  width: 14px;
  height: 14px;
  color: var(--ink-secondary);
}

.country-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 270px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-warm-hover);
  z-index: 100;
  overflow: hidden;
  flex-direction: column;
}

.country-dropdown.active {
  display: flex;
}

.country-search-box {
  padding: var(--space-2);
  border-bottom: 1px solid var(--border-subtle);
  background-color: var(--bg-tile);
}

.country-search-input {
  width: 100%;
  padding: 0.45rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-input);
  background: var(--bg-surface);
  color: var(--ink-primary);
}

.country-list {
  list-style: none;
  overflow-y: auto;
  margin: 0;
  padding: 0;
  max-height: 200px;
}

.country-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.85rem;
  font-size: 0.86rem;
  cursor: pointer;
  color: var(--ink-primary);
  transition: background-color var(--duration-fast) var(--ease-out);
}

.country-item:hover {
  background-color: var(--bg-tile);
}

.country-item-left {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.country-item-code {
  font-weight: 600;
  color: var(--ink-secondary);
  font-size: 0.84rem;
}

.submit-btn {
  width: 100%;
  height: 48px;
  margin-top: var(--space-2);
}

/* User-Facing Feedback Alert Box (ALLOWED ADDITION C) */
.form-feedback {
  display: none;
  padding: var(--space-4);
  border-radius: var(--radius-input);
  margin-bottom: var(--space-4);
  font-weight: 500;
  text-align: center;
  font-size: 0.88rem;
  line-height: 1.5;
}

.form-feedback.success {
  display: block;
  background-color: var(--color-success-soft);
  color: var(--color-success);
  border: 1px solid var(--color-success);
}

.form-feedback.error {
  display: block;
  background-color: var(--color-danger-soft);
  color: var(--color-danger);
  border: 1px solid var(--color-danger);
}

/* Creator Link Banner */
.creator-redirect-banner {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.creator-redirect-banner p {
  font-size: 0.92rem;
  color: var(--ink-secondary);
}

.creator-link {
  color: var(--ink-primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.creator-link:hover {
  color: var(--accent-amber-hover);
}

/* Loading Spinner */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(250, 248, 244, 0.4);
  border-radius: 50%;
  border-top-color: #FAF8F4;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   PHASE 4 - FOOTER
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-12) 0 var(--space-8) 0;
  background-color: var(--bg-canvas);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-tagline {
  font-size: 0.88rem;
  color: var(--ink-secondary);
  max-width: 360px;
  margin-top: var(--space-3);
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .footer-right {
    align-items: flex-end;
  }
}

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

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--ink-primary);
  text-decoration: none;
  transition: transform var(--duration-fast) var(--ease-out),
              background-color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
  box-shadow: var(--shadow-warm-sm);
}

.footer-social-link:hover {
  background: var(--bg-charcoal);
  border-color: var(--bg-charcoal);
  color: var(--accent-mint);
  transform: translateY(-2px);
  box-shadow: var(--shadow-warm);
}

.footer-social-link:focus-visible {
  outline: 2px solid var(--accent-mint);
  outline-offset: 2px;
}

.footer-social-icon {
  width: 18px;
  height: 18px;
  display: block;
}

.footer-copy {
  font-size: 0.84rem;
  color: var(--ink-tertiary);
}

/* ==========================================================================
   PHASE 8 - SCROLL ANIMATIONS & ACCESSIBILITY
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
