/* ============================================================
   Arlo - Granny Flats
   Design system: Swiss / structural. Arlo logo palette: navy, royal blue, white.
   Single typeface: Manrope, the Arlo logo font.
   ============================================================ */

:root {
  /* Palette: Arlo logo colours */
  --paper:      #ffffff;   /* white */
  --paper-2:    #eef2f8;   /* light blue-grey panel */
  --stone:      #c9d6ea;   /* pale blue for dark backgrounds */
  --ink:        #0a1f44;   /* Arlo navy */
  --ink-2:      #2e3f5e;   /* secondary navy */
  --taupe:      #5b6b85;   /* muted text */
  --clay:       #0049ac;   /* Arlo royal blue */
  --clay-deep:  #b3261e;   /* error red */
  --gold-light: #7daeff;   /* light royal blue for dark backgrounds */
  --line:       #0a1f44;   /* structural hairline */
  --line-soft:  rgba(10, 31, 68, 0.16);

  /* Single typeface across the whole site */
  --font: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --mono: "Manrope", "Helvetica Neue", Arial, sans-serif;

  --maxw: 1240px;
  --gutter: 32px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Labels ---------- */
.eyebrow {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--clay);
  display: inline-flex;
  align-items: center;
}

/* ---------- Section framing ---------- */
.section { padding: 100px 0; position: relative; }
.section-head { margin-bottom: 54px; }
.section-head h2 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  max-width: 15ch;
}
.section-head.wide h2 { max-width: 20ch; }
/* One-line headings: size scales with the screen so the line always fits */
.section-head.one-line h2 { max-width: none; }
@media (min-width: 681px) { .section-head.one-line h2 { white-space: nowrap; font-size: min(3.6rem, calc((100vw - 2 * var(--gutter)) / 19)); } }
.section-head p { font-family: var(--font); font-size: 1.05rem; color: var(--ink-2); max-width: 46ch; margin-top: 18px; text-transform: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font); font-weight: 700; font-size: 0.86rem;
  letter-spacing: 0.01em; text-transform: none;
  padding: 15px 26px; border: 1px solid var(--ink);
  cursor: pointer; transition: background .18s ease, color .18s ease, transform .18s ease;
  border-radius: 0;
}
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--clay); border-color: var(--clay); }
.btn-light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-light:hover { background: var(--clay); border-color: var(--clay); color: var(--paper); }
.btn-ol-light { background: transparent; color: var(--paper); border-color: rgba(255,255,255,.55); }
.btn-ol-light:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px var(--gutter);
  background: var(--paper);
  border-bottom: 1px solid var(--line-soft);
  transition: padding .25s ease, border-color .25s ease;
}
.nav.scrolled {
  border-bottom-color: var(--line);
  padding: 6px var(--gutter);
}
.brand { display: flex; align-items: center; }
.brand img { height: 56px; width: auto; transition: height .25s ease; }
.nav.scrolled .brand img { height: 46px; }
.nav-cta { padding: 12px 20px; font-size: 0.84rem; }
.nav-right { display: flex; align-items: center; gap: 26px; }
.nav-link { font-size: 0.84rem; font-weight: 700; color: var(--ink); padding: 10px 0; border-bottom: 1px solid transparent; }
.nav-link:hover { color: var(--clay); border-bottom-color: var(--clay); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; color: var(--paper); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; background: var(--ink); }
.hero-bg picture { display: block; width: 100%; height: 100%; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.92) contrast(1.02); }
.hero-overlay { position: absolute; inset: 0; z-index: 1; background:
  linear-gradient(90deg, rgba(10,31,68,.78) 0%, rgba(10,31,68,.5) 38%, rgba(10,31,68,0) 68%),
  linear-gradient(180deg, rgba(10,31,68,.45) 0%, rgba(10,31,68,.1) 40%, rgba(10,31,68,.82) 100%); }
.hero-frame { position: absolute; inset: 18px; z-index: 2; border: 1px solid rgba(255,255,255,.3); pointer-events: none; }
.hero .wrap { position: relative; z-index: 3; width: 100%; padding-bottom: 54px; padding-top: 120px; }
.hero .eyebrow { color: var(--stone); }
.hero h1 {
  font-size: clamp(2.7rem, 8vw, 6.6rem);
  font-weight: 800; letter-spacing: -0.015em; line-height: 0.92;
  margin: 22px 0 24px; max-width: 18ch;
}
.hero h1 .clay { color: var(--gold-light); }
.hero .lede { font-family: var(--font); text-transform: none; font-size: clamp(1rem, 1.5vw, 1.2rem); color: rgba(255,255,255,.9); max-width: 50ch; line-height: 1.5; margin-bottom: 34px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-values { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 52px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,.3); }
.hero-values .hv { padding-right: 26px; margin-right: 26px; border-right: 1px solid rgba(255,255,255,.18); }
.hero-values .hv:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero-values .hv-num { font-size: 0.74rem; color: var(--gold-light); font-weight: 600; letter-spacing: 0.06em; }
.hero-values .hv h2 { font-size: 1.05rem; margin: 12px 0 9px; color: var(--paper); letter-spacing: -0.005em; }
.hero-values .hv p { font-size: 0.82rem; color: rgba(255,255,255,.8); line-height: 1.45; text-transform: none; }


