/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles — Manggo Pererenan
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --color-bg:        #F7F5F0;   /* cream — main background */
  --color-surface:   #FFFFFF;   /* cards */
  --color-soft:      #D6D2C7;   /* soft beige — dividers */
  --color-muted:     #B7B7B2;   /* warm grey — secondary text */
  --color-accent:    #C08A4E;   /* copper — primary accent */
  --color-accent-dk: #A0723E;
  --color-ink:       #1B1B1B;   /* near-black — primary text */
  --color-on-dark:   #F7F5F0;

  --font-display: "Cormorant Garamond", "Georgia", serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-sm: 4px;
  --radius:    10px;
  --radius-lg: 18px;

  --shadow-sm: 0 2px 8px rgba(27, 27, 27, 0.06);
  --shadow:    0 12px 30px rgba(27, 27, 27, 0.10);

  --container: 1200px;
  --header-h: 84px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a { color: var(--color-accent); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--color-accent-dk); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--color-ink);
}

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

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(247, 245, 240, 0);
  transition: background .3s var(--ease), box-shadow .3s var(--ease), backdrop-filter .3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.logo img {
  height: 56px;
  width: auto;
  transition: height .3s var(--ease), filter .3s var(--ease);
  /* light logo on transparent dark hero */
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}
.site-header.is-scrolled .logo img {
  height: 48px;
  filter: none;
}

/* ---------- Navigation ---------- */
.main-nav { display: flex; align-items: center; }

.nav-list {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  color: var(--color-on-dark);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
  transition: color .2s var(--ease);
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-list a:hover::after { transform: scaleX(1); }

.site-header.is-scrolled .nav-list a { color: var(--color-ink); }

.nav-cta {
  padding: 8px 18px !important;
  border: 1px solid currentColor;
  border-radius: 999px;
}
.nav-cta::after { display: none; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-on-dark);
  margin: 5px 0;
  transition: transform .3s var(--ease), opacity .3s var(--ease), background .3s var(--ease);
}
.site-header.is-scrolled .nav-toggle span { background: var(--color-ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-accent-dk);
  color: #fff;
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--color-on-dark);
  border-color: rgba(247, 245, 240, 0.6);
}
.btn-ghost:hover {
  background: rgba(247, 245, 240, 0.1);
  color: var(--color-on-dark);
  border-color: var(--color-on-dark);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--color-on-dark);
  /* Instant first paint: show the poster as a background while the video downloads */
  background: #1b1b1b url("../img/hero/hero-poster.jpg") center/cover no-repeat;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  transition: opacity 1s var(--ease);
}
.hero-video.is-playing { opacity: 1; }
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(27, 27, 27, 0.55) 0%, rgba(27, 27, 27, 0.25) 50%, rgba(27, 27, 27, 0.75) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 120px;
  padding-bottom: 80px;
  max-width: 900px;
}
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.85rem;
  color: var(--color-accent);
  margin: 0 0 18px;
}
.hero-title {
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 500;
  margin: 0 0 24px;
  color: var(--color-on-dark);
}
.hero-title em {
  font-style: italic;
  color: var(--color-soft);
  font-weight: 400;
}
.hero-subtitle {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  max-width: 620px;
  color: rgba(247, 245, 240, 0.9);
  margin: 0 0 36px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  z-index: 2;
  width: 28px;
  height: 46px;
  border: 1px solid rgba(247, 245, 240, 0.6);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.hero-scroll span {
  display: block;
  width: 2px;
  height: 8px;
  background: var(--color-on-dark);
  border-radius: 2px;
  animation: scroll-hint 1.8s var(--ease) infinite;
}
@keyframes scroll-hint {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- Sections ---------- */
.section {
  padding: 110px 0;
  position: relative;
}
.section-alt { background: var(--color-soft); }
.section-dark {
  background: var(--color-ink);
  color: var(--color-on-dark);
}
.section-dark h2,
.section-dark h3 { color: var(--color-on-dark); }

.section-head {
  text-align: center;
  margin-bottom: 64px;
}
.section-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.8rem;
  color: var(--color-accent);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 0;
}

/* ---------- About ---------- */
.about-grid { display: grid; gap: 60px; }
.about-lead {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  line-height: 1.5;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  color: var(--color-ink);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.feature {
  background: var(--color-surface);
  border: 1px solid var(--color-soft);
  border-radius: var(--radius);
  padding: 36px 30px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.feature-num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-accent);
  margin-bottom: 18px;
  border-bottom: 1px solid var(--color-accent);
  padding-bottom: 4px;
}
.feature h3 { font-size: 1.4rem; margin-bottom: 10px; }
.feature p { color: var(--color-ink); opacity: 0.8; margin: 0; }

/* ---------- Location ---------- */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.location-text p { font-size: 1.05rem; }
.location-list {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
}
.location-list li {
  padding: 14px 0;
  border-bottom: 1px solid rgba(27, 27, 27, 0.12);
  font-size: 1rem;
}
.location-list strong {
  color: var(--color-accent);
  font-weight: 600;
  margin-right: 10px;
}
.map-placeholder {
  aspect-ratio: 4 / 3;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.5) 0 12px, transparent 12px 24px),
    var(--color-muted);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: 1.4rem;
}
.map-placeholder small { font-family: var(--font-body); font-size: .85rem; opacity: .7; }

