/* frippislandbuilder.com — Sand & Seas Builders, LLC
   Colors come from the logo (navy #173e7e, red #d32126). Fonts: EB Garamond for headings (close to the
   serif in the logo), Figtree for everything else. Both self-hosted, SIL Open Font License. */

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

:root {
  --navy: #173e7e;
  --navy-dark: #0f2b5b;
  --navy-ink: #0b2047;
  --red: #d32126;
  --red-dark: #b0191e;
  --sand: #f6f2ea;
  --sand-dark: #ebe4d6;
  --ink: #1c2333;
  --muted: #545d6e;
  --line: #e2dccf;
  --white: #fff;
  --serif: "EB Garamond", Garamond, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1160px;
  --radius: 6px;
  --header-h: 88px;
  --shadow: 0 18px 40px -22px rgba(11, 32, 71, .45);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--red); }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; color: var(--navy-ink); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--navy-ink); line-height: 1.12; letter-spacing: -.005em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.25rem); }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.5rem; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 200; background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: var(--radius); }
.skip-link:focus { top: 1rem; color: #fff; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2.5rem, 780px); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 600 .875rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  padding: 1.05em 2em; border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); color: #fff; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-dark); color: #fff; }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn__arrow { width: 1em; height: 1em; transition: transform .2s; }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .97); backdrop-filter: saturate(1.4) blur(8px); transition: box-shadow .25s; }
.header.is-scrolled { box-shadow: 0 6px 24px -14px rgba(11, 32, 71, .35); }
.header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.header__brand img { width: 250px; height: auto; }
.nav { display: flex; align-items: center; gap: 2.25rem; }
.nav__item { font: 600 .8125rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--navy); text-decoration: none; padding: .6rem 0; position: relative; }
.nav__item::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav__item:hover, .nav__item[aria-current="page"] { color: var(--navy); }
.nav__item:hover::after, .nav__item[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { padding: .95em 1.6em; font-size: .8125rem; }
.nav .btn[aria-current="page"] { background: var(--red-dark); }
.menu-toggle { display: none; background: none; border: 0; padding: .5rem; margin-right: -.5rem; color: var(--navy); cursor: pointer; }
.menu-toggle svg { width: 28px; height: 28px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }
.menu-toggle .icon-close { display: none; }
.menu-open .menu-toggle .icon-open { display: none; }
.menu-open .menu-toggle .icon-close { display: block; }

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .header__brand img { width: 200px; }
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: .5rem 1.25rem 1.5rem; box-shadow: 0 24px 30px -20px rgba(11, 32, 71, .35);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .menu-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav__item { font-size: .9375rem; padding: 1.05rem .25rem; border-bottom: 1px solid var(--line); }
  .nav__item::after { display: none; }
  .nav__item[aria-current="page"] { color: var(--red); }
  .nav .btn { margin-top: 1.25rem; padding: 1.1em; font-size: .875rem; }
  .nav__phone { display: block; text-align: center; margin-top: 1rem; font-weight: 600; text-decoration: none; }
}
@media (min-width: 901px) { .nav__phone { display: none; } }

