/* Condo Potlight — one site for US + Canada */
:root {
  --amber: #fab60a;
  --amber-dark: #d99a00;
  --ink: #141414;
  --ink-2: #3a3a3a;
  --muted: #6b6b6b;
  --line: #e6e3dc;
  --paper: #ffffff;
  --sand: #f7f5f0;
  --radius: 10px;
  --wrap: 1160px;
  --font: "Jost", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Country switching ----------
   Anything marked data-only="us" or data-only="ca" shows for that country only.
   <html data-country="..."> is set by the inline script in <head> before paint. */
html[data-country="us"] [data-only="ca"],
html[data-country="ca"] [data-only="us"] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
[id] { scroll-margin-top: 90px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--amber-dark); margin-bottom: .8em;
}
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.6em; border-radius: 999px; border: 2px solid transparent;
  font: 600 .95rem/1 var(--font); letter-spacing: .04em; text-decoration: none;
  cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.btn-amber { background: var(--amber); color: var(--ink); }
.btn-amber:hover { background: var(--amber-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #333; }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center .btn-row { justify-content: center; }

/* ---------- Country banner ---------- */
.geo-bar {
  background: var(--ink); color: #fff; font-size: .9rem; text-align: center;
  padding: 8px 44px 8px 16px; position: relative;
}
.geo-bar[hidden] { display: none; }
.geo-bar button.link { background: none; border: 0; color: var(--amber); font: inherit; text-decoration: underline; cursor: pointer; padding: 0; }
.geo-bar .close { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #fff; font-size: 1.3rem; cursor: pointer; line-height: 1; padding: 4px 8px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.logo img { height: 46px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; font-size: .97rem; padding: 8px 12px; border-radius: 6px; color: var(--ink-2); }
.nav a:hover { color: var(--ink); background: var(--sand); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--amber); border-radius: 0; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions .btn { padding: .7em 1.2em; }

.country-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: #fff; }
.country-switch button {
  display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; cursor: pointer;
  font: 600 .8rem/1 var(--font); letter-spacing: .05em; padding: 7px 10px; border-radius: 999px; color: var(--muted);
}
.country-switch button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.country-switch svg { width: 18px; height: 12px; border-radius: 2px; flex: none; }

.menu-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }

@media (max-width: 1040px) {
  .menu-toggle { display: block; }
  .nav, .header-actions .call-btn { display: none; }
  .site-header .wrap { flex-wrap: wrap; }
  .header-actions { order: 2; }
  .menu-open .nav { display: flex; flex-direction: column; width: 100%; order: 3; padding: 8px 0 16px; margin: 0; }
  .menu-open .nav a { padding: 12px 4px; font-size: 1.1rem; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; }
  .menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 520px) {
  .logo img { height: 38px; }
  .country-switch button .label { display: none; }
}

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-sand { background: var(--sand); }
.section-dark { background: var(--ink); color: #fff; }
.section-dark .muted { color: #b7b7b7; }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.page-hero { padding: 72px 0 40px; text-align: center; }
.page-hero p { font-size: 1.15rem; color: var(--muted); max-width: 640px; margin: 0 auto; }
.patent { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* Home hero */
.hero { padding: 72px 0 88px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 span { color: var(--amber-dark); }
.hero .lead { font-size: 1.25rem; color: var(--ink-2); max-width: 30ch; }
.hero-media { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 4/5; background: var(--sand); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; left: 16px; bottom: 16px; background: #fff; border-radius: 12px; padding: 12px 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12); font-size: .9rem; line-height: 1.3;
}
.hero-badge strong { display: block; font-size: 1.5rem; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .hero-media { aspect-ratio: 4/3; }
}

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.feature .num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--amber); font-weight: 700; margin-bottom: 14px; }
.feature p { color: var(--ink-2); margin: 0; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stats strong { display: block; font-size: 2.4rem; color: var(--amber); line-height: 1.1; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr 1fr; } }

/* Two-column split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split img { border-radius: 14px; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } .split.reverse > :first-child { order: 0; } }

/* Video */
.video { position: relative; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.video-feature { max-width: 960px; margin: 0 auto; box-shadow: 0 24px 60px rgba(0,0,0,.45); }

/* ---------- Packages ---------- */
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.pkg { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pkg.popular { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber); }
.pkg-img { background: var(--sand); height: 260px; display: flex; align-items: center; justify-content: center; padding: 16px; overflow: hidden; }
.pkg-img img { height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.pkg-img.photo { padding: 0; }
.pkg-img.photo img { width: 100%; height: 100%; object-fit: cover; }
.pkg-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.pkg-tag { align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--amber); padding: 4px 8px; border-radius: 4px; margin-bottom: 10px; }
.pkg h3 { margin-bottom: .25em; }
.price { font-size: 2rem; font-weight: 700; line-height: 1.1; margin: .2em 0 .4em; }
.price small { font-size: .85rem; font-weight: 500; color: var(--muted); margin-left: 4px; }
.price-quote { font-size: 1rem; font-weight: 600; color: var(--amber-dark); margin: .2em 0 .6em; }
.pkg ul { margin: 0 0 18px; padding-left: 1.1em; color: var(--ink-2); font-size: .95rem; }
.pkg .btn { margin-top: auto; }

/* ---------- Answer blocks (AEO) ---------- */
.answer-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.answer h2 { font-size: 1.7rem; }
.answer p { font-size: 1.12rem; color: var(--ink-2); }
.answer h3 { margin-top: 1.4em; }
.steps { padding-left: 1.2em; color: var(--ink-2); }
.steps li { margin-bottom: .6em; }
.facts { background: var(--sand); border-radius: var(--radius); padding: 26px; }
.facts h3 { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.facts dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; font-size: .97rem; }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; color: var(--ink-2); }
@media (max-width: 860px) { .answer-grid { grid-template-columns: 1fr; } }

/* ---------- LightBox Builder banner (top of packages page) ---------- */
.builder-banner-wrap { padding: 0 0 40px; }
.builder-banner { display: flex; align-items: center; gap: 18px; padding: 18px 22px; border-radius: 14px; background: var(--ink); color: #fff; text-decoration: none;
  box-shadow: 0 10px 30px rgba(0,0,0,.12); transition: transform .15s, box-shadow .15s; }
.builder-banner:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0,0,0,.18); }
.bb-icon { flex: none; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: rgba(250,182,10,.15); color: var(--amber); }
.bb-icon svg { width: 28px; height: 28px; fill: currentColor; }
.bb-text { flex: 1; display: flex; flex-direction: column; gap: 2px; line-height: 1.35; }
.bb-text strong { font-size: 1.1rem; }
.bb-text span { color: #c9c9c9; font-size: .95rem; }
.builder-banner .btn { flex: none; }
@media (max-width: 600px) { .builder-banner { flex-wrap: wrap; } .builder-banner .btn { width: 100%; } }

/* ---------- LightBox Builder (iframe) ---------- */
.builder-section { background: #0f1012; }
.builder-frame { display: block; width: 100%; height: 1150px; border: 0; background: transparent; }
@media (max-width: 980px) { .builder-frame { height: 2100px; } }
.builder-section .wrap { padding-left: 16px; padding-right: 16px; }

/* ---------- Gallery ---------- */
.gallery { columns: 4 240px; column-gap: 12px; }
.gallery a { display: block; margin-bottom: 12px; break-inside: avoid; border-radius: 8px; overflow: hidden; background: var(--sand); }
.gallery img { width: 100%; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.03); }
.lightbox-view { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.92); display: none; align-items: center; justify-content: center; }
.lightbox-view.open { display: flex; }
.lightbox-view img { max-width: 92vw; max-height: 86vh; border-radius: 6px; }
.lightbox-view button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; }
.lightbox-view .lb-close { top: 18px; right: 18px; }
.lightbox-view .lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-view .lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* Instagram reels row */
.reels { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: 16px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.reels iframe { width: 100%; height: 560px; border: 1px solid var(--line); border-radius: 10px; background: #fff; scroll-snap-align: start; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 1.12rem; padding: 18px 40px 18px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 400; color: var(--amber-dark); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); padding-bottom: 8px; }

/* ---------- Forms ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.form label .req { color: var(--muted); font-weight: 400; }
.form .hint { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; margin-top: 2px; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid #cfcac0; border-radius: 8px; background: #fff; color: var(--ink);
}
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--amber); outline-offset: 1px; border-color: var(--amber); }
.form .hp { display: none; }
.form-status { margin: 12px 0 0; font-size: .95rem; }
.form-status.error { color: #b42318; }
.form button[disabled] { opacity: .6; cursor: wait; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .8em; }
.card p { margin: 0 0 .4em; }
.card a { text-decoration: none; font-weight: 600; }
.card a:hover { color: var(--amber-dark); }

/* ---------- Blog ---------- */
.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.post-card { text-decoration: none; display: block; }
.post-card img { aspect-ratio: 3/2; object-fit: cover; border-radius: 10px; margin-bottom: 14px; width: 100%; }
.post-card h3 { margin-bottom: .3em; }
.post-card:hover h3 { color: var(--amber-dark); }
.post-meta { font-size: .88rem; color: var(--muted); }
.article { max-width: 720px; margin: 0 auto; }
.article > img { border-radius: 12px; margin: 24px 0 36px; width: 100%; }
.article h2 { font-size: 1.5rem; margin-top: 1.6em; }
.article p, .article li { color: var(--ink-2); font-size: 1.08rem; }

/* ---------- CTA band ---------- */
.cta { text-align: center; }
.cta h2 { max-width: 20ch; margin-left: auto; margin-right: auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfcfcf; padding: 56px 0 32px; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-grid h4 { color: #fff; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #2a2a2a; }
.social a:hover { background: var(--amber); color: var(--ink); }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.footer-logo { width: 150px; height: auto; margin-bottom: 14px; }
/* Sister companies (same style as the Quality Potlight site) */
.footer-sisters { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.25rem; padding: 2rem 0; border-top: 1px solid #2e2e2e; }
.footer-sisters > span { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; }
.logo-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 150px); gap: .6rem; }
.logo-cards a { display: flex; align-items: center; justify-content: center; height: 56px; padding: .5rem .8rem;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); transition: background .2s, border-color .2s; }
.logo-cards a:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); }
.logo-cards img { max-height: 28px; max-width: 100%; width: auto; height: auto; }
@media (max-width: 760px) { .logo-cards { grid-template-columns: repeat(2, 1fr); width: 100%; } }
.legal { border-top: 1px solid #2e2e2e; padding-top: 22px; font-size: .83rem; color: #9a9a9a; }
.legal p { margin: 0 0 .5em; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Sticky mobile call bar */
.mobile-call { display: none; }
@media (max-width: 700px) {
  .mobile-call { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
  .mobile-call .btn { flex: 1; }
  body { padding-bottom: 72px; }
}

/* Home: headline, big video, actions */
.hero.hero-stage { padding: 48px 0 56px; text-align: center; }
.hero.hero-stage .wrap { display: block; max-width: 1240px; }
.hero.hero-stage h1 { margin-bottom: 28px; }
.hero-video { box-shadow: 0 30px 70px rgba(20,20,20,.28); border-radius: 18px; max-width: max(560px, calc((100vh - 300px) * 16 / 9)); margin: 0 auto; }
@media (max-width: 600px) { .hero.hero-stage { padding: 28px 0 40px; } .hero-video { margin: 0 -12px; border-radius: 12px; } .hero-phone { flex-basis: 100%; margin: 4px 0 0; } }
.patent-line { margin: 18px 0 0; font-weight: 600; letter-spacing: .02em; }
/* Home: patent line under the living-room scene */
.home-actions { padding: 28px 0 0; text-align: center; }
.home-actions .patent-line { margin: 0; }
.home-actions + .hero.hero-stage { padding-top: 32px; }
/* Home: Google reviews and Instagram */
.reviews { padding: 56px 0 24px; }
.insta { padding-top: 40px; }
.insta-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 28px 0 32px; }
.insta-grid iframe { width: 100%; height: 520px; border: 0; background: #fff; }
@media (max-width: 900px) { .insta-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .insta-grid { grid-template-columns: 1fr; } }
