/* ================================================================
   TaailorEd — Stylesheet (Brand Guidelines v1.0)
   
   PALETTE (from brand guidelines):
   Primary teal:   #0D9488 (Teal 600, logo color)
   Teal light:     #5EEAD4 (Teal 300, reversed accents)
   Teal bg:        #F0FDFA (Teal 50, light backgrounds)
   Teal dark:      #115E59 (Teal 800)
   Accent amber:   #F59E0B (Amber 500, badges/CTAs, ~10% volume)
   Amber hover:    #D97706 (Amber 600)
   Stone neutrals: #1C1917 (900) through #FAFAF9 (50)
   
   FONT: Nunito (Google Fonts fallback for Arista Pro)
   If you purchase Arista Pro, replace 'Nunito' with 'Arista Pro'
   in the font-family declarations below.
   
   COLOR RATIO: 90% teal, 10% amber. Amber for moments that pop.
   ================================================================ */

:root {
  /* Primary teal (90% of color usage) */
  --teal-50:  #F0FDFA;
  --teal-100: #CCFBF1;
  --teal-300: #5EEAD4;
  --teal-500: #14B8A6;
  --teal-600: #0D9488;  /* Logo color, primary buttons, links */
  --teal-800: #115E59;
  --teal-950: #042F2E;

  /* Accent amber (10% of color usage: badges, secondary CTAs) */
  --amber-50:  #FFFBEB;
  --amber-200: #FDE68A;
  --amber-500: #F59E0B;
  --amber-600: #D97706;
  --amber-800: #92400E;

  /* Stone neutrals (never pure gray) */
  --stone-50:  #FAFAF9;
  --stone-200: #E7E5E4;
  --stone-400: #A8A29E;
  --stone-600: #57534E;
  --stone-800: #292524;
  --stone-900: #1C1917;

  /* Semantic shortcuts */
  --accent: var(--teal-600);
  --accent-hover: var(--teal-800);
  --accent-light: var(--teal-300);
  --accent-bg: var(--teal-50);
  --dark: var(--stone-900);
  --text: var(--stone-800);
  --text-muted: var(--stone-600);
  --border: var(--stone-200);
  --bg: #ffffff;
  --bg-off: var(--stone-50);

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(28,25,23,0.04);
  --shadow-md: 0 4px 20px rgba(28,25,23,0.06);
  --shadow-hover: 0 8px 32px rgba(13,148,136,0.1);
}

/* ---- RESET ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Nunito', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
ul { list-style: none; }

/* ---- ACCESSIBILITY ---- */
.skip-link {
  position: absolute; top: -100px; left: 1rem;
  background: var(--dark); color: #fff;
  padding: 0.6rem 1.2rem; border-radius: 0 0 8px 8px;
  font-size: 0.85rem; font-weight: 600; z-index: 200;
  text-decoration: none; transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }
*:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
*:focus:not(:focus-visible) { outline: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
  .fade-up { opacity: 1; transform: none; }
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3 {
  font-family: 'Nunito', sans-serif;
  color: var(--dark);
  line-height: 1.15;
}
h1 { font-weight: 800; }
h2 {
  font-size: clamp(1.75rem, 3.8vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
h3 { font-size: 1.2rem; font-weight: 700; }
.accent { color: var(--teal-600); }

.label {
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--teal-600); margin-bottom: 0.5rem;
}
.section-desc {
  font-size: 1.05rem; color: var(--text-muted);
  max-width: 540px; margin-top: 0.75rem; line-height: 1.75;
}
.section-inner { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }

/* ---- BUTTONS ---- */
/* Primary: teal (default) */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--teal-600); color: #fff;
  padding: 0.75rem 1.6rem; border-radius: 8px;
  text-decoration: none;
  font-family: 'Nunito', sans-serif;
  font-weight: 700; font-size: 0.92rem;
  border: none; cursor: pointer;
  transition: all 0.2s ease;
}
.btn-primary:hover {
  background: var(--teal-800);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(13,148,136,0.3);
}
.btn-lg { padding: 0.9rem 2rem; font-size: 0.98rem; }

/* Amber button: for the CTA "moment that pops" (10% amber rule) */
.btn-amber {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--amber-500); color: var(--stone-900);
  padding: 0.9rem 2rem; border-radius: 8px;
  text-decoration: none;
  font-family: 'Nunito', sans-serif;
  font-weight: 700; font-size: 0.98rem;
  border: none; cursor: pointer;
  transition: all 0.2s ease;
}
.btn-amber:hover {
  background: var(--amber-600);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(245,158,11,0.35);
}

