/* =====================================================================
   ABDUL MATEEN PORTFOLIO · STYLESHEET
   ---------------------------------------------------------------------
   HOW THIS FILE IS ORGANISED (search for the number, e.g. "05.")
     01. Design tokens   → colours, fonts, sizes. CHANGE THE LOOK HERE.
     02. Base / reset    → defaults for the whole page
     03. Shared pieces   → buttons, links, section titles, tags
     04. Navigation bar
     05. Hero            → headline + photo at the top
     06. Featured work   → funnel cards + automation cards
     07. About
     08. Ways to work    → 3 engagement cards + services grid
     09. Process         → timeline + small task box
     10. FAQ
     11. Contact form
     12. Footer
     13. Accessibility   → reduced-motion support

   TIPS
   - To change the accent colour everywhere, edit --accent, --acc-rgb,
     --accent-ink and --accent-text in section 01. Nothing else needed.
   - Layout breakpoints used: 820px (tablet) and 640px / 560px / 520px
     (phones). Each section keeps its own mobile rules next to it.
   ===================================================================== */


/* =====================================================================
   01. DESIGN TOKENS
   All colours and fonts live here as CSS variables. var(--name) uses them.
   ===================================================================== */
:root {
  color-scheme: dark;

  /* Page colours (soft charcoal, not pure black) */
  --bg:      #1C1C1F;   /* page background (behind the texture image)  */
  --surface: #242428;   /* cards, inputs                                */
  --soft:    #2B2B30;   /* tags, image frames                           */
  --line:    #323237;   /* borders and divider lines                    */

  /* Text colours */
  --ink:   #F3F2EE;     /* headings, strong text                        */
  --body:  #CFCEC8;     /* normal paragraph text                        */
  --muted: #94938D;     /* small / secondary text                       */

  /* Accent colour: Volt Lime.
     --acc-rgb must be the SAME colour as --accent, written as "R,G,B".
     It is used for see-through versions, e.g. rgba(var(--acc-rgb), .3) */
  --accent:      #C6F135;              /* buttons, dots, highlights      */
  --acc-rgb:     198, 241, 53;
  --accent-ink:  #D6F76A;              /* button hover                   */
  --accent-text: #CFF55A;              /* accent-coloured text and links */
  --on-accent:   #141414;              /* text placed ON the accent      */
  --accent-soft: rgba(var(--acc-rgb), .14);   /* faint accent backgrounds */

  /* Footer */
  --night:       #121214;
  --night-line:  #2A2A2E;
  --night-muted: #94938D;

  /* Fonts (loaded from Google Fonts in index.html) */
  --sans: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  /* Corner roundness */
  --r:    14px;
  --r-sm: 10px;
}


/* =====================================================================
   02. BASE / RESET
   ===================================================================== */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;           /* smooth scrolling for #links */
  background: var(--bg);
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  /* Concrete texture image. "fixed" = stays still while page scrolls. */
  background: var(--bg) url(../assets/texture.jpg) center top / cover fixed;
}

/* Phones/tablets can't do "fixed" backgrounds smoothly, so scroll it there */
@media (max-width: 820px), (hover: none) {
  body {
    background-attachment: scroll;
    background-size: auto 100vh;
    background-repeat: repeat-y;
  }
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;                /* nicer line breaks in headings */
}
p   { margin: 0; }
a   { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }

/* Visible outline when using the keyboard (Tab key) */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}


/* =====================================================================
   03. SHARED PIECES (used in many sections)
   ===================================================================== */

/* Centred content column. Change 880px to make the whole site wider. */
.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding-inline: 24px;
}

/* Every <section> gets space above/below and a thin top line */
section {
  padding-block: 88px;
  border-top: 1px solid var(--line);
}
@media (max-width: 640px) {
  section { padding-block: 64px; }
}

.muted { color: var(--muted); }
.mono  { font-family: var(--mono); font-size: 12.5px; letter-spacing: .02em; }

/* Small uppercase label above a heading, e.g. "HOW I WORK" */
.eyebrow {
  display: block;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-text);
}

/* Section heading row: title on the left, small note on the right */
.sec-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
}
.sec-title h2    { font-size: 26px; }
.sec-title .mono { color: var(--muted); }

/* Accent text link, e.g. "View live demo ↗" */
.link {
  color: var(--accent-text);
  text-decoration: none;
  font-weight: 500;
}
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Buttons
   .btn       = base shape
   .btn-main  = filled accent button (main call to action)
   .btn-ghost = dark outlined button (secondary action) */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.btn-main        { background: var(--accent); color: var(--on-accent); }
.btn-main:hover  { background: var(--accent-ink); }
.btn-ghost       { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--muted); }

