/* ========================================
   Scout Content Studio — Design Tokens & Styles
   Palette: Monochrome (white, black, gray tones)
   Typography: Instrument Serif (display) + Switzer (body)
   ======================================== */

/* --- DESIGN TOKENS --- */
:root {
  /* Type Scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(3rem,     0.5rem  + 7vw,    8rem);

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

  /* Content Widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;

  /* Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;

  /* Transition */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Fonts */
  --font-display: 'Instrument Serif', 'Georgia', serif;
  --font-body: 'Switzer', 'Helvetica Neue', 'Arial', sans-serif;
}

/* --- LIGHT MODE (default) --- */
:root, [data-theme="light"] {
  --color-bg:          #FFFFFF;
  --color-surface:     #FAFAFA;
  --color-surface-2:   #F5F5F5;
  --color-surface-alt: #F0F0F0;
  --color-border:      rgba(0, 0, 0, 0.1);
  --color-border-strong: rgba(0, 0, 0, 0.18);
  --color-text:        #111111;
  --color-text-muted:  #6B6B6B;
  --color-text-faint:  #A0A0A0;
  --color-accent:      #111111;
  --color-accent-hover:#333333;
  --color-accent-text: #FFFFFF;
  --color-warm:        #B5654A;
  --color-warm-light:  #C8826A;
  --color-warm-bg:     #FAF5F2;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.08);
}

/* --- DARK MODE --- */
[data-theme="dark"] {
  --color-bg:          #0E0E0E;
  --color-surface:     #161616;
  --color-surface-2:   #1C1C1C;
  --color-surface-alt: #222222;
  --color-border:      rgba(255, 255, 255, 0.1);
  --color-border-strong: rgba(255, 255, 255, 0.18);
  --color-text:        #EBEBEB;
  --color-text-muted:  #999999;
  --color-text-faint:  #666666;
  --color-accent:      #EBEBEB;
  --color-accent-hover:#CCCCCC;
  --color-accent-text: #0E0E0E;
  --color-warm:        #C8826A;
  --color-warm-light:  #D49A86;
  --color-warm-bg:     #1E1A18;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.3);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.4);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:          #0E0E0E;
    --color-surface:     #161616;
    --color-surface-2:   #1C1C1C;
    --color-surface-alt: #222222;
    --color-border:      rgba(255, 255, 255, 0.1);
    --color-border-strong: rgba(255, 255, 255, 0.18);
    --color-text:        #EBEBEB;
    --color-text-muted:  #999999;
    --color-text-faint:  #666666;
    --color-accent:      #EBEBEB;
    --color-accent-hover:#CCCCCC;
    --color-accent-text: #0E0E0E;
    --color-warm:        #C8826A;
    --color-warm-light:  #D49A86;
    --color-warm-bg:     #1E1A18;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.3);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.4);
  }
}


/* ========================================
   GLOBAL STYLES
   ======================================== */

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
}

a {
  color: var(--color-text);
  text-decoration: none;
}

/* --- SKIP LINK --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  padding: var(--space-2) var(--space-4);
  background: var(--color-accent);
  color: var(--color-accent-text);
  font-size: var(--text-sm);
  z-index: 200;
  border-radius: var(--radius-sm);
  opacity: 0;
  transition: top 0.2s, opacity 0.2s;
}

.skip-link:focus {
  top: var(--space-2);
  opacity: 1;
}

/* --- CONTAINER --- */
.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

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

/* ========================================
   HEADER / NAV
   ======================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--color-bg);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.header--hidden {
  transform: translateY(-100%);
}

/* --- Top nav bar --- */
.header-nav-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.75rem;
  position: relative;
  border-bottom: 1px solid var(--color-border);
}

/* Push theme toggle + mobile btn to the right edge */
.header-nav-bar .header-actions {
  position: absolute;
  right: var(--space-6);
  top: 50%;
  transform: translateY(-50%);
}

@media (min-width: 768px) {
  .header-nav-bar .header-actions { right: var(--space-8); }
}

/* --- Logo bar --- */
.header-logo-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--color-border);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 110px;
  width: auto;
  display: block;
}

@media (min-width: 768px) {
  .logo-img { height: 150px; }
}

@media (min-width: 1024px) {
  .logo-img { height: 180px; }
}

/* Invert logo in dark mode */
[data-theme="dark"] .logo-img {
  filter: invert(1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .logo-img {
    filter: invert(1);
  }
}

/* Desktop Nav */
.nav-desktop {
  display: none;
  align-items: center;
  gap: var(--space-8);
}

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

.nav-link {
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  position: relative;
  padding-block: var(--space-1);
  transition: color var(--transition-interactive);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--color-text);
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Theme toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--color-text-muted);
}

.theme-toggle:hover {
  color: var(--color-text);
  background: var(--color-surface-2);
}

/* Mobile menu button */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--color-text);
}

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

.mobile-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: background 0.2s;
}