/* ---------- Banners ---------- */
.banner { position: relative; display: grid; place-items: center; min-height: clamp(360px, 56vh, 560px); color: #fff; text-align: center; overflow: hidden; isolation: isolate; }
.banner--home { min-height: clamp(520px, calc(100vh - var(--header-h)), 860px); }
.banner__img { position: absolute; inset: 0; z-index: -2; }
.banner__img img { width: 100%; height: 100%; object-fit: cover; }
.banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(11, 32, 71, .42), rgba(11, 32, 71, .12) 70%), linear-gradient(180deg, rgba(11, 32, 71, .18) 0%, rgba(11, 32, 71, .1) 40%, rgba(11, 32, 71, .55) 100%); }
.banner__content { padding: 4rem 1.25rem; max-width: 900px; }
.banner__eyebrow { font: italic 500 clamp(1.25rem, 2.2vw, 1.6rem)/1.3 var(--serif); margin: 0 0 .6rem; opacity: .95; }
.banner h1 { color: #fff; margin: 0; text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.banner--home h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); }
.banner .btn { margin-top: 2.25rem; }
.banner__scroll { position: absolute; left: 50%; bottom: 1.5rem; translate: -50% 0; width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .7); border-radius: 14px; }
.banner__scroll::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: scrollcue 1.8s ease-in-out infinite; }
@keyframes scrollcue { 0%, 20% { opacity: 0; transform: translateY(0); } 50% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) { .banner__scroll::after { animation: none; } .btn, .btn__arrow, .nav { transition: none; } }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section--tight { padding-top: clamp(2.5rem, 5vw, 4rem); }
.section--sand { background: var(--sand); }
.eyebrow { display: inline-block; font: 600 .8125rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--red); margin: 0 0 1.1rem; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.25rem); line-height: 1.75; color: var(--muted); }
.center { text-align: center; }
.rule { width: 64px; height: 3px; background: var(--red); border: 0; margin: 1.5rem auto 1.75rem; }

/* Intro on the home page */
.intro h2 { margin-bottom: 0; }

/* Alternating photo + text rows */
.feature-list { display: grid; gap: clamp(4rem, 8vw, 6.5rem); }
.feature { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: clamp(2rem, 6vw, 5rem); }
.feature--flip .feature__media { order: 2; }
.feature__media { position: relative; }
.feature__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.feature__media::after { content: ""; position: absolute; z-index: -1; inset: 1.25rem -1.25rem -1.25rem 1.25rem; border-radius: var(--radius); background: var(--sand); }
.feature--flip .feature__media::after { inset: 1.25rem 1.25rem -1.25rem -1.25rem; }
.feature__body h2 { font-size: clamp(2.1rem, 3.6vw, 3rem); margin-bottom: .2em; }
.feature__body h2::after { content: ""; display: block; width: 48px; height: 3px; background: var(--red); margin-top: .55em; }
.feature__body p { font-size: 1.1875rem; line-height: 1.75; color: var(--muted); margin-top: 1.25rem; }
.feature__body .btn { margin-top: 1.5rem; }
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; }
  .feature--flip .feature__media { order: 0; }
  .feature__media::after { inset: .9rem -.9rem -.9rem .9rem; }
  .feature--flip .feature__media::after { inset: .9rem .9rem -.9rem -.9rem; }
}

/* Builder page */
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2.5vw, 1.75rem); margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.photo-pair img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 600px) { .photo-pair { grid-template-columns: 1fr; } }
.letter { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(2rem, 5vw, 3.75rem); box-shadow: 0 30px 60px -40px rgba(11, 32, 71, .35); }
.letter::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; border-radius: var(--radius) 0 0 var(--radius); background: var(--red); }
.letter p { font-size: 1.1875rem; line-height: 1.85; }
.letter__sign { margin-top: 2.25rem; }
.letter__sign img { width: 230px; margin-bottom: .5rem; }
.letter__sign p { font-size: 1rem; line-height: 1.5; color: var(--muted); }

/* Location page */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.split__media { position: sticky; top: calc(var(--header-h) + 2rem); }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.split__body h2 { margin-bottom: .75rem; }
.split__body p { font-size: 1.125rem; }
.split__body .first { font-size: 1.25rem; color: var(--navy-ink); }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split__media { position: static; } }

/* Testimonials */
.quotes { columns: 2; column-gap: 1.75rem; }
.quote { break-inside: avoid; margin: 0 0 1.75rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 2rem 1.75rem; position: relative; }
.quote::before { content: "\201C"; position: absolute; top: -.15em; right: 1.25rem; font: 600 5.5rem/1 var(--serif); color: var(--sand-dark); }
.quote h2 { font: 600 .8125rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin: 0 0 .9rem; position: relative; }
.quote p { font-family: var(--serif); font-size: 1.3125rem; line-height: 1.55; color: var(--navy-ink); position: relative; }
@media (max-width: 760px) { .quotes { columns: 1; } }

