/* coast 2 coast Realty — Mandurah, WA
   Palette derived from the site photography: white coastal homes,
   deep ocean/sky teal, warm Mandurah sand, turquoise estuary, sunset gold. */

:root {
  --ink: #103b46;        /* deep ocean teal — primary brand */
  --ink-soft: #1c5060;   /* lighter teal for gradients/borders */
  --sand: #f7f2e9;       /* warm coastal sand — page background */
  --sand-deep: #ece3d2;  /* deeper sand for section bands */
  --gold: #c9913f;       /* sunset amber — accent / CTA */
  --gold-dark: #b07e30;
  --sea: #2f9c93;        /* turquoise estuary — secondary highlight */
  --paper: #ffffff;
  --text: #233238;       /* body text */
  --muted: #5d6b6f;      /* secondary text */
  --line: #e2d9c8;       /* hairline on sand */
  --shadow: 0 18px 48px -22px rgba(16, 59, 70, 0.45);
  --shadow-sm: 0 8px 24px -16px rgba(16, 59, 70, 0.45);
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1180px;
  --gut: clamp(1.1rem, 4vw, 2.4rem);
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--sand);
  line-height: 1.65;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--ink); text-decoration: none; }

h1, h2, h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.12; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.7rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p { margin: 0 0 1rem; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .74rem;
  font-weight: 600;
  color: var(--gold-dark);
  margin: 0 0 .9rem;
}
.eyebrow.on-dark { color: var(--gold); }

.lead { font-size: 1.14rem; color: var(--muted); max-width: 60ch; }

/* ---------- Buttons / CTAs ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  letter-spacing: .01em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold); color: #2a1c05; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--gold-dark); color: #1f1503; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-soft); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-ghost-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.65); }
.btn-ghost-light:hover { background: #fff; color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 242, 233, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}
.logo { display: inline-flex; align-items: center; gap: .7rem; }
.logo svg { flex: none; }
.logo .word { display: flex; flex-direction: column; line-height: 1; }
.logo .word .name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.28rem;
  color: var(--ink);
  letter-spacing: .005em;
}
.logo .word .tag {
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .28em;
  color: var(--gold-dark);
  margin-top: .28rem;
  font-weight: 600;
}

.nav { display: flex; align-items: center; gap: .35rem; }
.nav a {
  padding: .55rem .85rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: .96rem;
  color: var(--ink);
  transition: background .15s ease, color .15s ease;
}
.nav a:hover { background: var(--sand-deep); }
.nav a[aria-current="page"] { color: var(--gold-dark); font-weight: 600; }
.header-cta { margin-left: .6rem; }

/* mobile nav toggle (CSS-only hamburger) */
.nav-toggle { display: none; }
.hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  cursor: pointer;
}
.hamburger span,
.hamburger span::before,
.hamburger span::after {
  content: "";
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.hamburger span::before { position: absolute; top: -7px; }
.hamburger span::after { position: absolute; top: 7px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16,59,70,.42) 0%, rgba(16,59,70,.30) 40%, rgba(13,40,48,.78) 100%);
  z-index: -1;
}
.hero img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero-inner {
  min-height: clamp(520px, 78vh, 760px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-block: clamp(3rem, 9vh, 6rem);
}
.hero h1 { color: #fff; max-width: 16ch; }
.hero .hero-sub { color: rgba(255,255,255,.92); font-size: 1.18rem; max-width: 48ch; margin-bottom: 1.8rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  margin-top: 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255,255,255,.22);
  font-size: .92rem;
  color: rgba(255,255,255,.9);
}
.hero-meta span { display: inline-flex; align-items: center; gap: .5rem; }
.hero-meta svg { flex: none; }

/* compact hero for sub-pages */
.subhero {
  position: relative;
  color: #fff;
  isolation: isolate;
}
.subhero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,59,70,.55), rgba(13,40,48,.78));
  z-index: -1;
}
.subhero img.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2;
}
.subhero-inner { padding-block: clamp(3rem, 12vh, 5.5rem); }
.subhero h1 { color: #fff; max-width: 18ch; }
.subhero p { color: rgba(255,255,255,.92); max-width: 54ch; font-size: 1.1rem; margin-bottom: 0; }
.crumb { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.2rem, 8vw, 5.5rem); }
.section.band { background: var(--sand-deep); }
.section.ink { background: var(--ink); color: rgba(255,255,255,.9); }
.section.ink h2, .section.ink h3 { color: #fff; }
.section-head { max-width: 64ch; margin-bottom: 2.4rem; }
.section-head.center { margin-inline: auto; text-align: center; }

/* pathway cards (sell / buy / appraise) */
.path-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}
.path-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.7rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.path-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.path-card .ic {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(47,156,147,.12);
  margin-bottom: 1.1rem;
}
.path-card .ic svg { color: var(--ink); }
.path-card p { color: var(--muted); }
.path-card .go {
  margin-top: auto;
  font-weight: 600;
  color: var(--gold-dark);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.path-card .go::after { content: "\2192"; transition: transform .15s ease; }
.path-card:hover .go::after { transform: translateX(4px); }

/* feature list */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem 2rem;
}
.feature {
  display: flex;
  gap: 1rem;
}
.feature .tick {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold);
  color: #2a1c05;
  font-weight: 700;
}
.feature h3 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; color: var(--ink); margin-bottom: .25rem; }
.feature p { color: var(--muted); font-size: .96rem; margin: 0; }
.section.ink .feature p { color: rgba(255,255,255,.78); }
.section.ink .feature h3 { color: #fff; }

/* split (text + image) */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(1.8rem, 5vw, 3.5rem);
  align-items: center;
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.split .media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* image gallery grid */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform .4s ease; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figure.tall { grid-row: span 2; }
.gallery figure.tall img { aspect-ratio: 4 / 5; height: 100%; }
.gallery figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: .9rem 1rem .8rem;
  background: linear-gradient(180deg, transparent, rgba(13,40,48,.82));
  color: #fff;
  font-size: .86rem;
  font-weight: 500;
}

