/* ==========================================================================
   Wise Wizard Techs — site stylesheet
   One file for all five pages. Mobile-first; sizes are rem or fluid clamp().
   Breakpoints: 40em (640px) phone → tablet, 56.25em (900px) tablet → desktop.
   ========================================================================== */

/* --- Fonts (self-hosted) ------------------------------------------------ */
@font-face {
  font-family: "Caprasimo"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("assets/caprasimo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Caprasimo"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("assets/caprasimo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Figtree"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("assets/figtree-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("assets/figtree-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Design tokens ------------------------------------------------------ */
:root {
  /* Colors: the "steel" palette (warm cream ground, steel-blue accent, terracotta secondary) */
  --color-bg: #f5ead8;
  --color-surface: #e8dcc6;
  --color-text: #201e1d;
  --color-accent: #5980a6;
  --color-accent-2: #c67139;
  --color-divider: color-mix(in srgb, #201e1d 16%, transparent);

  --color-neutral-100: #f9f4ed; --color-neutral-200: #eee7db; --color-neutral-300: #dcd3c4;
  --color-neutral-400: #c0b6a5; --color-neutral-500: #a19786; --color-neutral-600: #82796a;
  --color-neutral-700: #645c50; --color-neutral-800: #474238; --color-neutral-900: #2e2b25;

  --color-accent-100: #eef4fa; --color-accent-200: #d8e6f3; --color-accent-300: #b6cee4;
  --color-accent-400: #8cadcc; --color-accent-500: #5980a6; --color-accent-600: #446a8f;
  --color-accent-700: #345373; --color-accent-800: #263c53; --color-accent-900: #1a2836;

  --color-accent-2-100: #fff2eb; --color-accent-2-200: #ffe1d0; --color-accent-2-300: #ffc6a5;
  --color-accent-2-400: #f6a06b; --color-accent-2-500: #d67f48; --color-accent-2-600: #b2622d;
  --color-accent-2-700: #8c491a; --color-accent-2-800: #643312; --color-accent-2-900: #402310;

  --font-heading: "Caprasimo", Georgia, serif;
  --font-body: "Figtree", system-ui, sans-serif;

  /* Type scale: phone size → desktop size. 1rem = 16px at default settings. */
  --fs-body:    1.125rem;                                     /* 18px, never smaller */
  --fs-body-lg: clamp(1.125rem, 1.05rem + 0.3vw, 1.1875rem);  /* 18 → 19 */
  --fs-lead-sm: clamp(1.125rem, 1rem + 0.6vw, 1.25rem);       /* 18 → 20 */
  --fs-lead:    clamp(1.1875rem, 1.05rem + 0.7vw, 1.375rem);  /* 19 → 22 */
  --fs-lead-lg: clamp(1.25rem, 1.05rem + 0.9vw, 1.4375rem);   /* 20 → 23 */
  --fs-h4:      clamp(1.25rem, 1.15rem + 0.5vw, 1.375rem);    /* 20 → 22 */
  --fs-h3-sm:   clamp(1.3125rem, 1.2rem + 0.6vw, 1.4375rem);  /* 21 → 23 */
  --fs-h3:      clamp(1.375rem, 1.2rem + 0.8vw, 1.625rem);    /* 22 → 26 */
  --fs-h3-lg:   clamp(1.5rem, 1.3rem + 1vw, 1.875rem);        /* 24 → 30 */
  --fs-h2-sm:   clamp(1.625rem, 1.35rem + 1.3vw, 2.125rem);   /* 26 → 34 */
  --fs-h2-md:   clamp(1.75rem, 1.4rem + 1.6vw, 2.375rem);     /* 28 → 38 */
  --fs-h2:      clamp(1.875rem, 1.45rem + 1.9vw, 2.5rem);     /* 30 → 40 */
  --fs-h1:      clamp(2.125rem, 1.5rem + 2.8vw, 3.25rem);     /* 34 → 52 */
  --fs-display: clamp(2.25rem, 1.55rem + 3.1vw, 3.5rem);      /* 36 → 56 */
  --fs-price:   clamp(2.25rem, 1.8rem + 2vw, 2.875rem);       /* 36 → 46 */
  --fs-phone:   clamp(1.625rem, 1.3rem + 1.5vw, 2.125rem);    /* 26 → 34 */

  /* Layout */
  --container:    68.75rem;                               /* 1100px */
  --gutter:       clamp(1rem, 0.6rem + 1.8vw, 1.75rem);   /* 16 → 28 */
  --section-y:    clamp(2.5rem, 1.8rem + 3vw, 4rem);      /* 40 → 64 */
  --section-y-sm: clamp(2rem, 1.5rem + 2.2vw, 3.5rem);    /* 32 → 56 */
  --card-pad:     clamp(1.25rem, 0.9rem + 1.6vw, 2rem);   /* 20 → 32 */
  --card-pad-lg:  clamp(1.5rem, 1rem + 2.2vw, 2.75rem);   /* 24 → 44 */
  --gap:          clamp(1.25rem, 0.9rem + 1.6vw, 2rem);   /* 20 → 32 */
  --gap-lg:       clamp(1.5rem, 1rem + 2.4vw, 3rem);      /* 24 → 48 */
  --radius-card:  1.75rem;
  --radius-inner: 1.5rem;
}

/* --- Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--color-bg); color: var(--color-text);
  font-family: var(--font-body); font-size: var(--fs-body); line-height: 1.6; font-weight: 400;
}
h1, h2, h3, h4 {
  font-family: var(--font-heading); font-weight: 400; line-height: 1.12; letter-spacing: -0.015em;
  margin: 0; text-wrap: balance; overflow-wrap: break-word;
}
p { margin: 0; text-wrap: pretty; }
li { text-wrap: pretty; }
a { color: var(--color-accent-700); text-underline-offset: 3px; }
a:hover { color: var(--color-accent-600); }
img { display: block; max-width: 100%; height: auto; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

.skip-link {
  position: absolute; left: 1rem; top: -100%; z-index: 100;
  padding: 0.75rem 1.25rem; border-radius: 999px;
  background: var(--color-accent-800); color: var(--color-neutral-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;
}

/* --- Layout helpers ----------------------------------------------------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section-sm { padding-block: var(--section-y-sm); }
.section-hero { padding-block: var(--section-y) calc(var(--section-y) * 0.65); }
.section-flush-top { padding-block: 1.5rem var(--section-y); }
.mt-section { margin-top: var(--section-y-sm); }
.mt-gap { margin-top: var(--gap-lg); }
.pt-gap { padding-top: var(--gap-lg); }
.pt-section { padding-top: var(--section-y-sm); }
.band-accent { background-color: var(--color-accent-200); }
.band-surface { background: var(--color-surface); }

.stack { display: flex; flex-direction: column; gap: 0.75rem; }
.stack-xs { gap: 0.5rem; }
.stack-sm { gap: 0.625rem; }
.stack-md { gap: 1rem; }
.stack-lg { gap: 1.125rem; }
.stack-xl { gap: 1.25rem; }
.stack-2xl { gap: 1.75rem; }
.stack-start { align-items: flex-start; }

.grid { display: grid; grid-template-columns: 1fr; gap: var(--gap); }
.grid-gap-lg { gap: var(--gap-lg); }
.grid-gap-sm { gap: 1.25rem; }
.grid-gap-band { gap: 1.5rem var(--gap-lg); }
.grid-gap-wide { gap: 2rem var(--gap-lg); }
.grid-start { align-items: start; }
.grid-center { align-items: center; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.875rem; }
.bullets { margin: 0; padding-left: 1.5rem; display: flex; flex-direction: column; gap: 0.625rem; }
.bullets-tight { padding-left: 1.375rem; gap: 0.375rem; }
.bullets-sm { gap: 0.5rem; }

/* --- Text roles --------------------------------------------------------- */
.lead { font-size: var(--fs-lead); color: var(--color-neutral-800); }
.lead-lg { font-size: var(--fs-lead-lg); }
.lead-sm { font-size: var(--fs-lead-sm); }
.body-lg { font-size: var(--fs-body-lg); }
.muted { color: var(--color-neutral-800); }
.muted-2 { color: var(--color-neutral-700); }
.on-accent-2 { color: var(--color-accent-2-800); }
.measure-xs { max-width: 16em; }
.measure-sm { max-width: 30em; }
.measure { max-width: 38em; }
.measure-lg { max-width: 44em; }
.h-display { font-size: var(--fs-display); text-wrap: pretty; }
.h-page { font-size: var(--fs-h1); margin-bottom: 1rem; }
.h-section { font-size: var(--fs-h2); }
.h-section-sm { font-size: var(--fs-h2-sm); }
.h-card { font-size: var(--fs-h3); }
.h-card-lg { font-size: var(--fs-h3-lg); }
.h-card-sm { font-size: var(--fs-h3-sm); }
.h-minor { font-size: var(--fs-h4); }
.mb-1 { margin-bottom: 0.375rem; }
.mb-2 { margin-bottom: 0.75rem; }
.mb-3 { margin-bottom: 1.25rem; }
.mb-4 { margin-bottom: 1.75rem; }
.mb-5 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 2.5rem; }
.mb-gap { margin-bottom: var(--gap-lg); }
.mt-1 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 1.75rem; }
.pt-1 { padding-top: 0.5rem; }
.pt-5 { padding-top: 2rem; }
.pt-6 { padding-top: 2.5rem; }
.intro { max-width: 34em; }          /* page intro paragraphs */
.measure-title { max-width: 20em; }  /* long page titles */
.h-section-md { font-size: var(--fs-h2-md); }
.tagline { font-family: var(--font-heading); font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem); color: var(--color-accent-700); }
.price { font-family: var(--font-heading); font-size: var(--fs-price); line-height: 1.1; }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none; border-radius: 999px;
  font-family: var(--font-heading); font-weight: 400; line-height: 1.2; color: var(--color-text);
  background: transparent; border: 1px solid transparent;
  padding: 0.9rem 1.75rem; font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem); min-height: 3.625rem;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--color-accent); color: var(--color-bg); }
