/* ==========================================================================
   SeaBreezy Designs — site styles
   Brand blue #345082 sampled directly from the logo artwork.
   ========================================================================== */

:root {
  /* ---- Brand palette -----------------------------------------------------
     forest #49786E · ocean #7797C5 · sage #B2C1AA
     mint   #C7C98C · sunrise #F5A68C · sand #EDEBE9
     Deep/soft variants below are darkened or lightened from these six so that
     text and buttons meet WCAG AA contrast. Change the six above and the
     variants alongside them.                                                */

  --forest:       #49786E;   /* primary — buttons, links, eyebrows          */
  --forest-deep:  #2F5149;   /* headings, dark sections, footer             */
  --forest-soft:  #6E9A90;   /* muted rules and hovers on dark              */

  --ocean:        #7797C5;   /* decorative fills, accents on dark           */
  --ocean-deep:   #4E6FA3;   /* ocean where text contrast is needed         */

  --sage:         #B2C1AA;   /* tints, tags, numerals                       */
  --mint:         #C7C98C;   /* tints and highlights                        */
  --sunrise:      #F5A68C;   /* warm accent — CTA fills, "after" tags       */
  --sunrise-deep: #A85230;   /* sunrise where text contrast is needed       */

  --sand:         #EDEBE9;   /* alternating section ground                  */
  --sand-deep:    #DFDCD8;   /* borders on sand, placeholder stripes        */
  --cream:        #FAF9F8;   /* page background                             */
  --white:        #FFFFFF;

  /* Logo blue — retained because it is the actual logo artwork colour */
  --logo-blue:    #345082;

  /* Text */
  --ink:          #3A423E;
  --ink-soft:     #5F6B65;

  --line:         #DFDCD8;
  --shadow:       0 12px 34px rgba(47, 81, 73, .10);
  --shadow-lift:  0 20px 48px rgba(47, 81, 73, .16);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --wrap: 1160px;
  --radius: 4px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sunrise-deep); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--forest-deep);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: .01em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); }
p  { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* Eyebrow / small caps label ------------------------------------------------ */
.eyebrow {
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--forest);
  font-weight: 700;
  margin: 0 0 1rem;
}
.eyebrow--accent { color: var(--sunrise-deep); }

.lede { font-size: 1.18rem; color: var(--ink-soft); }