.mobile-menu-btn span::before,
.mobile-menu-btn span::after {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  position: absolute;
  left: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-btn span::before { top: -6px; }
.mobile-menu-btn span::after  { top: 6px; }

.mobile-menu-btn.active span { background: transparent; }
.mobile-menu-btn.active span::before { transform: translateY(6px) rotate(45deg); }
.mobile-menu-btn.active span::after  { transform: translateY(-6px) rotate(-45deg); }

/* Mobile nav overlay */
.nav-mobile {
  position: fixed;
  top: 2.75rem;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  padding: var(--space-8) var(--space-6);
  gap: var(--space-6);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.3s, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 99;
}

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

.nav-mobile.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.nav-mobile a {
  font-size: var(--text-xl);
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--color-text);
  display: block;
  padding-block: var(--space-2);
  border-bottom: 1px solid var(--color-border);
}

.nav-mobile a:last-child {
  border-bottom: none;
}


/* ========================================
   HERO SECTION
   ======================================== */

.hero {
  display: flex;
  align-items: flex-start;
  padding-top: 22rem;
  padding-bottom: var(--space-16);
}

@media (min-width: 768px) {
  .hero {
    padding-top: 28rem;
  }
}

.hero-content {
  max-width: 840px;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-warm);
  margin-bottom: var(--space-6);
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 400;
  line-height: 1.05;
  color: var(--color-text);
  margin-bottom: var(--space-6);
  font-style: italic;
}

.hero-description {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: var(--space-8);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}


/* ========================================
   BUTTONS
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-accent-text);
  border: 1px solid var(--color-accent);
}

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

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border-strong);
}

.btn-secondary:hover {
  border-color: var(--color-text);
}

.btn-arrow::after {
  content: '→';
  margin-left: var(--space-2);
  transition: transform 0.2s;
}

.btn-arrow:hover::after {
  transform: translateX(3px);
}


/* ========================================
   SECTION STYLES
   ======================================== */

.section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
}

.section-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-warm);
  margin-bottom: var(--space-4);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  font-style: italic;
  line-height: 1.1;
  margin-bottom: var(--space-6);
}

.section-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 560px;
}

/* Divider */
.section-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 0;
}


/* ========================================
   SERVICES SECTION
   ======================================== */

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--color-border);
  margin-top: var(--space-12);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.service-item {
  background: var(--color-bg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
}

.service-number {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-warm);
  margin-bottom: var(--space-4);
  letter-spacing: 0.04em;
}

.service-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  font-style: italic;
  margin-bottom: var(--space-3);
  line-height: 1.2;
}

.service-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}


/* ========================================
   WHY IT MATTERS
   ======================================== */

.matters-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: start;
}

@media (min-width: 768px) {
  .matters-layout {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }
}

.matters-left .section-title {
  max-width: 400px;
}

.matters-points {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.matters-point h3 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.matters-point p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}


/* ========================================
   WHY SCOUT
   ======================================== */

.why-scout-content {
  max-width: 680px;
}

.why-scout-content .lead {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  font-style: italic;
  line-height: 1.35;
  margin-bottom: var(--space-8);
}

.why-scout-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.why-scout-details p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
}


/* ========================================
   PROCESS SECTION
   ======================================== */

.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-top: var(--space-12);
}

@media (min-width: 768px) {
  .process-steps {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
  }
}

.process-step {
  position: relative;
}

.step-number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  font-style: italic;
  color: var(--color-warm-light);
  line-height: 1;
  margin-bottom: var(--space-4);
}

.step-title {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.step-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* Connector line on desktop */
@media (min-width: 768px) {
  .process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 1.2rem;
    right: calc(-1 * var(--space-3));
    width: 1px;
    height: 60%;
    background: var(--color-border);
  }
}


/* ========================================
   TESTIMONIALS / CREDIBILITY
   ======================================== */

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-top: var(--space-12);
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.testimonial {
  padding: var(--space-8);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  margin-bottom: var(--space-6);
}

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

.testimonial-author strong {
  color: var(--color-text);
  font-weight: 500;
  display: block;
}


/* ========================================
   CTA / CONTACT SECTION
   ======================================== */

.cta-section {
  background: var(--color-surface);
  text-align: left;
}

.cta-inner {
  max-width: 640px;
}

.cta-inner .section-title {
  margin-bottom: var(--space-4);
}

.cta-description {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-8);
}

.cta-contact-line {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-6);
}

.cta-contact-line a {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cta-contact-line a:hover {
  text-decoration-color: var(--color-text-muted);
}


/* ========================================
   FOOTER
   ======================================== */

.site-footer {
  padding-block: var(--space-8);
  border-top: 1px solid var(--color-border);
}

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

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

.footer-copy {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

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

.footer-links a {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.footer-links a:hover {
  color: var(--color-text-muted);
}


/* ========================================
   EDITORIAL IMAGE BREAK
   ======================================== */

.image-break {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.image-break img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

@media (min-width: 768px) {
  .image-break img {
    height: 420px;
  }
}

@media (min-width: 1024px) {
  .image-break img {
    height: 480px;
  }
}


/* ========================================
   ANIMATIONS
   ======================================== */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Staggered reveals */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.35s; }
.reveal-delay-5 { transition-delay: 0.4s; }
.reveal-delay-6 { transition-delay: 0.45s; }