/* ---------- Listings ---------- */
.listings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.listing-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-soft);
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.listing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.listing-media {
  aspect-ratio: 4 / 3;
  background: var(--color-muted);
  position: relative;
  overflow: hidden;
}
.listing-media::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-bg);
  letter-spacing: 0.1em;
}
.listing-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--color-accent);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 2;
}
.listing-body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.listing-title { font-size: 1.5rem; margin: 0 0 6px; }
.listing-sub { color: var(--color-muted); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.15em; margin: 0 0 18px; }
.listing-specs {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  border-top: 1px solid var(--color-soft);
  padding-top: 18px;
  margin-top: auto;
  font-size: 0.9rem;
  color: var(--color-ink);
}
.listing-specs span strong { color: var(--color-accent); margin-right: 4px; }
.listing-price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-accent);
  margin: 14px 0 0;
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.gallery-item {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-soft);
  position: relative;
  cursor: zoom-in;
}
.gallery-item::before {
  /* subtle shimmer placeholder while the thumbnail is loading */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg,
      rgba(255,255,255,0)   0%,
      rgba(255,255,255,.35) 50%,
      rgba(255,255,255,0)   100%) ,
    var(--color-soft);
  background-size: 200% 100%, 100% 100%;
  animation: gallery-shimmer 1.6s linear infinite;
}
.gallery-item img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.gallery-item img.is-loaded {
  opacity: 1;
  transform: scale(1);
}
.gallery-item:hover img.is-loaded { transform: scale(1.06); }

@keyframes gallery-shimmer {
  0%   { background-position: 200% 0, 0 0; }
  100% { background-position: -200% 0, 0 0; }
}

/* ---------- Section lead (intro paragraph in section head) ---------- */
.section-lead {
  max-width: 720px;
  margin: 24px auto 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-ink);
  opacity: 0.85;
  text-align: center;
}
.section-dark .section-lead {
  color: var(--color-on-dark);
  opacity: 0.85;
}

/* ---------- Collection overview (Duplex vs Signature) ---------- */
.collection-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.collection-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--color-surface);
  color: var(--color-ink);
  border: 1px solid rgba(27, 27, 27, 0.08);
  border-radius: var(--radius-lg);
  padding: 50px 40px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.collection-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--color-accent);
  color: var(--color-ink);
}
.collection-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--color-accent);
}
.collection-card h3 {
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  margin: 0;
}
.collection-card p {
  margin: 0 0 12px;
  color: var(--color-ink);
  opacity: 0.8;
}
.collection-stats {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(27, 27, 27, 0.12);
  padding-top: 24px;
  margin-top: auto;
}
.collection-stats span {
  display: flex;
  flex-direction: column;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-muted);
}
.collection-stats strong {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 6px;
}

