/*
Theme Name: Vipaasa Group
Theme URI: https://www.vipaasa.com/
Author: Vipaasa Group
Description: One-page theme for Vipaasa Group featuring the Arudha Heights project at Kolanukonda. Contact details, hero text and approval numbers are editable under Appearance > Customize > Vipaasa Site Settings.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vipaasa
*/
/* ===== Vipaasa Group: brand tokens (from logo SVGs) ===== */
:root {
  --navy: #243A66;        /* Vipasa logo primary */
  --navy-deep: #17264A;
  --orange: #F04D23;      /* Vipasa logo accent */
  --amber: #D07825;       /* Vipasa logo "GROUP" */
  --gold: #CAA34C;        /* Arudha Heights logo */
  --gold-soft: #E9D9AE;
  --charcoal: #2B2A29;    /* Arudha Heights logo */
  --ink: #1F2430;
  --muted: #5D6474;
  --cream: #F8F5EE;
  --line: #E6E1D6;
  --white: #FFFFFF;

  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;

  --radius: 10px;
  --shadow: 0 18px 40px -18px rgba(23, 38, 74, .35);
  --container: 1200px;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) - 8px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; }
h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem);
  color: var(--navy-deep);
  letter-spacing: -.01em;
}
h3 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.center { text-align: center; }

.eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: .9em;
}
.eyebrow--gold { color: #A9852F; }
.eyebrow--light { color: var(--gold-soft); }
.lead { font-family: var(--font-display); font-style: italic; font-size: 1.5rem; color: var(--amber); }
.note { color: var(--muted); font-size: .95rem; margin-top: 18px; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; }
.section-intro { color: var(--muted); font-size: 1.1rem; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font: 600 .95rem/1 var(--font-body);
  letter-spacing: .04em;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: var(--navy-deep); box-shadow: 0 10px 24px -10px rgba(202,163,76,.8); }
.btn--gold:hover { background: #D8B35C; }
.btn--accent { background: var(--orange); color: var(--white); }
.btn--accent:hover { background: #DA3F17; }
.btn--ghost { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--whatsapp { background: #25D366; color: #0B3B1E; margin-top: 8px; }
.btn--whatsapp svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.btn--block { width: 100%; }

/* ===== Header ===== */
/* Default: solid white header (works in every browser).
   Browsers with CSS scroll-driven animations get a transparent header over the hero
   that turns white as you scroll (see @supports block below). */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255,255,255,.97);
  box-shadow: 0 6px 24px -12px rgba(23,38,74,.3);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; height: 60px; position: relative; flex-shrink: 0; }
.brand-logo { height: 100%; width: auto; }
.brand-logo--light { position: absolute; inset: 0; opacity: 0; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a:not(.btn) {
  color: var(--navy-deep); text-decoration: none; font-weight: 500; font-size: .95rem; letter-spacing: .02em;
  position: relative; padding: 6px 0;
}
.main-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--gold); transform: scaleX(0); transition: transform .25s ease;
}
.main-nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav-cta { padding: 11px 22px; }

.nav-toggle { display: none; width: 44px; height: 44px; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--navy-deep); margin: 6px 0; }
.nav-toggle--close span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle--close span:nth-child(2) { opacity: 0; }
.nav-toggle--close span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Transparent-to-white header driven by page scroll (no JavaScript).
   Front page only (it has the dark hero); inner pages keep the solid header. */
@supports (animation-timeline: scroll()) {
  .home .site-header,
  .home .brand-logo--light,
  .home .brand-logo--dark,
  .home .main-nav a:not(.btn),
  .home .nav-toggle span {
    animation-timing-function: linear;
    animation-fill-mode: both;
    animation-timeline: scroll(root);
    animation-range: 0 90px;
  }
  .home .site-header { animation-name: header-solid; }
  .home .brand-logo--light { animation-name: fade-out; }
  .home .brand-logo--dark { animation-name: fade-in; }
  .home .main-nav a:not(.btn) { animation-name: ink-text; }
  .home .nav-toggle span { animation-name: ink-bg; }
}
@keyframes header-solid {
  from { background: rgba(255,255,255,0); box-shadow: 0 0 0 transparent; }
  to   { background: rgba(255,255,255,.97); box-shadow: 0 6px 24px -12px rgba(23,38,74,.3); }
}
@keyframes fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes fade-in  { from { opacity: 0; } to { opacity: 1; } }
@keyframes ink-text { from { color: #fff; } to { color: var(--navy-deep); } }
@keyframes ink-bg   { from { background: #fff; } to { background: var(--navy-deep); } }

/* ===== Hero ===== */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; color: var(--white); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% center; transform: scale(1.04); animation: heroZoom 18s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(23,38,74,.92) 0%, rgba(23,38,74,.7) 38%, rgba(23,38,74,.1) 75%),
    linear-gradient(0deg, rgba(23,38,74,.55), transparent 40%);
}
.hero-content { position: relative; padding: calc(var(--header-h) + 40px) 0 80px; max-width: var(--container); }
.hero-project-logo { width: clamp(200px, 26vw, 320px); margin: 4px 0 18px -6px; }
.hero h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.6rem, 1.6rem + 4vw, 4.6rem);
  line-height: 1.05; margin-bottom: 20px; color: var(--white);
}
.hero-sub { max-width: 520px; font-size: 1.15rem; color: rgba(255,255,255,.88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ===== Stats ===== */
.stats { background: var(--navy); color: var(--white); position: relative; }
.stats::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--orange), var(--amber), var(--gold)); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 16px; text-align: center; border-left: 1px solid rgba(255,255,255,.12); }
.stat:first-child { border-left: 0; }
.stat-num { display: block; font-family: var(--font-display); font-size: clamp(2rem, 1.5rem + 2vw, 2.9rem); font-weight: 600; color: var(--gold); line-height: 1.1; }
.stat-label { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.8); }

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.about-logo-wrap {
  background: var(--cream); border-radius: var(--radius); padding: clamp(32px, 5vw, 64px);
  display: grid; place-items: center; position: relative;
}
.about-logo-wrap::after { content: ""; position: absolute; inset: 14px; border: 1px solid var(--line); border-radius: 6px; pointer-events: none; }
.about-logo { width: min(100%, 320px); }

