/* Granite & Lime — GL-DESIGN-008 (premium residential painting)
   Warm limestone ground, charcoal type, one olive accent, bronze only for focus and fine lines.
   Lora for editorial headings, Inter for everything you read or press. */

/* ---------- Fonts (self-hosted, SIL Open Font License) ---------- */
@font-face { font-family: "Lora"; src: url("assets/fonts/lora-variable.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --ivory: #f6f2ea;
  --off-white: #fbf9f4;
  --stone: #ebe5d9;
  --stone-deep: #ddd5c6;
  --ink: #1e1f1c;
  --ink-2: #45463f;
  --line: #cfc8b9;
  --line-strong: #8f897b;
  --olive: #555a40;
  --olive-dark: #3f4330;
  --bronze: #7f6238;
  --on-dark: #f6f2ea;
  --on-dark-2: #d2ccbe;
  --dark-panel: #292b27;
  --dark-line: #706e61;
  --error: #8a2a1c;
  --error-on-dark: #f2b8a8;

  --serif: "Lora", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --t-body: 1.0625rem;                                   /* 17px: comfortable reading for all ages */
  --t-small: 1rem;                                       /* 16px: nothing you need to read is smaller */
  --t-lede: 1.125rem;                                    /* 18px */
  --t-h1: clamp(2.65rem, 1.6rem + 3.6vw, 4.6875rem);     /* 42 → 75px */
  --t-h2: clamp(2.1rem, 1.5rem + 2.2vw, 3.375rem);       /* 34 → 54px */
  --t-h3: clamp(1.45rem, 1.3rem + 0.5vw, 1.625rem);

  --shell: 83.125rem;                                    /* 1330px */
  --gutter: 3.4375rem;                                   /* 55px desktop */
  --section: clamp(3.6rem, 7vw, 6rem);                   /* 58 → 96px */
  --radius: 0;
  --tap: 3rem;                                           /* 48px minimum touch target */
  --header-h: 4.875rem;
  --bar-h: 4.25rem;                                      /* mobile action bar, without safe area */
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 400 var(--t-body)/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.09; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: var(--t-h1); line-height: 1.06; }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); line-height: 1.2; }
p { margin: 0; max-width: 62ch; text-wrap: pretty; }
ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--bronze); outline-offset: 3px; }
.contact :focus-visible, .site-footer :focus-visible { outline-color: #e2c897; }

.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -6rem; z-index: 100; padding: 0.85rem 1.1rem; background: var(--ink); color: var(--on-dark); }
.skip-link:focus { top: 1rem; }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section-tint { background: var(--stone); }

.eyebrow { margin-bottom: 1.1rem; font-size: 0.8125rem; font-weight: 600; line-height: 1.3; letter-spacing: 0.14em; text-transform: uppercase; color: var(--olive); }
.lede { font-size: var(--t-lede); line-height: 1.7; color: var(--ink-2); }

.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem clamp(2rem, 5vw, 4.5rem); align-items: end; margin-bottom: clamp(1.5rem, 3vw, 2.4rem); }
.section-head h2 { max-width: 16ch; }
.section-intro { color: var(--ink-2); }