/* ---------- Suites — Solis & Luna ---------- */
.suites-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 60px;
}
.suite-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-soft);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.suite-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.suite-media {
  aspect-ratio: 16 / 10;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.solis-media {
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 226, 178, 0.55), transparent 65%),
    linear-gradient(135deg, #d8a771 0%, #c08a4e 55%, #8a5d2e 100%);
  color: rgba(255, 244, 222, 0.9);
}
.luna-media {
  background:
    radial-gradient(circle at 70% 30%, rgba(190, 200, 220, 0.18), transparent 65%),
    linear-gradient(135deg, #2d2d30 0%, #1b1b1b 55%, #0d0d0e 100%);
  color: rgba(225, 225, 232, 0.92);
}
.suite-symbol {
  font-size: clamp(4.5rem, 9vw, 7rem);
  line-height: 1;
  filter: drop-shadow(0 6px 22px rgba(0, 0, 0, 0.3));
}
.suite-body {
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.suite-tag {
  display: inline-block;
  width: fit-content;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  padding: 6px 14px;
  border-radius: 999px;
}
.suite-card h3 {
  font-size: 1.8rem;
  margin: 0;
}
.suite-lead {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.4;
  margin: 0;
  color: var(--color-ink);
}
.suite-features {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  display: grid;
  gap: 18px;
}
.suite-features li {
  display: grid;
  gap: 6px;
  font-size: 0.98rem;
  line-height: 1.55;
}
.suite-features li > span {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* ---------- Shared pool callout ---------- */
.shared-pool {
  background: var(--color-ink);
  color: var(--color-on-dark);
  border-radius: var(--radius-lg);
  padding: 60px 50px;
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}
.shared-pool .section-eyebrow { color: var(--color-accent); }
.shared-pool h3 {
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  color: var(--color-on-dark);
  margin: 8px 0 18px;
}
.shared-pool p {
  max-width: 660px;
  margin: 0 auto;
  color: rgba(247, 245, 240, 0.85);
}

/* ---------- Signature Residence — Villa Eclipse ---------- */
.eclipse-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
}
.eclipse-media {
  background:
    radial-gradient(circle at 70% 50%, rgba(192, 138, 78, 0.45), transparent 60%),
    linear-gradient(135deg, #1b1b1b 0%, #2a2a2a 55%, #5a3f23 130%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  color: rgba(247, 245, 240, 0.92);
}
.eclipse-body {
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.eclipse-body h3 {
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  color: var(--color-on-dark);
  margin: 0;
}
.eclipse-body p {
  margin: 0;
  color: rgba(247, 245, 240, 0.85);
}
.section-dark .suite-features li > span {
  color: var(--color-muted);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
}
.contact-lead {
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1.5;
  margin: 0 0 30px;
  color: var(--color-on-dark);
}
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(247, 245, 240, 0.15);
  align-items: center;
}
.contact-list span {
  color: var(--color-muted);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.contact-list a { color: var(--color-on-dark); }
.contact-list a:hover { color: var(--color-accent); }

.contact-form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: grid; gap: 8px; }
.contact-form label > span {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.contact-form input,
.contact-form textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(247, 245, 240, 0.3);
  color: var(--color-on-dark);
  padding: 10px 0;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color .2s var(--ease);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-bottom-color: var(--color-accent);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.form-status { min-height: 1.4em; font-size: 0.9rem; color: var(--color-accent); margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-ink);
  color: var(--color-muted);
  padding: 36px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}
.footer-meta { margin: 0; letter-spacing: 0.1em; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .location-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 48px; }

  .collection-grid,
  .suites-grid { grid-template-columns: 1fr; }
  .eclipse-card { grid-template-columns: 1fr; }
  .eclipse-media { min-height: 240px; }
  .eclipse-body { padding: 44px 30px; }
  .shared-pool { padding: 50px 28px; }
  .collection-card { padding: 40px 28px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-list {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--color-ink);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    transform: translateY(-100%);
    transition: transform .35s var(--ease);
    padding: 40px;
  }
  .nav-list.is-open { transform: translateY(0); }
  .nav-list a { color: var(--color-on-dark); font-size: 1.1rem; }
  .site-header.is-scrolled .nav-list a { color: var(--color-on-dark); }

  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

