/* ==========================================================================
   Today's Perfect Property — site styles
   Edit colours in :root below to rebrand the whole site.
   ========================================================================== */

:root {
  --brand:        #1f5f55;
  --brand-dark:   #16443d;
  --brand-light:  #e7f0ed;
  --accent:       #c9762f;
  --accent-dark:  #a75f22;
  --ink:          #16211f;
  --body:         #43524f;
  --muted:        #6f807c;
  --line:         #dfe4e2;
  --sand:         #f7f3ec;
  --paper:        #ffffff;
  --shadow-sm: 0 1px 2px rgba(22,33,31,.06), 0 2px 8px rgba(22,33,31,.05);
  --shadow-md: 0 4px 12px rgba(22,33,31,.08), 0 12px 32px rgba(22,33,31,.08);
  --radius: 14px;
  --radius-lg: 22px;
  --max: 1180px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 600;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }
a { color: var(--brand); }
img, svg { max-width: 100%; height: auto; display: block; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 22px; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--sand { background: var(--sand); }
.section--brand { background: var(--brand); color: #dfeae7; }
.section--brand h2, .section--brand h3 { color: #fff; }

.eyebrow {
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 600; color: var(--accent); margin: 0 0 .8em;
}
.section--brand .eyebrow { color: #e9b787; }
.lede { font-size: 1.12rem; color: var(--body); max-width: 62ch; }
.section--brand .lede { color: #cfe0dc; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-body); font-size: 1rem; font-weight: 600;
  padding: .85em 1.6em; border-radius: 100px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; transition: .18s ease;
  line-height: 1.2;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn--dark { background: var(--brand); color: #fff; }
.btn--dark:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn--ghost { border-color: currentColor; color: var(--brand); background: transparent; }
.btn--ghost:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn--light { background: #fff; color: var(--brand-dark); }
.btn--light:hover { background: var(--sand); }
.btn--block { width: 100%; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}

/* ---------- header ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--brand); color: #fff;
  padding: .8em 1.2em; z-index: 100; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 20px; min-height: 74px; }
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; }
.logo__mark { width: 42px; height: 42px; flex: none; border-radius: 50%; object-fit: cover;
  box-shadow: 0 1px 3px rgba(22,33,31,.18); background: #fff; }

/* Brand roundel sitting in the top-right of the hero image. */
.hero__badge { position: absolute; top: 26px; right: 26px; z-index: 3;
  width: clamp(84px, 10vw, 132px); height: clamp(84px, 10vw, 132px);
  border-radius: 50%; object-fit: cover; background: #fff;
  box-shadow: 0 6px 22px rgba(22,33,31,.32); }
@media (max-width: 720px) { .hero__badge { top: 16px; right: 16px; width: 72px; height: 72px; } }
.logo__text { font-family: var(--font-display); font-weight: 600; font-size: 1.06rem; color: var(--ink); line-height: 1.15; letter-spacing: -.01em; }
.logo__text small { display: block; font-family: var(--font-body); font-size: .66rem; letter-spacing: .17em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--body); text-decoration: none; font-weight: 500; font-size: .96rem;
  padding: .5em .85em; border-radius: 8px;
}
.nav a:hover { color: var(--ink); background: var(--sand); }
.nav a[aria-current="page"] { color: var(--brand); font-weight: 600; }
.nav .btn { margin-left: 8px; padding: .62em 1.25em; font-size: .94rem; }

.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--line); border-radius: 10px;
  width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 19px; height: 2px; background: var(--ink); position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 19px; height: 2px; background: var(--ink); }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch;
    padding: 12px 22px 20px; gap: 2px; display: none; box-shadow: var(--shadow-md);
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: .75em .3em; }
  .nav .btn { margin: 10px 0 0; justify-content: center; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(78vh, 660px); display: grid; align-items: center; color: #fff; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(12,29,25,.82) 0%, rgba(12,29,25,.55) 45%, rgba(12,29,25,.25) 100%);
}
.hero__inner { position: relative; padding: clamp(60px, 9vw, 110px) 0; }
.hero h1 { color: #fff; max-width: 17ch; }
.hero .lede { color: #e2ece9; max-width: 52ch; font-size: 1.16rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 38px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.22); font-size: .92rem; color: #d5e3df; }
.hero__trust span { display: flex; align-items: center; gap: .5em; }

.page-head { background: var(--sand); padding: clamp(44px, 6vw, 72px) 0 clamp(40px, 5vw, 60px); border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 20ch; }
.page-head .lede { margin-bottom: 0; }

/* ---------- grids & cards ---------- */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column; transition: .2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card__media { aspect-ratio: 4 / 3; background: var(--brand-light); position: relative; }
.card__media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.card__tag {
  position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,.94); color: var(--ink);
  font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: .42em .85em; border-radius: 100px;
}
.card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { margin-bottom: .28em; font-size: 1.16rem; line-height: 1.22; text-wrap: balance; }
.card__loc { font-size: .84rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 0 0 .8em; }
.card__desc { font-size: .96rem; margin-bottom: 1.1em; }
.card__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.price { font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); font-weight: 600; }
.price small { font-family: var(--font-body); font-size: .82rem; color: var(--muted); font-weight: 500; }

.feature { text-align: left; }
.feature__icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--brand-light); color: var(--brand);
  display: grid; place-items: center; margin-bottom: 16px;
}
.section--brand .feature__icon { background: rgba(255,255,255,.12); color: #fff; }
.feature h3 { font-size: 1.1rem; margin-bottom: .35em; }
.feature p { font-size: .96rem; margin: 0; }

/* ---------- split ---------- */
.split { display: grid; gap: clamp(30px, 5vw, 62px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--wide-left { grid-template-columns: 1.15fr 1fr; } }
.split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }

/* ---------- timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 30px 28px; }
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: 8px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--accent); border: 3px solid #fff;
}
.timeline h3 { font-size: 1.05rem; margin-bottom: .2em; }
.timeline .year { font-size: .8rem; letter-spacing: .13em; text-transform: uppercase; color: var(--accent); font-weight: 700; display: block; margin-bottom: .3em; }
.timeline p { margin: 0; font-size: .97rem; }

/* ---------- gallery ---------- */
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(4, 1fr); border-radius: var(--radius-lg); overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.gallery > :first-child { grid-column: span 2; grid-row: span 2; }
.gallery > :first-child img { aspect-ratio: 1/1; }
@media (max-width: 700px) { .gallery { grid-template-columns: repeat(2, 1fr); } .gallery > :first-child { grid-column: span 2; } }

/* ---------- property detail ---------- */
.prop-layout { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 960px) { .prop-layout { grid-template-columns: 1fr 370px; gap: 52px; } }
.prop-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 18px 0; border-block: 1px solid var(--line); margin-bottom: 28px; font-weight: 500; color: var(--ink); }
.prop-facts span { display: flex; align-items: center; gap: .5em; }
.amenities { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px 24px; }
.amenities li { display: flex; align-items: flex-start; gap: .6em; font-size: .97rem; }
.amenities li::before { content: "✓"; color: var(--brand); font-weight: 700; }
.checklist { list-style: none; margin: 0 0 1.2em; padding: 0; }
.checklist li { display: flex; gap: .7em; margin-bottom: .6em; }
.checklist li::before { content: "✓"; color: var(--accent); font-weight: 700; flex: none; }

.booking-panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow-md); position: sticky; top: 96px;
}
.booking-panel h3 { margin-bottom: .1em; }
.booking-panel .from { color: var(--muted); font-size: .93rem; margin-bottom: 20px; }

/* ---------- forms ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .88rem; font-weight: 600; color: var(--ink); margin-bottom: .4em; }
.field .hint { font-size: .82rem; color: var(--muted); font-weight: 400; }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=number], select, textarea {
  width: 100%; font: inherit; font-size: .98rem; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: 10px; padding: .7em .85em;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand); }
textarea { min-height: 120px; resize: vertical; }
.field-row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.check { display: flex; gap: .7em; align-items: flex-start; font-size: .92rem; }
.check input { margin-top: .3em; flex: none; }

.quote { background: var(--sand); border-radius: var(--radius); padding: 18px 20px; margin: 20px 0; font-size: .95rem; }
.quote__row { display: flex; justify-content: space-between; gap: 16px; padding: .35em 0; }
.quote__row--total { border-top: 1px solid var(--line); margin-top: .5em; padding-top: .8em; font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.quote__row--due { color: var(--accent-dark); font-weight: 700; }
.quote__note { color: var(--muted); font-size: .85rem; margin: .8em 0 0; }

.notice { border-radius: var(--radius); padding: 14px 18px; font-size: .93rem; margin-bottom: 18px; }
.notice--warn { background: #fdf3e6; border: 1px solid #f0d5ae; color: #7c4d13; }
.notice--error { background: #fdeceb; border: 1px solid #f3c6c2; color: #8c2f27; }
.notice--ok { background: #e9f5ef; border: 1px solid #bcdfcd; color: #1c5c3c; }
.notice--info { background: var(--brand-light); border: 1px solid #c8ddd7; color: var(--brand-dark); }
[hidden] { display: none !important; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 20px 40px 20px 0; font-weight: 600; color: var(--ink);
  font-size: 1.04rem; position: relative; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 1.5rem; color: var(--accent); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding-bottom: 20px; max-width: 72ch; }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #9fb1ac; padding: 62px 0 30px; font-size: .94rem; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 1.1em; }
.site-footer a { color: #cfdcd8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .55em; }
.footer-grid { display: grid; gap: 34px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.footer-bottom {
  margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between; font-size: .86rem;
}
.footer-logo { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.footer-logo .logo__text { color: #fff; }
.footer-logo .logo__text small { color: #8fa39e; }

.pay-badges { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.pay-badges svg { height: 26px; width: auto; opacity: .9; }

@media print { .site-header, .site-footer, .booking-panel { display: none; } }

/* ---------- added components ---------- */
.section-head { display: flex; flex-wrap: wrap; gap: 20px; align-items: end; justify-content: space-between; margin-bottom: 40px; }
.section-head > div { max-width: 62ch; }

.rating { display: inline-flex; align-items: center; gap: .4em; font-size: .92rem; color: var(--ink); }
.rating svg { color: var(--accent); fill: var(--accent); width: 17px; height: 17px; }
.rating span { color: var(--muted); font-weight: 500; }
.card__rating { margin-bottom: 14px; }
.rating-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: -.4em; }
.pill { display: inline-block; background: var(--brand-light); color: var(--brand-dark); font-size: .78rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; padding: .38em .85em; border-radius: 100px; }
.card__tag--warn { background: rgba(201,118,47,.95); color: #fff; left: auto; right: 14px; }

.offer-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 24px; }
.offer-card h3 { font-size: 1.08rem; margin-bottom: .4em; }
.offer-card p { font-size: .96rem; margin: 0; color: var(--body); }
.section--brand .offer-card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); }
.section--brand .offer-card p { color: #cfe0dc; }

.stat-stack { display: grid; gap: 14px; }
.stat { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius);
  padding: 18px 22px; display: flex; align-items: baseline; gap: 14px; }
.stat__n { font-family: var(--font-display); font-size: 1.5rem; color: #fff; font-weight: 600; flex: none; }
.stat__l { font-size: .93rem; color: #cfe0dc; }

.checklist--light li { color: #dfeae7; }
.checklist--light li::before { color: #e9b787; }

.terms-table { border-top: 1px solid var(--line); }
.terms-row { display: grid; grid-template-columns: 150px 1fr; gap: 8px 26px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: .97rem; }
.terms-row > span:first-child { font-weight: 600; color: var(--ink); }
@media (max-width: 620px) { .terms-row { grid-template-columns: 1fr; } }

.footnote { font-size: .87rem; color: var(--muted); }
.rule { border: none; border-top: 1px solid var(--line); margin: 20px 0; }
.tick { width: 74px; height: 74px; border-radius: 50%; background: var(--brand-light); color: var(--brand);
  display: grid; place-items: center; margin: 0 auto 24px; }

/* ---------- numbered steps ---------- */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 26px 56px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 36px; height: 36px; border-radius: 50%; background: var(--brand-light); color: var(--brand-dark);
  display: grid; place-items: center; font-weight: 700; font-size: .95rem;
}
.steps li::after {
  content: ""; position: absolute; left: 17.5px; top: 42px; bottom: 6px; width: 1.5px; background: var(--line);
}
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.06rem; margin-bottom: .25em; }
.steps p { font-size: .97rem; margin: 0; }

/* Founder's pull-quote on the About page. */
.pullquote { margin: 34px 0 0; padding: 26px 30px; border-left: 4px solid var(--accent);
  background: var(--sand); border-radius: 0 var(--radius) var(--radius) 0; }
.pullquote p { font-family: var(--font-display, Georgia, serif); font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.4; color: var(--brand, #1f5f55); margin: 0; }
.pullquote cite { display: block; margin-top: 12px; font-style: normal; font-size: .9rem;
  letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }

/* A short real example, sitting under a grid of claims. */
.example-card { margin: 38px auto 0; max-width: 74ch; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 30px; }
.example-card .eyebrow { margin: 0 0 10px; }
.example-card p { margin: 0 0 .9em; }
.example-card p:last-child { margin-bottom: 0; }
