/* ============================================================
   PARISH RESIDENCE — Design System
   Palette: verandah teal, warm sand, clay sunset, soft gold, ink
   Type: Fraunces (display) + Public Sans (body/UI)
   Signature: louvered "verandah rail" slat dividers
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500&family=Public+Sans:wght@400;500;600;700&display=swap');

:root {
  --teal-deep:   #0F4C44;
  --teal-mid:    #1B655B;
  --sand:        #EDE4D3;
  --sand-light:  #F6F1E7;
  --clay:        #C2683D;
  --clay-light:  #E0A87B;
  --gold:        #C9A35C;
  --ink:         #1C2521;
  --ink-soft:    #44514C;
  --cream-paper: #FBF8F1;
  --white:       #FFFFFF;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 1180px;
  --radius: 2px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ---------------- Typography ---------------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--teal-deep);
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
}

.lede {
  font-size: 19px;
  color: var(--ink-soft);
  font-weight: 400;
  max-width: 640px;
}

p { margin: 0 0 16px; }

/* ---------------- Header / Nav ---------------- */

header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 241, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(28, 37, 33, 0.08);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--teal-deep);
  font-weight: 600;
}

.brand .mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 30px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}

.nav-links a {
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--clay); }
.nav-links a.active { color: var(--teal-deep); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 2px;
  background: var(--clay);
}

.nav-cta {
  background: var(--teal-deep);
  color: var(--sand-light) !important;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--clay); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle svg { width: 26px; height: 26px; color: var(--teal-deep); }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .nav-row.mobile-open + .mobile-menu { display: flex; }
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 0 32px 24px;
  gap: 16px;
  font-size: 16px;
  font-weight: 600;
}
.mobile-menu a.nav-cta { display: inline-block; width: fit-content; }

/* ---------------- Verandah Rail Divider (signature element) ---------------- */
/* A horizontal louvered-slat motif referencing Jamaican jalousie windows
   and verandah railings — used as the structural divider between sections. */

.verandah-rail {
  height: 34px;
  width: 100%;
  background: repeating-linear-gradient(
    100deg,
    var(--teal-deep) 0px,
    var(--teal-deep) 3px,
    transparent 3px,
    transparent 22px
  );
  opacity: 0.85;
}
.verandah-rail.on-sand {
  background: repeating-linear-gradient(
    100deg,
    var(--gold) 0px,
    var(--gold) 3px,
    transparent 3px,
    transparent 22px
  );
  opacity: 0.55;
}
.verandah-rail.on-teal {
  background: repeating-linear-gradient(
    100deg,
    var(--sand) 0px,
    var(--sand) 3px,
    transparent 3px,
    transparent 22px
  );
  opacity: 0.35;
}

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-primary {
  background: var(--clay);
  color: var(--white);
}
.btn-primary:hover { background: #A8552E; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border-color: var(--sand-light);
  color: var(--sand-light);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }

.btn-outline-dark {
  background: transparent;
  border-color: var(--teal-deep);
  color: var(--teal-deep);
}
.btn-outline-dark:hover { background: var(--teal-deep); color: var(--sand-light); }

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  background: linear-gradient(180deg, #0B3833 0%, var(--teal-deep) 55%, #2C7A6C 100%);
  color: var(--sand-light);
  overflow: hidden;
  padding: 90px 0 0;
}

.hero-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-sun {
  position: absolute;
  right: 8%;
  top: 18%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--clay-light) 0%, var(--clay) 55%, transparent 78%);
  opacity: 0.55;
  filter: blur(2px);
}

.hero-hills {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 38%;
}
.hero-hills svg { width: 100%; height: 100%; display: block; }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 70px 32px 120px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.hero h1 {
  color: var(--sand-light);
  font-size: clamp(38px, 5.4vw, 60px);
  line-height: 1.06;
  font-weight: 500;
  margin: 14px 0 22px;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}

.hero .lede {
  color: #DCE8E3;
  font-size: 18px;
  max-width: 520px;
}

.hero-cta-row {
  display: flex;
  gap: 14px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.hero-card {
  background: rgba(251, 248, 241, 0.08);
  border: 1px solid rgba(251, 248, 241, 0.18);
  border-radius: 4px;
  padding: 30px;
  backdrop-filter: blur(6px);
}
.hero-card .stat-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(251,248,241,0.14);
}
.hero-card .stat-row:last-child { border-bottom: none; }
.hero-card .stat-label { color: #C7D8D2; font-size: 14px; }
.hero-card .stat-value { font-family: var(--font-display); font-size: 22px; color: var(--gold); }

@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; padding-bottom: 70px; }
  .hero-card { order: -1; }
}

/* ---------------- Sections ---------------- */

section { padding: 86px 0; }
.section-sand { background: var(--sand-light); }
.section-cream { background: var(--cream-paper); }
.section-teal { background: var(--teal-deep); color: var(--sand-light); }
.section-teal h2, .section-teal h3 { color: var(--sand-light); }

