/* M.A Construction — Gardens & Landscapes
   Dark, cinematic theme: Apple-style glass, type and spacing; Richard Mille-style
   technical mono labels, hairlines and red accent. Plain CSS, no build step. */

/* Display weights stop at 700, so the markup's inline 800/900 weights render as a crisp 700. */
@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root{
  --accent: #e8371c;
  --accent-dark: #c92c14;
  --ink: #f5f5f7;
  --ink-soft: #c7c7cc;
  --ink-mute: #8e8e93;
  --bg: #050505;
  --card: rgba(22,22,24,.72);
  --card-hover: rgba(30,30,33,.82);
  --card-active: rgba(36,36,40,.9);
  --veil: linear-gradient(180deg, rgba(5,5,5,.55) 0%, rgba(5,5,5,.78) 60%, rgba(5,5,5,.9) 100%);
  --img-filter: saturate(.9) contrast(1.05);
  --line: rgba(255,255,255,.12);
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 22px;
}

*{ box-sizing:border-box; }
html{ background:var(--bg); scroll-behavior:smooth; color-scheme:dark; }
body{
  margin:0; font-family:"Inter Tight", -apple-system, "SF Pro Display", system-ui, sans-serif;
  color:var(--ink); font-size:17px; line-height:1.5; letter-spacing:-0.01em;
  -webkit-font-smoothing:antialiased;
}
a{ color:var(--ink); text-decoration:none; transition:color .2s ease; }
a:hover{ color:var(--accent); }
::selection{ background:var(--accent); color:#fff; }
:focus-visible{ outline:2px solid var(--accent); outline-offset:3px; }
summary::-webkit-details-marker{ display:none; }
img{ max-width:100%; display:block; }
button{ font-family:inherit; }
h1, h2{ text-wrap:balance; }

/* Technical labels (kickers, step numbers, field labels) — the inline uppercase labels in app.js included. */
[style*="text-transform:uppercase"], .section-head .kicker, .step-mark-label, .brand-sub, .field span.label, .site-footer h4{
  font-family:var(--mono); font-weight:500 !important; letter-spacing:.18em !important;
}

/* — background video layer — */
#bg-layer{ position:fixed; inset:0; z-index:-2; overflow:hidden; background:#000; pointer-events:none; }
#bg-layer img, #bg-layer video{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; filter:var(--img-filter); }
#bg-veil{ position:fixed; inset:0; z-index:-1; background:var(--veil); pointer-events:none; }

/* — scroll progress bar — */
#scroll-bar-track{ position:fixed; left:0; right:0; bottom:0; z-index:30; height:2px; background:rgba(255,255,255,.08); pointer-events:none; }
#scroll-bar{ height:100%; width:0%; background:var(--accent); box-shadow:0 0 12px var(--accent); }

/* — header: slim translucent bar — */
.site-header{
  position:sticky; top:0; z-index:40;
  background:rgba(10,10,12,.62); border-bottom:1px solid var(--line);
  backdrop-filter:saturate(180%) blur(20px); -webkit-backdrop-filter:saturate(180%) blur(20px);
}
.site-header .inner{ max-width:1280px; margin:0 auto; padding:10px 28px; display:flex; align-items:center; gap:28px; flex-wrap:wrap; }
.brand{ display:flex; align-items:center; gap:12px; margin-right:auto; }
.brand img{ height:38px; width:auto; background:#fff; padding:3px; border-radius:8px; }
.brand-name{ font-weight:600; font-size:15px; letter-spacing:-0.01em; line-height:1.1; }
.brand-sub{ display:block; font-size:9px; color:var(--ink-mute); margin-top:4px; text-transform:uppercase; }
.main-nav{ display:flex; align-items:center; gap:24px; flex-wrap:wrap; }
.main-nav a{ position:relative; font-size:13px; font-weight:500; color:var(--ink-soft); padding:4px 0; }
.main-nav a:hover, .main-nav a.active{ color:var(--ink); }
.main-nav a.active::after{ content:""; position:absolute; left:0; right:0; bottom:-4px; height:1px; background:var(--accent); }

/* — buttons: Apple pills — */
.btn{
  display:inline-flex; align-items:center; gap:8px; font-weight:600; font-size:15px; padding:13px 24px; min-height:48px;
  border:0; cursor:pointer; border-radius:980px; font-family:inherit; letter-spacing:-0.01em; transition:all .2s ease;
}
.btn:hover{ transform:translateY(-2px) scale(1.03); box-shadow:0 12px 30px rgba(0,0,0,.45); }
.btn:active{ transform:scale(.97); }
/* .btn.x:hover outranks the global a:hover colour, which would make the text match the button fill. */
.btn-accent{ background:var(--accent); color:#fff; }
.btn.btn-accent:hover{ background:var(--accent-dark); color:#fff; box-shadow:0 12px 30px rgba(232,55,28,.4); }
.btn-outline{ border:1px solid rgba(255,255,255,.35); color:var(--ink); background:rgba(255,255,255,.04); }
.btn.btn-outline:hover{ background:var(--ink); border-color:var(--ink); color:#0a0a0a; }
.btn-sm{ padding:9px 16px; min-height:38px; font-size:13px; border-radius:980px !important; }
.btn:disabled{ opacity:.5; cursor:wait; transform:none; }

/* — glass cards with hover lift — */
.tilt-card{
  transition: transform .4s cubic-bezier(.2,.7,.3,1), background .4s ease, box-shadow .4s ease, border-color .4s ease;
  will-change: transform; background: var(--card); border:1px solid var(--line); border-radius:var(--radius);
  backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px);
}
.tilt-card:hover{ background:var(--card-hover); border-color:rgba(255,255,255,.22); transform:perspective(900px) translate3d(0,-6px,20px) rotateX(2deg); box-shadow:0 30px 60px rgba(0,0,0,.55); }
.tilt-card:active{ background:var(--card-active); transform:perspective(900px) translate3d(0,-1px,4px); }
a.tilt-card:hover{ color:var(--ink); }

/* — layout — */
.wrap{ max-width:1280px; margin:0 auto; padding:0 28px; }
.wrap-narrow{ max-width:1160px; margin:0 auto; padding:0 clamp(28px,3vw,44px); }
.section-head{ display:flex; align-items:baseline; gap:20px; flex-wrap:wrap; margin-bottom:36px; }
.section-head .kicker{ font-size:12px; color:var(--accent); }
.section-head h2{ font-size:clamp(34px,4.6vw,60px); font-weight:700; letter-spacing:-0.035em; line-height:1.02; margin:0; }
.section-head .see-all{ margin-left:auto; font-size:15px; font-weight:500; color:var(--accent); }
.section-head .see-all::after{ content:" ›"; }

.grid-auto{ display:grid; gap:16px; }
.grid-auto.cols-3{ grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr)); border-top:0 !important; }
.grid-auto.cols-320{ grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr)); border-top:0 !important; }
.grid-auto.cols-420{ grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr)); }