/* stats strip */
.strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.4rem;
  text-align: center;
}
.strip .item .k { font-family: var(--font-display); font-size: 2rem; color: var(--gold); display: block; }
.strip .item .v { font-size: .95rem; color: rgba(255,255,255,.8); }

/* beach banner */
.beach-band {
  position: relative;
  color: #fff;
  isolation: isolate;
  text-align: center;
}
.beach-band::after { content: ""; position: absolute; inset: 0; background: rgba(16,59,70,.5); z-index: -1; }
.beach-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.beach-band .wrap { padding-block: clamp(3.5rem, 9vw, 6rem); }
.beach-band h2 { color: #fff; max-width: 22ch; margin-inline: auto; }
.beach-band p { color: rgba(255,255,255,.92); max-width: 52ch; margin-inline: auto 1.6rem; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2.2rem, 6vw, 3.4rem);
  text-align: center;
  box-shadow: var(--shadow);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.88); max-width: 52ch; margin-inline: auto 1.6rem; }
.cta-band .btns { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

/* steps */
.steps { counter-reset: step; display: grid; gap: 1.3rem; }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem;
  align-items: start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  font-family: var(--font-display);
  font-size: 1.3rem;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink);
  color: #fff;
}
.step h3 { margin-bottom: .3rem; }
.step p { margin: 0; color: var(--muted); }

/* testimonial / note */
.note {
  background: var(--paper);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.6rem 1.8rem;
  box-shadow: var(--shadow-sm);
  font-size: 1.08rem;
}
.note p { font-style: italic; color: var(--text); margin-bottom: .6rem; }
.note .who { font-style: normal; font-weight: 600; color: var(--ink); font-size: .95rem; }

/* FAQ */
.faq { display: grid; gap: .8rem; max-width: 820px; }
.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--gold-dark); line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: .9rem 0 0; color: var(--muted); }

/* contact layout */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.8rem, 5vw, 3rem); align-items: start; }
.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.9rem;
  box-shadow: var(--shadow-sm);
}
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list .ic { flex: none; width: 42px; height: 42px; border-radius: 12px; background: rgba(47,156,147,.12); display: grid; place-items: center; }
.contact-list .ic svg { color: var(--ink); }
.contact-list .lbl { font-size: .76rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); display: block; }
.contact-list a, .contact-list strong { color: var(--ink); font-weight: 600; font-size: 1.05rem; }
.map-embed { border: 0; width: 100%; height: 320px; border-radius: var(--radius); margin-top: 1.4rem; }

/* simple two-col prose */
.prose-cols { columns: 2; column-gap: 2.4rem; }
.prose-cols p { break-inside: avoid; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.78); padding-block: clamp(2.8rem, 6vw, 4rem) 1.6rem; margin-top: 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 2rem;
}
.site-footer .logo .word .name { color: #fff; }
.site-footer .logo .word .tag { color: var(--gold); }
.footer-about p { color: rgba(255,255,255,.7); font-size: .95rem; margin-top: 1rem; max-width: 34ch; }
.footer-col h4 { color: #fff; font-family: var(--font-body); font-size: .82rem; text-transform: uppercase; letter-spacing: .16em; margin: 0 0 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer-col a, .footer-col li { color: rgba(255,255,255,.78); font-size: .95rem; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14);
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .6rem;
  font-size: .82rem;
  color: rgba(255,255,255,.6);
}

/* ---------- Utilities ---------- */
.stack-sm > * + * { margin-top: .6rem; }
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse { direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; }
  .prose-cols { columns: 1; }

  /* mobile nav */
  .hamburger { display: inline-flex; }
  .nav {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--sand);
    border-bottom: 1px solid var(--line);
    padding: .6rem var(--gut) 1.2rem;
    transform: translateY(-130%);
    transition: transform .28s ease;
    box-shadow: var(--shadow);
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }
  .nav a { padding: .9rem .4rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav .header-cta { margin: 1rem 0 0; }
  .nav-toggle:checked ~ .nav { transform: translateY(0); }
}

@media (max-width: 620px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery figure.tall { grid-row: auto; }
  .gallery figure.tall img { aspect-ratio: 4 / 3; }
  .hero-meta { gap: 1rem; }
  .cta-band .btns { flex-direction: column; }
  .cta-band .btn { width: 100%; }
}