.btn-primary:hover { background: var(--color-accent-600); color: var(--color-bg); }
.btn-primary:active { background: var(--color-accent-700); }
.btn-secondary { border-color: var(--color-divider); }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); color: var(--color-text); }
.btn-secondary:active { background: color-mix(in srgb, var(--color-text) 14%, transparent); }
.btn-md { padding: 0.8rem 1.6rem; font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem); min-height: 3.375rem; }
.btn-inverse { background: var(--color-neutral-100); color: var(--color-accent-800); white-space: nowrap; }
.btn-inverse:hover { background: #fff; color: var(--color-accent-800); }

/* --- Header & footer ---------------------------------------------------- */
.site-header { position: relative; z-index: 20; background: var(--color-bg); border-bottom: 1px solid var(--color-divider); }
.site-header-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 0.75rem 1.25rem; padding-block: 0.75rem; }
.brand { display: flex; align-items: center; margin-right: auto; }
.brand img { height: clamp(3rem, 2.4rem + 2.2vw, 4.5rem); width: auto; }
.site-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.375rem; order: 3; flex-basis: 100%; }
.nav-link {
  display: inline-flex; align-items: center; min-height: 2.75rem;
  padding: 0.5rem 1rem; border-radius: 999px; text-decoration: none;
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.1875rem); color: var(--color-text);
}
.nav-link:hover { background: var(--color-accent-200); color: var(--color-text); }
.nav-link[aria-current="page"] { background: var(--color-accent-200); color: var(--color-accent-800); font-weight: 600; }
.call-btn {
  white-space: nowrap; min-height: 3rem; padding: 0.75rem 1.25rem;
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.1875rem);
  color: #2b2b2dea; background-color: var(--color-accent-400);
}
.call-btn:hover { background-color: var(--color-accent-500); color: #2b2b2dea; }

.site-footer { border-top: 1px solid var(--color-divider); margin-top: 1.5rem; }
.site-footer-inner { padding-block: 2.25rem; display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
.site-footer a { color: inherit; text-decoration: none; white-space: nowrap; }
.site-footer a:hover { text-decoration: underline; }
.site-footer p {
  color: var(--color-neutral-700); font-weight: 600; text-transform: uppercase; text-align: center;
  font-size: clamp(0.9375rem, 0.85rem + 0.4vw, 1.125rem);
}

/* --- Components --------------------------------------------------------- */
.tag {
  display: inline-flex; align-items: center; border-radius: 999px;
  padding: 0.5rem 1rem; font-size: 0.9375rem; letter-spacing: 0.02em;
  background-color: var(--color-accent-300); color: var(--color-accent-2-800);
}
.hero-media { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius-card); overflow: hidden; }
.hero-media img, .portrait img, .gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.portrait { width: 100%; max-width: 18rem; aspect-ratio: 1 / 1; border-radius: 999px; overflow: hidden; }
.gallery-item { aspect-ratio: 4 / 3; border-radius: var(--radius-inner); overflow: hidden; }

.panel { border-radius: var(--radius-card); padding: var(--card-pad); }
.panel-lg { border-radius: var(--radius-card); padding: var(--card-pad-lg); }
.panel-bg { background: var(--color-bg); }
.panel-surface { background: var(--color-surface); }
.panel-accent { background-color: var(--color-accent-400); }
.panel-accent-2 { background: var(--color-accent-2-200); }
.panel-inner { background: var(--color-bg); border-radius: var(--radius-inner); padding: clamp(1.25rem, 1rem + 1.2vw, 1.75rem); }
.service-card { display: flex; flex-direction: column; gap: 0.625rem; border-radius: var(--radius-card); padding: clamp(1.25rem, 1rem + 1.2vw, 1.75rem); background-color: var(--color-accent-400); }
.detail-card {
  display: grid; grid-template-columns: 1fr; gap: 0.75rem var(--gap); align-items: start;
  border-radius: var(--radius-card); padding: var(--card-pad); background: var(--color-surface);
}
.step-number {
  width: 4rem; height: 4rem; border-radius: 999px; flex: none;
  background: var(--color-accent-500); color: var(--color-neutral-100);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-size: 1.875rem;
}
.pricing-extras { margin-top: 2.25rem; padding-top: 2rem; border-top: 1px solid var(--color-accent-2-400); }
.cta-banner {
  background: var(--color-accent-800); color: var(--color-neutral-100);
  border-radius: var(--radius-card); padding: var(--card-pad-lg);
  display: flex; flex-wrap: wrap; gap: 1.75rem; align-items: center; justify-content: space-between;
}
.cta-banner h2 { color: var(--color-neutral-100); font-size: var(--fs-h2-md); }
.cta-banner p { color: var(--color-accent-200); font-size: var(--fs-lead-sm); }
.cta-logo { height: 3.5rem; width: auto; align-self: flex-start; margin-bottom: 0.375rem; }
.faq-item { border-top: 1px solid var(--color-divider); padding-top: 1.25rem; }
.phone-link { font-family: var(--font-heading); font-size: var(--fs-phone); text-decoration: none; white-space: nowrap; color: var(--color-accent-700); }

/* --- Contact form ------------------------------------------------------- */
.form-card { border-radius: var(--radius-card); padding: clamp(1.25rem, 0.9rem + 1.8vw, 2.25rem); background: var(--color-surface); }
.form { display: flex; flex-direction: column; gap: 1.375rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label { font-size: var(--fs-body); font-weight: 600; }
.input {
  width: 100%; font: inherit; font-size: var(--fs-body); color: var(--color-text);
  caret-color: var(--color-accent); background: var(--color-bg);
  border: 1px solid var(--color-divider); border-radius: 999px;
  padding: 0.9rem 1.375rem; min-height: 3.625rem;
}
.input:hover { border-color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.input:focus-visible { border-color: var(--color-accent); outline-offset: 0; }
textarea.input { border-radius: var(--radius-inner); min-height: 9rem; resize: vertical; }
.form .btn { align-self: flex-start; }
.form-thanks { padding-block: 1.5rem; }
.form-error { color: var(--color-accent-2-800); }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }

/* --- Not-found page ----------------------------------------------------- */
.not-found { text-align: center; padding-block: var(--section-y); }
.not-found .btn-row { justify-content: center; }
.not-found .lead { margin-inline: auto; }

/* --- Phone only: stretch buttons so they are easy to tap ---------------- */
@media (max-width: 39.99em) {
  .btn-row .btn, .cta-banner .btn { flex: 1 1 auto; }
  .form .btn { align-self: stretch; }
}

/* --- Tablet and up (640px) ---------------------------------------------- */
@media (min-width: 40em) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }   /* three short items: no orphan */
  .grid-6 { grid-template-columns: repeat(2, 1fr); }   /* six cards: 2 across on tablet */
  .detail-card { grid-template-columns: 1fr 1.4fr; }
  .hero-media { aspect-ratio: 16 / 10; }
}