.card-pad{ background:var(--card); padding:clamp(28px,3.4vw,48px); border:1px solid var(--line); border-radius:var(--radius); backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px); }

/* — image tiles — */
.img-tile{ background:rgba(255,255,255,.04); overflow:hidden; border-radius:calc(var(--radius) - 6px); }
.tilt-card > .img-tile{ border-radius:var(--radius) var(--radius) 0 0; }
.img-tile img{ width:100%; height:100%; object-fit:cover; filter:var(--img-filter); transition:transform 1.2s cubic-bezier(.2,.7,.2,1); }
.img-tile:hover img, .tilt-card:hover .img-tile img{ transform:scale(1.05); }
.ratio-4-3{ aspect-ratio:4/3; } .ratio-3-2{ aspect-ratio:3/2; } .ratio-16-10{ aspect-ratio:16/10; } .ratio-4-5{ aspect-ratio:4/5; } .ratio-1-1{ aspect-ratio:1; }

/* — scroll reveal (class added by app.js) — */
.reveal{ opacity:0; }
.reveal.in{ animation:rise 1s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise{ from{ opacity:0; translate:0 48px; } to{ opacity:1; translate:0 0; } }

/* — gallery reveal-on-scroll — */
.gal-figure{ margin:0; display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr)); align-items:stretch; gap:0; border-radius:var(--radius); overflow:hidden; border:1px solid var(--line); transition:transform .4s cubic-bezier(.2,.7,.3,1), box-shadow .4s ease; will-change:transform; }
.gal-figure:hover{ transform:perspective(1100px) translate3d(0,-8px,24px) rotateX(2deg); box-shadow:0 30px 70px rgba(0,0,0,.6); }
.gal-figure .img-tile{ border-radius:0; }
.gal-figure .slide{ opacity:0; transition:opacity .8s ease, transform .9s cubic-bezier(.2,.7,.3,1); }
.gal-figure .slide-img{ transform:translate3d(-56px,0,0); }
.gal-figure .slide-text{ transform:translate3d(56px,0,0); transition-delay:.12s; background:var(--card); backdrop-filter:blur(18px); display:flex; flex-direction:column; justify-content:center; gap:14px; padding:clamp(24px,3.4vw,48px); }
.gal-figure.in-view .slide{ opacity:1; transform:translate3d(0,0,0); }
.gal-figure.flip .slide-img{ order:2; }
.gal-figure.flip .slide-text{ order:1; }

