/* ==========================================================================
   Jennifer Briongos: site styles

   Palette
     Main:       teal, salmon
     Secondary:  burgundy, cream
     Neutrals:   off-white, white, dark text (+ its muted shade), hairline,
                 field border

   Rule: each section uses at most four colours:
     one background, one text colour, a muted shade of that text, one accent.
     Light sections set their accent with --accent (teal by default).
   ========================================================================== */

/* Size-matched fallbacks so the headline doesn't jump when the web fonts load */
@font-face {
  font-family: "Instrument Serif Fallback";
  src: local("Georgia");
  size-adjust: 79.5%;
}
@font-face {
  font-family: "Instrument Serif Fallback";
  font-style: italic;
  src: local("Georgia Italic"), local("Georgia-Italic");
  size-adjust: 80.5%;
}

:root {
  --teal: #2e6b65;
  --teal-hover: #24574f;
  --teal-deep: #1f4a46;     /* footer, text on salmon */
  --salmon: #f4a582;
  --salmon-hover: #f7b797;
  --burgundy: #8a4653;
  --cream: #f3ece0;
  --paper: #fbf8f3;
  --white: #ffffff;
  --text: #1d1c1a;
  --muted: #5f5a52;
  --line: #ddd3c4;
  --field-border: #8f877b;  /* form fields only: 3.5:1 on white (WCAG 1.4.11) */
  --on-dark: #f7f1e8;
  --on-dark-muted: rgba(247, 241, 232, 0.88);

  --accent: var(--teal);

  --font-display: "Instrument Serif", "Instrument Serif Fallback", Georgia, "Times New Roman", serif;
  --font-body: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Type scale */
  --fs-label: 0.8125rem;  /* 13px: uppercase labels */
  --fs-sm: 0.9375rem;     /* 15px: small print, small buttons */
  --fs-base: 1.0625rem;   /* 17px: body */
  --fs-md: 1.125rem;      /* 18px: intros and lead paragraphs */
  --fs-lede: clamp(1.125rem, 1rem + 0.25vw, 1.25rem);

  /* Spacing */
  --wrap: 1160px;
  --gutter: 24px;
  --section-y: clamp(72px, 10vw, 128px);
  --head-gap: 16px;                       /* heading to its intro text */
  --content-gap: clamp(40px, 6vw, 64px);  /* heading block to section content */
  --header-h: 73px;                       /* sticky header, including its border */
  --radius: 6px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
h2 { font-size: clamp(2.25rem, 1.75rem + 2vw, 3.5rem); }
h3 { font-weight: 600; line-height: 1.3; }

a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}
.block--teal :focus-visible,
.site-footer :focus-visible { outline-color: var(--salmon); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.center { text-align: center; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  background: var(--teal-deep);
  color: var(--on-dark);
}
.skip-link:focus { left: 16px; top: 16px; }


/* ==========================================================================
   Shared pieces
   ========================================================================== */
.block { padding-block: var(--section-y); }
.block--teal  { background: var(--teal); color: var(--on-dark); }
.block--cream { background: var(--cream); }
.block--paper { background: var(--paper); }

/* One uppercase label style, used for eyebrows and small labels */
.eyebrow,
.trusted-label,
.client-status,
.contact-details dt {
  font-size: var(--fs-label);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow { margin-bottom: var(--head-gap); opacity: 0.92; }
.eyebrow--accent { color: var(--accent); opacity: 1; }

/* A section heading set as a larger label, e.g. "Happy clients" */
.section-label {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.1875rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-head { max-width: 640px; margin-bottom: var(--content-gap); }
.section-head.center { margin-inline: auto; }
.section-head p:not(.eyebrow) { margin-top: var(--head-gap); color: var(--muted); font-size: var(--fs-md); }

.btn {
  display: inline-block;
  padding: 13px 24px;
  border: 2px solid transparent;  /* stays visible in Windows high-contrast mode */
  border-radius: var(--radius);
  background: var(--salmon);
  color: var(--teal-deep);
  font: 600 1rem/1.2 var(--font-body);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); background: var(--salmon-hover); }
.btn--dark { background: var(--teal); color: var(--on-dark); }
.btn--dark:hover { background: var(--teal-hover); }
.btn--small { padding: 10px 16px; font-size: var(--fs-sm); }

.text-link {
  display: inline-block;
  padding-block: 8px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);  /* 0 on the live site; keeps the shared preview clear of phone notches */
  z-index: 50;
  background: rgba(251, 248, 243, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  min-height: 72px;
}
.wordmark {
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1;
  color: var(--teal);
  text-decoration: none;
}
.wordmark--light { color: var(--on-dark); }
/* Header lockup: business name with Jen's name beneath */
.site-header .wordmark { display: flex; flex-direction: column; gap: 3px; }
.wordmark-sub {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { padding-block: 12px; font-weight: 500; text-decoration: none; }
.site-nav a:not(.btn):hover { color: var(--teal); }

.menu-toggle {
  display: none;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  font: 500 var(--fs-sm) var(--font-body);
  cursor: pointer;
}

/* Header on the privacy, thank-you and 404 pages: name plus one button */
.header-cta { flex: none; }

@media (max-width: 820px) {
  /* Without JavaScript the links simply wrap under the name */
  .header-inner { flex-wrap: wrap; }
  .site-nav { flex-wrap: wrap; gap: 0 20px; }
  html:not(.js) .site-header { position: static; }
  html:not(.js) .header-inner { padding-block: 12px; }

  /* With JavaScript: a Menu button opens a drop-down panel */
  .js .header-inner { flex-wrap: nowrap; }
  .js .menu-toggle { display: block; }
  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px var(--gutter) 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .js .site-nav.is-open { display: flex; }
  .js .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .js .site-nav .btn { margin-top: 16px; text-align: center; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
/* Spacing scales with screen height (vh) so the logo strip is visible without
   scrolling; the headline scales with width (and grows when zoomed). Narrow and
   short touch-screen phones get their own sizes in the rules at the bottom. */
.hero {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 6vh, 72px);
  padding-block: clamp(40px, 8vh, 104px) clamp(36px, 7vh, 88px);
}
.hero-inner { max-width: 940px; margin-inline: auto; text-align: center; }
.hero h1 { font-size: clamp(2.5rem, 2.25rem + 3vw, 5.5rem); }
.hero h1 em { display: block; color: var(--salmon); }
.lede {
  max-width: 720px;
  margin: clamp(16px, 3vh, 28px) auto 0;
  color: var(--on-dark-muted);
  font-size: var(--fs-lede);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 32px;
  margin-top: clamp(24px, 4.5vh, 40px);
}

.trusted { text-align: center; }
.trusted-label { margin-bottom: 14px; color: var(--on-dark-muted); }
.logo-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.logo-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-width: 150px;
  height: 84px;
  padding: 0 28px;
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}
.logo-pair span { color: var(--muted); font-size: 1.125rem; }
.logo { width: auto; }
/* Per-logo sizing so they look optically the same weight */
.logo-list .logo--mcdonalds { height: 48px; }
.logo-list .logo--drpepper  { height: 50px; }
.logo-list .logo--23xi      { height: 26px; }
.logo-list .logo--ffo       { height: 46px; }

/* ==========================================================================
   Results
   ========================================================================== */
/* Secondary colour gets its moment here: burgundy is this section's accent */
.results { --accent: var(--burgundy); }
.results .display {
  max-width: 880px;
  margin: 0 auto var(--content-gap);
  font-size: clamp(2.25rem, 1.75rem + 2.5vw, 3.75rem);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}
.stats li { display: flex; flex-direction: column; gap: 6px; padding: 8px 20px; }
.stats li + li { border-left: 1px solid var(--line); }
.stats strong {
  font-family: var(--font-display);
  font-size: clamp(3rem, 2.25rem + 3vw, 4.75rem);
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
}
.stats span { margin-top: 8px; text-wrap: balance; }

@media (max-width: 820px) {
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .stats li:nth-child(3) { border-left: 0; }
}

/* ==========================================================================
   Services
   ========================================================================== */
.service-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 40px;
  margin-bottom: 56px;
  counter-reset: service;
}
.service-list li { padding-top: 24px; border-top: 1px solid var(--line); counter-increment: service; }
.service-list li::before {
  content: counter(service, decimal-leading-zero);
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  color: var(--accent);
}
.service-list h3 { margin-bottom: 8px; font-size: var(--fs-md); }
.service-list p { color: var(--muted); }
.services-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  color: var(--muted);
}

@media (max-width: 900px) { .service-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .service-list { grid-template-columns: 1fr; gap: 36px; } }

/* ==========================================================================
   Clients
   ========================================================================== */
.client-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 28px; }
/* The status label comes after the name in the markup (so screen readers hear
   it when jumping by heading) but sits above the name on screen. */