/* Small grey pills, e.g. "n8n". Add class "ghl" for the accent version. */
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  background: var(--soft);
  border-radius: 6px;
  padding: 3px 8px;
}
.tag.ghl { background: var(--accent-soft); color: var(--accent-text); }


/* =====================================================================
   04. NAVIGATION BAR (sticks to the top while scrolling)
   ===================================================================== */
.nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: rgba(26, 26, 28, .82);
  backdrop-filter: blur(10px);          /* frosted glass effect */
  -webkit-backdrop-filter: blur(10px);
}
.nav .wrap {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-block: 16px;
}
.nav .name { font-weight: 600; font-size: 15px; text-decoration: none; transition: color .15s; }
.nav .name:hover { color: var(--accent-text); }

.nav nav { margin-left: auto; display: flex; gap: 20px; font-size: 14px; }
.nav nav a { color: var(--muted); text-decoration: none; transition: color .15s; }
.nav nav a:hover { color: var(--accent-text); }   /* lime on hover */

/* "Free audit" link on the right, underlined in accent */
.nav .book {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 1px;
  transition: color .15s;
}
.nav .book:hover { color: var(--accent-text); }

/* Phones: hide the section links, keep name + "Free audit" */
@media (max-width: 640px) {
  .nav nav   { display: none; }
  .nav .book { margin-left: auto; }
}


/* =====================================================================
   05. HERO
   Desktop: text on the left, photo card (220px wide) on the right.
   Mobile:  small round photo + socials row on top, text below.
   ===================================================================== */
.hero {
  padding-block: 72px 80px;
  border-top: 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 64px;
  align-items: start;
}

.hero h1 {
  font-size: clamp(32px, 4.4vw, 46px);   /* shrinks smoothly on small screens */
  letter-spacing: -0.03em;
  line-height: 1.08;
  max-width: 720px;
}
/* Highlighter stroke behind "the keys." */
.hero h1 em {
  font-style: normal;
  background: linear-gradient(transparent 62%,
              rgba(var(--acc-rgb), .32) 66%,
              rgba(var(--acc-rgb), .32) 92%, transparent 90%);
}
.hero .sub {
  margin-top: 22px;
  max-width: 620px;
  font-size: 17.5px;
  color: var(--body);
}

/* Button row */
.contacts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.contacts .btn { min-height: 42px; padding: 10px 16px; font-size: 14px; }

/* "Built for clinics, wellness brands…" line */
.built   { margin-top: 40px; font-size: 14px; color: var(--muted); }
.built b { color: var(--ink); font-weight: 500; }

/* Photo card (right side) */
.me { display: flex; flex-direction: column; gap: 14px; padding-top: 6px; }
/* Photo frame: the image zooms in slightly on hover, the frame stays put */
.me-photo {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
}
.me-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform .45s ease;
}
.me-photo:hover img { transform: scale(1.06); }
.me b     { display: block; font-size: 17px; font-weight: 600; margin-top: 4px; }
.me .role { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* WhatsApp / LinkedIn / Email list under the photo */
.socials {
  list-style: none;
  margin: 2px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 14px;
}
.socials a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--body);
  text-decoration: none;
}
.socials a:hover { color: var(--accent-text); }
.socials svg     { color: var(--muted); flex: none; }

/* Tablet & phone layout */
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .me {
    order: -1;                          /* photo block moves above the text */
    display: grid;
    grid-template-columns: 84px 1fr;
    column-gap: 16px;
    row-gap: 0;
    align-items: center;
    padding-top: 0;
  }
  .me-photo { grid-row: 1 / 3; border-radius: 50%; }
  .me b     { margin: 0; align-self: end; }
  .me .role { align-self: start; }
  .socials  {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 16px;
  }
}
@media (max-width: 640px) {
  .hero { padding-block: 40px 56px; }
}


/* =====================================================================
   06. FEATURED WORK
   a) Funnel cards (2 per row, link to demos/…)
   b) Automation cards (3 per row) + one full-width A2P card
   ===================================================================== */
.note {
  max-width: 600px;
  margin: -16px 0 36px;
  font-size: 14px;
  color: var(--muted);
}

/* ---- a) Funnel cards ---- */
.grid2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  gap: 40px 28px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}
.thumb {
  overflow: hidden;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform .2s ease;
}
.thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
}
.card:hover .thumb { transform: translateY(-3px); }   /* lift on hover */
.card h3      { font-size: 17px; margin-top: 6px; }
.card h3 span { font-weight: 400; color: var(--muted); }
.card p       { font-size: 15px; color: var(--body); }
.card .link   { font-size: 14px; }