/* ---------- Buttons and links ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3.25rem; padding: 0.8rem 1.45rem;
  border: 1.5px solid var(--ink); border-radius: var(--radius);
  background: transparent; color: var(--ink);
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-align: center; text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.button-primary { background: var(--ink); color: var(--on-dark); }
.button-primary:hover { background: var(--olive-dark); border-color: var(--olive-dark); }
.button-outline:hover { background: var(--ink); color: var(--on-dark); }
.button-light { background: var(--on-dark); border-color: var(--on-dark); color: var(--ink); }
.button-light:hover { background: transparent; color: var(--on-dark); }
.button-small { min-height: var(--tap); padding: 0.6rem 1.2rem; }
.button-detail { font-weight: 500; font-variant-numeric: tabular-nums; opacity: 0.85; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.text-link { display: inline-block; padding-block: 0.85rem; line-height: 1.4; font-weight: 600; font-size: 1rem; text-decoration: underline; text-underline-offset: 0.35em; }
.text-link::after { content: "→" / ""; display: inline-block; margin-left: 0.45rem; transition: transform 0.18s ease; }
.text-link:hover { color: var(--olive); }
.text-link:hover::after { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ivory); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 1.75rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; min-height: var(--tap); text-decoration: none; flex: none; }
.brand img { width: 2.7rem; height: 2.7rem; }
.brand-copy { display: grid; line-height: 1.2; }
.brand-name { font-family: var(--serif); font-size: 1.25rem; letter-spacing: 0.035em; text-transform: uppercase; }
.brand-sub { margin-top: 0.15rem; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.primary-nav { display: flex; gap: clamp(0.25rem, 1.4vw, 1.25rem); margin-left: auto; }
.primary-nav a { display: inline-flex; align-items: center; min-height: var(--tap); padding-inline: 0.45rem; font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap; }
.primary-nav a:hover { text-decoration: underline; text-underline-offset: 0.45em; }
.header-actions { display: flex; align-items: center; gap: 1.25rem; flex: none; }
.header-phone { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 600; font-size: 0.9375rem; font-variant-numeric: tabular-nums; white-space: nowrap; text-decoration: none; }
.header-phone:hover { text-decoration: underline; }
.menu-button { display: none; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(1.9rem, 5vw, 4.4rem) 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.91fr); gap: clamp(1.75rem, 5vw, 4.5rem); align-items: center; }
.hero-copy { display: grid; justify-items: start; }
.hero-copy .eyebrow { margin-bottom: 1.5rem; }
.hero h1 { max-width: 40.625rem; margin-bottom: 1.6rem; }
.hero .lede { max-width: 33rem; }
.hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; width: 100%; max-width: 33rem; margin-top: 2.1rem; }
.hero-actions .button { min-height: 3.5rem; font-size: 1rem; }
.hero-actions .button-call { grid-column: 1 / -1; min-height: 4rem; font-size: 1.125rem; }
.hero-hint { margin-top: 1rem; font-size: 1rem; color: var(--ink-2); }
.hero-hint a { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 600; }
.hero-hint a { text-decoration: underline; text-underline-offset: 0.2em; }
.hero-figure { position: relative; width: 100%; aspect-ratio: 9 / 10; overflow: hidden; background: var(--stone); }
.hero-figure img, .hero-figure picture { display: block; width: 100%; height: 100%; }
.photo-label { position: absolute; inset: auto 0 0 0; padding: 0.6rem 0.8rem; background: rgba(27, 30, 26, 0.73); color: #fff; font-size: 0.75rem; line-height: 1.3; letter-spacing: 0.06em; text-transform: uppercase; }
.hero-figure img { object-fit: cover; object-position: 54% 50%; }
.hero-figure.is-illustration { display: grid; place-items: center; padding: clamp(1rem, 3vw, 2.5rem); }
.hero-figure.is-illustration img { object-fit: contain; }


/* ---------- Painting services ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.card { display: flex; flex-direction: column; min-height: 16.5rem; padding: 1.75rem; background: var(--off-white); border: 1px solid var(--line); }
.card-num { margin-bottom: 1.2rem; font-size: 0.8125rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--olive); }
.card h3 { margin-bottom: 0.85rem; }
.card > p:not(.card-num) { font-size: var(--t-small); color: var(--ink-2); }
.card .text-link { margin-top: auto; padding-top: 1rem; align-self: flex-start; }
.services-note { margin-top: 1.25rem; font-size: var(--t-small); color: var(--ink-2); }

/* ---------- Selected work (hidden until real photos exist) ---------- */
.project { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.project-text { display: grid; gap: 1.25rem; }
.project-meta { display: grid; gap: 0.5rem; padding-block: 1.25rem; border-block: 1px solid var(--line); font-size: var(--t-small); }
.project-meta div { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 1rem; }
.project-meta dt { color: var(--ink-2); }
.compare-frame { position: relative; overflow: hidden; background: var(--stone-deep); --pos: 50%; }
.compare-frame img { width: 100%; height: 100%; object-fit: cover; }
.compare-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-frame::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--off-white); pointer-events: none; }
.compare-frame::before { content: ""; position: absolute; z-index: 1; top: 50%; left: var(--pos); width: 3rem; height: 3rem; margin: -1.5rem 0 0 -1.5rem; border-radius: 50%; background: var(--off-white); border: 1.5px solid var(--ink); pointer-events: none; }
.compare-tag { position: absolute; top: 1rem; padding: 0.3rem 0.7rem; background: var(--off-white); font-size: 1rem; font-weight: 600; pointer-events: none; }
.compare-tag-before { left: 1rem; }
.compare-tag-after { right: 1rem; }
.compare-range { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare-frame:has(.compare-range:focus-visible) { outline: 3px solid var(--bronze); outline-offset: 3px; }


.disclosure { font-size: 0.75rem; color: #6b695e; }

/* ---------- Process ---------- */
.process { background: var(--off-white); }
.process h2 { margin-bottom: clamp(1.5rem, 3vw, 2rem); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem; }
.step { padding-top: 1rem; border-top: 1px solid #a6a396; }
.step-num { display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--olive); color: var(--on-dark); font-size: 1rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.step h3 { margin: 1.1rem 0 0.75rem; }
.step p { font-size: var(--t-small); color: var(--ink-2); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(1.5rem, 6vw, 5rem); align-items: center; }
.about-mark { display: grid; place-items: center; align-content: center; gap: 0.6rem; min-height: 18.75rem; padding: 2rem; background: var(--stone); border: 1px solid var(--line); text-align: center; }
.about-mark img { width: 5.5rem; height: 5.5rem; margin-bottom: 0.6rem; }
.about-mark-name { font-family: var(--serif); font-size: 1.5rem; }
.about-mark-role { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.about-copy { display: grid; gap: 1rem; justify-items: start; }
.about-copy .eyebrow { margin-bottom: 0.25rem; }
.about-copy h2 { margin-bottom: 0.4rem; }
.about-copy > p:not(.eyebrow) { color: var(--ink-2); }
.about-copy .button { margin-top: 0.5rem; }

/* ---------- Areas ---------- */
.areas { background: var(--stone); padding-block: clamp(2.9rem, 5vw, 4rem); }
.areas-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 1rem clamp(2rem, 5vw, 4rem); align-items: center; }
.areas-grid > div > p { margin-top: 1.1rem; color: var(--ink-2); }
.area-list { display: flex; flex-wrap: wrap; gap: 0.1rem 0; font-family: var(--serif); font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem); line-height: 1.7; }
.area-list li:not(:last-child)::after { content: "·"; margin-inline: 0.55rem; color: var(--line-strong); }
.area-groups { display: grid; gap: 0.35rem; }
.area-more { margin-top: 0.5rem; font-size: var(--t-small); color: var(--ink-2); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 1.25rem clamp(2rem, 6vw, 4.4rem); align-items: start; }
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; display: flex; align-items: center; min-height: 3.75rem; padding: 0.9rem 2.75rem 0.9rem 0; list-style: none; cursor: pointer; font-weight: 600; font-size: 1.0625rem; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 0.4rem; top: 50%; width: 1rem; height: 1.5px; background: var(--ink); transition: transform 0.25s ease; }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] > summary::after { transform: rotate(0deg); }
.faq summary:hover { color: var(--olive); }
.faq-body { overflow: hidden; }
.faq-body p { padding: 0 2.75rem 1.25rem 0; font-size: var(--t-small); color: var(--ink-2); }

