/* Ciao with Grace — single-page stylesheet
   Palette from the client's mint swatch; type: Tenor Sans (display) + Nunito Sans (body). */

@font-face {
  font-family: "Tenor Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/TenorSans-400.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("../fonts/NunitoSans.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito Sans";
  font-style: italic;
  font-weight: 200 1000;
  font-display: swap;
  src: url("../fonts/NunitoSans-italic.woff2") format("woff2");
}

:root {
  --mint: #a2e3b8;
  --mint-soft: #c9f2d6;
  --mint-pale: #eefbf1;
  --mint-wash: #f5fdf7;
  --spring: #d4f5b4;
  --green: #1f7a4f;
  --green-deep: #175e3c;
  --ink: #22302a;
  --ink-soft: #55665c;
  --line: #d9eadf;
  --paper: #fbfcfa;
  --white: #ffffff;

  --font-display: "Tenor Sans", "Trebuchet MS", "Gill Sans", sans-serif;
  --font-body: "Nunito Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --container: 1120px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(3.5rem, 8vw, 6.5rem);
  --radius: 1.25rem;
  --shadow: 0 10px 30px rgba(36, 48, 42, 0.06);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 0.75em;
  color: var(--ink);
  letter-spacing: 0.005em;
}
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--green-deep); }

strong { font-weight: 700; }

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--green-deep);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  z-index: 100;
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}
.narrow { max-width: 46rem; }
.center { text-align: center; }
.center.narrow, .center .narrow { margin-inline: auto; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.9rem;
}

.small { font-size: 0.9375rem; }

/* Sections */
.section { padding-block: var(--section); }
.section-tint { background: var(--mint-pale); }
.section-white { background: var(--white); }
.section + .section { border-top: 1px solid var(--line); }

.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { margin-bottom: 0; }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(162, 227, 184, 0.6), transparent 70%),
    radial-gradient(45% 55% at 85% 10%, rgba(212, 245, 180, 0.55), transparent 70%),
    radial-gradient(55% 65% at 0% 100%, rgba(162, 227, 184, 0.4), transparent 70%),
    radial-gradient(40% 50% at 10% 95%, rgba(212, 245, 180, 0.45), transparent 70%),
    var(--mint-wash);
  padding-block: 5rem;
  overflow: hidden;
}
.hero-inner { text-align: center; }

.hero-title {
  font-size: clamp(2rem, 10vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--green-deep);
  margin: 0 0 1.25rem;
}
.hero .eyebrow { margin-bottom: clamp(1.75rem, 4vw, 2.5rem); }

/* Typed title. The ghost holds the final layout; the live text is typed over
   it from the left edge, so nothing shifts as letters arrive. */
.type {
  display: inline-grid;
  white-space: nowrap;
}
.type > * { grid-area: 1 / 1; }
.type-live {
  justify-self: start;
  position: relative;
  white-space: pre;
}
.type-live::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 0.12em;
  bottom: 0.08em;
  width: 2px;
  margin-left: 0.08em;
  background: var(--green);
  animation: caret-blink 1.05s steps(1) infinite;
}
.type-live.is-done::after {
  animation: caret-out 0.6s ease forwards;
}
@keyframes caret-blink { 50% { opacity: 0; } }
@keyframes caret-out { to { opacity: 0; } }

.js .type-ghost { visibility: hidden; }
/* Fallback if site.js never ran: show the static title. */
.js.typed .type-ghost:only-child { visibility: visible; }

.slogan {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.6vw, 1.75rem);
  line-height: 1.45;
  color: var(--ink);
  margin: 0;
}
.slogan span { display: block; }
.slogan span:last-child { color: var(--green); }

