/* ════════════════════════════════════════════════
   The Entrepreneur's Garden — Homepage Styles
   ════════════════════════════════════════════════ */

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

/* ─── DESIGN TOKENS ─────────────────────────────── */
:root {
  /* Brand colors */
  --c-primary:      #d96c96;
  --c-primary-h:    #c45d84;
  --c-primary-tint: #fdf0f5;
  --c-bg:           #fffcf7;
  --c-text:         #1e4976;
  --c-muted:        #4a6d94;
  --c-card:         #ffffff;
  --c-border:       rgba(30, 73, 118, 0.1);

  /* Typography */
  --f-head: 'Inter Tight', system-ui, sans-serif;
  --f-body: 'Inter', system-ui, sans-serif;

  /* Shadows */
  --sh-sm:    0 2px 8px rgba(30,73,118,0.06),  0 1px 2px rgba(30,73,118,0.08);
  --sh-md:    0 12px 32px rgba(30,73,118,0.12), 0 3px 8px rgba(30,73,118,0.07);
  --sh-btn:   0 4px 16px rgba(217,108,150,0.30);
  --sh-btn-h: 0 8px 24px rgba(217,108,150,0.40);

  /* Motion */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --dur:  0.2s;

  /* Layout */
  --max-w:  1120px;
  --gutter: 2rem;

  /* Shape */
  --r-sm: 8px;
  --r-md: 16px;
}

/* ─── BASE ───────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--c-text);
  background-color: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; height: auto; }
a        { color: inherit; text-decoration: none; }
ul       { list-style: none; }
button   { font: inherit; cursor: pointer; border: none; background: none; }

/* ─── CONTAINER ──────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ─── EYEBROW / SECTION LABEL ────────────────────── */
.eyebrow {
  display: block;
  font-family: var(--f-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: 0.625rem;
}

/* ─── SECTION TITLE ──────────────────────────────── */
.section-title {
  font-family: var(--f-head);
  font-size: clamp(1.75rem, 2.8vw + 0.5rem, 2.375rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--c-text);
}

/* ─── SCROLL REVEAL ──────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-d1 { transition-delay: 0.10s; }
.reveal-d2 { transition-delay: 0.20s; }

/* ─── BUTTON ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: var(--r-sm);
  font-family: var(--f-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color var(--dur) var(--ease),
    box-shadow       var(--dur) var(--ease),
    transform        var(--dur) var(--ease);
}
.btn-primary {
  background-color: var(--c-primary);
  color: #fff;
  box-shadow: var(--sh-btn);
}
.btn-primary:hover {
  background-color: var(--c-primary-h);
  box-shadow: var(--sh-btn-h);
  transform: translateY(-1px);
}
.btn-primary:active  { transform: translateY(0); }
.btn-primary:focus-visible {
  outline: 3px solid var(--c-primary);
  outline-offset: 3px;
}

/* ════════════════════════════════════════════════
   NAV
════════════════════════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background-color: rgba(255, 252, 247, 0.88);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition:
    border-color var(--dur) var(--ease),
    box-shadow   var(--dur) var(--ease);
}
.nav.scrolled {
  border-bottom-color: var(--c-border);
  box-shadow: 0 1px 20px rgba(30, 73, 118, 0.08);
}

.nav__wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav__logo { height: 40px; width: auto; }

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

.nav__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--c-text);
  position: relative;
  transition: color var(--dur) var(--ease);
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--c-primary);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav__link:hover,
.nav__link[aria-current="page"]        { color: var(--c-primary); }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 4px;
  border-radius: 3px;
}

/* ════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════ */
.hero {
  position: relative;
  padding-block: clamp(5rem, 12vw, 9rem);
  overflow: hidden;
}

/* Decorative radial bloom — no image needed */
.hero::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: min(720px, 90vw);
  height: min(720px, 90vw);
  background: radial-gradient(
    ellipse at center,
    rgba(217, 108, 150, 0.10) 0%,
    rgba(217, 108, 150, 0.04) 45%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.hero__headline {
  font-family: var(--f-head);
  font-size: clamp(3.25rem, 8vw, 5.75rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--c-primary);
  margin-bottom: 1.5rem;
}

/* "The" — slightly softer to make "Entrepreneur's Garden" pop */
.hero__headline .the {
  font-weight: 500;
  opacity: 0.72;
}

.hero__sub {
  font-size: clamp(1.0625rem, 1.8vw + 0.4rem, 1.25rem);
  font-weight: 400;
  line-height: 1.72;
  color: var(--c-text);
  max-width: 580px;
  margin-bottom: 2.75rem;
}

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

.hero__secondary {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--c-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(74, 109, 148, 0.4);
  transition:
    color                 var(--dur) var(--ease),
    text-decoration-color var(--dur) var(--ease);
}
.hero__secondary:hover {
  color: var(--c-text);
  text-decoration-color: var(--c-text);
}
.hero__secondary:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ════════════════════════════════════════════════
   SERVICES
════════════════════════════════════════════════ */
.services {
  padding-block: clamp(4.5rem, 8vw, 6.5rem);
  background-color: var(--c-primary-tint);
}

.services__header {
  margin-bottom: 3rem;
  max-width: 540px;
}
.services__header .section-title { margin-top: 0.5rem; }

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

/* ── Card ── */
.card {
  background: var(--c-card);
  border-radius: var(--r-md);
  padding: 2.25rem 2rem;
  box-shadow: var(--sh-sm);
  border-top: 3px solid transparent;
  transition:
    transform        0.25s var(--ease),
    box-shadow       0.25s var(--ease),
    border-top-color 0.25s var(--ease);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-md);
  border-top-color: var(--c-primary);
}

.card__icon {
  font-size: 2.125rem;
  line-height: 1;
  margin-bottom: 1.25rem;
}
.card__title {
  font-family: var(--f-head);
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--c-text);
  margin-bottom: 0.75rem;
}
.card__desc {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--c-muted);
}