.gal-filters{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:32px; padding-bottom:24px; border-bottom:1px solid var(--line); }
.gal-filter{ border:1px solid var(--line); border-radius:980px; background:rgba(255,255,255,.04); font-size:14px; font-weight:500; padding:9px 18px; min-height:40px; cursor:pointer; color:var(--ink); transition:all .2s ease; }
.gal-filter:hover{ background:rgba(255,255,255,.12); }
.gal-filter .dot{ display:inline-block; width:6px; height:6px; border-radius:50%; background:var(--accent); margin-left:10px; vertical-align:middle; box-shadow:0 0 8px var(--accent); }

/* — footer — */
.site-footer{ margin-top:48px; border-top:1px solid var(--line); background:rgba(5,5,5,.88); backdrop-filter:blur(20px); }
.footer-grid{ max-width:1280px; margin:0 auto; padding:56px 28px; display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr)); gap:36px; }
.footer-grid h4{ font-size:11px; text-transform:uppercase; color:var(--ink-mute); margin:0 0 16px; }
.footer-grid img{ border-radius:8px; }
.footer-links{ display:grid; gap:10px; font-size:14px; }
.footer-links a{ color:var(--ink-soft); }
.footer-links a:hover{ color:var(--ink); }
.footer-bottom{ max-width:1280px; margin:0 auto; padding:0 28px 40px; }
.footer-bottom .row{ border-top:1px solid var(--line); padding-top:20px; display:flex; gap:20px; flex-wrap:wrap; align-items:center; font-size:12px; color:var(--ink-mute); }

/* — forms — */
.field{ display:grid; gap:8px; }
.field span.label{ font-size:10px; text-transform:uppercase; color:var(--ink-mute); }
.field input, .field textarea{
  width:100%; min-height:48px; padding:12px 14px; font-family:inherit; font-size:16px;
  color:var(--ink); background:rgba(255,255,255,.06); border:1px solid var(--line); border-radius:14px; transition:border-color .2s ease, background .2s ease;
}
.field input:focus, .field textarea:focus{ outline:none; border-color:var(--accent); background:rgba(255,255,255,.09); }
.field textarea{ min-height:96px; resize:vertical; }
.checkbox-pill{ display:inline-flex; align-items:center; gap:8px; border:1px solid var(--line); border-radius:980px; padding:8px 16px; font-size:14px; cursor:pointer; min-height:40px; background:rgba(255,255,255,.04); transition:background .2s ease; }
.checkbox-pill:hover{ background:rgba(255,255,255,.1); }
.checkbox-pill input{ accent-color:var(--accent); width:16px; height:16px; }