/* ---- b) Automation cards ---- */
.subhead {
  margin: 56px 0 20px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  text-transform: lowercase;
}
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 20px;
}
.acard      { margin: 0; }                  /* <figure> has default margin */
.acard h3   { font-size: 15.5px; margin-top: 2px; }
.acard p    { font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.acard .tag { font-size: 10.5px; }

/* Screenshot frame: shows the TOP of each workflow screenshot */
.auto-thumb {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #F4F5F7;
}
.auto-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform .3s;
}
.acard:hover .auto-thumb img { transform: scale(1.03); }

/* Full-width card with 3 screenshots side by side (A2P) */
.acard.wide { grid-column: 1 / -1; }
.auto-trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--soft);
}
/* Each screenshot sits in a frame so it can zoom on hover without spilling out */
.trio-frame { display: block; overflow: hidden; border-radius: 6px; }
.auto-trio img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top;
  transition: transform .3s;
}
.acard.wide:hover .auto-trio img { transform: scale(1.03); }   /* same zoom as other cards */

@media (max-width: 820px) { .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .grid3, .auto-trio { grid-template-columns: 1fr; } }


/* =====================================================================
   07. ABOUT
   ===================================================================== */
.about p       { max-width: 660px; font-size: 17px; color: var(--body); }
.about p + p   { margin-top: 16px; }
.about .pull   { color: var(--ink); font-weight: 600; }   /* "No secrets…" line */

/* The 3 "why work with me" points */
.why {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 24px;
}
.why li   { border-top: 1px solid var(--line); padding-top: 16px; }
.why b    { display: block; font-weight: 600; margin-bottom: 4px; }
.why span { font-size: 15px; color: var(--muted); }

/* Tools row */
.tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 32px; }
.tools-label { margin-right: 6px; }


/* =====================================================================
   08. WAYS TO WORK + SERVICES
   ===================================================================== */

/* ---- 3 engagement cards ---- */
.ways {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 16px;
  align-items: stretch;                 /* all cards same height */
}
.way {
  display: flex;
  flex-direction: column;
  padding: 26px 22px 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
}
/* Highlighted middle card (Monthly Retainer). Tinted with the accent. */
.way.feat {
  background: linear-gradient(180deg,
              color-mix(in srgb, var(--accent) 17%, #202023) 0%,
              color-mix(in srgb, var(--accent) 9%,  #202023) 100%);
  border-color: rgba(var(--acc-rgb), .45);
}

/* Top row: number circle + chips */
.way-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 22px;
}
.num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent-text);
}
.way.feat .num { border-color: rgba(var(--acc-rgb), .45); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.way.feat .chip { color: color-mix(in srgb, var(--accent) 22%, #EEE); border-color: rgba(255,255,255,.18); }

.way h3        { font-size: 20px; }
.way > p       { margin-top: 6px; font-size: 14.5px; color: var(--muted); }
.way.feat > p  { color: color-mix(in srgb, var(--accent) 18%, #D8D8D8); }

/* Checklist with ✓ circles */
.way ul {
  list-style: none;
  margin: 20px 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 14.5px;
  color: var(--body);
}
.way li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; line-height: 1.5; }
.way li::before {
  content: "\2713";                    /* ✓ character */
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
}
/* Button sits at the bottom of each card */
.way .btn { margin-top: auto; width: 100%; justify-content: center; min-height: 44px; font-size: 14.5px; }

/* ---- Services grid (6 small cards) ---- */
.svc-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 64px 0 18px;
}
.svc-head h3 { font-size: 18px; }

.svcs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 12px;
}
.svc {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.ico {                                  /* small icon square */
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 8px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent-text);
}
.svc h4 { font-size: 15.5px; font-weight: 600; }
.svc p  { font-size: 13.5px; line-height: 1.55; color: var(--muted); }

.price-note { max-width: 640px; margin-top: 22px; font-size: 13.5px; color: var(--muted); }

/* "Interested in working together? Let's talk." */
.lets   { margin-top: 64px; font-size: clamp(20px, 2.6vw, 24px); font-weight: 600; letter-spacing: -0.02em; }
.lets a { color: var(--accent-text); text-underline-offset: 4px; }


/* =====================================================================
   09. PROCESS (timeline)
   .tl::before   = the vertical line
   .step::before = the glowing dot for each step
   ===================================================================== */
.tl {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 640px;
  padding-left: 44px;                   /* room for the line + dots */
}
.tl::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 28px;
  bottom: 28px;
  width: 2px;
  background: linear-gradient(var(--accent), rgba(var(--acc-rgb), .15));
}
.step {
  position: relative;
  padding: 30px 32px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.step::before {
  content: "";
  position: absolute;
  left: -39px;
  top: 36px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--bg), 0 0 14px rgba(var(--acc-rgb), .6);
}
.step.first { border-color: rgba(var(--acc-rgb), .5); }   /* highlight step 1 */

.step .k        { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--accent-text); }
.step h3        { margin: 8px 0 0; font-size: 20px; }
.step p         { max-width: 600px; font-size: 15px; color: var(--body); }
.step h3 + p    { margin-top: 8px; }

