/* ==========================================================================
   Udaipur Automation Company — site styles
   Palette: marble (ground), pichola (deep lake teal), bronze (panel finish)
   Type: Cormorant Garamond (display), Manrope (text & UI)
   ========================================================================== */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-var.woff") format("woff");
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-var.woff") format("woff");
  font-weight: 200 800; font-style: normal; font-display: swap;
}

:root {
  --marble: #EDEDE9;
  --paper: #F7F7F4;
  --ink: #1E2326;
  --stone: #5C6461;
  --line: #CDD1CB;
  --pichola: #163331;
  --pichola-2: #1F4441;
  --pichola-ink: #DCE5E1;
  --bronze: #8C6E45;
  --bronze-text: #74592F;
  --bronze-soft: #C9B48F;

  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.7rem, 1.35rem + 1.1vw, 2.125rem);
  --step-3: clamp(2.1rem, 1.55rem + 2.1vw, 2.95rem);
  --step-4: clamp(2.7rem, 1.8rem + 3.6vw, 4.25rem);
  --step-5: clamp(3.1rem, 1.8rem + 5.4vw, 5.75rem);

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --section: clamp(4.5rem, 3rem + 6vw, 9rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--marble);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

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

/* ---------- Type ---------- */
.display {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.02;
}
.h1 { font-size: var(--step-5); }
.h2 { font-size: var(--step-4); line-height: 1.06; }
.h3 { font-size: var(--step-3); line-height: 1.1; }
.h4 { font-family: var(--serif); font-size: var(--step-2); line-height: 1.2; font-weight: 500; letter-spacing: -0.01em; }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--stone); max-width: 36em; }
.muted { color: var(--stone); }
.small { font-size: var(--step--1); }
.prose p + p { margin-top: 1em; }
.prose { max-width: 38em; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--step--1); color: var(--bronze-text); font-weight: 500;
  margin-bottom: 1.25rem;
}
.kicker::before { content: ""; width: 22px; height: 1px; background: currentColor; }

/* ---------- Links & buttons ---------- */
.link {
  text-decoration: none; font-weight: 500;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 2px; transition: background-size .35s var(--ease), color .2s;
}
.link:hover { background-size: 0 1px; background-position: 100% 100%; }
.link--bronze { color: var(--bronze-text); }

.btn {
  --bg: var(--ink); --fg: var(--paper);
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 0 26px;
  background: var(--bg); color: var(--fg);
  border: 1px solid var(--bg); border-radius: 999px;
  font-weight: 500; font-size: 1rem; text-decoration: none; cursor: pointer;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .3s var(--ease), border-color .3s;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--bronze); transform: translateY(101%);
  transition: transform .4s var(--ease);
}
.btn:hover::after, .btn:focus-visible::after { transform: none; }
.btn:hover { border-color: var(--bronze); }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { color: var(--paper); }
.btn--light { --bg: var(--paper); --fg: var(--pichola); }
.btn--light:hover { color: var(--paper); }
.btn--line-light { --bg: transparent; --fg: var(--paper); border-color: rgba(255,255,255,.45); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Icons ---------- */
.ico { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(237,237,233,.97);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name b { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; letter-spacing: 0; }
.brand-name span { font-size: .72rem; letter-spacing: .04em; color: var(--stone); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > ul { display: flex; list-style: none; gap: 2px; }
.nav a.nav-link, .nav button.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: 999px; border: 0; background: none;
  text-decoration: none; font-size: .95rem; cursor: pointer; color: var(--ink);
  transition: background-color .2s;
}
.nav .nav-link:hover, .nav .nav-link[aria-expanded="true"] { background: rgba(30,35,38,.06); }
.nav .nav-link[aria-current="page"] { box-shadow: inset 0 -1px 0 var(--bronze); border-radius: 0; }
.nav .chev { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.nav .nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }

.has-menu { position: relative; }
.menu {
  position: absolute; top: calc(100% + 12px); left: 50%;
  width: 300px; transform: translate(-50%, 6px);
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 8px; display: grid; gap: 0;
  box-shadow: 0 24px 48px -24px rgba(22,51,49,.28);
  opacity: 0; visibility: hidden; transition: opacity .2s, transform .25s var(--ease), visibility 0s .25s;
}
.menu.is-open { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .2s, transform .25s var(--ease); }
.menu a { display: block; padding: 10px 14px; border-radius: 8px; text-decoration: none; font-size: .95rem; transition: background-color .2s, color .2s; }
.menu a:hover, .menu a:focus-visible { background: var(--marble); color: var(--bronze-text); }
.menu .menu-all { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; border-radius: 0 0 8px 8px; font-weight: 600; }

.header-cta { display: flex; align-items: center; gap: 16px; }
.header-phone { text-decoration: none; font-size: .95rem; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; }
.header-phone .ico { width: 18px; height: 18px; color: var(--bronze); }
.header-cta .btn { min-height: 44px; padding: 0 20px; font-size: .95rem; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--paper); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative;
  transition: transform .3s var(--ease), background-color .2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  background: var(--pichola); color: var(--paper);
  overflow-y: auto; padding: 24px var(--gutter) 40px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s;
}
.drawer.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .3s var(--ease); }
.drawer ul { list-style: none; }
.drawer > nav > ul > li { border-bottom: 1px solid rgba(255,255,255,.14); }
.drawer .d-link { display: block; padding: 16px 0; font-family: var(--serif); font-size: 1.75rem; text-decoration: none; }
.drawer .d-sub { padding: 0 0 16px; display: grid; gap: 2px; }
.drawer .d-sub a { display: block; padding: 8px 0; text-decoration: none; color: var(--pichola-ink); }
.drawer .d-foot { margin-top: 32px; display: grid; gap: 12px; }
.drawer .d-foot p { color: var(--pichola-ink); font-size: .95rem; }
body.drawer-open { overflow: hidden; }

