
/* ============================================
   DESIGN TOKENS
============================================ */
:root {
  --brand:        #00856A;       /* deep teal — dominant */
  --brand-dark:   #006655;
  --brand-light:  #e0f4ef;
  --accent:       #c8401a;       /* terracotta — CTA accent */
  --accent-hover: #a8330f;
  --ink:          #12120f;       /* near-black */
  --ink-soft:     #3a3a35;
  --muted:        #6b6b64;
  --border:       #e0ddd6;
  --cream:        #f8f6f1;       /* warm off-white */
  --white:        #ffffff;

  /* Typography */
  --font-display: 'Nunito', system-ui, sans-serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  /* Fluid type scale */
  --text-xs:   clamp(0.75rem,  1.5vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 1.8vw, 1rem);
  --text-base: clamp(1rem,     2vw,   1.125rem);
  --text-lg:   clamp(1.125rem, 2.2vw, 1.375rem);
  --text-xl:   clamp(1.25rem,  2.5vw, 1.625rem);
  --text-2xl:  clamp(1.5rem,   3vw,   2rem);
  --text-3xl:  clamp(1.875rem, 4vw,   2.75rem);
  --text-4xl:  clamp(2.25rem,  5vw,   3.75rem);
  --text-hero: clamp(2.75rem,  7vw,   5rem);

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;
  --space-3xl: 9rem;

  /* Shapes */
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 20px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.05);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.07);

  /* Transitions */
  --ease: cubic-bezier(.25,.46,.45,.94);
  --dur-fast: 180ms;
  --dur-mid:  300ms;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--ink-soft);
  background: var(--white);
  line-height: 1.75;
  overflow-x: hidden;
}

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

/* ============================================
   SKIP LINK
============================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-sm);
  background: var(--brand);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  z-index: 9999;
  transition: top var(--dur-fast);
}
.skip-link:focus { top: var(--space-sm); }

/* ============================================
   LAYOUT HELPERS
============================================ */
.container {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 3rem);
}

.section { padding-block: var(--space-2xl); }
.section--sm { padding-block: var(--space-xl); }

/* ============================================
   TYPOGRAPHY UTILITIES
============================================ */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}

/* ============================================
   BUTTONS
============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.625rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), 
              color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--accent);
  color: var(--white);
  padding-block: 0.45rem;
  padding-inline: 1.75rem;
  border-radius: 10px;
}
.btn--primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 20px rgba(200,64,26,.35);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}
.btn--outline:hover {
  background: var(--brand);
  color: var(--white);
  transform: translateY(-1px);
}

.btn--ghost {
  background: rgba(255,255,255,.12);
  color: var(--white);
  border-color: rgba(255,255,255,.4);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover {
  background: var(--white);
  color: var(--brand);
  border-color: var(--white);
}

.btn--lg {
  padding: 0.875rem 2rem;
  font-size: var(--text-base);
}

/* ============================================
   NAVIGATION
============================================ */
.site-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--dur-mid) var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: var(--space-md);
}

.nav__logo img { height: 26px; width: auto; }

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  color: var(--ink);
  border-radius: var(--radius-sm);
  transition: background var(--dur-fast);
}
.nav__toggle:hover { background: var(--cream); }
.nav__toggle:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.nav__toggle svg { display: block; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__item { position: relative; }

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0.75rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: var(--radius-sm);
  transition: background var(--dur-fast), color var(--dur-fast);
}
.nav__link:hover, .nav__link:focus-visible {
  background: var(--cream);
  color: var(--brand);
}
.nav__link:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* chevron */
.nav__link--dropdown::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--dur-fast);
}
.nav__item:hover .nav__link--dropdown::after,
.nav__item:focus-within .nav__link--dropdown::after {
  transform: rotate(-135deg) translateY(-2px);
}

/* Dropdown */
.nav__dropdown {
  position: absolute;
  top: 100%;           /* flush to the nav item — no gap */
  left: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  padding-top: 0.75rem;  /* visual breathing room replaces the gap */
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity var(--dur-mid) var(--ease), transform var(--dur-mid) var(--ease);
}
.nav__item:hover .nav__dropdown,
.nav__item:focus-within .nav__dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.nav__dropdown a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: var(--text-sm);
  color: var(--ink-soft);
  border-radius: var(--radius-sm);
  transition: background var(--dur-fast), color var(--dur-fast);
}
.nav__dropdown a:hover { background: var(--cream); color: var(--brand); }