/* Buttons ------------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 15px 30px;
  border-radius: var(--radius);
  border: 1.5px solid var(--forest);
  background: var(--forest);
  color: var(--white);
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.btn:hover { background: var(--forest-deep); border-color: var(--forest-deep); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--ghost { background: rgba(255,255,255,.86); color: var(--forest); }
.btn--ghost:hover { background: var(--forest); color: var(--white); }
.btn--light { background: var(--white); border-color: var(--white); color: var(--forest-deep); }
.btn--light:hover { background: var(--sand); border-color: var(--sand); color: var(--forest-deep); }
.btn--outline-light { background: transparent; border-color: rgba(255,255,255,.65); color: #fff; }
.btn--outline-light:hover { background: #fff; border-color: #fff; color: var(--forest-deep); }
.btn--accent {
  background: var(--sunrise); border-color: var(--sunrise);
  color: var(--forest-deep);
}
.btn--accent:hover {
  background: var(--sunrise-deep); border-color: var(--sunrise-deep);
  color: var(--white);
}

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Header -------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251, 248, 243, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 14px 24px; max-width: var(--wrap); margin: 0 auto;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 44px; width: auto; }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 12px; cursor: pointer; color: var(--forest);
  font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
  font-family: var(--sans);
}

.site-nav ul { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: .8rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  font-weight: 600;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--forest); border-bottom-color: var(--forest); }
.site-nav a[aria-current="page"] { color: var(--forest); border-bottom-color: var(--sunrise); }
.site-nav .nav-cta a {
  border: 1.5px solid var(--forest); color: var(--forest);
  padding: 10px 18px; border-radius: var(--radius); border-bottom-width: 1.5px;
}
.site-nav .nav-cta a:hover { background: var(--forest); color: #fff; border-color: var(--forest); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 22px; }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav li:last-child { border-bottom: 0; }
  .site-nav a { display: block; padding: 15px 0; border-bottom: 0; }
  .site-nav .nav-cta { margin-top: 16px; }
  .site-nav .nav-cta a { text-align: center; }
}

/* Dropdown navigation ------------------------------------------------------ */
.has-sub { position: relative; }
.has-sub > a::after {
  content: "\25BE"; font-size: .6em; margin-left: 6px; vertical-align: middle; opacity: .7;
}
.sub-nav {
  position: absolute; left: -18px; top: 100%;
  min-width: 232px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px 0;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.has-sub:hover .sub-nav,
.has-sub:focus-within .sub-nav { opacity: 1; visibility: visible; transform: translateY(0); }
.site-nav .sub-nav { display: block; }
.site-nav .sub-nav ul { display: block; padding: 0; }
.site-nav .sub-nav li { margin: 0; }
.site-nav .sub-nav a {
  display: block; padding: 10px 20px;
  text-transform: none; letter-spacing: .01em;
  font-size: .92rem; font-weight: 500;
  border-bottom: 0; white-space: nowrap;
}
.site-nav .sub-nav a:hover { background: var(--sand); color: var(--forest); }
.site-nav .sub-nav a[aria-current="page"] { color: var(--forest); background: var(--sand); }

@media (max-width: 900px) {
  .has-sub > a::after { display: none; }
  .sub-nav {
    position: static; opacity: 1; visibility: visible; transform: none;
    border: 0; box-shadow: none; background: none; min-width: 0; padding: 0 0 12px;
  }
  .site-nav .sub-nav a { padding: 11px 0 11px 18px; font-size: .95rem; color: var(--ink-soft); }
  .site-nav .sub-nav a:hover { background: none; }
  .site-nav .sub-nav li { border-bottom: 0; }
}

/* Hero ---------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: clamp(540px, 76vh, 730px);
  display: flex; align-items: center;
  background: var(--sand);
  overflow: hidden;
}
.hero .hero-media {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 520px at 78% 20%, rgba(119,151,197,.34), transparent 68%),
    radial-gradient(700px 460px at 16% 88%, rgba(245,166,140,.30), transparent 66%),
    var(--sand);
}
.hero .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg,
    rgba(250,249,248,.97) 0%,
    rgba(250,249,248,.95) 38%,
    rgba(250,249,248,.70) 58%,
    rgba(250,249,248,.06) 78%,
    rgba(250,249,248,0) 100%);
}
@media (max-width: 860px) {
  .hero::after {
    background: linear-gradient(180deg,
      rgba(250,249,248,.97) 0%,
      rgba(250,249,248,.94) 52%,
      rgba(250,249,248,.72) 78%,
      rgba(250,249,248,.42) 100%);
  }
}
.hero .wrap { position: relative; z-index: 2; padding-top: 76px; padding-bottom: 76px; }
.hero-copy { max-width: 620px; }
.hero-copy h1 { color: var(--forest-deep); }
.hero-copy .eyebrow { color: var(--forest); }
.hero-copy p { color: var(--ink); font-size: 1.18rem; }
.hero-copy .btn-row { margin-top: 30px; }

/* Page banner (interior pages) ---------------------------------------------- */
.page-head {
  background: var(--forest-deep);
  color: #fff;
  padding: clamp(64px, 9vw, 104px) 0;
  position: relative; overflow: hidden;
}
.page-head::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(1000px 460px at 10% 0%, rgba(178,193,170,.36), transparent 70%),
    radial-gradient(820px 420px at 92% 108%, rgba(119,151,197,.34), transparent 68%);
}
.page-head .wrap { position: relative; z-index: 2; }
.page-head h1 { color: #fff; margin-bottom: .3em; }
.page-head .eyebrow { color: var(--sage); }
.page-head p { color: rgba(255,255,255,.88); max-width: 640px; font-size: 1.12rem; margin-bottom: 0; }

/* Sections ------------------------------------------------------------------ */
.section { padding: clamp(58px, 8vw, 100px) 0; }
.section--sand { background: var(--sand); }
.section--sage { background: linear-gradient(180deg, #F2F4EF 0%, #E9EEE4 100%); }
.section--white { background: var(--white); }
.section--forest { background: var(--forest-deep); color: rgba(255,255,255,.9); }
.section--forest h2, .section--forest h3 { color: #fff; }
.section--forest .eyebrow { color: var(--sage); }

.section-head { max-width: 720px; margin-bottom: 46px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Grids --------------------------------------------------------------------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Split (image + text) ------------------------------------------------------ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.split--wide-text { grid-template-columns: .9fr 1.1fr; }
@media (max-width: 860px) { .split, .split--wide-text { grid-template-columns: 1fr; } }
.split .split-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }

/* Cards --------------------------------------------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: .45em; }
.card p:last-child { margin-bottom: 0; }
.card--flush { padding: 0; overflow: hidden; }
.card--flush .card-body { padding: 26px 26px 30px; }
.card-num {
  font-family: var(--serif);
  font-size: 2.4rem; line-height: 1;
  color: var(--ocean);
  display: block; margin-bottom: .3em;
}
.section--sand .card { background: var(--white); }
.section--forest .card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); }
.section--forest .card p { color: rgba(255,255,255,.85); }

/* Media frames + placeholder fallback --------------------------------------- */
.frame {
  position: relative;
  background: var(--sand-deep);
  border-radius: var(--radius);
  overflow: hidden;
}
.frame img { width: 100%; height: 100%; object-fit: cover; }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-1x1 { aspect-ratio: 1 / 1; }
.ratio-3x4 { aspect-ratio: 3 / 4; }
.ratio-16x9 { aspect-ratio: 16 / 9; }

.img-missing {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 20px; text-align: center;
  background: repeating-linear-gradient(135deg, var(--sand) 0 12px, rgba(178,193,170,.45) 12px 24px);
  color: var(--forest);
}
.img-missing .im-icon { font-size: 1.5rem; opacity: .6; }
.img-missing .im-label { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.img-missing .im-file {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .72rem; background: rgba(255,255,255,.75);
  padding: 3px 8px; border-radius: 3px; word-break: break-all;
}

/* Gallery ------------------------------------------------------------------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }

.gallery-item {
  border: 0; padding: 0; margin: 0; background: none;
  text-align: left; cursor: zoom-in; display: block; width: 100%;
  font-family: inherit;
}
.gallery-item .frame { transition: transform .22s ease, box-shadow .22s ease; }
.gallery-item:hover .frame { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.gallery-item .cap { padding: 12px 2px 0; }
.gallery-item .cap strong { display: block; font-family: var(--serif); font-size: 1.18rem; color: var(--forest-deep); font-weight: 600; }
.gallery-item .cap span { font-size: .9rem; color: var(--ink-soft); }

/* Before / after pair ------------------------------------------------------- */
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .ba-pair { grid-template-columns: 1fr; } }
.ba-tag {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  background: var(--forest-deep); color: #fff;
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700;
  padding: 5px 11px; border-radius: 2px;
}
.ba-tag--after { background: var(--sunrise); color: var(--forest-deep); }

/* Lightbox ------------------------------------------------------------------ */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(31, 54, 48, .95);
  display: flex; align-items: center; justify-content: center;
  padding: 28px;
}
.lightbox[hidden] { display: none !important; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 82vh; object-fit: contain; border-radius: var(--radius); }
.lightbox .lb-cap { color: rgba(255,255,255,.85); text-align: center; margin-top: 16px; font-size: .95rem; }
.lightbox .lb-close {
  position: absolute; top: 18px; right: 22px;
  background: none; border: 0; color: #fff; font-size: 2.2rem; line-height: 1;
  cursor: pointer; padding: 6px 12px;
}
.lightbox figure { margin: 0; }

/* Steps / list -------------------------------------------------------------- */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 32px; margin-bottom: 14px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--sunrise); box-shadow: 0 0 0 4px rgba(245,166,140,.30);
}
.section--forest .check-list li::before { background: var(--mint); box-shadow: 0 0 0 4px rgba(199,201,140,.32); }

/* Product / brand blocks ---------------------------------------------------- */
.brand-block { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.brand-block + .brand-block { margin-top: clamp(48px, 7vw, 84px); }
.brand-block--flip .brand-block-media { order: 2; }
@media (max-width: 860px) {
  .brand-block, .brand-block--flip { grid-template-columns: 1fr; }
  .brand-block--flip .brand-block-media { order: 0; }
}

.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; }
.tag-row li {
  font-size: .78rem; letter-spacing: .06em;
  background: rgba(199,201,140,.28); border: 1px solid rgba(178,193,170,.75);
  color: var(--forest-deep); padding: 6px 13px; border-radius: 100px;
}
.section--sand .tag-row li { background: rgba(199,201,140,.34); }

/* Callout strip ------------------------------------------------------------- */
.callout {
  background: var(--forest);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(36px, 5vw, 60px);
  text-align: center;
}
.callout h2 { color: #fff; }
.callout p { color: rgba(255,255,255,.88); max-width: 620px; margin-left: auto; margin-right: auto; }
.callout .btn-row { justify-content: center; margin-top: 26px; }

/* Info tiles ---------------------------------------------------------------- */
.info-tile { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.info-tile h3 { font-size: 1.2rem; margin-bottom: .35em; }
.info-tile p { margin-bottom: 0; color: var(--ink-soft); font-size: .97rem; }

/* Forms --------------------------------------------------------------------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 4vw, 44px);
  box-shadow: var(--shadow);
}
.field { margin-bottom: 20px; }
.field label {
  display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 700; color: var(--forest-deep); margin-bottom: 8px;
}
.field .hint { display: block; font-size: .85rem; letter-spacing: 0; text-transform: none; font-weight: 400; color: var(--ink-soft); margin-top: 4px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--cream); color: var(--ink);
  font-family: var(--sans); font-size: 1rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--forest); background: #fff;
  box-shadow: 0 0 0 3px rgba(73,120,110,.20);
}
.field textarea { min-height: 150px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: .9rem; color: var(--ink-soft); margin-top: 18px; }

/* Footer -------------------------------------------------------------------- */
.site-footer { background: var(--forest-deep); color: rgba(255,255,255,.78); padding: 62px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.site-footer h4 {
  color: #fff; font-family: var(--sans); font-size: .78rem;
  letter-spacing: .18em; text-transform: uppercase; margin-bottom: 16px;
}
.site-footer a { color: rgba(255,255,255,.82); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.footer-logo img { height: 46px; filter: brightness(0) invert(1); opacity: .95; margin-bottom: 18px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.16);
  margin-top: 44px; padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: .85rem; color: rgba(255,255,255,.6);
}

/* Utility ------------------------------------------------------------------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.stack-sm > * + * { margin-top: 10px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

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