/* Contact page */
.contact { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 6vw, 4.5rem); align-items: start; }
.contact h1 { font-size: clamp(2.6rem, 5vw, 3.75rem); }
.contact__phones { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.contact__phones li { margin: 0 0 .25rem; }
.contact__phones a { font-weight: 600; text-decoration: none; white-space: nowrap; }
.contact__side { display: grid; gap: 1.5rem; }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--sand); aspect-ratio: 1 / 1; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.35); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } .map { aspect-ratio: 4 / 3; } }
.about-more { border-top: 1px solid var(--line); }
.about-more h2 { margin-bottom: 1.25rem; }
.about-more p { font-size: 1.125rem; color: var(--muted); }

/* ---------- Call to action + forms ---------- */
.cta { background: var(--sand); padding: clamp(4rem, 9vw, 6.5rem) 0; }
.cta__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.cta__text h2 { margin-bottom: .75rem; }
.cta__text p { font-size: 1.1875rem; color: var(--muted); }
@media (max-width: 900px) { .cta__grid { grid-template-columns: 1fr; } }
.card { background: #fff; border-radius: var(--radius); padding: clamp(1.75rem, 4vw, 2.75rem); box-shadow: 0 30px 60px -36px rgba(11, 32, 71, .4); }
.contact .card { border: 1px solid var(--line); box-shadow: none; margin-top: 2rem; }

.form { display: grid; gap: 1.15rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .form__row { grid-template-columns: 1fr; } }
.form__field { display: grid; gap: .4rem; }
.form__field label { font: 600 .875rem/1.3 var(--sans); color: var(--navy-ink); }
.form__req { font-weight: 400; color: var(--muted); font-size: .8125rem; }
.form input, .form textarea {
  width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--ink); background: #fbfaf7;
  border: 1px solid #d5cebf; border-radius: 4px; padding: .85rem .95rem; transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--navy); background: #fff; box-shadow: 0 0 0 3px rgba(23, 62, 126, .15); }
.form [aria-invalid="true"] { border-color: var(--red); background: #fff7f7; }
.form__error { font-size: .8125rem; color: var(--red-dark); font-weight: 500; }
.form__alert { margin: 0; padding: .85rem 1rem; border-radius: 4px; background: #fdecec; color: var(--red-dark); font-size: .9375rem; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__actions { margin-top: .35rem; }
.form__actions .btn { width: 100%; padding: 1.15em 2em; font-size: .9375rem; }
.form__actions .btn[disabled] { opacity: .65; cursor: wait; transform: none; }
.form__thanks { text-align: center; padding: 2.5rem 1rem; }
.form__thanks:focus { outline: none; }
.form__thanks svg { width: 56px; height: 56px; margin: 0 auto 1rem; color: var(--navy); }
.form__thanks p { font: 500 1.5rem/1.35 var(--serif); color: var(--navy-ink); }
.turnstile-box:empty { display: none; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-ink); color: rgba(255, 255, 255, .82); padding: clamp(3.5rem, 7vw, 5rem) 0 2rem; font-size: 1rem; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; align-items: start; }
.footer__brand img { width: 280px; }
.footer__label { font: 600 .75rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .55); margin: 0 0 1rem; }
.footer strong { color: #fff; }
.footer__nav { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; margin-top: 3rem; padding-top: 1.75rem; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .875rem; }
.footer__nav a { color: rgba(255, 255, 255, .82); }
.footer__copy { margin-left: auto; color: rgba(255, 255, 255, .55); }
@media (max-width: 820px) {
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__brand img { width: 240px; }
  .footer__copy { margin-left: 0; width: 100%; }
}

/* ---------- Small pages ---------- */
.simple { min-height: 50vh; display: grid; place-items: center; text-align: center; }

/* ---------- Gentle reveal on scroll (only when JavaScript runs) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }
