/* HandcraftedAI site styles. Shared by every page except /business-assistant, which carries its own. */

:root {
  --teal: #299c8d;        /* buttons, links, the home page hero */
  --teal-dark: #0d8e7d;   /* headings, dark sections */
  --teal-text: #0a7365;   /* body text on mint: a shade darker than the headings, so small text is easy to read */
  --mint: #ddefeb;        /* page background */
  --white: #fff;
  --black: #000;
  --font-head: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Raleway", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 52px);
  --section-y: clamp(56px, 9vw, 112px);
  --content: 1176px;
}

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

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

body {
  margin: 0;
  background: var(--mint);
  color: var(--teal-text);
  font: 500 clamp(1.0625rem, 0.95rem + 0.4vw, 1.192rem)/1.5 var(--font-body);
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  font-family: var(--font-head);
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--teal-dark);
}
h1 { font-size: clamp(2.6rem, 1.6rem + 3.6vw, 4.456rem); line-height: 1.04; }
h2 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.016rem); line-height: 1.1; }
h3 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.5rem); line-height: 1.15; }
h4 { font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.96rem); line-height: 1.2; }

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

a { color: var(--teal); text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: 3px solid var(--black); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  padding: 8px 16px; background: var(--white); color: var(--black); border: 2px solid var(--black);
}
.skip-link:focus { top: 12px; }

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

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0.95em 1.9em;
  border: 1px solid transparent; border-radius: 999px;
  font: 500 1rem/1.2 var(--font-head); letter-spacing: 0.04em; text-transform: uppercase; text-align: center;
  text-decoration: none; cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-dark); color: var(--white); }
.btn-light { background: var(--white); color: var(--teal); }
.btn-light:hover { background: var(--mint); color: var(--teal-dark); }
.btn-outline-light { border-color: var(--white); color: var(--white); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); }
.actions { display: flex; flex-wrap: wrap; gap: 16px 24px; margin-top: 2rem; }
.actions.center { justify-content: center; }

/* Header */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
  border: 3px solid var(--black);
  background: var(--mint);
}
.site-title {
  font: 500 clamp(1.35rem, 1rem + 1.2vw, 1.96rem)/1.2 var(--font-head); letter-spacing: -0.05em;
  color: var(--black); text-decoration: none;
}
.site-title:hover { color: var(--black); }
.header-cta {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0.75em 2em;
  border-radius: 999px; background: var(--teal); color: var(--white);
  font: 400 1rem/1.2 var(--font-body); text-decoration: none; white-space: nowrap;
}
.header-cta:hover { background: var(--teal-dark); color: var(--white); }
.header-bright .site-header { background: var(--teal); }
.header-bright .site-title, .header-bright .site-title:hover { color: var(--white); }
.header-bright .header-cta { background: var(--white); color: var(--teal); }
.header-bright .header-cta:hover { background: var(--mint); color: var(--teal-dark); }
@media (max-width: 480px) {
  .header-cta { padding: 0.6em 1.1em; font-size: 0.9rem; }
}

/* Sections and their colour themes */
.section { padding: var(--section-y) var(--gutter); }
.t-bright { background: var(--teal); color: var(--white); }
.t-bright h1, .t-bright h2, .t-bright a:not(.btn) { color: var(--white); }
.t-mint { background: var(--mint); color: var(--teal-text); }
.t-light { background: var(--mint); color: var(--black); }
.t-white { background: var(--white); color: var(--teal-text); }
.t-dark { background: var(--teal-dark); color: var(--white); }
.t-dark h2 { color: var(--white); }
.t-black { position: relative; isolation: isolate; background: var(--black); color: var(--white); }
.t-black h2 { color: var(--white); }
.ink { color: var(--black); }
.center { text-align: center; }

.split { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 800px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split.wide-right { grid-template-columns: 1fr 1.1fr; }
}

/* Home page */
.hero h1 { margin-bottom: 0.5em; }
.hero-image { box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25); }
.lead-short p { margin-bottom: 0.9em; }
.before-after { width: 100%; max-width: 460px; justify-self: center; }
.steps { display: grid; gap: 40px; margin-top: 2.5rem; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 48px; } }
.steps h3 { margin-bottom: 0.7em; font-size: 1.192rem; letter-spacing: 0; color: var(--black); }
.steps p { font-size: 0.95rem; color: var(--black); }
.cta-band { max-width: 640px; margin-inline: auto; text-align: center; }

