/* ===== VaRoom Studios — design system ===== */

:root {
  --iguide-blue: #009cde;
  --iguide-blue-dark: #006e9e;
  --iguide-blue-light: #45aee3;
  --varoom-orange: #f7941d;
  --orange-text: #a85300;   /* orange for text on light backgrounds (5:1) */
  --blue-btn: #006e9e;      /* iGUIDE dark blue: white text passes 5.6:1 */
  --grey: #58595b;
  --grey-light: #f4f6f7;
  --grey-border: #e1e6e8;
  --ink: #1c2226;
  --white: #ffffff;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1160px;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(0, 40, 60, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
.hero-image img { width: 100%; }

a { color: var(--iguide-blue-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }

.section-grey { background: var(--grey-light); }
.section-blue {
  background: linear-gradient(135deg, #007bb3 0%, #005a83 100%);
  color: var(--white);
}
.section-blue h1, .section-blue h2, .section-blue h3, .section-blue p { color: var(--white); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-text);
  margin-bottom: 0.6em;
}

.lede {
  font-size: 1.15rem;
  color: var(--grey);
  max-width: 60ch;
}

/* ===== Buttons ===== */

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--varoom-orange);
  color: var(--ink);
}
.btn-primary:hover { background: #e08313; box-shadow: 0 6px 16px rgba(247, 148, 29, 0.35); }

.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }

.btn-blue {
  background: var(--blue-btn);
  color: var(--white);
}
.btn-blue:hover { background: #005a83; }

/* ===== Header / Nav ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--grey-border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 24px;
  max-width: var(--container);
  margin: 0 auto;
}

.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand img { height: 56px; width: auto; }

.nav-cta-mobile { display: none; }

@media (max-width: 500px) {
  .brand img { height: 46px; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.96rem;
}
.nav-links a:hover { color: var(--iguide-blue-dark); text-decoration: none; }
.nav-links a.active { color: var(--iguide-blue-dark); }

.nav-cta {
  background: var(--blue-btn);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 700 !important;
}
.nav-cta:hover { background: #005a83; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-cta-mobile {
    display: inline-block;
    padding: 9px 16px;
    font-size: 0.88rem;
  }
  .nav-item-book { display: none; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid var(--grey-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links.open { max-height: 400px; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 24px; width: 100%; }
  .nav-cta { border-radius: 0; text-align: center; }
}

/* ===== Hero ===== */

.hero {
  background: linear-gradient(135deg, #007bb3 0%, #005a83 100%);
  color: var(--white);
  padding: 90px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero h1 { color: var(--white); }
.hero p.lede { color: rgba(255,255,255,0.9); }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.hero-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,20,40,0.35);
}

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 64px; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero .lede { margin-left: auto; margin-right: auto; }
}

/* ===== Cards / grids ===== */

.grid {
  display: grid;
  gap: 28px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--grey-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.service-card {
  background: var(--white);
  border: 1px solid var(--grey-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.service-card .icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--blue-btn);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.service-card.addon .icon { background: var(--varoom-orange); }
.service-card .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.service-card.primary .tag { background: rgba(0,156,222,0.12); color: var(--iguide-blue-dark); }
.service-card.addon .tag { background: rgba(247,148,29,0.14); color: #8f4500; }

/* ===== Gallery ===== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gallery-grid a {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 3 / 2;
}
.gallery-grid img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery-grid a:hover img { transform: scale(1.06); }

@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(10, 16, 20, 0.92);
  display: none;
  align-items: center; justify-content: center;
  z-index: 1000;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 6px; }
.lightbox-close {
  position: absolute; top: 20px; right: 28px;
  color: var(--white); font-size: 2rem; cursor: pointer; border: none; background: none;
}

/* ===== Trust strip ===== */

.trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  padding: 28px 0;
}
.trust-strip img { height: 40px; width: auto; }
.trust-strip img.trust-badge { height: 72px; }
.trust-strip .divider { color: var(--grey-border); }

/* ===== Case study ===== */

.case-study {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
  padding: 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.case-study .stat { font-size: 2.4rem; font-weight: 800; color: var(--varoom-orange); }
.case-study blockquote {
  font-style: italic;
  border-left: 3px solid var(--varoom-orange);
  padding-left: 18px;
  margin: 1em 0;
  color: rgba(255,255,255,0.9);
}
@media (max-width: 860px) {
  .case-study { grid-template-columns: 1fr; padding: 28px; }
}

/* ===== Region cards (contact) ===== */

.region-card {
  border: 1px solid var(--grey-border);
  border-radius: var(--radius);
  padding: 26px;
  background: var(--white);
}
.region-card h3 { color: var(--iguide-blue-dark); }
.region-card .phone {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
}

/* ===== Forms ===== */

.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.92rem; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--grey-border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
}
.form-field textarea { resize: vertical; min-height: 120px; }

/* ===== Footer ===== */

.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 28px;
}
.site-footer h4 { color: var(--white); font-size: 0.95rem; letter-spacing: 0.03em; }
.site-footer a { color: rgba(255,255,255,0.75); }
.site-footer a:hover { color: var(--white); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}
.footer-badge img { height: 88px; width: auto; }

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ===== Utility ===== */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.max-w { max-width: 720px; margin-left: auto; margin-right: auto; }

/* Keyboard focus */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--varoom-orange);
  outline-offset: 2px;
}