/* — quote wizard (hero) — */
.quote-card{ background:var(--card); border:1px solid var(--line); border-radius:28px; box-shadow:0 40px 80px rgba(0,0,0,.5); backdrop-filter:blur(24px); -webkit-backdrop-filter:blur(24px); }
.choice-btn{
  text-align:left; cursor:pointer; padding:12px 14px; min-height:52px; font-size:14px; font-weight:500;
  border:1px solid var(--line); border-radius:14px; background:rgba(255,255,255,.04); color:var(--ink);
  transition:transform .2s ease, background .2s ease, border-color .2s ease;
}
.choice-btn:hover{ background:rgba(255,255,255,.1); transform:translateY(-2px); }
.choice-btn.active{ border-color:var(--accent); background:rgba(232,55,28,.12); }
.choice-underline{ display:none; }
.step-track{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; }
.step-mark-bar{ height:3px; border-radius:2px; background:rgba(255,255,255,.12); transition:background .4s ease; }
.step-mark-bar.filled{ background:var(--accent); box-shadow:0 0 10px rgba(232,55,28,.6); }
.step-mark-label{ font-size:10px; color:var(--ink-mute); }
.q-error{ font-size:14px; font-weight:600; color:#ff6b55; }
#q-photo-drop{ position:relative; }
#q-photo-drop:focus-within > div{ outline:2px solid var(--accent); outline-offset:2px; }

a.choice-btn{ display:flex; align-items:center; }
a.choice-btn:hover{ color:var(--ink); border-color:var(--accent); }

/* — the 3-step quote sheet (full-screen <dialog>) — */
html:has(#quote-dialog[open]){ overflow:hidden; }
#quote-dialog{ width:100%; max-width:100%; height:100%; max-height:100%; margin:0; padding:clamp(0px,3vw,32px); border:0; background:transparent; color:var(--ink); overflow-y:auto; }
#quote-dialog[open]{ display:grid; place-items:safe center; /* safe: a sheet taller than the screen starts at the top instead of overflowing above it */ animation:q-rise .45s cubic-bezier(.2,.7,.2,1); } /* on the dialog, not .q-sheet, which is redrawn on every answer */
#quote-dialog::backdrop{ background:rgba(0,0,0,.72); backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px); }
.q-sheet{ width:min(100%,780px); display:grid; gap:18px; padding:clamp(20px,3.4vw,40px); background:rgba(20,20,22,.94); border:1px solid var(--line); border-radius:28px; box-shadow:0 50px 120px rgba(0,0,0,.7); }
.q-top{ display:flex; align-items:center; justify-content:space-between; }
.q-x{ width:36px; height:36px; border-radius:50%; border:1px solid var(--line); background:rgba(255,255,255,.06); color:var(--ink); cursor:pointer; transition:background .2s ease; }
.q-x:hover{ background:rgba(255,255,255,.16); }
/* the brief: the visitor's answers as one sentence */
.q-brief{ margin:0; font-size:clamp(15px,1.6vw,18px); line-height:1.45; color:var(--ink-soft); }
.q-brief b{ color:var(--ink); font-weight:600; border-bottom:1px solid var(--accent); }
.q-brief i{ font-style:normal; color:var(--ink-mute); border-bottom:1px dashed rgba(255,255,255,.3); }
.q-body{ display:grid; gap:16px; }
.q-body.from-right{ animation:q-right .4s cubic-bezier(.2,.7,.2,1); }
.q-body.from-left{ animation:q-left .4s cubic-bezier(.2,.7,.2,1); }
.q-sheet h2{ margin:0; font-size:clamp(26px,3.6vw,40px); font-weight:700; letter-spacing:-0.035em; line-height:1.05; }
.q-hint{ margin:-8px 0 0; font-size:14px; color:var(--ink-mute); }
.q-foot .q-hint{ margin:0; }
.q-tiles{ display:grid; grid-template-columns:repeat(auto-fill,minmax(130px,1fr)); gap:10px; }
.q-tile{ position:relative; aspect-ratio:4/3; padding:0; overflow:hidden; cursor:pointer; border:1px solid var(--line); border-radius:16px; background:rgba(255,255,255,.05); color:#fff; font-family:inherit; font-size:14px; font-weight:600; transition:transform .2s ease, border-color .2s ease; }
.q-tile img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:.55; transition:opacity .3s ease, transform .6s ease; }
.q-tile span{ position:absolute; left:12px; right:12px; bottom:10px; text-align:left; text-shadow:0 1px 8px rgba(0,0,0,.8); }
.q-tile:hover{ transform:translateY(-3px); }
.q-tile:hover img{ opacity:.8; transform:scale(1.06); }
.q-tile.on{ border-color:var(--accent); box-shadow:0 0 0 2px var(--accent), 0 10px 30px rgba(232,55,28,.35); }
.q-tile.on img{ opacity:.9; }
.q-tile.on::after{ content:"✓"; position:absolute; top:8px; right:8px; width:24px; height:24px; display:grid; place-items:center; border-radius:50%; background:var(--accent); font-size:13px; }
.q-photo{ font-size:14px; color:var(--ink-soft); cursor:pointer; padding:12px 14px; border:1px dashed var(--line); border-radius:14px; }
.q-photo:hover{ border-color:rgba(255,255,255,.4); }
.q-photo input{ position:absolute; width:1px; height:1px; opacity:0; }
.q-photo u{ color:var(--accent); }
.q-row{ display:flex; flex-wrap:wrap; gap:12px; }
.q-row > *{ flex:1 1 180px; }
.q-pills{ display:grid; grid-template-columns:repeat(auto-fill,minmax(120px,1fr)); gap:8px; }
.q-pills .choice-btn{ text-align:center; }
.q-error:empty{ display:none; }
.q-foot{ display:flex; flex-wrap:wrap; gap:10px; align-items:center; justify-content:space-between; padding-top:16px; border-top:1px solid var(--line); }
.q-done{ text-align:center; justify-items:center; }
.q-tick{ width:64px; height:64px; display:grid; place-items:center; border-radius:50%; background:var(--accent); font-size:28px; box-shadow:0 0 40px rgba(232,55,28,.6); animation:q-pop .5s cubic-bezier(.2,.7,.3,1.6); }
.q-next{ list-style:none; counter-reset:n; margin:0; padding:0; display:grid; gap:10px; text-align:left; width:100%; }
.q-next li{ counter-increment:n; display:grid; grid-template-columns:auto 1fr; gap:2px 14px; padding:14px 16px; border:1px solid var(--line); border-radius:14px; }
.q-next li::before{ content:"0" counter(n); grid-row:span 2; font:500 12px var(--mono); color:var(--accent); padding-top:3px; }
.q-next span{ font-size:14px; color:var(--ink-mute); }
.q-done .q-foot{ width:100%; }
@keyframes q-rise{ from{ opacity:0; transform:translateY(40px) scale(.97); } }
@keyframes q-right{ from{ opacity:0; transform:translateX(40px); } }
@keyframes q-left{ from{ opacity:0; transform:translateX(-40px); } }
@keyframes q-pop{ from{ transform:scale(0); } }
@media (max-width:640px){
  #quote-dialog[open]{ padding:0; place-items:stretch; }
  .q-sheet{ border-radius:0; border:0; min-height:100%; align-content:start; }
  .q-foot{ position:sticky; bottom:0; background:rgba(20,20,22,.96); margin:0 -20px -20px; padding:14px 20px; }
  .q-tiles{ grid-template-columns:repeat(2,1fr); }
}

/* — FAQ — */
details[open] summary span:first-child{ color:var(--ink); }

@media (max-width: 640px){
  .main-nav{ display:none; }
  body{ font-size:16px; }
}
@media (prefers-reduced-motion: reduce){
  .reveal, .reveal.in{ opacity:1; animation:none; }
  .btn:hover, .tilt-card:hover{ transform:none; }
}