/* Fade the rest of the hero in once the title is typed. */
.js .reveal {
  opacity: 0;
  transform: translateY(0.5rem);
}
.js.typed .reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.js.typed .reveal-2 { transition-delay: 0.35s; }
.js.typed .reveal-3 { transition-delay: 0.7s; }
.js.typed .reveal-4 { transition-delay: 1.05s; }
.js.typed .reveal-5 { transition-delay: 1.8s; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(1.25rem, 4vh, 2.5rem);
  margin-left: -1.375rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  border: 1.5px solid var(--mint);
  background: rgba(255, 255, 255, 0.5);
}
.scroll-cue:hover { background: var(--white); color: var(--green-deep); }
.scroll-cue svg { animation: cue-bob 2.4s ease-in-out infinite; }
@keyframes cue-bob { 50% { transform: translateY(3px); } }

/* About */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split-media { justify-self: center; width: min(100%, 24rem); }
.split-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 999px 999px var(--radius) var(--radius);
  box-shadow: var(--shadow);
}
@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
  .split-media { width: min(100%, 18rem); }
  .split-media img { aspect-ratio: 1 / 1; }
}

.about-title {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  line-height: 1.15;
  margin-bottom: 0.15rem;
}
/* Subtitle tight under the title. */
.about-sub {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.4;
  color: var(--green-deep);
  max-width: 38rem;
  text-wrap: balance;
  margin-bottom: 1.6em;
}

/* Long story beside the photo: align to the top and keep the photo in view. */
.split-story { align-items: start; }
@media (min-width: 801px) {
  .split-story .split-media { position: sticky; top: 2.5rem; }
}
.story { max-width: 38rem; }
.story p { margin-bottom: 1.15em; }
.about-foot {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 38rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

/* My passion */
.offer-head { margin-bottom: 0; }
.offer-head h2 {
  color: var(--green-deep);
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  margin-bottom: 0.6em;
}
@media (min-width: 760px) { .offer-head h2 { white-space: nowrap; } }
.offer-why {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  line-height: 1.45;
  color: var(--green);
  max-width: 62ch;
  margin-inline: auto;
  text-wrap: balance;
}
/* Two lines, broken after "helping friends" at the client's request. */
.offer-why span { display: block; }

/* Testimonials */
.quotes {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  max-width: 48rem;
  margin-inline: auto;
}
.quote {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  position: relative;
  box-shadow: var(--shadow);
}
.quote::before {
  content: "\201C";
  font-family: var(--font-display);
  font-size: 4.5rem;
  line-height: 1;
  color: var(--mint);
  position: absolute;
  top: 0.75rem;
  left: clamp(1.25rem, 3.5vw, 2.25rem);
}
.quote blockquote { margin: 0; padding-top: 2rem; }
.quote .avatar {
  position: absolute;
  top: clamp(1.25rem, 3.5vw, 2rem);
  right: clamp(1.25rem, 3.5vw, 2rem);
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--mint-soft);
}
@media (max-width: 520px) { .quote .avatar { width: 3.5rem; height: 3.5rem; } }
.quote:has(.avatar) blockquote { padding-top: clamp(3.5rem, 6vw, 4.5rem); }
.quote footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.quote footer .name, .about-foot .name { font-weight: 700; display: block; line-height: 1.3; }
.quote footer .where, .about-foot .where { color: var(--ink-soft); font-size: 0.9375rem; display: block; line-height: 1.3; }
.quote footer .linkedin, .about-foot .linkedin {
  margin-left: auto;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1.5px solid var(--mint);
  padding-bottom: 0.1em;
}
.quote footer .linkedin:hover, .about-foot .linkedin:hover { border-bottom-color: var(--green); }

/* Closing line */
.closing { background: var(--mint-pale); padding-block: calc(var(--section) / 2); }
.closing-line {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.6vw, 2.5rem);
  line-height: 1.3;
  color: var(--green-deep);
  margin: 0 auto;
  max-width: 34ch;
  text-wrap: balance;
}

/* Footer */
.site-footer {
  background: var(--mint-pale);
  border-top: 1px solid var(--line);
  padding-block: 2.5rem;
  color: var(--ink-soft);
}
.footer-tag {
  font-family: var(--font-display);
  color: var(--green-deep);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
