/* ═══════════════════════════════════════════════════════════════
   Rachel Mounce Homes — site.css
   One stylesheet for every page. Colours and fonts live in :root;
   change them there and the whole site follows.
   ═══════════════════════════════════════════════════════════════ */

@font-face { font-family: "Cormorant Garamond"; src: url("/fonts/cormorant-garamond-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("/fonts/eb-garamond-normal.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("/fonts/eb-garamond-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --bg: #faf5ee;        /* cream page ground */
  --ink: #000;          /* text */
  --blue: #386388;      /* bands, cards, buttons */
  --footer: #9f9c97;    /* warm grey footer */
  --cream: #faf5ee;     /* text on photos and blue */
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "EB Garamond", Garamond, Georgia, serif;
  --gutter: clamp(20px, 3vw, 43px);
  --wide: 1354px;
  --narrow: 1128px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: clamp(17px, 1.351vw, 19.456px); line-height: 1.8; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; margin: 0 0 .5em; line-height: 1.25; }

.display-xl { font-size: clamp(44px, 4.83vw, 69.5px); line-height: 1.22; }
.display-l  { font-size: clamp(38px, 4.7vw, 68px); line-height: 1.23; }
.display-m  { font-size: clamp(32px, 3.27vw, 47px); line-height: 1.3; }
.display-s  { font-size: clamp(26px, 2.55vw, 36.7px); line-height: 1.33; }
.display-xs { font-size: clamp(22px, 2vw, 29px); line-height: 1.35; }
.lead       { font-size: clamp(19px, 1.711vw, 24.64px); line-height: 1.8; }
.lead-xl    { font-size: clamp(22px, 2.311vw, 33.28px); line-height: 1.8; }
.center { text-align: center; }

.wrap { max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: calc(var(--narrow) + 2 * var(--gutter)); }
.section { padding: clamp(56px, 7vw, 100px) 0; }
.section.tight { padding: clamp(32px, 4vw, 48px) 0; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 100; }

/* ── Buttons: the outlined pill used across the site ── */
.btn { display: inline-flex; align-items: center; justify-content: center; line-height: 1.2; font-family: var(--body); font-size: clamp(15px, 1.23vw, 17.7px); letter-spacing: .02em; text-decoration: none; padding: .95em 2.1em; border: 2px solid currentColor; border-radius: 300px; transition: background .2s, color .2s; }
.btn.on-dark { color: var(--cream); }
.btn.on-dark:hover { background: var(--cream); color: var(--ink); }
.btn.on-light { color: var(--blue); }
.btn.on-light:hover { background: var(--blue); color: var(--cream); border-color: var(--blue); }
.btn.solid { background: var(--blue); color: var(--cream); border-color: var(--blue); }

/* ═══ Header ═══ */
.site-header { background: var(--bg); position: relative; z-index: 20; }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px var(--gutter); max-width: 1440px; margin: 0 auto; min-height: 128px; }
.logo img { width: clamp(150px, 13vw, 190px); }
.nav-main { display: flex; align-items: center; gap: clamp(14px, 1.5vw, 22px); }
.nav-main > a, .nav-main .has-sub > a { text-decoration: none; font-size: clamp(16px, 1.35vw, 19.5px); line-height: 1.3; padding: 4px 0; border-bottom: 1px solid transparent; }
.nav-main a:hover, .nav-main a[aria-current="page"] { border-bottom-color: currentColor; }
.has-sub { position: relative; }
.has-sub .sub { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); background: var(--bg); padding: 14px 22px; min-width: 250px; display: none; flex-direction: column; gap: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.has-sub:hover .sub, .has-sub:focus-within .sub { display: flex; }
.has-sub .sub a { text-decoration: none; font-size: 18px; white-space: nowrap; }
.has-sub .sub a:hover { text-decoration: underline; }
.nav-main .btn { margin-left: clamp(8px, 1.6vw, 24px); font-size: 14.3px; padding: 1.35em 2.5em; color: var(--blue); border-width: 2px; }
.nav-main .btn:hover { background: var(--blue); color: var(--cream); }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; width: 28px; height: 1.5px; background: var(--ink); margin: 6px 0; }