/* ---------- Generic sections ---------- */
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .6); }
.section--paper { background: var(--paper); }
.section--dark { background: var(--pichola); color: var(--paper); }
.section--dark .muted, .section--dark .lede { color: var(--pichola-ink); }
.section--dark .kicker { color: var(--bronze-soft); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

.sec-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px var(--gutter); margin-bottom: clamp(2.5rem, 2rem + 2vw, 4.5rem); align-items: end; }
.sec-head > :first-child { grid-column: 1 / span 7; }
.sec-head > :last-child:not(:first-child) { grid-column: 8 / -1; }

/* Image treatment: soft square corners, slow zoom on hover-able links */
.frame { position: relative; overflow: hidden; border-radius: 4px; background: #d9dbd6; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--tall { aspect-ratio: 4 / 5; }
.frame--wide { aspect-ratio: 3 / 2; }
.frame--pano { aspect-ratio: 16 / 9; }
.frame--sq { aspect-ratio: 1; }
/* No image effects: images show as soon as they load */


/* ---------- Intro statement ---------- */
.statement { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); }
.statement > .kicker { grid-column: 1 / span 3; margin-top: .6rem; }
.statement > div { grid-column: 4 / -1; }
.statement p.display { font-size: var(--step-3); line-height: 1.18; max-width: 22em; }
.facts { margin-top: 3rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); border-top: 1px solid var(--line); padding-top: 1.75rem; }
.facts dt { font-weight: 500; margin-bottom: .4rem; }
.facts dd { margin: 0; color: var(--stone); font-size: .97rem; }

/* ---------- Finishes strip ---------- */
.finishes { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: start; }
.finishes-copy { grid-column: 1 / span 4; position: sticky; top: calc(var(--header-h) + 32px); }
.finishes-copy .lede { margin: 1.25rem 0 2rem; }
.finishes-list { grid-column: 6 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.finishes-list figure { margin: 0; }
.finishes-list figure:nth-child(3n+2) { margin-top: 56px; }
.finishes-list figcaption { margin-top: 10px; font-size: .88rem; color: var(--stone); line-height: 1.4; }
.finishes-list figcaption b { display: block; color: var(--ink); font-weight: 500; }
.swatches { display: grid; gap: 18px; margin-bottom: 2rem; }
.swatch-group h3 { font-size: .9rem; font-weight: 500; margin-bottom: 8px; }
.swatch-row { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.swatch-row li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; background: var(--paper); }
.swatch-row i { width: 20px; height: 20px; border-radius: 50%; display: block; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }

/* ---------- Control modes (dark) ---------- */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.16); }
.mode { padding: 32px 28px 36px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.mode:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid rgba(255,255,255,.16); }
.mode .ico { width: 30px; height: 30px; color: var(--bronze-soft); margin-bottom: 22px; stroke-width: 1.25; }
.mode h3 { font-family: var(--serif); font-size: var(--step-1); margin-bottom: .5rem; }
.mode p { color: var(--pichola-ink); font-size: .97rem; max-width: 30em; }