.client-card { display: flex; flex-direction: column; }
.client-media {
  order: -2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  aspect-ratio: 16 / 10;
  max-width: 100%;
  margin-bottom: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.client-media.logo-pair { gap: 10px; }
.client-media .logo--mcdonalds { height: 64px; }
.client-media .logo--mbtc      { width: 100%; max-width: 170px; height: auto; }
.client-media .logo--drpepper  { height: 48px; }
.client-media .logo--23xi      { height: 22px; }
.client-media .logo--ffo       { height: 60px; }
@media (min-width: 1001px) and (max-width: 1100px) {
  .client-media.logo-pair { gap: 8px; }
  .client-media .logo--drpepper { height: 42px; }
  .client-media .logo--23xi     { height: 19px; }
}

.client-status { order: -1; margin-bottom: 6px; color: var(--muted); }
.client-status--current { color: var(--accent); }
.client-card h3 {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.1;
  color: var(--text);
}
.client-desc { color: var(--muted); font-size: 1rem; }

@media (min-width: 561px) {
  /* Reserve two lines for the names so the descriptions line up */
  .client-card h3 { min-height: 2.2em; }
}
@media (max-width: 1000px) { .client-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .client-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   About
   ========================================================================== */
.about-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(40px, 7vw, 96px);
}
.about h2 { margin-bottom: var(--head-gap); }
.about-copy > p { max-width: 560px; color: var(--on-dark-muted); font-size: var(--fs-md); }
.ticks { display: grid; gap: 10px; margin: 28px 0 36px; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 16px;
  height: 9px;
  border-left: 2px solid var(--salmon);
  border-bottom: 2px solid var(--salmon);
  transform: rotate(-45deg);
}

.portrait { position: relative; justify-self: center; width: min(360px, 80%); }
.portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--salmon);
  transform: translate(14px, 10px);
}
.portrait img {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
}