/* ---------- Contact (dark) ---------- */
.contact { background: var(--ink); color: var(--on-dark); padding-bottom: clamp(4.5rem, 8vw, 6.5rem); }
.contact .eyebrow { color: #d9d6c6; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(1.75rem, 6vw, 4.7rem); align-items: start; }
.contact-copy { display: grid; gap: 1.25rem; justify-items: start; }
.contact-copy .eyebrow { margin-bottom: 0; }
.contact-copy > p { color: var(--on-dark-2); }
.contact-phone { display: inline-flex; align-items: center; min-height: var(--tap); margin-top: 0.5rem; font-family: var(--serif); font-size: clamp(2rem, 1.5rem + 1.6vw, 2.5rem); font-variant-numeric: lining-nums; text-decoration: none; }
.contact-phone::after { content: "↗" / ""; margin-left: 0.6rem; font-size: 0.75em; }
.contact-phone:hover { text-decoration: underline; }
.contact-meta { font-size: 1rem; color: var(--on-dark-2); }
.contact-meta a { display: inline-flex; align-items: center; min-height: 2.75rem; overflow-wrap: anywhere; }

.form { display: grid; gap: 0.25rem; min-width: 0; padding: clamp(1.25rem, 3vw, 2.1rem); background: var(--dark-panel); border: 1px solid var(--dark-line); }
.form h3 { margin-bottom: 0.4rem; }
.form-intro { margin-bottom: 0.75rem; font-size: 0.9375rem; color: var(--on-dark-2); }
.field { display: grid; gap: 0.4rem; margin-top: 0.6rem; min-width: 0; }
.field label { font-weight: 600; font-size: 0.9375rem; letter-spacing: 0.01em; color: #eee8dc; }
.field input, .field textarea, .form-fallback textarea { width: 100%; min-height: 3rem; padding: 0.75rem 0.9rem; background: var(--ivory); color: var(--ink); border: 1px solid #aaa899; border-radius: 0; font-size: 1rem; }
.field textarea { min-height: 6rem; resize: vertical; line-height: 1.5; }
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 0; }
.field ::placeholder { color: #6d6e66; opacity: 1; }
.field [aria-invalid="true"] { border-color: var(--error-on-dark); border-width: 2px; }
.field-error { font-size: 0.875rem; font-weight: 600; color: var(--error-on-dark); }
.form-submit { width: 100%; margin-top: 1.1rem; }
.form-note { margin-top: 0.7rem; font-size: 0.875rem; color: #ded9c9; }
.form-error-summary, .form-status { scroll-margin-top: calc(var(--header-h) + 1rem); margin-top: 0.9rem; padding: 0.9rem 1.1rem; border-left: 4px solid #a9ad8c; background: #34362f; font-size: 0.9375rem; font-weight: 600; max-width: none; }
.form-error-summary { border-left-color: var(--error-on-dark); }
.form-fallback { display: grid; gap: 0.5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--dark-line); scroll-margin-bottom: calc(var(--bar-h) + 2rem); }
.form-fallback p { font-size: 0.9375rem; color: var(--on-dark-2); }
.form-fallback label { font-weight: 600; font-size: 0.9375rem; color: #eee8dc; }
.form-fallback textarea { min-height: 8rem; resize: vertical; scroll-margin-bottom: calc(var(--bar-h) + 2rem); }
.form-fallback .button { justify-self: start; scroll-margin-bottom: calc(var(--bar-h) + 2rem); }
.form-alt { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1rem; margin-top: 1rem; font-size: 0.875rem; }
.form-alt a { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 600; }
.form-alt a::after { content: "↗" / ""; margin-left: 0.35rem; }

.contact-choice { min-width: 0; margin: 0.9rem 0 0; padding: 0.9rem 1rem 1rem; border: 1px solid var(--dark-line); }
.contact-choice legend { padding: 0 0.35rem; font-weight: 600; font-size: 0.9375rem; color: #eee8dc; }
.contact-choice .field:first-of-type { margin-top: 0.25rem; }
.field-hint { font-size: 0.875rem; color: var(--on-dark-2); }
.req { color: #e2c897; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-submit[disabled] { opacity: 0.75; cursor: progress; }
.form-status[data-tone="error"] { border-left-color: var(--error-on-dark); }
.form-done { display: grid; gap: 0.75rem; padding-block: 0.5rem; }
.form-done p { color: var(--on-dark-2); }
.form-done a { font-weight: 600; }
.form-done:focus { outline: none; }
.form-done:focus-visible { outline: 3px solid #e2c897; outline-offset: 6px; }

/* ---------- GL-UX-V2 additions ---------- */
/* WhatsApp: secondary action with a plain explanation underneath. */
.button-wa { gap: 0.5rem; }
.button-wa::before { content: ""; width: 1.15rem; height: 1.15rem; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm0 18.2a8.2 8.2 0 0 1-4.2-1.2l-.3-.2-3 .8.8-2.9-.2-.3A8.2 8.2 0 1 1 12 20.2zm4.5-6.1c-.2-.1-1.5-.7-1.7-.8s-.4-.1-.6.1-.7.8-.8 1-.3.2-.5.1a6.7 6.7 0 0 1-3.3-2.9c-.2-.4.2-.4.7-1.3.1-.2 0-.3 0-.4l-.8-1.8c-.2-.5-.4-.4-.6-.4h-.5a1 1 0 0 0-.7.3 3 3 0 0 0-.9 2.2 5.2 5.2 0 0 0 1.1 2.7 11.8 11.8 0 0 0 4.5 4c1.7.7 2.3.8 3.2.6a2.6 2.6 0 0 0 1.7-1.2 2.1 2.1 0 0 0 .1-1.2c0-.1-.2-.2-.4-.3z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm0 18.2a8.2 8.2 0 0 1-4.2-1.2l-.3-.2-3 .8.8-2.9-.2-.3A8.2 8.2 0 1 1 12 20.2zm4.5-6.1c-.2-.1-1.5-.7-1.7-.8s-.4-.1-.6.1-.7.8-.8 1-.3.2-.5.1a6.7 6.7 0 0 1-3.3-2.9c-.2-.4.2-.4.7-1.3.1-.2 0-.3 0-.4l-.8-1.8c-.2-.5-.4-.4-.6-.4h-.5a1 1 0 0 0-.7.3 3 3 0 0 0-.9 2.2 5.2 5.2 0 0 0 1.1 2.7 11.8 11.8 0 0 0 4.5 4c1.7.7 2.3.8 3.2.6a2.6 2.6 0 0 0 1.7-1.2 2.1 2.1 0 0 0 .1-1.2c0-.1-.2-.2-.4-.3z'/%3E%3C/svg%3E") center / contain no-repeat; }
.wa-help { max-width: 33rem; margin-top: 0.85rem; font-size: 0.9375rem; line-height: 1.55; color: var(--ink-2); }
.wa-help-dark { margin-top: 0; color: var(--on-dark-2); }
.hero .hero-actions .button-wa { grid-column: 1 / -1; }

/* Services: interior painting leads, the rest sit quieter beside it. */
.cards { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-auto-rows: auto; }
.card { min-height: 0; }
.card-lead { grid-row: span 3; background: var(--stone); border-color: var(--line-strong); }
.card-lead h3 { font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); }
.card-lead > p:not(.card-num) { font-size: var(--t-body); }
.card:not(.card-lead) h3 { font-size: 1.375rem; margin-bottom: 0.5rem; }


/* Process numbers sit in a circle. */
.step h3 { margin: 0.9rem 0 0.5rem; }

/* About and areas. */
.about-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: start; }
.areas-box { display: grid; gap: 0.6rem; padding: clamp(1.25rem, 3vw, 2rem); background: var(--off-white); border: 1px solid var(--line); }
.areas-box h3 { font-size: 1.375rem; }
.areas-main { font-family: var(--serif); font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); }
.areas-also, .areas-note { color: var(--ink-2); font-size: var(--t-small); }

/* Contact column: the WhatsApp button sits under the phone number. */
.contact-copy .button-wa { width: 100%; max-width: 24rem; min-height: 3.5rem; }

/* Footer headings and social links. */
.footer-head { margin-bottom: 0.35rem; font-family: var(--sans); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #c9c6ba; }
.social-list a { gap: 0.6rem; }
.social-list svg { flex: none; }

@media (max-width: 53.125rem) {
  .card-lead { grid-row: auto; grid-column: 1 / -1; }
}
@media (max-width: 37.5rem) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .about-grid, .faq-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-grid, .contact-grid { gap: 1.5rem; }
  .faq summary { font-size: 1.0625rem; }
  .form { padding: 1.25rem 1rem; }
  .contact-copy .button-wa { max-width: none; }
}

/* ---------- Footer ---------- */
.site-footer { background: #151713; color: #dfddd5; padding-block: clamp(2.5rem, 5vw, 3.5rem); font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 2fr) minmax(0, 2fr); gap: 1.5rem clamp(1.5rem, 4vw, 3rem); align-items: start; }
.footer-brand { display: flex; align-items: center; gap: 0.9rem; }
.footer-brand img { width: 2.75rem; height: 2.75rem; }
.footer-brand p { display: grid; line-height: 1.35; }
.footer-brand strong { font-family: var(--serif); font-weight: 400; font-size: 1.15rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--on-dark); }
.footer-list { display: grid; }
.footer-list a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--on-dark); text-decoration: none; overflow-wrap: anywhere; }
.footer-list a:hover { text-decoration: underline; }
.footer-copy { grid-column: 1 / -1; display: flex; align-items: center; min-height: 2.75rem; padding-top: 1rem; border-top: 1px solid #3a3c35; color: #c9c6ba; }

/* ---------- Text pages (privacy notice, enquiry sent) ---------- */
.page { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.page .shell { max-width: 50rem; }
.page h1 { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.25rem); margin-bottom: 1.25rem; }
.page h2 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem); margin: 2.25rem 0 0.75rem; }
.page p, .page li { color: var(--ink-2); }
.page p + p { margin-top: 0.85rem; }
.page ul { display: grid; gap: 0.45rem; margin-top: 0.6rem; padding-left: 1.2rem; list-style: disc; }
.page .actions { margin-top: 1.75rem; }
.error-note { margin-block: 0.5rem 1rem; padding: 0.9rem 1.1rem; border-left: 4px solid var(--error); background: var(--stone); }
.error-note p { color: var(--ink); font-weight: 600; }
.draft-note { margin-bottom: 1.5rem; padding: 0.9rem 1.1rem; border-left: 4px solid var(--bronze); background: var(--stone); font-weight: 600; color: var(--ink); }

/* ---------- Mobile action bar ---------- */
.mobile-bar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 67.5rem) {                       /* ≤1080px */
  :root { --gutter: 2.125rem; }
  .header-phone { display: none; }
  .primary-nav { gap: 0.25rem; }
}

@media (max-width: 53.125rem) {                     /* ≤850px: tablet and phone */
  :root { --gutter: 1.875rem; --header-h: 4.3rem; }
  .header-inner { flex-wrap: wrap; gap: 0 1rem; }
  .header-actions { display: none; }
  .menu-button {
    display: inline-flex; align-items: center; gap: 0.65rem; margin-left: auto;
    min-height: var(--tap); padding: 0 1rem;
    background: transparent; border: 1.5px solid var(--ink); border-radius: var(--radius);
    font-weight: 600; font-size: 0.9375rem; cursor: pointer;
  }
  .menu-icon, .menu-icon::before { display: block; width: 1.1rem; height: 1.5px; background: currentColor; transition: transform 0.2s ease; }
  .menu-icon { position: relative; top: -3px; }
  .menu-icon::before { content: ""; position: absolute; top: 6px; }
  .menu-button[aria-expanded="true"] .menu-icon { transform: translateY(3px) rotate(45deg); }
  .menu-button[aria-expanded="true"] .menu-icon::before { transform: translateY(-6px) rotate(-90deg); }
  .primary-nav { display: none; flex-basis: 100%; flex-direction: column; gap: 0; margin: 0; padding-bottom: 0.75rem; }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { min-height: 3.25rem; padding-inline: 0; border-top: 1px solid var(--line); font-size: 1rem; }

  .hero-figure:not(.is-project) { aspect-ratio: 4 / 5; }
  .section-head { gap: 0.75rem 1.5rem; }
  .cards { gap: 0.65rem; }
  .card { padding: 1.25rem; min-height: 17.4rem; }
  .card-num { margin-bottom: 1.5rem; }
      .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand, .footer-copy { grid-column: 1 / -1; }

  /* Two-button action bar. body padding keeps the last content clear of it. */
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem;
    padding: 0.5rem 1.125rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
    background: var(--ivory); border-top: 1px solid var(--line);
  }
  .mobile-bar { grid-template-columns: 1.3fr 1fr; transition: transform 0.2s ease, visibility 0.2s; }
  .mobile-bar.is-tucked { transform: translateY(110%); visibility: hidden; }
  .mobile-bar .button { min-height: 3.25rem; padding: 0.6rem 0.4rem; font-size: 1.0625rem; }
  body { padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px)); }
  html { scroll-padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px) + 1rem); }
  input, textarea, button, a { scroll-margin-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px) + 1rem); }
}