/* ===== Project ===== */
.project { background: var(--cream); }
.project-head { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; margin-bottom: 48px; }
.project-logo { width: clamp(180px, 20vw, 250px); }
.project-head h2 { margin: 0; max-width: 680px; }
.project-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.project-copy p { color: #3A4152; }
.facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts li { background: var(--white); padding: 14px 18px; font-weight: 600; color: var(--navy-deep); font-size: .98rem; }
.facts span { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 2px; }
.project-figure { margin: 0; position: relative; }
.project-figure img { border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
figcaption { font-size: .78rem; color: var(--muted); margin-top: 8px; letter-spacing: .04em; }

/* ===== Lifestyle band ===== */
.lifestyle { position: relative; min-height: 520px; display: flex; align-items: center; overflow: hidden; color: var(--white); }
.lifestyle-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; }
.lifestyle-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23,38,74,.9) 0%, rgba(23,38,74,.55) 45%, rgba(23,38,74,0) 70%); }
.lifestyle-content { position: relative; padding: 80px 0; }
.script { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4rem); line-height: 1.05; margin: 0; }
.script--gold { color: var(--gold); margin-bottom: 22px; }
.lifestyle-sub { font-size: 1.15rem; letter-spacing: .04em; color: rgba(255,255,255,.88); max-width: 420px; }

/* ===== Amenities ===== */
.amenity-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.amenity {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 22px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.amenity:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.amenity svg { width: 44px; height: 44px; fill: none; stroke: var(--amber); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 16px; }
.amenity h3 { margin: 0; color: var(--navy-deep); font-size: 1.02rem; }

/* ===== Master plan ===== */
.masterplan { background: var(--cream); }
.masterplan-figure { display: block; width: 100%; padding: 0; border: 0; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); cursor: zoom-in; position: relative; }
.masterplan-figure img { width: 100%; transition: transform .6s ease; }
.masterplan-figure:hover img { transform: scale(1.02); }
.zoom-hint { position: absolute; right: 16px; bottom: 16px; background: rgba(23,38,74,.85); color: var(--white); font: 500 .8rem var(--font-body); padding: 8px 14px; border-radius: 999px; letter-spacing: .04em; }

/* ===== Location ===== */
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.distances { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.distances li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.distances span { color: var(--ink); }
.distances b { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--amber); white-space: nowrap; }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: var(--cream); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.neighbours { margin-top: 24px; padding: 22px 24px; background: var(--navy); color: var(--white); border-radius: var(--radius); border-left: 4px solid var(--gold); }
.neighbours h3 { color: var(--gold); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 6px; }
.neighbours p { margin: 0; }