/* ================================================================
   NAVIGATION
   ================================================================ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
nav.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between; height: 60px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-placeholder {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--teal-600);
  display: flex; align-items: center; justify-content: center;
}
.logo-placeholder-icon {
  font-family: 'Nunito', sans-serif;
  font-size: 0.75rem; font-weight: 800; color: #fff;
}
.logo-img { height: 32px; width: auto; }

/* Logo wordmark: Stone 900 base, Teal 600 for aa+Ed */
.logo-text {
  font-family: 'Nunito', sans-serif;
  font-size: 1.25rem; font-weight: 800;
  color: var(--stone-900); letter-spacing: -0.01em;
}
.logo-accent { color: var(--teal-600); }

.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-links a {
  text-decoration: none; font-size: 0.88rem;
  color: var(--stone-600); font-weight: 500; transition: color 0.2s;
}
.nav-links a:hover { color: var(--teal-600); }
.nav-cta {
  background: var(--stone-900); color: #fff !important;
  padding: 0.42rem 1.1rem; border-radius: 6px;
  font-weight: 700 !important; transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--teal-600) !important; }
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--dark); padding: 4px; }

/* ================================================================
   HERO
   ================================================================ */
.hero { padding: 10rem 2rem 4rem; text-align: center; }
.hero-inner { max-width: 720px; margin: 0 auto; }
.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  letter-spacing: -0.03em; margin-bottom: 1.25rem;
}
.hero-sub {
  font-size: 1.1rem; color: var(--text-muted);
  max-width: 540px; margin: 0 auto 2rem; line-height: 1.75;
}

/* ================================================================
   TRUST STRIP
   ================================================================ */
.trust-strip {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-label {
  text-align: center; font-size: 0.78rem; font-weight: 600;
  color: var(--stone-400); margin-bottom: 1.25rem;
}
.trust-logos {
  display: flex; justify-content: center; align-items: center;
  gap: 2.5rem; flex-wrap: wrap;
}
.trust-name {
  font-size: 0.9rem; font-weight: 700;
  color: var(--stone-400); opacity: 0.5;
}
.trust-logo {
  height: 28px; width: auto; opacity: 0.4;
  filter: grayscale(1); transition: opacity 0.3s;
}
.trust-logo:hover { opacity: 0.8; }

/* ================================================================
   SERVICES
   ================================================================ */
.services { padding: 6rem 0; background: var(--bg-off); }
.services-intro { text-align: center; max-width: 600px; margin: 0 auto 3rem; }
.services-intro .section-desc { margin: 0.75rem auto 0; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  transition: all 0.25s ease;
}
.service-card:hover {
  border-color: var(--teal-300);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.card-icon {
  width: 52px; height: 52px;
  background: var(--teal-50); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem; color: var(--teal-600);
}
.service-card h3 { margin-bottom: 0.6rem; }
.service-card > p {
  font-size: 0.9rem; color: var(--text-muted);
  line-height: 1.7; margin-bottom: 1rem;
}
.service-card ul { display: flex; flex-direction: column; gap: 0.4rem; }
.service-card li {
  font-size: 0.82rem; color: var(--text);
  padding-left: 1.2rem; position: relative; line-height: 1.55;
}
.service-card li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal-300);
}

/* ================================================================
   PROCESS
   ================================================================ */
.process { padding: 6rem 0; background: var(--bg); }
.process-intro { text-align: center; max-width: 500px; margin: 0 auto 3rem; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.process-step {
  background: var(--bg-off); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem 1.5rem;
  text-align: center; transition: all 0.25s ease;
}
.process-step:hover {
  border-color: var(--teal-300);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.step-num {
  font-size: 2rem; font-weight: 800;
  color: var(--teal-600); opacity: 0.3;
  line-height: 1; margin-bottom: 0.6rem;
}
.process-step h3 { margin-bottom: 0.4rem; }
.process-step p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.65; }

/* ================================================================
   CASE STUDIES
   ================================================================ */
.work { padding: 6rem 0; background: var(--bg-off); }
.work-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 2rem;
}
.carousel-controls { display: flex; gap: 0.4rem; }
.carousel-btn {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--bg);
  cursor: pointer; font-size: 1rem; color: var(--text);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.carousel-btn:hover { border-color: var(--teal-600); color: var(--teal-600); background: var(--teal-50); }