/* "FREE" pill next to Step 01 title */
.step .free {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 8px;
  vertical-align: middle;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* "30 days of launch support included." */
.step .incl-note { margin-top: 18px; font-family: var(--mono); font-size: 12.5px; color: var(--accent-text); }

/* ── OR ── divider */
.or {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0 18px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent-text);
}
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.or span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(var(--acc-rgb), .5);
}

.process-cta { margin: 32px 0 0 44px; }

/* Dashed "Small task?" box */
.small-task {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: 56px;
  padding: 22px 24px;
  border-radius: 16px;
  border: 1px dashed var(--line);
}
.small-task > div { max-width: 470px; }
.small-task b     { font-size: 16px; font-weight: 600; }
.small-task p     { margin-top: 4px; font-size: 14.5px; color: var(--muted); }

@media (max-width: 640px) {
  .tl            { padding-left: 32px; }
  .tl::before    { left: 5px; }
  .step          { padding: 20px; }
  .step::before  { left: -33px; }
  .process-cta   { margin-left: 32px; }
}


/* =====================================================================
   10. FAQ (uses native <details>/<summary> → no JavaScript needed)
   ===================================================================== */
.faq details             { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  list-style: none;
  cursor: pointer;
  font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }   /* hide default arrow */
.faq summary::after {                                      /* our "+" icon     */
  content: "+";
  flex: none;
  font-family: var(--mono);
  color: var(--muted);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }   /* + becomes × */
.faq details p { max-width: 620px; padding-bottom: 18px; font-size: 15px; color: var(--muted); }


/* =====================================================================
   11. CONTACT FORM
   ===================================================================== */
.contact-wrap { max-width: 760px; }
.contact-head { text-align: center; margin-bottom: 32px; }
.contact-head .eyebrow { margin-bottom: 12px; }
.contact h2   { margin-bottom: 12px; font-size: clamp(30px, 4vw, 42px); letter-spacing: -0.03em; }
.contact .lead { max-width: 560px; margin: 0 auto; font-size: 16px; color: var(--body); }

.form-card {
  padding: 28px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(36, 36, 40, .92);
}

/* Form = 2-column grid. Add class "full" to make a field span both columns. */
form       { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
form .full { grid-column: 1 / -1; }
@media (max-width: 560px) { form { grid-template-columns: 1fr; } }

.field       { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-card .btn-main { width: 100%; justify-content: center; min-height: 50px; }
.form-note { text-align: center; font-family: var(--mono); font-size: 12px; color: var(--accent-text); }
.err       { color: #FF8577; font-size: 14px; }       /* validation message */
.hp        { display: none; }                         /* spam trap, never shown */

/* Thank-you box that replaces the form after sending (+ "Pick a time" button) */
.sent   { grid-column: 1 / -1; padding: 24px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.sent .btn   { margin-top: 18px; }
.sent small  { display: block; margin-top: 10px; font-size: 13px; color: var(--muted); }
.sent small a { color: var(--accent-text); }
.sent b { display: block; margin-bottom: 4px; font-size: 18px; }
.sent p { font-size: 15px; color: var(--muted); }

.alt   { margin-top: 18px; text-align: center; font-size: 14px; color: var(--muted); }
.alt a { color: var(--ink); transition: color .15s; }
.alt a:hover { color: var(--accent-text); }   /* WhatsApp / email me */

@media (max-width: 640px) { .form-card { padding: 20px; } }


/* =====================================================================
   12. FOOTER (darker, with a subtle noise texture drawn in SVG)
   ===================================================================== */
.foot {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: 48px 40px;
  border-top: 1px solid var(--line);
  background: var(--night);
  color: #fff;
}
.foot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.foot .wrap { display: flex; flex-direction: column; gap: 28px; }

.foot-top        { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 20px 40px; }
.foot-top b      { font-size: 16px; font-weight: 600; }
.foot-top .mono  { display: block; margin-top: 2px; color: var(--night-muted); }

.foot-links         { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.foot-links a       { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.foot-links a:hover { color: var(--accent-ink); }
.foot-links svg     { color: var(--night-muted); }

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--night-line);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--night-muted);
}


/* =====================================================================
   13. ACCESSIBILITY
   Visitors who turn on "reduce motion" get no animations.
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