.nav__cta { margin-left: 0.25rem; }

/* "Try For Free" — solid CTA button in nav */
.nav__link--free {
  margin-right: 0.25rem;
}

/* Slim down both nav CTA buttons so they fit without truncation */
.nav__link--free,
.nav__cta .btn--outline {
  padding-block: 0.3rem;
  padding-inline: 1rem;
  font-size: var(--text-xs);
  border-radius: 10px;
}

/* Mobile nav */
@media (max-width: 1140px) {
  .nav__toggle { display: flex; }
  .nav__links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 68px;
    inset-inline: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    gap: 0.25rem;
    box-shadow: var(--shadow-lg);
  }
  .nav__links.open { display: flex; }
  .nav__dropdown {
    position: static;
    opacity: 1;
    pointer-events: all;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--brand-light);
    border-radius: 0;
    margin-left: 1rem;
    padding: 0.25rem 0;
    display: none;
  }
  .nav__item.open .nav__dropdown { display: block; }
  .nav__cta { margin-left: 0; align-self: flex-start; }
}

/* ============================================
   HERO
============================================ */
#hero {
  padding-top: calc(68px + var(--space-xl));
  padding-bottom: var(--space-xl);
  background: var(--white);
  overflow: hidden;
  position: relative;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

/* Heading: dark text, last line teal */
.hero__heading {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5.5vw, 3.6rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 1.1rem;
}

/* "In The AI Era" — teal colored span */
.hero__heading .hero__accent {
  color: var(--brand);
  display: block;
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 46ch;
  font-weight: 400;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* Hero buttons: equal size */
.hero__actions .btn--lg {
  min-width: 200px;
  justify-content: center;
}

/* Arrow on primary CTA */
.btn--arrow::after {
  content: '→';
  font-size: 1.1em;
  line-height: 1;
  transition: transform var(--dur-fast) var(--ease);
}
.btn--arrow:hover::after { transform: translateX(3px); }

.hero__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

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

@media (max-width: 768px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__image { order: -1; }
  .hero__sub { max-width: 100%; }
}

/* ============================================
   PITCH SECTION
============================================ */
#pitch {
  background: var(--white);
}

.pitch__inner {
  max-width: 50%;
  margin-inline: auto;
  text-align: center;
}

.pitch__text h2 {
  font-size: var(--text-3xl);
  margin-bottom: 1.25rem;
}

.pitch__text p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.pitch__text p:last-of-type { margin-bottom: 1.75rem; }
.pitch__text p strong { color: var(--ink); }

@media (max-width: 700px) {
  .pitch__inner { max-width: 100%; }
}

/* ============================================
   SERVICES GRID
============================================ */
#services { background: var(--cream); }

.services__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}
.services__header h2 { font-size: var(--text-3xl); margin-top: 0.5rem; }

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--dur-mid) var(--ease), box-shadow var(--dur-mid) var(--ease);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card__img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
}

.service-card__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.service-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.service-card__text {
  color: var(--muted);
  font-size: 1.05rem;
  flex: 1;
  margin-bottom: 1.25rem;
}

/* ============================================
   BRAND STRIP
============================================ */
#brand-strip {
  background: var(--brand);
  padding-block: var(--space-xl);
}

.brand-strip__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-xl);
  align-items: center;
}

.brand-strip__heading {
  font-size: var(--text-3xl);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
}

.brand-strip__body {
  color: rgba(255,255,255,.85);
  font-size: var(--text-base);
  line-height: 1.7;
}

@media (max-width: 700px) {
  .brand-strip__inner { grid-template-columns: 1fr; }
}

/* ============================================
   VALUE PROPS
============================================ */
#values { background: var(--white); }

.values__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}
.values__header h2 { font-size: var(--text-3xl); margin-top: 0.5rem; }

.values__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.value-card {
  border: 1px solid var(--border);
  border-top: 4px solid var(--brand);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-mid) var(--ease), transform var(--dur-mid) var(--ease);
}
.value-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.value-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.value-card__icon img { width: 32px; height: 32px; object-fit: contain; }