/* ---------- Spaces mosaic ---------- */
.spaces { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); }
.space { text-decoration: none; display: block; }
.space h3 { font-family: var(--serif); font-size: var(--step-2); margin: 18px 0 6px; }
.space p { color: var(--stone); font-size: .97rem; max-width: 30em; }
.spaces .space:nth-child(1) { grid-column: 1 / span 7; }
.spaces .space:nth-child(2) { grid-column: 9 / -1; margin-top: 18%; }
.spaces .space:nth-child(3) { grid-column: 2 / span 5; }
.spaces .space:nth-child(4) { grid-column: 8 / -1; margin-top: 10%; }

/* ---------- Reasons ---------- */
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); counter-reset: none; }
.reason { border-top: 2px solid var(--ink); padding-top: 22px; }
.reason h3 { font-family: var(--serif); font-size: var(--step-2); margin-bottom: .6rem; line-height: 1.15; }
.reason p { color: var(--stone); }

/* ---------- Contact band ---------- */
.band { background: var(--pichola); color: var(--paper); position: relative; overflow: hidden; }
.band .wrap { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); padding-block: clamp(4rem, 3rem + 4vw, 7rem); align-items: end; }
.band h2 { grid-column: 1 / span 7; }
.band .band-side { grid-column: 9 / -1; display: grid; gap: 22px; }
.band address { font-style: normal; color: var(--pichola-ink); line-height: 1.55; }
.band .big-phone { font-family: var(--serif); font-size: var(--step-3); text-decoration: none; letter-spacing: -0.01em; display: inline-block; }
.band .big-phone:hover { color: var(--bronze-soft); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-top: clamp(2.5rem, 1.5rem + 3vw, 5rem); padding-bottom: clamp(3rem, 2rem + 3vw, 5rem); }
.crumbs { font-size: .85rem; color: var(--stone); margin-bottom: 2rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.page-hero-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: end; }
.page-hero-grid > .ph-title { grid-column: 1 / span 7; }
.page-hero-grid > .ph-side { grid-column: 9 / -1; }
.page-hero .lede { margin-top: 1.5rem; }
.ph-image { margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); }
.ph-image .frame { aspect-ratio: 21 / 9; }

/* ---------- Service detail ---------- */
.svc-intro { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); }
.svc-intro .si-copy { grid-column: 1 / span 6; }
.svc-intro .si-list { grid-column: 8 / -1; }
.checklist { list-style: none; border-top: 1px solid var(--line); }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.checklist .ico { width: 18px; height: 18px; color: var(--bronze); margin-top: 4px; }
.section--dark .checklist, .section--dark .checklist li { border-color: rgba(255,255,255,.16); }
.section--dark .checklist .ico { color: var(--bronze-soft); }

.product { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: center; }
.product + .product { margin-top: clamp(4rem, 3rem + 4vw, 7.5rem); }
.product .p-media { grid-column: 1 / span 6; }
.product .p-body { grid-column: 8 / -1; }
.product.is-flip .p-media { grid-column: 7 / -1; order: 2; }
.product.is-flip .p-body { grid-column: 1 / span 5; order: 1; }
.product .p-body h3 { margin-bottom: 1rem; }
.product .p-body > p { color: var(--stone); margin-bottom: 1.5rem; max-width: 34em; }
.p-cutout { background: var(--paper); border-radius: 4px; display: grid; place-items: center; padding: 8%; aspect-ratio: 4/5; }
.p-cutout img { max-height: 100%; width: auto; object-fit: contain; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-bottom: 1.5rem; }
.tags li { font-size: .85rem; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }

.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 var(--gutter); }
.feature-grid > div { padding: 22px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 36px 1fr; gap: 4px 16px; }
.feature-grid .ico { grid-row: span 2; color: var(--bronze); margin-top: 2px; }
.feature-grid h3, .feature-grid h4 { font-family: var(--sans); font-weight: 500; font-size: 1.02rem; line-height: 1.4; }
.feature-grid p { color: var(--stone); font-size: .95rem; }
.section--dark .feature-grid > div { border-color: rgba(255,255,255,.16); }
.section--dark .feature-grid p { color: var(--pichola-ink); }
.section--dark .feature-grid .ico { color: var(--bronze-soft); }