@media (max-width: 900px) {
  .site-header .bar { min-height: 88px; justify-content: center; position: relative; }
  .logo img { width: 110px; }
  .menu-toggle { display: block; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); }
  .nav-main { display: none; position: fixed; inset: 0; background: var(--bg); flex-direction: column; justify-content: center; gap: 14px; z-index: 50; }
  .nav-main.open { display: flex; }
  .nav-main > a, .nav-main .has-sub > a { font-size: 30px; font-family: var(--display); }
  .has-sub { text-align: center; }
  .has-sub .sub { position: static; transform: none; display: flex; box-shadow: none; padding: 4px 0 0; min-width: 0; background: none; }
  .has-sub .sub a { font-size: 19px; }
  .nav-main .btn { margin: 12px 0 0; font-size: 17px; padding: 1em 2.4em; }
  .menu-close { position: absolute; top: 22px; left: 18px; font-size: 38px; line-height: 1; background: none; border: 0; cursor: pointer; }
}
@media (min-width: 901px) { .menu-close { display: none; } }

/* ═══ Photo heroes & bands (photo behind text) ═══ */
.photo-band { position: relative; color: var(--cream); overflow: hidden; }
.photo-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-band::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,var(--shade, .18)); z-index: 1; }
.photo-band > .wrap, .photo-band > .inner { position: relative; z-index: 2; }
.photo-band h1, .photo-band h2, .photo-band h3 { color: var(--cream); }

.hero-home { min-height: 540px; display: flex; align-items: center; }
.hero-home .inner { padding: 90px var(--gutter); max-width: 740px; }
.hero-home .display-xl { font-size: clamp(44px, 4.83vw, 69.5px); margin-bottom: .6em; }
.page-hero { min-height: clamp(260px, 32vw, 465px); display: flex; align-items: center; justify-content: center; text-align: center; }
.page-hero .inner { padding: 60px var(--gutter); max-width: 760px; }

.blue-band { background: var(--blue); color: var(--cream); padding: clamp(40px, 4.6vw, 60px) var(--gutter); text-align: center; }
.blue-band h1, .blue-band h2 { color: var(--cream); margin: 0; }

/* ═══ Home: What we do ═══ */
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4.7vw, 68px); }
.three-col img { aspect-ratio: 330 / 229; object-fit: cover; width: 100%; margin-bottom: 34px; }
.three-col .display-m { margin-bottom: .75em; }
.three-col p { line-height: 1.8; }
@media (max-width: 800px) { .three-col { grid-template-columns: 1fr; gap: 56px; } }
.properties-band { min-height: 594px; display: flex; align-items: center; justify-content: center; text-align: center; --shade: .12; }
.properties-band .inner { max-width: 600px; padding: 60px var(--gutter); }