/* --- Desktop (900px) ---------------------------------------------------- */
@media (min-width: 56.25em) {
  .site-header { position: sticky; top: 0; }
  .site-header-inner { padding-block: 0.875rem; gap: 1.5rem; }
  .brand { margin-right: 0; }
  .site-nav { order: 0; flex-basis: auto; margin-left: auto; justify-content: flex-start; gap: 0.5rem; }
  .nav-link { padding: 0.75rem 1.25rem; min-height: 3rem; }
  .call-btn { min-height: 3.25rem; padding: 0.875rem 1.5rem; }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .grid-hero { grid-template-columns: 1.1fr 0.9fr; }
  .grid-split { grid-template-columns: 1fr 1fr; }
  .grid-about { grid-template-columns: 1.2fr 0.8fr; }
  .grid-contact { grid-template-columns: 1.1fr 0.9fr; }
  .hero-media { aspect-ratio: 4 / 5; }
  .portrait { max-width: none; }
}

/* --- Print: a clean page with the phone number, no navigation ----------- */
@media print {
  body { background: #fff; color: #000; font-size: 12pt; }
  .skip-link, .site-nav, .call-btn, .btn-row, .btn, .hero-media, .gallery-item, .cta-banner, .honeypot { display: none !important; }
  .site-header, .site-footer { border-color: #000; }
  .band-accent, .band-surface, .panel, .panel-inner, .panel-lg, .service-card, .detail-card, .form-card { background: none !important; }
  .grid, .grid-2, .grid-3, .grid-6, .grid-hero, .grid-split, .grid-about, .grid-contact { grid-template-columns: 1fr; }
  .lead, .muted, .muted-2, .on-accent-2, .tagline, .phone-link, .site-footer p { color: #000; }
  a[href^="tel:"]::after { content: none; }
  .site-footer p { font-size: 12pt; }
}