/* Lock comparison */
.locks { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.lock { border-top: 2px solid var(--ink); padding-top: 22px; display: flex; flex-direction: column; }
.lock .lock-img { background: var(--paper); border-radius: 4px; height: 280px; display: grid; place-items: center; margin-bottom: 22px; padding: 20px; }
.lock .lock-img img { max-height: 100%; width: auto; }
.lock h3 { font-family: var(--serif); font-size: var(--step-2); margin-bottom: .4rem; }
.lock .access { font-size: .9rem; color: var(--bronze-text); margin-bottom: 1rem; font-weight: 500; }
.lock p { color: var(--stone); margin-bottom: 1rem; }
.lock ul { list-style: none; display: grid; gap: 6px; font-size: .93rem; }
.lock ul li { padding-left: 16px; position: relative; }
.lock ul li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 1px; background: var(--bronze); }

/* Spec table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
table.spec { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 520px; }
.spec caption { text-align: left; padding: 16px 18px; font-size: .9rem; color: var(--stone); caption-side: bottom; border-top: 1px solid var(--line); }
.spec th, .spec td { text-align: left; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.spec thead th { font-weight: 500; background: var(--pichola); color: var(--paper); border-bottom: 0; }
.spec tbody tr:hover { background: var(--marble); }
.spec td:first-child, .spec td:nth-child(2) { font-variant-numeric: tabular-nums; letter-spacing: .02em; }

/* Related */
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.related a { text-decoration: none; display: block; }
.related h3 { font-family: var(--serif); font-size: var(--step-1); margin-top: 14px; }
.related p { color: var(--stone); font-size: .92rem; margin-top: 4px; }

/* Services overview editorial rows */
.ov { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: center; padding-block: clamp(2.5rem, 2rem + 2vw, 4rem); border-top: 1px solid var(--line); }
.ov .ov-media { grid-column: 1 / span 5; }
.ov .ov-body { grid-column: 7 / -1; }
.ov:nth-child(even) .ov-media { grid-column: 8 / -1; order: 2; }
.ov:nth-child(even) .ov-body { grid-column: 1 / span 6; order: 1; }
.ov h2 { font-family: var(--serif); font-size: var(--step-3); line-height: 1.1; letter-spacing: -0.015em; margin-bottom: 1rem; }
.ov h2 a { text-decoration: none; }
.ov p { color: var(--stone); max-width: 34em; margin-bottom: 1.25rem; }

/* Products catalogue */
.cat-group { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); padding-block: clamp(2.5rem, 2rem + 2vw, 4rem); border-top: 1px solid var(--line); }
.cat-group > header { grid-column: 1 / span 4; }
.cat-group > header h2 { font-family: var(--serif); font-size: var(--step-3); line-height: 1.1; margin-bottom: .75rem; }
.cat-group > header p { color: var(--stone); font-size: .97rem; margin-bottom: 1rem; }
.cat-items { grid-column: 6 / -1; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--gutter); }
.cat-items li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.cat-items li:nth-child(-n+2) { border-top: 1px solid var(--line); }
.cat-items h3 { font-weight: 500; font-size: 1.05rem; margin-bottom: 4px; }
.cat-items p { color: var(--stone); font-size: .93rem; }

/* Gallery (real panels) */
.gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.gallery figure { margin: 0; }
.gallery figcaption { font-size: .82rem; color: var(--stone); margin-top: 8px; line-height: 1.35; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: start; }
.contact-form { grid-column: 1 / span 7; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: clamp(22px, 3vw, 44px); }
.contact-info { grid-column: 9 / -1; display: grid; gap: 32px; }
.contact-info h2 { font-size: .95rem; font-weight: 500; margin-bottom: 8px; color: var(--stone); font-family: var(--sans); }
.contact-info address { font-style: normal; font-size: 1.1rem; line-height: 1.55; }
.contact-info .big { font-family: var(--serif); font-size: var(--step-3); text-decoration: none; letter-spacing: -0.01em; }
.map { aspect-ratio: 4/3; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); background: #dfe1dc; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.6) contrast(1.05); }

