/* ==========================================================
   SmaLocks — Smart Door Locks
   Theme: White + Yellow | Gold navigation | LightGoldenrodYellow footer
   Plain CSS3, no frameworks.
   ========================================================== */

:root {
  --gold: #FFD700;
  --gold-deep: #E6B800;
  --gold-soft: #FFF3B0;
  --lgy: #FAFAD2;            /* LightGoldenrodYellow */
  --white: #FFFFFF;
  --paper: #FFFDF4;
  --ink: #1F1A07;
  --ink-2: #4A4226;
  --ink-3: #6B6343;
  --line: #EDE4B8;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 18px 40px -22px rgba(60, 48, 0, .35);
  --wrap: 1180px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }

a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 5.2vw, 4rem); }
h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
p  { margin: 0 0 1em; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }

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

.mark {
  background: linear-gradient(transparent 58%, var(--gold) 58%, var(--gold) 92%, transparent 92%);
  padding: 0 .1em;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em;
  color: var(--ink-2); margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 3px; background: var(--gold-deep); border-radius: 3px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px;
  border-radius: 999px; border: 2px solid var(--ink);
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: var(--gold); }
.btn-dark:hover { background: #000; }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--gold); }
.btn-arrow::after { content: "→"; font-size: 1.1em; }

/* ---------------- Header / Navigation (Gold) ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--gold);
  border-bottom: 4px solid var(--ink);
}
.nav-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 74px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink); flex-shrink: 0;
}
.brand svg { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; }
.brand-tag  { font-size: .68rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }

.nav-toggle {
  display: none;
  align-items: center; gap: 10px;
  background: var(--ink); color: var(--gold);
  border: 0; border-radius: 999px; padding: 10px 16px;
  font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer;
}
.nav-toggle .bars { position: relative; width: 20px; height: 14px; }
.nav-toggle .bars span {
  position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.nav-toggle .bars span:nth-child(1) { top: 0; }
.nav-toggle .bars span:nth-child(2) { top: 6px; }
.nav-toggle .bars span:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

.main-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end;
}
.main-nav a {
  display: block; padding: 9px 13px; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink);
  transition: background-color .2s ease;
}
.main-nav a:hover { background: rgba(255, 255, 255, .55); }
.main-nav a[aria-current="page"] { background: var(--ink); color: var(--gold); }

@media (max-width: 1060px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--gold);
    border-bottom: 4px solid var(--ink);
    max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height .3s ease, visibility 0s linear .3s;
  }
  .main-nav.is-open { max-height: 520px; visibility: visible; transition: max-height .3s ease; }
  .main-nav ul {
    flex-direction: column; align-items: stretch; gap: 2px;
    width: min(100% - 32px, var(--wrap)); margin: 0 auto; padding: 10px 0 18px;
  }
  .main-nav a { padding: 13px 16px; border-radius: 12px; font-size: 1.05rem; }
}

/* ---------------- Home: Hero ---------------- */
.hero { padding: clamp(40px, 7vw, 90px) 0 clamp(40px, 6vw, 80px); background: var(--white); position: relative; }
.hero::before {
  content: ""; position: absolute; right: 0; top: 0; width: 46%; height: 78%;
  background: var(--gold-soft); border-bottom-left-radius: 220px; z-index: 0;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 70px); align-items: center;
}
.hero-copy .lead { font-size: 1.2rem; color: var(--ink-2); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.door-frame {
  position: relative;
  border: 10px solid var(--ink);
  border-radius: 240px 240px var(--radius) var(--radius);
  overflow: hidden;
  background: var(--ink);
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow);
}
.door-frame video, .door-frame img { width: 100%; height: 100%; object-fit: cover; }
.door-note {
  position: absolute; left: -18px; bottom: 34px;
  background: var(--white); border: 2px solid var(--ink); border-radius: 14px;
  padding: 12px 16px; font-weight: 700; font-size: .92rem; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 10px;
}
.door-note .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--gold-deep); flex-shrink: 0; box-shadow: 0 0 0 4px var(--gold-soft); }
.hero-visual { position: relative; padding-left: 18px; }

@media (max-width: 860px) {
  .hero::before { width: 100%; height: 44%; top: auto; bottom: 0; border-radius: 160px 0 0 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 440px; width: 100%; margin: 0 auto; padding-left: 0; }
  .door-note { left: 12px; }
}