.carousel-viewport { overflow: hidden; border-radius: var(--radius-lg); }
.carousel-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.case-slide {
  min-width: calc(50% - 0.75rem);
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  margin-right: 1.5rem; flex-shrink: 0;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.case-slide:hover { border-color: var(--teal-300); box-shadow: var(--shadow-hover); }
.case-tag {
  display: inline-block;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--teal-600); background: var(--teal-50);
  padding: 0.22rem 0.65rem; border-radius: 4px;
  margin-bottom: 0.85rem;
}
.case-slide h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.case-slide > p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1.25rem; }
.case-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 0.85rem; border-top: 1px solid var(--border);
}
.case-outcome { font-size: 0.8rem; color: var(--teal-600); font-weight: 600; }
.case-client { font-size: 0.8rem; color: var(--stone-400); }
.carousel-dots { display: flex; justify-content: center; gap: 0.4rem; margin-top: 1.25rem; }
.carousel-dots .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--stone-200); border: none; cursor: pointer;
  transition: all 0.3s; padding: 0;
}
.carousel-dots .dot.active { background: var(--teal-600); width: 22px; border-radius: 4px; }

/* ================================================================
   ABOUT
   ================================================================ */
.about { padding: 6rem 0; background: var(--bg); }
.about-layout {
  display: grid; grid-template-columns: 0.45fr 1fr;
  gap: 4rem; align-items: center;
}
.about-photo {
  width: 100%; aspect-ratio: 1;
  border-radius: var(--radius-lg);
  background: var(--teal-50); border: 1px solid var(--border);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.about-photo-img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); }
.photo-placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: var(--stone-400); font-size: 0.82rem; opacity: 0.5;
}
.about-text-col h2 { margin-bottom: 1rem; }
.about-text-col p { font-size: 0.98rem; color: var(--text-muted); margin-bottom: 0.85rem; line-height: 1.8; }
.about-text-col strong { color: var(--dark); }
.about-links { display: flex; gap: 1.25rem; margin-top: 1.25rem; }
.social-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  text-decoration: none; font-size: 0.85rem; font-weight: 600;
  color: var(--text); transition: color 0.2s;
}
.social-link:hover { color: var(--teal-600); }
.about-values { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.25rem; }
.value-chip {
  font-size: 0.75rem; font-weight: 600;
  padding: 0.3rem 0.8rem; border-radius: 20px;
  background: var(--teal-50); color: var(--teal-600);
  border: 1px solid var(--teal-100);
}

/* ================================================================
   CTA — dark background, amber button (the "moment that pops")
   ================================================================ */
.cta { padding: 5.5rem 0; background: var(--teal-950); }
.cta-content { text-align: center; max-width: 540px; margin: 0 auto; }
.cta-content h2 { color: #fff; }
.cta-accent { color: var(--teal-300); }
.cta-content p {
  color: rgba(255,255,255,0.5); font-size: 1.02rem;
  margin: 1rem 0 2rem; line-height: 1.75;
}

/* ================================================================
   FOOTER
   ================================================================ */
footer { padding: 2rem 0; border-top: 1px solid var(--border); }
.footer-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-brand { display: flex; align-items: center; gap: 0.85rem; }
.logo-text-sm {
  font-family: 'Nunito', sans-serif;
  font-size: 1.05rem; font-weight: 800; color: var(--stone-900);
}
.footer-brand p { font-size: 0.75rem; color: var(--stone-400); }
.footer-links { display: flex; gap: 1.25rem; }
.footer-links a { text-decoration: none; font-size: 0.8rem; color: var(--stone-600); transition: color 0.2s; }
.footer-links a:hover { color: var(--teal-600); }
.copyright { font-size: 0.75rem; color: var(--stone-400); }

/* ================================================================
   ANIMATIONS
   ================================================================ */
.fade-up { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 900px) {
  .hero { padding: 8rem 2rem 3rem; }
  .hero h1 { font-size: 2.2rem; }
  .services-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .case-slide { min-width: 82%; }
  .about-layout { grid-template-columns: 1fr; gap: 2rem; }
  .about-photo { max-width: 240px; margin: 0 auto; }
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 60px; left: 0; right: 0;
    background: var(--bg); padding: 1.25rem 2rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md); gap: 0.85rem;
  }
  .footer-inner { flex-direction: column; gap: 0.85rem; text-align: center; }
}
@media (max-width: 600px) {
  .hero { padding-top: 7rem; }
  .hero h1 { font-size: 1.85rem; }
  h2 { font-size: 1.5rem; }
  .process-grid { grid-template-columns: 1fr; }
  .work-header { flex-direction: column; gap: 0.85rem; align-items: flex-start; }
  .case-slide { min-width: 90%; }
  .trust-logos { gap: 1.5rem; }
}