.field { display: grid; gap: 8px; margin-bottom: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.field label, .field legend { font-size: .92rem; font-weight: 500; }
.field .hint { font-size: .82rem; color: var(--stone); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  background: var(--marble); border: 1px solid var(--line); border-radius: 6px;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #aeb3ac; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--pichola); background: #fff; box-shadow: 0 0 0 3px rgba(22,51,49,.12); }
.field [aria-invalid="true"] { border-color: #A23B2A; }
.field .error { color: #A23B2A; font-size: .85rem; min-height: 1em; }
fieldset.field { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-block; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; cursor: pointer; background: var(--marble); transition: background-color .2s, color .2s, border-color .2s; }
.chip input:checked + span { background: var(--pichola); color: var(--paper); border-color: var(--pichola); }
.chip input:focus-visible + span { outline: 2px solid var(--bronze); outline-offset: 2px; }
.form-note { font-size: .85rem; color: var(--stone); margin-top: 14px; }
.form-status { margin-top: 14px; font-size: .92rem; color: var(--pichola); min-height: 1.2em; }

/* ---------- Footer ---------- */
.site-footer { background: #10201F; color: var(--pichola-ink); padding-top: clamp(3.5rem, 3rem + 3vw, 6rem); font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--gutter); padding-bottom: 3rem; }
.site-footer .brand-name b { color: var(--paper); }
.site-footer .brand-name span { color: #9fb2ad; }
.site-footer h2 { font-family: var(--sans); font-size: .85rem; font-weight: 500; color: #9fb2ad; margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
.site-footer address { font-style: normal; line-height: 1.6; margin-top: 18px; max-width: 22em; }
.foot-base { border-top: 1px solid rgba(255,255,255,.1); padding-block: 22px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .85rem; color: #8ea39e; }

/* ---------- 404 ---------- */
.nf { min-height: 60vh; display: grid; align-content: center; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .header-phone { display: none; }
}
@media (max-width: 1024px) {
  .nav, .header-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .finishes-list { grid-template-columns: repeat(2, 1fr); }
  .finishes-list figure:nth-child(3n+2) { margin-top: 0; }
  .finishes-list figure:nth-child(even) { margin-top: 40px; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .statement, .sec-head, .finishes, .spaces, .band .wrap, .page-hero-grid, .svc-intro, .product, .ov, .cat-group, .contact-grid { grid-template-columns: 1fr; }
  .statement > *, .sec-head > *, .finishes > *, .spaces > *, .band .wrap > *, .page-hero-grid > *, .svc-intro > *, .product > *, .ov > *, .cat-group > *, .contact-grid > * { grid-column: 1 / -1 !important; order: initial !important; }
  .sec-head > :last-child:not(:first-child) { grid-column: 1 / -1; }
  .finishes-copy { position: static; }
  .spaces .space { margin-top: 0 !important; }
  .spaces { gap: 48px; }
  .modes { grid-template-columns: 1fr 1fr; }
  .mode:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .mode:nth-child(even) { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.16); }
  .reasons, .locks, .related { grid-template-columns: 1fr; gap: 40px; }
  .facts { grid-template-columns: 1fr; gap: 18px; }
  .ph-image .frame { aspect-ratio: 4 / 3; }
  .cat-items { grid-template-columns: 1fr; }
  .cat-items li:nth-child(2) { border-top: 0; }
  .contact-info { margin-top: 24px; }
}
@media (max-width: 640px) {
  .brand-name b { font-size: 1.12rem; }
  .brand-name span { font-size: .66rem; }
  .brand-mark { width: 30px; height: 30px; }
  .modes { grid-template-columns: 1fr; }
  .mode, .mode:nth-child(even) { padding: 26px 0; border-left: 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .finishes-list { gap: 12px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .btn-row .btn { flex: 1 1 auto; justify-content: center; }
  .lock .lock-img { height: 220px; }
}

/* Contact band: muted text must stay readable on the dark ground */
.band .muted { color: var(--pichola-ink); }
.svc-intro--split .si-copy { grid-column: 1 / span 5; }
.svc-intro--split .si-list { grid-column: 7 / -1; }
.lede-prose { font-size: var(--step-1); line-height: 1.55; color: var(--ink); max-width: 34em; }
.lede-prose p + p { color: var(--stone); font-size: var(--step-0); line-height: 1.65; }

/* Lock imagery sits on white source photos; keep it contained */
.lock .lock-img { background: #fff; height: 300px; overflow: hidden; border: 1px solid var(--line); }
.lock .lock-img img { height: 100%; width: auto; max-width: 100%; object-fit: contain; }

/* Product rows: give the text column more room for feature pairs */
.product .p-body { grid-column: 7 / -1; padding-left: clamp(0px, 3vw, 56px); }
.product.is-flip .p-body { grid-column: 1 / span 6; padding-left: 0; padding-right: clamp(0px, 3vw, 56px); }
@media (max-width: 900px) { .product .p-body, .product.is-flip .p-body { padding: 0; } }
@media (max-width: 640px) { .lock .lock-img { height: 240px; } }
.checklist .link { justify-self: start; }

/* Cormorant Garamond reads best at medium weight; keep serif headings at 500 */
.mode h3, .space h3, .reason h3, .lock h3, .related h3, .ov h2, .cat-group > header h2,
.drawer .d-link, .band .big-phone, .contact-info .big, .finishes-copy h2 { font-weight: 500; }
body { line-height: 1.65; }
.brand-name span { font-weight: 500; }
.foot-base .credit a { color: var(--bronze-soft); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(201,180,143,.4); }
.foot-base .credit a:hover { color: var(--paper); text-decoration-color: currentColor; }

/* ---------- Home slider ---------- */
.slider { position: relative; height: clamp(600px, 88vh, 880px); color: var(--paper); overflow: hidden; background: var(--pichola); }
.slides, .slide { position: absolute; inset: 0; }
.slide { display: flex; align-items: flex-end; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s .6s; }
.slide.is-active { opacity: 1; visibility: visible; z-index: 1; transition: opacity .6s ease, visibility 0s; }
.banner-media { position: absolute; inset: 0; }
.banner-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.banner-media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(16,32,31,.82) 0%, rgba(16,32,31,.55) 42%, rgba(16,32,31,.08) 75%),
              linear-gradient(0deg, rgba(16,32,31,.6) 0%, rgba(16,32,31,0) 45%); }
.banner-inner { position: relative; padding-top: 4rem; padding-bottom: clamp(7.5rem, 6rem + 4vw, 9.5rem); }
.slider h1, .slider h2 { max-width: 11em; margin-bottom: 1.5rem; }
.slider .lede { color: rgba(247,247,244,.86); max-width: 32em; margin-bottom: 2.25rem; }

.slider-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 22px 28px; }
.slider-bar::before { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); top: 0; height: 1px; background: rgba(247,247,244,.18); }
.banner-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: .92rem; color: rgba(247,247,244,.82); }
.banner-meta .ico { width: 18px; height: 18px; color: var(--bronze-soft); }
.banner-meta .sep { width: 1px; height: 14px; background: rgba(247,247,244,.35); }
.banner-meta a { text-decoration: none; }
.banner-meta a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
.slider-controls { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.slider-dots { display: flex; gap: 8px; margin-right: 10px; }
.slider-dot { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.slider-dot::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: rgba(247,247,244,.35); transition: background-color .3s; }
.slider-dot[aria-current="true"]::before { background: var(--bronze-soft); }
.slider-dot:hover::before { background: rgba(247,247,244,.75); }
.slider-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(247,247,244,.4); background: transparent; color: var(--paper); display: grid; place-items: center; cursor: pointer; transition: background-color .25s, border-color .25s, color .25s; }
.slider-btn .ico { width: 18px; height: 18px; }
.slider-btn:hover { background: var(--paper); color: var(--pichola); border-color: var(--paper); }
@media (prefers-reduced-motion: reduce) {
  .slide, .slide.is-active { transition: none; }
}

/* ---------- What we automate: photo grid ---------- */
.svc-grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(2rem, 1.5rem + 1.5vw, 3rem) var(--gutter); }
.svc-card { display: block; text-decoration: none; height: 100%; }
.frame--card { aspect-ratio: 4 / 3; }
.svc-card h3 { font-family: var(--serif); font-weight: 500; font-size: var(--step-1); line-height: 1.2; margin: 18px 0 8px; transition: color .25s; }
.svc-card p { color: var(--stone); font-size: .93rem; line-height: 1.55; }
.svc-card:hover h3 { color: var(--bronze-text); }
@media (max-width: 1024px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .svc-grid { grid-template-columns: 1fr; }
  .slider { height: 660px; }
  .banner-media img { object-position: 70% 50%; }
  .banner-media::after { background: linear-gradient(0deg, rgba(16,32,31,.92) 0%, rgba(16,32,31,.62) 55%, rgba(16,32,31,.25) 100%); }
  .banner-meta { display: none; }
  .banner-inner { padding-bottom: 6.5rem; }
}

/* ---------- Services dropdown: two columns (Automation / Contracting) ---------- */
.menu { width: 560px; grid-template-columns: 1fr 1fr; column-gap: 8px; }
.menu-col { display: grid; align-content: start; }
.menu-col + .menu-col { border-left: 1px solid var(--line); padding-left: 8px; }
.menu-label { font-size: .78rem; font-weight: 600; color: var(--bronze-text); padding: 10px 14px 4px; letter-spacing: .02em; }
.menu .menu-all { grid-column: 1 / -1; }

/* ---------- Contracting cards (home highlight + services page) ---------- */
.con-hl { background: var(--marble); }
.con-grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.con-card { display: flex; flex-direction: column; height: 100%; text-decoration: none; overflow: hidden;
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px; position: relative;
  transition: border-color .25s, box-shadow .25s; }
.con-card:hover { border-color: #b9bdb6; box-shadow: 0 18px 36px -24px rgba(22,51,49,.35); }
.con-img { aspect-ratio: 3 / 2; border-radius: 0; }
.con-body { display: flex; flex-direction: column; flex: 1; padding: 0 26px 26px; }
.con-body .con-ico { margin-top: -26px; position: relative; z-index: 1; border: 3px solid var(--paper); }
.con-ico { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--pichola); color: var(--bronze-soft); flex: none; }
.con-ico .ico { width: 26px; height: 26px; stroke-width: 1.4; }
.con-ico--lg { width: 64px; height: 64px; margin-bottom: 1.5rem; }
.con-ico--lg .ico { width: 32px; height: 32px; }
.con-card h3 { font-family: var(--serif); font-weight: 500; font-size: var(--step-2); line-height: 1.15; margin: 16px 0 10px; }
.con-card p { color: var(--stone); font-size: .95rem; line-height: 1.6; margin-bottom: 22px; }
.con-more { margin-top: auto; font-size: .9rem; font-weight: 600; color: var(--bronze-text); }
.con-card:hover .con-more { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Contracting detail pages ---------- */
.scope-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gutter); border-top: 0; }
.scope-list li { font-size: 1.05rem; }
.scope-list li:nth-child(-n+2) { border-top: 1px solid rgba(255,255,255,.16); }
.related .rel-con { display: block; padding: 26px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); height: 100%; }
.related .rel-con h3 { margin-top: 18px; }

/* Footer now has an extra Contracting column */
.foot-grid { grid-template-columns: 1.3fr 1fr 1fr .9fr .9fr; }

@media (max-width: 1100px) { .con-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 1024px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .con-grid, .scope-list { grid-template-columns: 1fr; }
  .scope-list li:nth-child(2) { border-top: 0; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-grid > div { grid-column: auto !important; }
}

/* ---------- Our Clients (home) ---------- */
.clients { background: var(--marble); border-top: 1px solid var(--line); }
.client-grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.client { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-height: 128px; padding: 24px 22px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.client-no { font-size: .75rem; font-weight: 600; letter-spacing: .08em; color: var(--bronze-text); margin-bottom: 6px; }
.client b { font-family: var(--serif); font-weight: 500; font-size: var(--step-1); line-height: 1.25; color: var(--ink); }
.client span:not(.client-no) { font-size: .88rem; color: var(--stone); }
@media (max-width: 1024px) { .client-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .client-grid { grid-template-columns: repeat(2, 1fr); } .client { min-height: 104px; padding: 18px 16px; } }

/* Two phone numbers in the contact band */
.band .phones { display: grid; gap: 4px; }

/* Footer social links */
.site-footer ul.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(220,229,225,.3); color: var(--pichola-ink); transition: background-color .2s, color .2s, border-color .2s; }
.social a:hover { background: var(--bronze-soft); border-color: var(--bronze-soft); color: #10201F; text-decoration: none; }
.social .ico { width: 19px; height: 19px; }