/* ---------------- Access strip ---------------- */
.access-strip { background: var(--ink); color: var(--gold); }
.access-strip ul {
  list-style: none; margin: 0 auto; padding: 18px 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px;
  font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .85rem;
}
.access-strip li { display: flex; align-items: center; gap: 10px; }
.access-strip li::before { content: ""; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); }

/* ---------------- Sections ---------------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-tint { background: var(--paper); }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { color: var(--ink-2); }

/* Index list (ways to unlock) */
.index-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.index-list li {
  display: grid; grid-template-columns: 70px 1fr 220px; gap: 24px; align-items: center;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.index-num { font-family: var(--font-display); font-size: 2rem; color: var(--gold-deep); font-weight: 700; }
.index-list h3 { margin-bottom: .3em; }
.index-list p { margin: 0; color: var(--ink-2); }
.index-list img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; }
@media (max-width: 720px) {
  .index-list li { grid-template-columns: 48px 1fr; align-items: start; gap: 14px 16px; }
  .index-list img { grid-column: 1 / -1; }
  .index-num { font-size: 1.5rem; }
}

/* Mosaic gallery */
.mosaic {
  display: grid; gap: 14px;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  grid-auto-flow: dense;
}
.mosaic figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--gold-soft); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.mosaic figure:hover img { transform: scale(1.04); }
.mosaic figcaption {
  position: absolute; left: 10px; bottom: 10px; right: 10px;
  background: rgba(255, 255, 255, .94); border-radius: 10px; padding: 6px 10px;
  font-size: .82rem; font-weight: 600; width: fit-content; max-width: calc(100% - 20px);
}
.m-tall { grid-row: span 2; }
.m-wide { grid-column: span 2; }
@media (max-width: 900px) { .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; } }
@media (max-width: 520px) {
  .mosaic { grid-template-columns: 1fr; grid-auto-rows: 230px; }
  .m-tall, .m-wide { grid-row: auto; grid-column: auto; }
}

/* Checklist split */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.split-img img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 3 / 4; object-fit: cover; }
.checklist { list-style: none; margin: 0; padding: 0; counter-reset: c; }
.checklist li {
  position: relative; padding: 18px 0 18px 62px; border-bottom: 1px dashed var(--line);
}
.checklist li::before {
  counter-increment: c; content: counter(c);
  position: absolute; left: 0; top: 16px;
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--gold); border: 2px solid var(--ink);
  display: grid; place-items: center; font-weight: 800;
}
.checklist h3 { margin-bottom: .25em; }
.checklist p { margin: 0; color: var(--ink-2); }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split-img { max-width: 460px; }
}

/* Call-to-action band */
.cta-band { padding: 0 0 clamp(56px, 8vw, 100px); }
.cta-box {
  background: var(--gold); border: 3px solid var(--ink); border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 56px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px;
  box-shadow: 10px 10px 0 var(--ink);
}
.cta-box h2 { margin: 0 0 .3em; }
.cta-box p { margin: 0; color: var(--ink-2); }
@media (max-width: 520px) { .cta-box { box-shadow: 6px 6px 0 var(--ink); } }

/* ---------------- Inner page banner ---------------- */
.page-banner {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: clamp(40px, 6vw, 72px) 0 clamp(30px, 5vw, 56px);
  position: relative; overflow: hidden;
}
.page-banner::after {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 260px; height: 260px; border-radius: 50%;
  border: 36px solid var(--gold); opacity: .55;
}
.page-banner .wrap { position: relative; z-index: 1; }
.page-banner p { max-width: 42em; color: var(--ink-2); font-size: 1.12rem; margin: 0; }
.crumbs { font-size: .9rem; margin-bottom: 14px; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); font-weight: 600; }

/* ---------------- Locks page ---------------- */
.lock-rows { display: grid; gap: clamp(40px, 6vw, 80px); }
.lock-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.lock-row:nth-child(even) .lock-media { order: 2; }
.lock-media { position: relative; }
.lock-media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius-lg); border: 3px solid var(--ink);
}
.lock-media.portrait img { aspect-ratio: 4 / 5; object-position: center 35%; }
.lock-tag {
  position: absolute; top: 16px; left: 16px;
  background: var(--gold); border: 2px solid var(--ink); border-radius: 999px;
  padding: 4px 12px; font-weight: 800; font-size: .8rem;
}
.lock-copy ul { padding-left: 1.1em; color: var(--ink-2); }
.lock-copy li { margin-bottom: .4em; }
@media (max-width: 820px) {
  .lock-row { grid-template-columns: 1fr; }
  .lock-row:nth-child(even) .lock-media { order: 0; }
}