.value-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.value-card__text { color: var(--muted); font-size: 1.05rem; }

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

/* ============================================
   AI REWRITE CALLOUT
============================================ */
#ai-rewrite { background: var(--cream); }

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

.ai-callout__content { order: 0; }
.ai-callout__image { order: 1; }

.ai-callout__image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.ai-callout__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent);
  color: var(--white);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.ai-callout__heading {
  font-size: var(--text-3xl);
  margin-bottom: 1rem;
}

.ai-callout__text {
  color: var(--muted);
  margin-bottom: 1.75rem;
  max-width: 50ch;
}

@media (max-width: 700px) {
  .ai-callout { grid-template-columns: 1fr; }
  .ai-callout__image { order: -1; }
}

/* ============================================
   SMART DECISIONS / BOTTOM HERO
============================================ */
#smart { background: var(--white); }

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

.smart__heading { font-size: var(--text-3xl); margin-bottom: 1rem; }
.smart__text { color: var(--muted); margin-bottom: 1rem; }
.smart__cta { margin-top: 1.5rem; }

.smart__image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

@media (max-width: 700px) {
  .smart__grid { grid-template-columns: 1fr; }
  .smart__image { order: -1; }
}

/* ============================================
   QUICK CONTACT
============================================ */
#contact { background: var(--brand-light); }

.contact__header {
  text-align: center;
  margin-bottom: var(--space-lg);
}
.contact__header h2 { font-size: var(--text-3xl); margin-top: 0.5rem; }

.contact__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.contact-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  transition: transform var(--dur-mid) var(--ease), box-shadow var(--dur-mid) var(--ease);
  text-decoration: none;
  color: var(--ink-soft);
}
.contact-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  color: var(--brand);
}
.contact-item:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

.contact-item__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-item__icon img { width: 36px; height: 36px; object-fit: contain; }

.contact-item__label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

@media (max-width: 720px) {
  .contact__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   FOOTER
============================================ */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.7);
  padding-block: var(--space-2xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: var(--space-xl);
}



.footer__copy { font-size: var(--text-xs); margin-top: 0.5rem; }

.footer__heading {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer__links li + li { margin-top: 0.5rem; }
.footer__links a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.6);
  transition: color var(--dur-fast);
  border-bottom: 1px solid transparent;
}
.footer__links a:hover { color: var(--white); border-bottom-color: var(--brand); }
.footer__links a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 2px; }

.footer__about { font-size: var(--text-sm); line-height: 1.7; margin-bottom: 0.6rem; }

.footer__divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,.08);
  margin: var(--space-lg) 0 var(--space-md);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: var(--text-xs);
}

@media (max-width: 1140px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 550px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ============================================
   ENTRANCE ANIMATIONS
============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

/* Animations play automatically — no JS required for visibility.
   JS adds scroll-trigger enhancement via .js-scroll class on body. */
.animate {
  animation-name: fadeUp;
  animation-duration: 600ms;
  animation-fill-mode: both;
  animation-timing-function: var(--ease);
}
.animate--fade          { animation-name: fadeIn; }
.animate--delay-1       { animation-delay: 120ms; }
.animate--delay-2       { animation-delay: 240ms; }
.animate--delay-3       { animation-delay: 360ms; }
.animate--delay-4       { animation-delay: 480ms; }

/* Progressive enhancement: re-hide elements, reveal on scroll */
body.js-scroll .animate                        { opacity: 0; animation-name: none; }
body.js-scroll .animate.visible                { animation-name: fadeUp;  opacity: 1; }
body.js-scroll .animate--fade.visible          { animation-name: fadeIn; }
/* LCP exception: hero image is never hidden regardless of js-scroll state */
.hero__image                                   { opacity: 1 !important; animation: none !important; }

/* ============================================
   MISC
============================================ */
.text-brand { color: var(--brand); }

/* Focus visible for all interactive elements */
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Scrollbar refinement */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }

/* ============================================
   ADDRESS
============================================ */
address { font-style: normal; font-size: var(--text-xs); line-height: 1.9; color: rgba(255,255,255,.5); }
.footer__bottom address { color: rgba(255,255,255,.5); font-size: var(--text-xs); }
  