/* ════════════════════════════════════════════════
   ABOUT PREVIEW
════════════════════════════════════════════════ */
.about {
  padding-block: clamp(4.5rem, 8vw, 6.5rem);
}
.about__inner { max-width: 680px; }

.about .section-title { margin-block: 0.5rem 1.75rem; }

.about__text {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  margin-bottom: 2.25rem;
}
.about__text p {
  font-size: 1.0625rem;
  line-height: 1.78;
}

.about__cta {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--c-primary);
}
.about__cta::after {
  content: ' →';
  display: inline-block;
  margin-left: 0.25rem;
  transition: transform 0.2s var(--ease);
}
.about__cta:hover::after { transform: translateX(4px); }
.about__cta:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ════════════════════════════════════════════════
   TESTIMONIAL
════════════════════════════════════════════════ */
.testimonial {
  padding-block: clamp(4.5rem, 8vw, 6.5rem);
  background-color: var(--c-text);   /* deep navy */
  position: relative;
  overflow: hidden;
}

/* Ambient glow so the section breathes */
.testimonial::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 60% at 50% 50%,
    rgba(217, 108, 150, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.testimonial__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  text-align: center;
}

.testimonial__mark {
  display: block;
  font-family: var(--f-head);
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 700;
  line-height: 0.8;
  color: var(--c-primary);
  margin-bottom: 1.5rem;
  opacity: 0.9;
  user-select: none;
}

.testimonial__text {
  font-size: clamp(1rem, 1.6vw + 0.4rem, 1.1875rem);
  font-weight: 400;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.88);
  font-style: italic;
  margin-bottom: 2rem;
}

.testimonial__by {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.testimonial__line {
  display: block;
  width: 32px;
  height: 2px;
  background: var(--c-primary);
  border-radius: 1px;
  margin-bottom: 0.875rem;
}

.testimonial__name {
  font-family: var(--f-head);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-primary);
}

/* ════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════ */
.footer {
  border-top: 3px solid var(--c-primary);
  padding-block: 1.75rem;
  background-color: var(--c-bg);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer__copy {
  font-size: 0.875rem;
  color: var(--c-muted);
}

.footer__email {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--c-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: transparent;
  transition:
    color                 var(--dur) var(--ease),
    text-decoration-color var(--dur) var(--ease);
}
.footer__email:hover {
  color: var(--c-primary);
  text-decoration-color: var(--c-primary);
}
.footer__email:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════ */

/* Tablet — services stack to 1 column */
@media (max-width: 860px) {
  .services__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
}

/* Mobile */
@media (max-width: 640px) {
  :root { --gutter: 1.25rem; }

  .nav__wrap  { height: 60px; }
  .nav__logo  { height: 34px; }
  .nav__links { gap: 1.75rem; }

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