/* ===== Photo heroes ===== */
.hero-photo {
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero-photo::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,90,131,0.88) 0%, rgba(0,60,90,0.80) 100%);
}
.hero-photo > .container { position: relative; }

/* Rotating hero on the home page */
.hero-rotator { position: relative; aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 50px rgba(0,20,40,0.35); background: #0b3b57; }
.hero-rotator img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.2s ease;
}
.hero-rotator img.active { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero-rotator img { transition: none; } }

/* ===== Gallery filters ===== */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 28px; }
.filter-btn {
  font-family: var(--font-body); font-weight: 600; font-size: 0.92rem;
  padding: 9px 18px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--grey-border); background: var(--white); color: var(--ink);
}
.filter-btn:hover { border-color: var(--blue-btn); }
.filter-btn[aria-pressed="true"] { background: var(--blue-btn); border-color: var(--blue-btn); color: var(--white); }
.gallery-grid a[hidden] { display: none; }

/* ===== Lightbox arrows ===== */
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.14); color: var(--white); border: none;
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; cursor: pointer;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.28); }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }
.lightbox figcaption { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,0.85); font-size: 0.92rem; padding: 0 70px; }

/* ===== Before / after slider ===== */
.ba-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 760px) { .ba-grid { grid-template-columns: 1fr; } }
.ba-item h3 { margin: 12px 0 0; font-size: 1rem; }
.ba {
  --pos: 50%;
  position: relative; aspect-ratio: 3 / 2; overflow: hidden;
  border-radius: var(--radius); background: #ddd; box-shadow: var(--shadow); user-select: none;
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--white); box-shadow: 0 0 6px rgba(0,0,0,0.35); pointer-events: none; }
.ba-knob {
  position: absolute; top: 50%; left: var(--pos); width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border-radius: 50%; background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.35); pointer-events: none;
  display: flex; align-items: center; justify-content: center; color: var(--ink); font-weight: 700; font-size: 0.9rem;
}
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba-range:focus-visible + .ba-line, .ba:focus-within .ba-knob { outline: 3px solid var(--varoom-orange); }
.ba-tag {
  position: absolute; top: 12px; padding: 4px 12px; border-radius: 999px;
  background: rgba(0,0,0,0.6); color: var(--white); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; pointer-events: none;
}
.ba-tag.l { left: 12px; } .ba-tag.r { right: 12px; }

/* ===== Embedded iGUIDE tours ===== */
.tour-frame { position: relative; width: 100%; height: 0; padding-bottom: 57%; overflow: hidden; background: #e9eef1; }
.tour-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 620px) { .tour-frame { padding-bottom: 75%; } }

/* ===== YouTube click-to-load ===== */
.video-facade { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; cursor: pointer; overflow: hidden; border-radius: var(--radius); background: #0b3b57; box-shadow: var(--shadow); }
.video-facade img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.video-facade:hover img { transform: scale(1.03); }
.video-facade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.35) 100%); pointer-events: none; }
.video-play { position: absolute; z-index: 1; top: 50%; left: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: rgba(255,255,255,0.94); box-shadow: 0 6px 22px rgba(0,0,0,0.35); }
.video-play::before { content: ""; position: absolute; top: 50%; left: 50%; margin: -13px 0 0 -8px; border-style: solid; border-width: 13px 0 13px 22px; border-color: transparent transparent transparent var(--ink); }
.video-facade:hover .video-play { background: var(--varoom-orange); }
.video-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; }

/* Portrait variant, for floor plan comparisons */
.ba-floorplan {
  aspect-ratio: 900 / 1665;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

/* Quote attribution */
.quote-by { display: block; margin-top: 10px; font-style: normal; font-size: 0.9rem; opacity: 0.8; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--grey-border); padding: 4px 0; }
.faq details:first-child { border-top: 1px solid var(--grey-border); }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 32px 14px 0; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; color: var(--blue-btn); }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:focus-visible { outline: 2px solid var(--blue-btn); outline-offset: 2px; }
.faq details p { margin: 0 0 16px; }
.faq details ul { margin: 0 0 16px; padding-left: 20px; }
.faq details li { margin-bottom: 8px; }