/* Get Started */
.guide h1 { text-align: center; max-width: 880px; margin-inline: auto; }
.guide p { margin: 1.2em 0 1em; }
.guide img { margin-bottom: 2.4rem; border-radius: 6px; }

/* Terms and Privacy Policy */
.legal { max-width: 37rem; margin-inline: auto; }
.legal h1 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.016rem); margin-bottom: 0.8em; }
.legal h2 { margin-top: 1.4em; }
.legal h3 { margin-top: 1.2em; color: var(--teal); }
.legal h4 { margin-top: 1.2em; color: var(--teal); }
.legal ul { padding-left: 1.6em; margin: 0 0 1.4em; }
.legal li { margin-bottom: 0.4em; }
.legal li p { margin: 0; }
.legal strong { font-weight: 700; }
.legal p, .legal li { overflow-wrap: anywhere; }

/* Contact */
.contact { max-width: 36rem; margin-inline: auto; text-align: center; }
.contact h1 { font-size: clamp(1.9rem, 1.3rem + 1.8vw, 2.5rem); }

/* Slides add-on */
.panel { position: relative; min-height: 320px; background: var(--mint); border: 1px solid #333; }
.split > .panel { align-self: stretch; }
@media (max-width: 799px) { .split > .panel:empty { display: none; } }
.panel-image { display: grid; place-items: center; padding: clamp(24px, 6vw, 72px); }
.panel-image img { width: min(336px, 100%); }
.dot { position: absolute; width: 88px; height: 88px; border-radius: 50%; background: var(--teal); border: 1px solid #000; }
.panel .dot { top: 16%; right: 22%; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; background: var(--mint); }
@media (min-width: 800px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 2.5rem; }
.card { padding: 28px 24px; background: var(--white); color: var(--black); text-align: center; }
.card h3 { margin-bottom: 0.4em; font-size: 1.192rem; letter-spacing: 0; color: var(--black); }
.card p { font-size: 0.85rem; }
.quote-card { text-align: left; display: flex; align-items: flex-end; min-height: 220px; }
.quote-card h3 { margin: 0; font-size: 1.4rem; line-height: 1.25; letter-spacing: -0.02em; }
.arch { position: relative; max-width: 336px; }
.arch img { width: 100%; aspect-ratio: 336 / 461; object-fit: cover; border-radius: 168px 168px 0 0; }
.arch .dot { width: 56px; height: 56px; top: -12px; left: -20px; background: var(--white); }
.instructor h4 { color: var(--black); }
.instructor p { color: var(--black); }
.marquee-pill {
  display: inline-flex; gap: 0.6em; padding: 6px 18px; margin: 0 0 1.5rem;
  border-radius: 999px; background: var(--teal-dark); color: var(--white);
  font: 500 1.1rem/1.4 var(--font-head);
}
.as-h1 { font-size: clamp(2.6rem, 1.6rem + 3.6vw, 4.456rem); line-height: 1.04; }
.huge { font-size: clamp(3rem, 1.5rem + 6vw, 7.2rem); line-height: 1; }
.bg-image { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.t-black::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, 0.35); }
.t-black .wrap { min-height: clamp(280px, 40vw, 420px); display: flex; flex-direction: column; justify-content: center; }

/* About */
.about-photo img { width: 100%; aspect-ratio: 534 / 715; object-fit: cover; }
.about-intro h1 { margin-bottom: 0.6em; }

/* 404 */
.not-found { max-width: 40rem; margin-inline: auto; text-align: center; }
.not-found .actions { margin-bottom: 2rem; }

/* Footer */
.site-footer { padding: clamp(48px, 7vw, 80px) var(--gutter); background: var(--mint); color: var(--black); }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 2fr; } }
.footer-brand { margin: 0; }
.footer-col p { margin: 0 0 0.9em; }
.footer-head { font-weight: 700; }