.video-block {
  border-radius: var(--radius-lg); overflow: hidden; border: 3px solid var(--ink);
  aspect-ratio: 16 / 9; background: var(--ink);
}
.video-block video { width: 100%; height: 100%; object-fit: cover; }

.note-box {
  background: var(--lgy); border-left: 6px solid var(--gold-deep);
  padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink-2);
}
.note-box p:last-child { margin: 0; }

/* ---------------- Legal pages ---------------- */
.legal-layout { display: grid; grid-template-columns: 260px 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.legal-toc {
  position: sticky; top: 100px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px;
}
.legal-toc strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 10px; color: var(--ink-2); }
.legal-toc ol { margin: 0; padding-left: 1.2em; font-size: .94rem; }
.legal-toc li { margin-bottom: 6px; }
.legal-toc a { text-decoration: none; }
.legal-toc a:hover { text-decoration: underline; }
.legal-body { max-width: 760px; min-width: 0; }
.legal-body section { padding-bottom: 12px; scroll-margin-top: 100px; }
.legal-body h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); padding-top: 18px; border-top: 1px solid var(--line); }
.legal-body section:first-of-type h2 { border-top: 0; padding-top: 0; }
.legal-body ul { padding-left: 1.2em; }
.legal-body li { margin-bottom: .45em; }
.updated {
  display: inline-block; background: var(--gold); border-radius: 999px;
  padding: 4px 14px; font-weight: 700; font-size: .85rem; margin-top: 16px;
}
.table-scroll { overflow-x: auto; margin: 0 0 1.2em; }
.legal-body table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 480px; }
.legal-body th, .legal-body td { text-align: left; padding: 10px 12px; border: 1px solid var(--line); vertical-align: top; }
.legal-body th { background: var(--lgy); }
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
}

/* ---------------- Contact page ---------------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.contact-tile {
  border: 3px solid var(--ink); border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px); background: var(--white);
  display: flex; flex-direction: column; gap: 10px;
}
.contact-tile.gold { background: var(--gold); }
.contact-tile .icon {
  width: 56px; height: 56px; border-radius: 16px; background: var(--ink); color: var(--gold);
  display: grid; place-items: center;
}
.contact-tile .icon svg { width: 28px; height: 28px; }
.contact-tile a.big, .contact-tile address.big {
  font-style: normal; font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 700;
  word-break: break-word; overflow-wrap: anywhere;
}
.contact-tile p { margin: 0; color: var(--ink-2); }
.tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.tip { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.tip p { margin: 0; color: var(--ink-2); }
@media (max-width: 820px) {
  .contact-grid, .tips { grid-template-columns: 1fr; }
}

/* ---------------- Footer (LightGoldenrodYellow) ---------------- */
.site-footer { background: var(--lgy); color: var(--ink); border-top: 4px solid var(--ink); }
.footer-top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  padding: 36px 0 28px; border-bottom: 2px dashed var(--gold-deep);
}
.footer-top .brand svg { width: 54px; height: 54px; }
.footer-top .brand-name { font-size: 1.8rem; }
.to-top {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); border: 2px solid var(--ink); border-radius: 999px;
  padding: 10px 18px; font-weight: 700; text-decoration: none;
}
.to-top:hover { background: var(--gold); }
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 34px;
  padding: 36px 0;
}
.footer-grid h2 {
  font-family: var(--font); font-size: .8rem; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; color: var(--ink-2);
}
.footer-grid p { color: var(--ink-2); max-width: 32em; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-links a { text-decoration: none; font-weight: 600; }
.footer-links a::before { content: "› "; color: var(--gold-deep); font-weight: 800; }
.footer-links a:hover { text-decoration: underline; }
.footer-contact { font-style: normal; display: grid; gap: 10px; }
.footer-contact a { font-weight: 700; overflow-wrap: anywhere; }
.footer-bottom {
  background: var(--ink); color: var(--lgy);
  font-size: .9rem;
}
.footer-bottom .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding: 16px 0;
}
.footer-bottom a { color: var(--gold); }
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}