.section-head {
  margin-bottom: 50px;
  max-width: 680px;
}
.section-head h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  margin-top: 10px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ---------------- Cards / Grids ---------------- */

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

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

.card {
  background: var(--white);
  border: 1px solid rgba(28,37,33,0.08);
  border-radius: 4px;
  padding: 32px;
}

.unit-card {
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(28,37,33,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.unit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(15, 76, 68, 0.14);
}
.unit-card-band {
  height: 8px;
}
.unit-card-body { padding: 28px; }
.unit-card .tag {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 10px;
  display: block;
}
.unit-card h3 { font-size: 24px; margin-bottom: 8px; }
.unit-card .price {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--teal-deep);
  margin: 14px 0 4px;
}
.unit-card .price span {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 600;
}
.unit-card ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.unit-card ul li {
  padding: 7px 0;
  border-top: 1px solid rgba(28,37,33,0.07);
  display: flex;
  gap: 8px;
}
.unit-card ul li:first-child { border-top: none; }
.unit-card ul li svg { width: 16px; height: 16px; color: var(--teal-mid); flex-shrink: 0; margin-top: 2px; }

/* Service list icons */
.service-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid rgba(28,37,33,0.08);
}
.service-item:last-child { border-bottom: none; }
.service-icon {
  width: 38px; height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-icon svg { width: 18px; height: 18px; color: var(--teal-deep); }
.service-item h4 { font-size: 16.5px; margin-bottom: 4px; color: var(--ink); font-family: var(--font-body); font-weight: 700; }
.service-item p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }

/* ---------------- Stat strip ---------------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(251,248,241,0.2);
  border-bottom: 1px solid rgba(251,248,241,0.2);
}
.stat-strip > div {
  padding: 36px 24px;
  text-align: center;
  border-right: 1px solid rgba(251,248,241,0.2);
}
.stat-strip > div:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-display);
  font-size: 38px;
  color: var(--gold);
  display: block;
}
.stat-label {
  font-size: 13.5px;
  color: #C7D8D2;
  margin-top: 6px;
}
@media (max-width: 760px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-strip > div:nth-child(2) { border-right: none; }
}

/* ---------------- Timeline (About page) ---------------- */
.timeline {
  position: relative;
  padding-left: 36px;
  border-left: 2px solid var(--gold);
}
.timeline-item {
  position: relative;
  padding-bottom: 38px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -42px;
  top: 4px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--clay);
  border: 3px solid var(--cream-paper);
}
.timeline-item .phase-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--clay);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.timeline-item h4 { font-family: var(--font-display); font-size: 21px; margin: 4px 0 8px; color: var(--teal-deep); }
.timeline-item p { color: var(--ink-soft); font-size: 15px; margin: 0; }

/* ---------------- Footer ---------------- */
footer {
  background: var(--ink);
  color: #C7D8D2;
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-grid h5 {
  font-family: var(--font-body);
  color: var(--sand-light);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-grid a, .footer-grid p {
  display: block;
  font-size: 14.5px;
  color: #A9BAB4;
  margin-bottom: 10px;
}
.footer-grid a:hover { color: var(--gold); }
.footer-brand {
  font-family: var(--font-display);
  color: var(--sand-light);
  font-size: 22px;
  margin-bottom: 14px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 13px;
  color: #7E9189;
  flex-wrap: wrap;
  gap: 10px;
}

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

/* ---------------- Page header (non-home pages) ---------------- */
.page-header {
  background: linear-gradient(180deg, #0B3833 0%, var(--teal-deep) 100%);
  color: var(--sand-light);
  padding: 130px 0 70px;
}
.page-header h1 {
  color: var(--sand-light);
  font-size: clamp(32px, 4.6vw, 48px);
  margin: 14px 0 16px;
}
.page-header .lede { color: #DCE8E3; }

/* ---------------- Misc ---------------- */
.divider-space { height: 1px; }
.center-text { text-align: center; margin-left: auto; margin-right: auto; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--sand);
  color: var(--teal-deep);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; gap: 36px; }
}

.illus-frame {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(28,37,33,0.1);
}

.contact-card {
  background: var(--white);
  border-radius: 6px;
  padding: 36px;
  border: 1px solid rgba(28,37,33,0.08);
}
.contact-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid rgba(28,37,33,0.08);
}
.contact-row:last-child { border-bottom: none; }
.contact-row .ic {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--sand);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-row .ic svg { width: 18px; height: 18px; color: var(--teal-deep); }
.contact-row h4 { font-size: 15px; margin: 0 0 4px; font-family: var(--font-body); }
.contact-row p, .contact-row a { margin: 0; font-size: 14.5px; color: var(--ink-soft); }
.contact-row a:hover { color: var(--clay); }