/* ===== Amaravati ===== */
.amaravati {
  padding: clamp(64px, 9vw, 120px) 0;
  background: var(--navy-deep) url("assets/img/navy-texture.jpg") center / cover;
  color: rgba(255,255,255,.86);
}
.amaravati-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.amaravati-figure { margin: 0; }
.amaravati-figure img { border-radius: var(--radius); box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.amaravati-figure figcaption { color: rgba(255,255,255,.6); }
.amaravati h2 { color: var(--white); font-style: italic; }

/* ===== Specs ===== */
.spec-list { max-width: 900px; margin-inline: auto; display: grid; gap: 12px; }
.spec-list details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.spec-list details[open] { border-color: var(--gold-soft); box-shadow: 0 10px 30px -18px rgba(23,38,74,.35); }
.spec-list summary {
  list-style: none; cursor: pointer; padding: 20px 24px;
  font-weight: 600; font-size: 1.08rem; color: var(--navy-deep);
  display: flex; justify-content: space-between; align-items: center;
}
.spec-list summary::-webkit-details-marker { display: none; }
.spec-list summary::after { content: "+"; font-size: 1.6rem; font-weight: 400; color: var(--gold); transition: transform .25s ease; line-height: 1; }
.spec-list details[open] summary::after { transform: rotate(45deg); }
.spec-list dl { margin: 0; padding: 0 24px 22px; display: grid; grid-template-columns: 220px 1fr; gap: 10px 24px; }
.spec-list dt { font-weight: 600; color: var(--amber); font-size: .95rem; }
.spec-list dd { margin: 0; color: #3A4152; }

/* ===== Gallery ===== */
.gallery { background: var(--cream); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 280px; gap: 16px; }
.g-item { padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--white); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.g-item:hover img { transform: scale(1.05); }
.g-item--wide { grid-column: span 2; }

/* ===== Contact ===== */
.contact { padding: clamp(64px, 9vw, 120px) 0; background: var(--navy); color: rgba(255,255,255,.86); position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; right: -200px; top: -200px; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(202,163,76,.18), transparent 70%); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; position: relative; }
.contact h2 { color: var(--white); }
.contact-list { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list svg { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: var(--gold); stroke-width: 1.8; margin-top: 3px; }
.contact-list a { color: var(--white); text-decoration: none; font-weight: 500; }
.contact-list a:hover { color: var(--gold); }

.enquiry { background: var(--white); color: var(--ink); border-radius: 14px; padding: clamp(24px, 4vw, 40px); box-shadow: 0 30px 60px -20px rgba(0,0,0,.45); display: grid; gap: 14px; }
.enquiry h3 { font-family: var(--font-display); font-size: 1.9rem; color: var(--navy-deep); margin-bottom: 4px; }
.enquiry label { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.enquiry input, .enquiry select, .enquiry textarea {
  font: 400 1rem var(--font-body); color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: #FCFBF8;
  transition: border-color .2s, box-shadow .2s;
}
.enquiry input:focus, .enquiry select:focus, .enquiry textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(202,163,76,.25); }
.enquiry input:user-invalid { border-color: var(--orange); }
.form-note { margin: 0; font-size: .85rem; color: var(--muted); text-align: center; }

/* ===== Footer ===== */
.site-footer { background: #0F1A35; color: rgba(255,255,255,.7); padding: 64px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 40px; }
.footer-logo { height: 92px; width: auto; margin-bottom: 12px; }
.footer-project-logo { width: 150px; margin-bottom: 10px; }
.footer-tag { font-family: var(--font-display); font-style: italic; font-size: 1.2rem; color: var(--gold); }
.site-footer h4 { color: var(--white); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.approvals { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .82rem; line-height: 1.9; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding-top: 24px; display: grid; gap: 6px; }
.footer-bottom p { margin: 0; }
.disclaimer { font-size: .8rem; color: rgba(255,255,255,.5); }

/* ===== Lightbox ===== */
/* Opened with :target (href="#view-…"), closed by linking to "#_" */
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; flex-direction: column; align-items: center; justify-content: center; padding: 24px; }
.lightbox:target { display: flex; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(10,16,32,.94); cursor: zoom-out; }
.lightbox img { position: relative; max-width: 100%; max-height: 82vh; border-radius: 6px; pointer-events: none; }
.lightbox-caption { position: relative; color: rgba(255,255,255,.8); margin-top: 14px; font-size: .95rem; pointer-events: none; }
.lightbox-close { position: absolute; z-index: 1; top: 14px; right: 18px; color: var(--white); font-size: 2.6rem; line-height: 1; text-decoration: none; padding: 6px 12px; }
.lightbox-close:hover { color: var(--gold); }
.g-item { display: block; }

/* ===== Floating call ===== */
.fab-call { display: none; position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: var(--orange); box-shadow: 0 12px 24px -8px rgba(240,77,35,.7); place-items: center; }
.fab-call svg { width: 24px; height: 24px; fill: none; stroke: var(--white); stroke-width: 2; }

/* ===== Reveal on scroll (CSS scroll-driven; ignored where unsupported) ===== */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .section-head, .amenity-grid, .project-grid > *, .about-grid > *, .amaravati-grid > *,
    .distances, .map-col, .spec-list, .gallery-grid, .contact-grid > *, .masterplan-figure {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg { animation: none; transform: none; }
}

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .main-nav { gap: 20px; }
  .amenity-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .brand { height: 52px; }
  .nav-toggle--open { display: block; }
  #menu:target ~ .nav-toggle--open { display: none; }
  #menu:target ~ .nav-toggle--close { display: block; }
  .main-nav {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); padding: 8px 16px 20px;
    box-shadow: 0 20px 30px -20px rgba(23,38,74,.4);
    transform: translateY(-120%); transition: transform .35s ease; z-index: -1;
  }
  .main-nav:target { transform: none; }
  .main-nav a:not(.btn) { color: var(--navy-deep) !important; animation: none !important; padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .main-nav a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 14px; }
  /* While the menu is open, force the solid header */
  .site-header:has(#menu:target) { animation: none !important; background: var(--white) !important; }
  .site-header:has(#menu:target) .brand-logo--light { animation: none !important; opacity: 0 !important; }
  .site-header:has(#menu:target) .brand-logo--dark { animation: none !important; opacity: 1 !important; }
  .site-header:has(#menu:target) .nav-toggle span { animation: none !important; background: var(--navy-deep) !important; }

  .about-grid, .project-grid, .location-grid, .amaravati-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-logo-wrap { max-width: 420px; }
  .project-head { grid-template-columns: 1fr; gap: 20px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
  .fab-call { display: grid; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero-overlay { background: linear-gradient(0deg, rgba(23,38,74,.95) 10%, rgba(23,38,74,.6) 60%, rgba(23,38,74,.35)); }
  .hero-content { padding-bottom: 56px; align-self: flex-end; }
  .hero h1 br { display: none; }
  .hero-actions .btn { flex: 1 1 100%; }
  .amenity-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .amenity { padding: 20px 16px; }
  .facts { grid-template-columns: 1fr; }
  .distances { grid-template-columns: 1fr; }
  .spec-list dl { grid-template-columns: 1fr; gap: 2px; }
  .spec-list dd { margin-bottom: 10px; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .g-item--wide { grid-column: auto; }
  .lifestyle-overlay { background: linear-gradient(0deg, rgba(23,38,74,.92) 20%, rgba(23,38,74,.3)); }
  .lifestyle-content { align-self: flex-end; padding: 48px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ===== WordPress additions ===== */
/* wp_nav_menu outputs <ul><li><a>; flatten so links behave like the static nav */
.main-nav ul, .main-nav li { display: contents; list-style: none; margin: 0; padding: 0; }

/* Keep the fixed header below the admin bar for logged-in users */
.admin-bar .site-header { top: 32px; }
.admin-bar .main-nav { top: calc(72px + 46px); }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (min-width: 783px) and (max-width: 900px) { .admin-bar .main-nav { top: calc(72px + 32px); } }

/* Contact Form 7 / generic form plugin styling inside the enquiry card */
.enquiry .wpcf7 form { display: grid; gap: 14px; }
.enquiry .wpcf7 p { margin: 0; }
.enquiry .wpcf7 label { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.enquiry .wpcf7 input:not([type=submit]), .enquiry .wpcf7 select, .enquiry .wpcf7 textarea {
  width: 100%; font: 400 1rem var(--font-body); color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: #FCFBF8;
}
.enquiry .wpcf7 input[type=submit] {
  width: 100%; padding: 14px 28px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--gold); color: var(--navy-deep); font: 600 .95rem/1 var(--font-body); letter-spacing: .04em;
}
.enquiry .wpcf7-response-output { margin: 0 !important; border-radius: 8px; font-size: .9rem; }

/* Inner pages (blog posts, privacy policy, etc.) */
.page-shell { padding: calc(var(--header-h) + 56px) 0 80px; min-height: 70vh; }
.page-shell .entry { max-width: 780px; margin-inline: auto; }
.page-shell .entry + .entry { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--line); }
.page-shell .entry-title a { text-decoration: none; color: inherit; }
.page-shell .entry-content img { height: auto; border-radius: var(--radius); }
.page-shell .entry-content a { color: var(--amber); }
.pagination { max-width: 780px; margin: 48px auto 0; display: flex; justify-content: space-between; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

.page-shell h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem); color: var(--navy-deep); }