/* ── Video: click-to-play facade (no YouTube request until clicked) ── */
.video { position: relative; aspect-ratio: 16 / 9; background: #000; cursor: pointer; overflow: hidden; }
.video img { width: 100%; height: 100%; object-fit: cover; }
.video button { position: absolute; inset: 0; margin: auto; width: 84px; height: 60px; border: 0; border-radius: 14px; background: rgba(0,0,0,.72); cursor: pointer; transition: background .2s; }
.video:hover button { background: #c00; }
.video button::after { content: ""; position: absolute; left: 34px; top: 18px; border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent #fff; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ═══ Contact band: photo + HubSpot form (every page) ═══ */
.contact-band { min-height: 868px; display: flex; align-items: center; --shade: 0; }
.contact-band .inner { width: 100%; max-width: 1440px; margin: 0 auto; padding: 60px var(--gutter) 60px 58%; }
.contact-band h2 { color: var(--ink); text-align: center; margin-bottom: .2em; }
@media (max-width: 900px) {
  /* phones: form on the sky colour, photo underneath it */
  .contact-band { min-height: 0; display: flex; flex-direction: column-reverse; background: linear-gradient(#a8bcd2, #e9edf0 70%); }
  .contact-band > img { position: static; height: auto; aspect-ratio: 4 / 3; object-position: 20% 80%; }
  .contact-band .inner { padding: 44px var(--gutter) 28px; }
}

/* HubSpot form, restyled to match the old site */
.hs-form-wrap { font-family: Helvetica, Arial, sans-serif; font-size: 13px; color: var(--ink); min-height: 420px; }
.hs-form-wrap fieldset { max-width: none !important; }
.hs-form-wrap .hs-form-field { margin-bottom: 18px; }
.hs-form-wrap label { font-size: 13px; color: #111; }
.hs-form-wrap .hs-form-required { color: #f2545b; }
.hs-form-wrap input[type=text], .hs-form-wrap input[type=email], .hs-form-wrap input[type=tel], .hs-form-wrap textarea, .hs-form-wrap select {
  width: 100% !important; background: transparent; border: 0; border-bottom: 1px solid #b7c6d6; border-radius: 0; padding: 10px 0; font-size: 15px; outline: none; }
.hs-form-wrap .inputs-list { list-style: none; padding: 0; margin: 6px 0 0; }
.hs-form-wrap .inputs-list label { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.hs-form-wrap .hs-error-msg { color: #f2545b; }
.hs-form-wrap .hs-button { background: var(--blue); color: #fff; border: 0; border-radius: 3px; padding: 12px 24px; font: 700 12px Helvetica, Arial, sans-serif; cursor: pointer; margin-top: 10px; }
.hs-form-wrap .hs-button:hover { background: #2c4f6d; }
.hs-form-wrap .form-columns-2 { display: flex; gap: 36px; }
.hs-form-wrap .form-columns-2 .hs-form-field { flex: 1; width: auto !important; float: none !important; }
.hs-form-wrap .form-columns-2 .input { margin-right: 0 !important; }
@media (max-width: 600px) { .hs-form-wrap .form-columns-2 { flex-direction: column; gap: 0; } }

/* Pop-up form (Realtor "Get The Guide!") */
button.btn { background: none; cursor: pointer; }
.form-dialog { width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 32px); border: 0; padding: clamp(28px, 4vw, 44px); background: var(--bg); color: var(--ink); overflow: auto; }
.form-dialog::backdrop { background: rgba(0, 0, 0, .55); }
.form-dialog h2 { text-align: center; margin: 0 0 .8em; padding: 0 24px; }
.form-dialog .hs-form-wrap { min-height: 0; }
.dialog-close { position: absolute; top: 10px; right: 14px; background: none; border: 0; font-size: 36px; line-height: 1; cursor: pointer; color: var(--ink); }

/* ═══ Blue card overlapping a photo (Services, Realtor) ═══ */
.overlap { display: grid; grid-template-columns: repeat(12, 1fr); align-items: start; }
.overlap .photo { grid-row: 1 / span 2; }
.overlap .photo img { width: 100%; aspect-ratio: 842 / 750; object-fit: cover; }
.overlap .card { background: var(--blue); color: var(--cream); padding: clamp(28px, 2.8vw, 40px); margin-top: 40px; position: relative; z-index: 2; }
.overlap .card h2 { color: var(--cream); margin-bottom: .7em; }
.overlap .card p { line-height: 1.8; margin-bottom: .8em; }
.overlap .list { padding-top: 40px; }
.overlap .list ul { padding-left: 1.2em; margin: 0; }
.overlap .list li { margin-bottom: .55em; line-height: 1.7; }
.overlap .list h3 { font-family: var(--body); font-size: clamp(19px, 1.711vw, 24.64px); font-weight: 400; margin-bottom: .8em; }
/* photo left, card right */
.overlap.left .photo { grid-column: 1 / span 7; }
.overlap.left .card  { grid-column: 7 / span 6; grid-row: 1; }
.overlap.left .list  { grid-column: 8 / span 5; grid-row: 2; padding-left: 12%; }
/* photo right, card left */
.overlap.right .photo { grid-column: 5 / span 8; }
.overlap.right .card  { grid-column: 1 / span 5; grid-row: 1; }
.overlap.right .list  { grid-column: 1 / span 4; grid-row: 2; padding-left: 8%; }
@media (max-width: 800px) {
  .overlap { display: block; }
  .overlap .card { margin: -60px 0 0; }
  .overlap.right .card { margin: -60px 0 0; }
  .overlap .list, .overlap.right .list { padding: 32px 8px 0; }
}
.divider { border: 0; border-top: 1px solid var(--ink); width: 40%; margin: clamp(40px, 4vw, 64px) auto; }

/* ═══ Card grids (Vacation Rentals, STR Management) ═══ */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 3.6vw, 52px); }
.grid-4.flush { gap: 10px; }
.grid-4 img { width: 100%; object-fit: cover; }
.grid-4 h3 { margin-top: .8em; }
.grid-4 p { line-height: 1.8; }
.vr-cards img { aspect-ratio: 330 / 230; }
.vr-cards h3 { margin: .9em 0 .8em; }
.vr-cards .col p { padding-right: 4px; }
.str-cards h3 { font-size: clamp(22px, 1.831vw, 26.37px); margin: 0 0 .5em; }
.str-cards p { font-size: 16px; }
.str-cards img { aspect-ratio: 293 / 221; margin-top: 18px; }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } .grid-4.flush { gap: 24px; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4.4vw, 64px); align-items: start; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

/* STR hero: text left, photo right to the page edge */
.str-hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4.7vw, 68px); align-items: stretch; padding-left: var(--gutter); }
.str-hero .text { display: flex; flex-direction: column; justify-content: space-between; padding: 90px 0 60px; }
.str-hero .text hr { border: 0; border-top: 1px solid var(--ink); margin: 40px 0 26px; }
.str-hero img { width: 100%; height: 100%; min-height: min(952px, 66vw); object-fit: cover; }
@media (max-width: 800px) {
  .str-hero { grid-template-columns: 1fr; padding: 0; }
  .str-hero .text { padding: 48px var(--gutter) 24px; }
  .str-hero img { min-height: 0; aspect-ratio: 4 / 3; }
}

/* ═══ Stay With Us ═══ */
.property img { width: 100%; aspect-ratio: 500 / 308; object-fit: cover; margin-bottom: 48px; }
.property .facts { font-weight: 600; margin-bottom: 1.2em; }
.property p { line-height: 1.8; }
.property { align-self: stretch; display: flex; flex-direction: column; }
.booking { margin-top: auto; padding-top: 48px; }
.booking h3 { text-align: center; max-width: 300px; margin: 0 auto .6em; }
.booking iframe { width: 100%; border: 0; display: block; }

/* ═══ About ═══ */
.about p { line-height: 1.8; margin-bottom: 2.2em; }

/* ═══ Realtor landing page ═══ */
.realtor-hero { min-height: 320px; display: flex; align-items: center; --shade: .1; }
.realtor-hero .inner { padding: 50px var(--gutter); max-width: 700px; }
.checks { padding-left: 1.3em; }
.checks li { font-weight: 600; margin-bottom: .6em; }
.checks ul li { font-weight: 400; }
.checks ul { list-style: circle; font-weight: 400; margin-top: .6em; }
.banner img { width: 100%; aspect-ratio: 1354 / 230; object-fit: cover; }

.testimonials { position: relative; max-width: 1354px; margin: 0 auto; padding: 0 var(--gutter); text-align: center; }
.testimonials .slide { display: none; max-width: 700px; margin: 0 auto; }
.testimonials .slide.active { display: block; }
.testimonials blockquote { margin: 0 0 1.4em; font-family: var(--display); font-size: clamp(26px, 2.551vw, 36.74px); line-height: 1.33; }
.testimonials cite { font-style: normal; font-size: 17px; }
.testimonials .arrow { position: absolute; top: 40%; width: 60px; height: 60px; border-radius: 50%; border: 0; background: rgba(56,99,136,.7); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.testimonials .prev { left: var(--gutter); }
.testimonials .next { right: var(--gutter); }
@media (max-width: 700px) { .testimonials { padding-bottom: 80px; } .testimonials .arrow { top: auto; bottom: 0; } .testimonials .prev { left: calc(50% - 70px); } .testimonials .next { right: calc(50% - 70px); } }

.guarantee { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.guarantee img { width: min(330px, 80%); margin: 0 auto; }
@media (max-width: 800px) { .guarantee { grid-template-columns: 1fr; text-align: center; } }

/* ═══ Contact page ═══ */
.contact-page { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4.7vw, 68px); align-items: start; }
.contact-page img { width: 100%; }
@media (max-width: 800px) { .contact-page { grid-template-columns: 1fr; } }

/* ═══ Blog ═══ */
.post-card { max-width: 652px; text-align: center; }
.post-card img { width: 100%; aspect-ratio: 652 / 435; object-fit: cover; margin-bottom: 26px; }
.post-card time { font-family: Poppins, Helvetica, Arial, sans-serif; font-size: 15px; }
.post-card h2 a { text-decoration: none; }
.post-card .excerpt { font-size: clamp(22px, 2.311vw, 33.28px); line-height: 1.8; }
.post-card .more { color: var(--blue); font-family: var(--display); font-size: 29px; text-decoration: none; border-bottom: 1px solid currentColor; }
.article { max-width: 1000px; margin: 0 auto; padding: 0 var(--gutter); }
.article time { font-family: Poppins, Helvetica, Arial, sans-serif; font-size: 15px; }
.article h1 { font-size: clamp(38px, 4.711vw, 67.84px); margin: .4em 0 .8em; line-height: 1.37; }
.article .body p { line-height: 1.8; }
.article .body a { color: var(--blue); }

/* ═══ Privacy ═══ */
.legal { font-family: Arial, Helvetica, sans-serif; color: #595959; font-size: 14px; line-height: 1.9; }
.legal h1 { font-family: Arial, Helvetica, sans-serif; font-weight: 700; color: #000; font-size: 26px; }
.legal h2 { font-family: Arial, Helvetica, sans-serif; font-weight: 700; color: #000; font-size: 19px; margin-top: 2.4em; }
.legal h3 { font-family: Arial, Helvetica, sans-serif; font-weight: 700; color: #000; font-size: 16px; margin-top: 1.6em; }
.legal a { color: #3030f1; text-decoration: none; }
.legal .toc { margin: 0 0 .35em; }
.legal ul { padding-left: 1.4em; list-style: square; }
.legal table { border-collapse: collapse; width: 100%; } .legal td, .legal th { border: 1px solid #ccc; padding: 8px; vertical-align: top; }

/* ═══ Footer ═══ */
.site-footer { background: var(--footer); color: var(--cream); padding: clamp(48px, 5vw, 72px) 0 clamp(56px, 5vw, 80px); }
.site-footer .inner { max-width: 1440px; margin: 0 auto; padding: 0 15%; }
.site-footer h2 { font-size: clamp(28px, 2.55vw, 36.7px); margin-bottom: .9em; color: var(--cream); }
.site-footer p { margin: 0 0 .9em; font-size: clamp(16px, 1.35vw, 19.5px); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .legal-links { font-size: 14px; margin-top: 1.6em; opacity: .9; }
@media (max-width: 700px) { .site-footer .inner { padding: 0 var(--gutter); } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
