/* Crystal Saly — Realtor®
   Clean and photo-led: white, charcoal and deep harbor navy. Crystal's photos carry the colour. */
/* Fonts are hosted with the site (faster than loading from Google) */
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/manrope-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/manrope-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/manrope-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/manrope-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/playfair-display-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/playfair-display-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Allura'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/allura-latin-400-normal.woff2') format('woff2'); }

:root {
  --navy: #143049;
  --navy-deep: #0E2236;
  --ink: #1E2A33;
  --muted: #5B6873;
  --line: #DDE3E8;
  --light: #F3F5F7;
  --white: #FFFFFF;
  --gold: #B8935E;      /* from Crystal's gold-glitter design art */
  --art-navy: #1E3048;  /* matches the watercolour navy in the footer art */

  --font: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: "Playfair Display", Georgia, serif;   /* the "LISTED" serif from Crystal's flyers */
  --script: "Allura", cursive;                    /* gold script, used once for her signature */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
picture { display: contents; }
picture > source { display: none; } /* keep <source> tags out of photo grids */
a { color: var(--navy); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid #6FA8DC; outline-offset: 3px; }

h1, h2, h3 { font-family: var(--font); color: var(--navy-deep); margin: 0 0 .6em; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-family: var(--serif); font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: 66ch; }

.wrap { width: min(1180px, 100% - 3rem); margin-inline: auto; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--navy); color: #fff; padding: .5rem 1rem; z-index: 20; }
.skip:focus { left: .5rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .75rem 1.6rem; border-radius: 4px; border: 1.5px solid transparent; font: 600 .98rem/1 var(--font); text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn-light { background: #fff; color: var(--navy-deep); }
.btn-light:hover { background: var(--light); }
.btn-outline-light { border-color: rgba(255,255,255,.8); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-deep); }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.5rem; }
.brand-group { display: flex; align-items: center; gap: 1.1rem; }
.brand { text-decoration: none; display: grid; line-height: 1.2; }
.brand-logo { height: 46px; width: auto; padding-left: 1.1rem; border-left: 1px solid var(--line); }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.4rem; color: var(--navy-deep); letter-spacing: -0.02em; }
.brand-role { font-size: .8rem; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 1.75rem; font-weight: 500; font-size: .97rem; }
.nav a { text-decoration: none; color: var(--ink); }
.nav a:hover { color: var(--navy); }
.nav .nav-call { border: 1.5px solid var(--navy); color: var(--navy); padding: .5rem 1rem; border-radius: 4px; font-weight: 600; }
.nav .nav-call:hover { background: var(--navy); color: #fff; }

/* Hero: full-width marina photo */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,34,54,.78) 0%, rgba(14,34,54,.45) 45%, rgba(14,34,54,0) 75%), linear-gradient(0deg, rgba(14,34,54,.55) 0%, rgba(14,34,54,0) 45%); }
.hero-copy { position: relative; z-index: 1; padding: 6rem 0 clamp(3rem, 7vw, 5.5rem); }
.hero h1 { color: #fff; font-family: var(--serif); font-size: clamp(2.6rem, 5.6vw, 4.6rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.01em; max-width: 14ch; }
.lede { font-size: 1.2rem; line-height: 1.5; color: rgba(255,255,255,.9); max-width: 38ch; margin: 1.25rem 0 2rem; }
.actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* Intro with headshot */
.intro { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.intro-grid { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.headshot-wrap { position: relative; }
.headshot { width: 100%; height: auto; }
/* Hand-painted orchids from Crystal's design kit, used sparingly */
.flower { position: absolute; pointer-events: none; height: auto; }
.contact-info { position: relative; }
.flower-stem { position: static; width: 170px; margin-top: 2.5rem; }
.intro-copy p { color: #34424C; }
.intro-copy .signature { font-family: var(--script); font-size: clamp(2.6rem, 4vw, 3.2rem); line-height: 1; color: #A07D47; margin: .25rem 0 1.25rem; }
.facts { margin: 1.75rem 0 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: .9rem; }
.facts dd { margin: 0; font-weight: 600; color: var(--navy-deep); }

/* Strengths */
.strengths { background: var(--light); padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.strength-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: 2rem; }
.strength-grid article { border-top: 2px solid var(--gold); padding-top: 1.25rem; }
.strength-grid p { color: var(--muted); margin: 0; }

/* Photo strip */
.gallery-grid { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 6px; }
.gallery-grid img { width: 100%; height: clamp(260px, 38vw, 540px); object-fit: cover; }

/* Areas */
.areas { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-intro { color: var(--muted); font-size: 1.15rem; max-width: 50ch; margin-bottom: 2.25rem; }
.area-list { list-style: none; margin: 0; padding: 0; columns: 4 11rem; column-gap: 2.5rem; }
.area-list li { padding: .6rem 0; border-bottom: 1px solid var(--line); font-weight: 500; break-inside: avoid; }

/* Showcase of Crystal's listing photography */
.showcase { padding: 0 0 clamp(4rem, 8vw, 6.5rem); }
.showcase-head { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: end; margin-bottom: 2rem; }
.showcase-head h2 { margin: 0; }
.showcase-head p { color: var(--muted); margin: 0; }
.showcase-grid { display: grid; grid-template-columns: 1.6fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; height: clamp(360px, 46vw, 620px); }
.showcase-grid img { width: 100%; height: 100%; object-fit: cover; }
.showcase-grid .big { grid-row: 1 / 3; }

/* Search band over the night harbor photo */
.search-band { position: relative; color: #fff; text-align: center; padding: clamp(5rem, 10vw, 8rem) 0; overflow: hidden; }
.band-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.search-band::after { content: ""; position: absolute; inset: 0; background: rgba(14,34,54,.66); }
.search-inner { position: relative; z-index: 1; display: grid; justify-items: center; }
.search-band h2 { color: #fff; }
.search-band p { color: rgba(255,255,255,.88); margin-bottom: 1.75rem; }

/* Reviews */
.reviews { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem 3rem; margin-top: 2.25rem; }
.review { margin: 0; padding-left: 1.25rem; border-left: 2px solid var(--gold); }
.review blockquote { margin: 0 0 .75rem; }
.review blockquote p { font-size: 1.15rem; line-height: 1.5; color: var(--ink); }
.review figcaption { font-size: .9rem; font-weight: 600; color: var(--muted); }

/* Contact */
.contact { background: var(--white); padding: clamp(4rem, 8vw, 6.5rem) 0; }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-info p { color: var(--muted); }
.contact-lines { font-size: 1.15rem; line-height: 1.8; }
.contact-lines a { color: var(--navy-deep); font-weight: 600; text-decoration: none; }
.contact-lines a:hover { text-decoration: underline; }
.contact-lines span { color: var(--ink); }

.form { background: var(--light); border: 1px solid var(--line); border-radius: 6px; padding: clamp(1.5rem, 4vw, 2.5rem); display: grid; gap: 1.2rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: grid; gap: .4rem; font-weight: 600; font-size: .93rem; color: var(--navy-deep); }
.form input:not([type=radio]):not([type=checkbox]), .form textarea { font: 400 1rem/1.4 var(--font); color: var(--ink); padding: .8rem .95rem; border: 1px solid #C9D2D9; border-radius: 4px; background: #fff; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(20,48,73,.12); }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form legend { font-weight: 600; font-size: .93rem; color: var(--navy-deep); margin-bottom: .55rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex !important; position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { padding: .5rem .95rem; border-radius: 4px; border: 1px solid #C9D2D9; font-weight: 500; font-size: .92rem; color: var(--ink); transition: background-color .15s, border-color .15s; }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid #6FA8DC; outline-offset: 2px; }
.form .btn { justify-self: start; margin-top: .3rem; }
.notice { margin: 0; padding: .9rem 1rem; border-radius: 4px; font-weight: 500; }
.notice-ok { background: #E6F0F8; color: var(--navy-deep); }
.notice-err { background: #FDECEA; color: #8A1F14; }

/* Footer: Crystal's navy watercolour, gold glitter and orchid art */
.foot {
  color: #C3CDD8; font-size: .95rem; text-align: center;
  background:
    linear-gradient(to bottom, rgba(30,48,72,0) 82%, var(--art-navy) 100%) top center / 100% 65.65vw no-repeat,
    url("../images/footer-art.webp") top center / 100% auto no-repeat,
    var(--art-navy);
  min-height: 65.65vw;
  padding: 26vw 0 3rem;
}
.foot-inner { width: min(560px, 100% - 3rem); margin-inline: auto; display: grid; justify-items: center; }
.foot a { color: #fff; }
.foot-logo { width: 190px; height: auto; margin-bottom: 1.25rem; }
.foot-name { font-weight: 700; font-size: 1.15rem; color: #fff; margin: 0 0 .35rem; }
.foot-info { margin: 0 0 1.25rem; line-height: 1.7; }
.foot-info a { text-decoration: none; }
.social { list-style: none; margin: 0 0 1.75rem; padding: 0; display: flex; gap: 1.4rem; flex-wrap: wrap; justify-content: center; }
.social a { text-decoration: none; font-weight: 600; }
.social a:hover { color: var(--gold); }
.foot-legal { padding-top: 1.5rem; border-top: 1px solid rgba(184,147,94,.45); font-size: .82rem; color: #9FAEBD; }
.foot-legal p { margin-inline: auto; }
.foot-legal strong { color: #fff; }

/* Responsive */
@media (max-width: 960px) {
  .review-grid { grid-template-columns: 1fr 1fr; }
  .nav a:not(.nav-call):not([target]) { display: none; }
}
@media (max-width: 820px) {
  .intro-grid, .contact-grid { grid-template-columns: 1fr; }
  .headshot-wrap { max-width: 340px; margin-left: 12%; }
  .flower-stem { display: none; }
  .strength-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid picture:nth-child(2) img { grid-column: 1 / -1; grid-row: 1; }
  .showcase-head { grid-template-columns: 1fr; }
  .showcase-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; height: auto; }
  .showcase-grid .big { grid-row: auto; grid-column: 1 / -1; }
  .showcase-grid img { aspect-ratio: 3 / 2; height: auto; }
  .hero::after { background: linear-gradient(0deg, rgba(14,34,54,.85) 0%, rgba(14,34,54,.35) 60%, rgba(14,34,54,.1) 100%); }
}
@media (max-width: 700px) {
  .foot { padding-top: 62vw; }
}
@media (max-width: 560px) {
  .nav a[target] { display: none; }
  .brand-role { display: none; }
  .brand-group { gap: .7rem; }
  .brand-name { font-size: 1.15rem; }
  .brand-logo { height: 32px; padding-left: .7rem; }
  .nav .nav-call { padding: .45rem .7rem; font-size: .88rem; }
  .top-inner { gap: .75rem; }
  .review-grid { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .facts div { grid-template-columns: 1fr; gap: .1rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
