/* ============================================
   Staycious — Shared Styles
   ============================================ */

/* Palette: deep sea-green + warm honey on soft cream.
   Typeface: Archivo (per Staycious style guide, 2024-06-12). */
:root {
  --ink: #24332e;
  --ink-mid: #5b6d66;
  --grey: #8fa099;
  --primary: #2e6e5e;
  --primary-dark: #1f5044;
  --primary-tint: #e9f2ee;
  --gold: #e9b769;
  --gold-dark: #cf9440;
  --highlight: #f2d492;
  --cream: #f9f7f2;
  --white: #ffffff;
  --line: #e5e1d6;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(36, 51, 46, 0.08);
  --shadow-lg: 0 18px 50px rgba(36, 51, 46, 0.14);
  --font-display: 'Archivo', 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-body: 'Archivo', 'Segoe UI', Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-dark);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.brand span { color: var(--gold-dark); }

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

.nav-links a {
  text-decoration: none;
  color: var(--ink-mid);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--primary); }

.nav-links a.btn { color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.6rem;
  color: var(--primary-dark);
  line-height: 1;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-gold {
  background: var(--gold);
  color: var(--ink);
}

.btn-gold:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 110px 0 120px;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(233, 183, 105, 0.25), transparent 60%),
    linear-gradient(160deg, #1f5044 0%, #2e6e5e 55%, #3a8271 100%);
  color: var(--white);
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 -2px 0;
  height: 80px;
  background: var(--cream);
  clip-path: ellipse(75% 100% at 50% 100%);
}

.hero-inner { position: relative; max-width: 700px; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--highlight);
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.5px;
  font-size: clamp(2.4rem, 5.2vw, 3.8rem);
  line-height: 1.12;
  margin-bottom: 22px;
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 36px;
  max-width: 560px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Page hero (interior pages) */
.page-hero {
  padding: 80px 0 90px;
}

.page-hero p { margin-bottom: 0; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }

.section-head {
  max-width: 620px;
  margin: 0 auto 50px;
  text-align: center;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--ink);
  margin-bottom: 14px;
}

.section-head p { color: var(--ink-mid); font-size: 1.05rem; }

.section-alt { background: var(--white); }

/* ---------- Cards / grids ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

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

.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--primary-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.card p { color: var(--ink-mid); font-size: 0.97rem; }

/* ---------- Property cards ---------- */
.property-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.property-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.property-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.property-photo {
  height: 210px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.property-photo .tag {
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
}

.photo-1 { background: linear-gradient(135deg, #3a8271, #1f5044); }
.photo-2 { background: linear-gradient(135deg, #e9b769, #b57e2e); }
.photo-3 { background: linear-gradient(135deg, #56707e, #24332e); }
.photo-4 { background: linear-gradient(135deg, #8fb59e, #4c7a61); }
.photo-5 { background: linear-gradient(135deg, #c48d70, #8a5a41); }
.photo-6 { background: linear-gradient(135deg, #6d89a8, #3a556b); }

.property-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.property-body h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.property-loc {
  color: var(--ink-mid);
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.property-specs {
  display: flex;
  gap: 18px;
  font-size: 0.88rem;
  color: var(--ink-mid);
  margin-bottom: 18px;
}

.property-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.price { font-weight: 700; font-size: 1.15rem; color: var(--primary-dark); }
.price small { font-weight: 500; color: var(--ink-mid); font-size: 0.8rem; }

/* ---------- Stats band ---------- */
.stats-band {
  background: var(--primary-dark);
  color: var(--white);
  padding: 56px 0;
}

.stats-band .grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--gold);
}

.stat-label { font-size: 0.92rem; color: rgba(255, 255, 255, 0.8); }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-field { display: flex; flex-direction: column; gap: 7px; }

.form-field.full { grid-column: 1 / -1; }

.form-field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--cream);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(46, 110, 94, 0.14);
  background: var(--white);
}

.form-field textarea { resize: vertical; min-height: 110px; }

.form-note {
  font-size: 0.85rem;
  color: var(--ink-mid);
  margin-top: 16px;
}

.form-success {
  display: none;
  background: var(--primary-tint);
  border: 1.5px solid var(--primary);
  color: var(--primary-dark);
  border-radius: 10px;
  padding: 18px 22px;
  margin-top: 20px;
  font-weight: 500;
}

.form-success.show { display: block; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 30px 26px 26px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.step-num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.step h3 { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--ink-mid); font-size: 0.95rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(800px 400px at 15% 120%, rgba(233, 183, 105, 0.3), transparent 60%),
    linear-gradient(140deg, #1f5044, #2e6e5e);
  color: var(--white);
  border-radius: 20px;
  padding: 64px 48px;
  text-align: center;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 14px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 520px;
  margin: 0 auto 30px;
}

/* ---------- Values / About ---------- */
.value-list { list-style: none; display: flex; flex-direction: column; gap: 22px; }

.value-list li { display: flex; gap: 16px; align-items: flex-start; }

.value-list .dot {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--primary-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.value-list strong { display: block; margin-bottom: 3px; }
.value-list p { color: var(--ink-mid); font-size: 0.95rem; }

.about-visual {
  border-radius: 20px;
  min-height: 420px;
  background:
    radial-gradient(400px 300px at 80% 20%, rgba(233, 183, 105, 0.4), transparent 60%),
    linear-gradient(150deg, #3a8271, #1f5044);
  position: relative;
  overflow: hidden;
}

.about-visual .quote {
  position: absolute;
  bottom: 32px;
  left: 32px;
  right: 32px;
  background: rgba(250, 247, 241, 0.95);
  border-radius: 14px;
  padding: 22px 24px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.5;
}

.about-visual .quote cite {
  display: block;
  margin-top: 10px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.85rem;
  color: var(--ink-mid);
}

/* ---------- Calendly embed ---------- */
.calendly-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 8px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  padding: 60px 0 30px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}

.site-footer .brand { color: var(--white); font-size: 1.4rem; }

.site-footer h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.site-footer ul { list-style: none; }

.site-footer ul li { margin-bottom: 10px; }

.site-footer a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.93rem;
}

.site-footer a:hover { color: var(--gold); }

.footer-tagline { margin-top: 14px; font-size: 0.93rem; max-width: 300px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .property-grid, .steps { grid-template-columns: 1fr 1fr; }
  .stats-band .grid-4 { grid-template-columns: 1fr 1fr; gap: 36px; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 10px 0;
  }

  .nav-links.open { display: flex; }

  .nav-links li { padding: 12px 24px; }

  .nav-links a.btn { text-align: center; }

  .grid-3, .property-grid, .steps, .form-grid { grid-template-columns: 1fr; }

  .hero { padding: 70px 0 90px; }

  .form-card { padding: 28px 22px; }

  .cta-band { padding: 44px 26px; }
}

/* ---- Loading screen (black-loop video preloader) ---- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.6s ease;
}
#preloader.hide { opacity: 0; }
#preloader.done { display: none; }
#preloader video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