@media (prefers-reduced-motion: reduce) { .mobile-bar { transition: none; } }

@media (max-width: 37.5rem) {                       /* ≤600px: phones */
  :root { --gutter: 1.3125rem; --header-h: 4.05rem; }
  .brand img { width: 2.2rem; height: 2.2rem; }
  .brand-name { font-size: 1.0625rem; }
  .brand-sub { font-size: 0.75rem; letter-spacing: 0.03em; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .hero-copy .eyebrow { margin-bottom: 1.1rem; }
  .hero h1 { font-size: clamp(2.45rem, 1.6rem + 4.4vw, 2.8rem); margin-bottom: 1.2rem; }
  .hero .lede { font-size: 1.0625rem; line-height: 1.55; }
  .hero-actions { margin-top: 1.5rem; gap: 0.6rem; max-width: none; }
  .hero-actions .button { min-height: 3.25rem; }
  .hero-figure:not(.is-project) { aspect-ratio: 6 / 5; }
      .section-head { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .card { min-height: 0; padding: 1.4rem; }
  .card-num { margin-bottom: 1rem; }
          .photo-label { font-size: 0.8125rem; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
  .step h3 { margin: 0.6rem 0; }
  .about-mark { min-height: 11.25rem; }
  .form-alt { justify-content: flex-start; gap: 0 1.5rem; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .mobile-bar { padding-inline: 0.75rem; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  .site-header, .mobile-bar, .menu-button, .form { display: none; }
  .contact, .site-footer { background: #fff; color: #000; }
}

@media (max-width: 22.5rem) {                       /* ≤360px: smallest phones (after the ≤600px rules) */
  .hero-actions { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: 2.2rem; }
  /* One-row header: logo + name + Menu. Only the strapline is hidden; the row may still wrap at large text zoom. */
  .header-inner { gap: 0 0.6rem; }
  .brand { flex: 0 1 auto; min-width: 0; gap: 0.5rem; }
  .brand img { width: 2rem; height: 2rem; }
  .brand-name { font-size: 0.9375rem; letter-spacing: 0.02em; white-space: nowrap; }
  .brand-sub { display: none; }
  .menu-button { flex: none; gap: 0.5rem; padding: 0 0.75rem; }
}

/* ---------- Project photography (GL-UX-V2) ---------- */
.hero-figure.is-project { aspect-ratio: 4 / 3; background: var(--stone-deep); }
.hero-figure.is-project img { object-fit: cover; object-position: 50% 50%; }
.photo-caption { position: absolute; inset: auto auto 0 0; padding: 0.45rem 0.75rem; background: rgba(27, 30, 26, 0.78); color: #fff; font-size: 0.875rem; line-height: 1.3; }
.draft-note { max-width: none; }
.work-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.25rem); }
.work-group { display: grid; gap: 0.75rem; align-content: start; padding: clamp(1rem, 2vw, 1.5rem); background: var(--off-white); border: 1px solid var(--line); }
.work-group:first-child { grid-column: 1 / -1; }
.work-group h3 { font-size: clamp(1.4rem, 1.2rem + 0.6vw, 1.75rem); }
.work-group > p { color: var(--ink-2); }
.work-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.work-photo { position: relative; }
.work-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--stone-deep); }
.work-photo figcaption { position: absolute; top: 0.6rem; left: 0.6rem; }
.work-photo .work-tag { display: inline-block; padding: 0.25rem 0.6rem; background: var(--ink); color: var(--on-dark); font-size: 0.875rem; font-weight: 600; }
.work-photo .work-tag-light { background: var(--off-white); color: var(--ink); border: 1px solid var(--ink); }
@media (max-width: 53.125rem) { .work-groups { grid-template-columns: minmax(0, 1fr); } .work-group:first-child { grid-column: auto; } }
@media (max-width: 37.5rem) { .work-pair { grid-template-columns: minmax(0, 1fr); } .hero-figure.is-project { aspect-ratio: 4 / 3; } }
@media (max-width: 37.5rem) { .brand-sub-extra { display: none; } }
.cards-note { grid-column: 1 / -1; color: var(--ink-2); font-size: var(--t-small); }
.areas-main { font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem); line-height: 1.4; }
.lede-contact { margin-top: 0.75rem; font-size: var(--t-lede); font-weight: 600; color: var(--ink); }

/* Revision 3 mobile corrections */
/* The number stays on one line at normal phone sizes (checked at 320 and 390 px). If text is enlarged until it
   cannot fit, it breaks only between digit groups instead of pushing the page sideways. */
.contact-phone { flex-wrap: wrap; column-gap: 0.28em; max-width: 100%; }
.num-group { white-space: nowrap; }
@media (max-width: 22.5rem) { .contact-phone { font-size: 1.875rem; } }
.button-call { flex-wrap: wrap; row-gap: 0.1rem; }
.brand { min-width: 0; }
.brand-name { white-space: normal !important; overflow-wrap: anywhere; }
.contact-copy > * { max-width: 100%; }
.hero-actions, .hero .lede { max-width: min(33rem, 100%); }
.hero h1 { max-width: min(40.625rem, 100%); }
.hero-hint, .wa-help, .lede-contact { max-width: min(33rem, 100%); }
.contact-meta a { overflow-wrap: anywhere; }
/* Gallery: every group full width; pairs side by side; a single photo takes one pair-cell. */
.work-groups { grid-template-columns: minmax(0, 1fr); }
.work-group:first-child { grid-column: auto; }
/* Only affects text enlarged far beyond normal: a word wider than the screen breaks instead of scrolling sideways. */
h1, h2, h3 { overflow-wrap: anywhere; hyphens: auto; }
.button { max-width: 100%; overflow-wrap: anywhere; }
@media (max-width: 37.5rem) { .brand { flex: 0 1 auto; } .brand-copy { min-width: 0; } }
.footer-brand { min-width: 0; } .footer-brand p { min-width: 0; overflow-wrap: anywhere; }
/* Large text on small phones: keep side margins fixed so enlarged text gets the full width, and when a column is
   narrow relative to its text size, drop the decorative WhatsApp icon and let headings grow a little less. */
@media (max-width: 37.5rem) { :root { --gutter: 21px; } .form { padding: 1.25rem 16px; } .contact-choice { padding-inline: 12px; } }
.hero-copy, .contact-copy, .form, .faq { container-type: inline-size; }
@container (max-width: 17em) {
  .button-wa::before { display: none; }
  .button { padding-inline: 0.6rem; }
  h1 { font-size: 1.4em; }
  h2, .contact-phone { font-size: 1.35em; }
}
.section-head > div, .card, .work-group, .about-copy, .areas-box, .steps, .faq-grid > div:first-child { container-type: inline-size; }
@container (max-width: 17em) {
  .hero h1 { font-size: 1.4em; }
  .section-head h2, .card h3, .card-lead h3, .work-group h3, .about-copy h2, .areas-box h3, .step h3, .faq-grid h2 { font-size: 1.3em; }
}
@media (max-width: 37.5rem) { .card, .work-group, .areas-box { padding: 20px; } }
@container (max-width: 17em) { .card:not(.card-lead) h3 { font-size: 1.3em; } }
@container (max-width: 12em) { .card:not(.card-lead) h3 { font-size: 1.15em; } }
@container (max-width: 17em) { .contact-phone::after { display: none; } }
.button-detail { white-space: nowrap; }
/* Very large text: keep the sticky header to one row (logo + Menu) so it does not take over the screen. */
.header-inner { container-type: inline-size; container-name: header; }
@container header (max-width: 15em) { .brand-copy { display: none; } .menu-button { margin-left: auto; } }
/* When focus moves to a field (e.g. after a validation error), keep its label visible below the sticky header. */
.field input, .field textarea { scroll-margin-top: calc(var(--header-h) + 2.75rem); }
/* Founder-selected photos keep their own proportions (no 4:3 crop). */
.work-photo.is-natural img { aspect-ratio: auto; height: auto; object-fit: initial; }
.work-pair { align-items: start; }
/* AI-image disclosure (founder-selected images, 27 Oct). Visible on every AI image and repeated in text under each group. */
.work-photo figcaption { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.ai-tag { display: inline-block; padding: 0.25rem 0.6rem; background: var(--off-white); color: var(--ink); border: 1px solid var(--ink); font-size: 0.875rem; font-weight: 600; }
.ai-note { font-size: var(--t-small); color: var(--ink-2); }
/* Individual images: centred cards sized to the photo, no large empty area beside a portrait image. */
.work-singles { display: flex; flex-wrap: wrap; justify-content: center; align-items: start; gap: clamp(1.5rem, 3vw, 2.25rem); }
.work-single-wide { flex: 1 1 26rem; max-width: 46rem; }
.work-single-narrow { flex: 0 1 26rem; max-width: 26rem; }
.work-single-wide .work-photo, .work-single-narrow .work-photo { width: 100%; }
@media (max-width: 37.5rem) { .work-single-wide, .work-single-narrow { flex: 1 1 100%; max-width: none; } }