@media (max-width: 700px) {
  .about-inner { grid-template-columns: 1fr; }
  .portrait { order: -1; width: min(260px, 70%); }
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
}
.contact-intro > p:not(.eyebrow) { margin-top: var(--head-gap); color: var(--muted); font-size: var(--fs-md); }
.contact-details { display: grid; gap: 18px; margin-top: 32px; }
.contact-details dt { color: var(--muted); }
.contact-details dd { font-size: var(--fs-md); }
.contact-details a { display: inline-block; padding-block: 8px; color: var(--teal); text-underline-offset: 4px; }

.contact-form { display: grid; gap: 20px; }
.contact-form label { display: grid; gap: 8px; font-weight: 500; }
.contact-form small { color: var(--muted); font-weight: 400; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--field-border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  font: 400 1rem/1.5 var(--font-body);
}
.contact-form ::placeholder { color: var(--muted); opacity: 1; }
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--teal); }
.contact-form textarea { resize: vertical; }
.contact-form .btn { justify-self: start; }
.form-honeypot { display: none; }  /* spam trap: people never see it, bots fill it in */
.form-note {
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--text);
  font-size: var(--fs-sm);
}

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

/* ==========================================================================
   Simple pages (privacy, thank-you, not found)
   ========================================================================== */
.page { padding-block: clamp(56px, 8vw, 96px) clamp(72px, 10vw, 128px); }
.page-inner { max-width: 720px; }
.page h1 { font-size: clamp(2.5rem, 1.75rem + 3vw, 4rem); margin-bottom: var(--head-gap); }
.page h2 { margin: 48px 0 12px; font-size: clamp(1.75rem, 1.5rem + 1vw, 2.25rem); }
.page p, .page li { max-width: 32em; }
.page p + p, .page p + ul, .page ul + p { margin-top: 12px; }
.page ul { display: grid; gap: 6px; padding-left: 1.25em; list-style: disc; }
.page a:not(.btn) { color: var(--teal); text-underline-offset: 3px; }
.page-meta { color: var(--muted); font-size: var(--fs-sm); }
.page-lead { color: var(--muted); font-size: var(--fs-md); }
.page .btn { margin-top: 32px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { padding-block: 56px; background: var(--teal-deep); color: var(--on-dark-muted); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px 40px;
}
.footer-brand .wordmark { margin-bottom: 10px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0 24px; }
.footer-nav a { display: inline-block; padding-block: 10px; text-underline-offset: 4px; }
.footer-nav a:hover { color: var(--salmon); }
.footer-legal { display: grid; gap: 6px; max-width: 420px; font-size: var(--fs-sm); }

/* ==========================================================================
   Windows high-contrast mode: keep the white logo tiles so dark logos stay visible
   ========================================================================== */
@media (forced-colors: active) {
  .logo-list li,
  .client-media { forced-color-adjust: none; background: #fff; }
}

/* Between phone and tablet widths: mid-size logo tiles that stay on one row */
@media (min-width: 561px) and (max-width: 700px) {
  .logo-list { gap: 12px; }
  .logo-list li { min-width: 112px; height: 72px; padding: 0 18px; gap: 12px; }
  .logo-list .logo--mcdonalds { height: 42px; }
  .logo-list .logo--drpepper  { height: 44px; }
  .logo-list .logo--23xi      { height: 22px; }
  .logo-list .logo--ffo       { height: 40px; }
}

/* ==========================================================================
   Smaller screens
   ========================================================================== */
@media (max-width: 560px) {
  :root { --gutter: 16px; --header-h: 61px; }
  .header-inner { min-height: 60px; }
  .wordmark { font-size: 1.5rem; }
  .wordmark-sub { font-size: 0.625rem; }
  /* Phones: tighter hero so the logos fit on the first screen, in one row */
  .hero { padding-block: 32px 40px; gap: 32px; }
  .hero .eyebrow { font-size: 0.75rem; letter-spacing: 0.1em; }
  .logo-list { gap: 8px; }
  .logo-list li { min-width: 0; height: 60px; padding: 0 12px; gap: 8px; }
  .logo-list .logo--mcdonalds { height: 32px; }
  .logo-list .logo--drpepper  { height: 34px; }
  .logo-list .logo--23xi      { height: 16px; }
  .logo-list .logo--ffo       { height: 30px; }
  .logo-pair span { font-size: 0.875rem; }
  /* Shorter logo panels so the client list isn't a long scroll */
  .client-grid { gap: 32px; }
  .client-media { aspect-ratio: auto; height: 136px; margin-bottom: 16px; }
  .client-media .logo--mcdonalds { height: 52px; }
  .client-media .logo--ffo       { height: 50px; }
  .stats li { padding-inline: 10px; }
}

/* Narrow phones: keep the headline to three lines */
@media (max-width: 380px) { .hero h1 { font-size: 12vw; } }

/* Short phones (iPhone SE/8): tighter hero so the logo strip still fits.
   Touch screens only, so a zoomed-in laptop window never shrinks the headline. */
@media (max-width: 560px) and (max-height: 700px) and (pointer: coarse) {
  .hero { padding-block: 24px 28px; gap: 24px; }
  .hero h1 { font-size: 2.25rem; }
  .lede { font-size: 1rem; margin-top: 14px; }
  .hero-actions { margin-top: 20px; }
}

/* Very narrow phones (320-359px): keep the label on one line and the logo tiles on one row */
@media (max-width: 359px) {
  .site-header .wordmark { font-size: 1.3125rem; }
  .hero .eyebrow { letter-spacing: 0.06em; }
  .logo-list { gap: 6px; }
  .logo-list li { padding: 0 8px; gap: 6px; }
  .logo-list .logo--mcdonalds { height: 28px; }
  .logo-list .logo--drpepper  { height: 30px; }
  .logo-list .logo--23xi      { height: 14px; }
  .logo-list .logo--ffo       { height: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