/* ============================================================
   PURPOSE
   ============================================================ */
.purpose-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.purpose-card { position: relative; isolation: isolate; aspect-ratio: 3/4; overflow: hidden; border: 1px solid var(--line); color: var(--paper); display: flex; flex-direction: column; justify-content: flex-end; padding: 26px; }
.purpose-card .pc-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9); transition: transform .5s ease; }
.purpose-card:hover .pc-bg { transform: scale(1.04); }
.purpose-card .pc-ov { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,31,68,.1) 0%, rgba(10,31,68,.78) 100%); }
.purpose-card .pc-tag { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone); margin-bottom: 10px; }
.purpose-card h3 { font-size: 1.5rem; margin-bottom: 10px; }
.purpose-card p { font-family: var(--font); text-transform: none; font-size: 0.9rem; color: rgba(255,255,255,.85); line-height: 1.45; }

/* ============================================================
   MODELS
   ============================================================ */
.models { background: var(--paper-2); }
.model-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.model-card { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); display: flex; flex-direction: column; min-width: 0; }
.model-media { position: relative; aspect-ratio: 4/3; border-bottom: 1px solid var(--line); overflow: hidden; }
.model-badge { position: absolute; top: 0; left: 0; background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 7px 12px; z-index: 2; }
.model-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.model-body h3 { font-size: 1.5rem; letter-spacing: -0.01em; }
.model-purpose-tag { font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--clay); margin: 8px 0 20px; }
.model-specs { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); padding: 14px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); margin-bottom: 20px; display: flex; gap: 14px; }
.model-specs span { white-space: nowrap; }
.model-specs .sep { color: var(--taupe); }
.model-link { font-family: var(--mono); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); display: inline-flex; align-items: center; gap: 7px; border-bottom: 1px solid var(--ink); padding: 14px 0 4px; }
.model-media.plan { background: #ffffff; }
.plan-zoom { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.plan-zoom:focus-visible { outline: 2px solid var(--clay); outline-offset: -4px; }
.zoom-hint { position: absolute; right: 10px; bottom: 10px; font-family: var(--font); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); background: var(--paper); border: 1px solid var(--line-soft); padding: 5px 9px; }
.plan-zoom:hover .zoom-hint { color: var(--paper); background: var(--clay); border-color: var(--clay); }
.model-media .plan-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 38px 14px 18px; }
.model-desc { font-size: 0.92rem; color: var(--ink-2); line-height: 1.55; margin-bottom: 22px; flex: 1; }
.model-body .model-link { align-self: flex-start; }
/* Sixth card: help choosing a plan */
.model-help { background: var(--ink); color: var(--paper); }
.model-help .model-body { justify-content: center; padding: 34px 28px; }
.model-help h3 { color: var(--paper); font-size: 1.6rem; line-height: 1.05; margin-bottom: 14px; }
.model-help .model-desc { color: rgba(255,255,255,.8); flex: 0 0 auto; }
.model-help .btn { align-self: flex-start; }
.u { text-transform: none; }
.model-card .model-specs { flex-wrap: wrap; row-gap: 6px; }
.model-link:hover { color: var(--clay); border-color: var(--clay); gap: 11px; transition: gap .2s ease; }

/* ============================================================
   PROCESS
   ============================================================ */
.uses { background: var(--paper); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 56px; }
.step { padding: 34px 30px 36px 0; margin-right: 30px; border-right: 1px solid var(--line-soft); position: relative; }
.step:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.step .snum { font-size: clamp(3rem, 6vw, 5rem); font-weight: 800; letter-spacing: -0.04em; line-height: 0.8; color: transparent; -webkit-text-stroke: 1.5px var(--clay); margin-bottom: 26px; }
.step h3 { font-size: 1.35rem; color: var(--ink); margin-bottom: 12px; }
.step p { font-family: var(--font); text-transform: none; font-size: 0.95rem; color: var(--ink-2); line-height: 1.55; }
.step .step-meta { margin-top: 16px; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: var(--clay); }

/* ============================================================
   LEAD
   ============================================================ */
.lead { background: var(--ink); color: var(--paper); }
.lead-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.lead h2 { font-size: clamp(2rem, 4vw, 3.2rem); color: var(--paper); max-width: 14ch; }
.lead-points { list-style: none; display: flex; flex-direction: column; margin-top: 32px; }
.lead-points li { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; padding: 15px 0; border-top: 1px solid rgba(255,255,255,.35); display: flex; gap: 14px; align-items: baseline; }
.lead-points li:last-child { border-bottom: 1px solid rgba(255,255,255,.35); }
.lead-points li b { color: var(--paper); font-weight: 600; }

.lead-form { background: var(--paper); color: var(--ink); padding: 34px; border: 1px solid var(--ink); }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; padding: 14px 15px; border: 1px solid var(--line); background: var(--paper);
  font-family: var(--font); font-size: 1rem; color: var(--ink); border-radius: 0; transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--clay); box-shadow: inset 0 0 0 1px var(--clay); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label .opt { text-transform: none; letter-spacing: 0; color: var(--taupe); }
.form-email-line { font-size: 0.88rem; color: var(--ink-2); margin: 0 0 16px; }
.form-email-line a { color: var(--clay); font-weight: 600; }
.form-error { font-size: 0.88rem; color: var(--clay-deep); margin: 4px 0 12px; }
.form-error:empty { display: none; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-privacy { font-size: 0.78rem; color: var(--taupe); text-align: center; margin-top: 6px; }
.form-success-note { margin-top: 12px; font-size: 0.9rem; }
.form-success-note:empty { display: none; }
.lead-form .btn:disabled { opacity: .6; cursor: wait; }
.lead-form .btn { width: 100%; justify-content: center; margin-top: 6px; }
.form-note { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--taupe); text-align: center; margin-top: 14px; }
.form-success { display: none; text-align: center; padding: 26px 0; }
.form-success.show { display: block; }
.form-success .tick { width: 52px; height: 52px; border: 1.5px solid var(--clay); display: grid; place-items: center; margin: 0 auto 18px; color: var(--clay); }
.form-success h3 { font-size: 1.4rem; margin-bottom: 10px; }
.form-success p { font-family: var(--font); text-transform: none; color: var(--ink-2); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #061533; color: rgba(255,255,255,.6); padding: 40px 0 30px; }
.footer-logo { display: inline-block; margin-bottom: 24px; }
.footer-logo img { height: 38px; width: auto; display: block; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.footer-bottom a { color: rgba(255,255,255,.85); text-transform: none; letter-spacing: 0.02em; }
.footer-bottom a:hover { color: var(--paper); text-decoration: underline; }

/* ---------- Floor plan viewer ---------- */
.plan-dialog { margin: auto; padding: 48px 20px 20px; border: 1px solid var(--ink); background: var(--paper); width: min(1000px, 94vw); max-height: 92vh; }
.plan-dialog::backdrop { background: rgba(6, 21, 51, .82); }
.plan-dialog img { width: 100%; height: auto; max-height: calc(92vh - 80px); object-fit: contain; }
.plan-dialog-close { position: absolute; top: 10px; right: 12px; background: none; border: 0; cursor: pointer; font: inherit; font-size: 0.82rem; font-weight: 700; color: var(--ink); padding: 6px 4px; }
.plan-dialog-close:hover { color: var(--clay); }
.plan-dialog-hint { display: none; }
@media (max-width: 680px) {
  .plan-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; padding: 0; border: 0; }
  .plan-dialog-hint { display: block; position: absolute; top: 14px; left: 16px; font-size: 0.78rem; color: var(--taupe); }
  .plan-dialog-scroll { position: absolute; inset: 48px 0 0; overflow: auto; display: flex; align-items: center; }
  .plan-dialog-scroll img { flex: none; width: 680px; max-width: none; max-height: none; margin: auto; padding: 16px; }
}
body.no-scroll { overflow: hidden; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .purpose-card .pc-bg, .btn .arrow { transition: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .hero-values { grid-template-columns: 1fr 1fr; gap: 28px 0; }
  .hero-values .hv:nth-child(2) { border-right: 0; margin-right: 0; padding-right: 0; }
  .purpose-cards { grid-template-columns: 1fr 1fr; }
  .model-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; border-top: 0; }
  .step { border-right: 0; margin-right: 0; padding-right: 0; border-bottom: 1px solid var(--line-soft); }
  .step:last-child { border-bottom: 0; }
  .lead-inner { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 680px) {
  :root { --gutter: 20px; }
  .section { padding: 68px 0; }
  .purpose-cards { grid-template-columns: 1fr; }
  .model-grid { grid-template-columns: 1fr; }
  .hero-values { grid-template-columns: 1fr 1fr; gap: 24px 0; }
  .hero-values .hv { border-right: 0; margin-right: 0; padding-right: 20px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .brand img { height: 46px; }
  .nav.scrolled .brand img { height: 40px; }
  .nav-cta { padding: 10px 14px; font-size: 0.8rem; }
  .nav-right { gap: 16px; }
  .nav-link { font-size: 0.8rem; }
  .section { scroll-margin-top: 14px; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .hero-ctas .btn { width: 170px; justify-content: center; padding-left: 0; padding-right: 0; }
  .hero-ctas .btn .arrow { display: none; }
  .hero-overlay { background: linear-gradient(180deg, rgba(10,31,68,.6) 0%, rgba(10,31,68,.55) 50%, rgba(10,31,68,.85) 100%); }
}
@media (max-width: 359px) {
  .nav-link { display: none; }
}
