/* Palapa Pros-Landscape Construction / Spalapa, Inc. — main stylesheet
   Palette taken from the SPALAPA INC. logo: wave blue, sun yellow, ocean blue,
   palm green, sand and the black lettering outline. */

:root {
  /* REPLACEABLE IMAGES */
  --img-wave: url("assets/wave.svg");
  --img-footer-band: url("assets/footer-band.svg");
  --img-check: url("assets/check.svg");
  --img-check-white: url("assets/check-white.svg");

  /* Brand colours (hex values from the logo and old theme) */
  --sky: #249CE5;          /* logo wave, old theme primary */
  --sky-600: #1478B8;      /* darker step of sky for text-sized use */
  --sky-50: #EAF6FD;
  --sun: #FEBC00;          /* logo sun, old theme secondary */
  --sun-300: #FFD45C;
  --sun-50: #FFF6D9;
  --ocean: #015D9A;        /* logo wave shadow */
  --ocean-800: #014673;
  --palm: #549C0C;         /* logo palm fronds */
  --palm-700: #3F7609;
  --ink: #0C0C0C;          /* logo lettering */
  --sand: #E4CCB4;         /* logo island */
  --sand-50: #F8F1E8;
  --navy: #041A2A;         /* old footer navy */
  --text: #212B36;
  --muted: #4A5866;
  --line: #D9E2EA;
  --white: #ffffff;

  --font: "Cabin", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(4, 26, 42, .10);
  --wrap: 1200px;
  --space: clamp(56px, 8vw, 104px);
}

@font-face {
  font-family: "Cabin";
  src: url("assets/fonts/cabin-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cabin";
  src: url("assets/fonts/cabin-latin-wght-italic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ocean); text-underline-offset: 3px; }
a:hover { color: var(--sky-600); }
:focus-visible { outline: 3px solid var(--ocean); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .blue-panel :focus-visible, .site-footer .footer__legal :focus-visible, .lightbox :focus-visible { outline-color: var(--sun); }
.topbar :focus-visible, .site-footer :focus-visible { outline-color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--font); color: var(--navy); line-height: 1.18; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.35rem); font-weight: 700; }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.45rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.4rem); font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 780px; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.28rem); color: var(--muted); }
.visually-hidden, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--sun); color: var(--ink); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700; }
.skip:focus { top: 12px; }

/* Buttons: one vocabulary across the site */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 50px; padding: .7em 1.4em;
  font: 700 1.05rem/1.2 var(--font); text-decoration: none; text-align: center;
  border-radius: 10px; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn--call { background: var(--sun); color: var(--ink); box-shadow: 0 4px 0 #C99500; }
.btn--call:hover { background: var(--sun-300); color: var(--ink); transform: translateY(-1px); }
.btn--plan { background: var(--ocean); color: var(--white); }
.btn--plan:hover { background: var(--ocean-800); color: var(--white); }
.on-dark .btn--plan { background: transparent; border-color: var(--white); }
.on-dark .btn--plan:hover { background: var(--white); color: var(--ocean); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.4em; }

/* Top bar (yellow, as on the old site) */
.topbar { background: var(--sun); color: var(--ink); font-size: .95rem; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; }
.topbar p { margin: 0; }
.topbar__tag { font-weight: 700; }
.topbar__info { display: flex; gap: 18px; }
.topbar a { color: var(--ink); font-weight: 700; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
@media (max-width: 700px) { .topbar__hours { display: none; } .topbar { font-size: .9rem; } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.header__inner { display: flex; align-items: center; gap: 20px; min-height: 104px; }
.brand { flex: none; display: block; }
.brand img { width: auto; height: 90px; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav a { display: block; padding: 10px 12px; color: var(--navy); font-weight: 600; text-decoration: none; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ocean); background: var(--sky-50); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--sun); }
.has-sub { position: relative; }
.sub { display: none !important; position: absolute; top: 100%; left: 0; min-width: 270px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 8px !important; flex-direction: column; align-items: stretch !important; }
.has-sub:hover .sub, .has-sub:focus-within .sub { display: flex !important; }
.nav-toggle { display: none; }
.header__call { flex: none; }
@media (max-width: 1180px) {
  .header__call .num { display: none; }
}
@media (max-width: 1020px) {
  .header__inner { min-height: 74px; gap: 12px; }
  .brand img { height: 62px; }
  .js .nav-toggle {
    display: inline-flex; align-items: center; gap: 8px; margin-left: auto; order: 2;
    min-height: 46px; padding: 0 14px; border: 2px solid var(--ocean); border-radius: 10px;
    background: var(--white); color: var(--ocean); font: 700 1rem var(--font); cursor: pointer;
  }
  .nav-toggle .bars { width: 18px; height: 2px; background: currentColor; position: relative; }
  .nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; }
  .nav-toggle .bars::before { top: -6px; } .nav-toggle .bars::after { top: 6px; }
  .header__call { order: 1; margin-left: auto; padding-inline: 14px; }
  .js .nav-toggle { margin-left: 0; }
  .nav { order: 3; flex-basis: 100%; margin: 0; }
  .header__inner { flex-wrap: wrap; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 6px 0 14px; }
  .js .nav { display: none; }
  .js .nav.is-open { display: block; max-height: calc(100vh - 130px); overflow-y: auto; }
  .sub { display: flex !important; position: static; box-shadow: none; border: 0; padding: 0 0 0 14px !important; min-width: 0; }
  .nav a { padding: 12px 10px; }
}
@media (max-width: 420px) {
  .brand img { height: 58px; }
  .header__call .label { display: none; }
}

/* Hero */
.hero { position: relative; background: var(--ocean); color: var(--white); padding: clamp(36px, 6vw, 72px) 0 clamp(96px, 10vw, 140px); overflow: hidden; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(44px, 6vw, 90px); background: var(--img-wave) center bottom / 100% 100% no-repeat; }
.hero__grid { position: relative; display: grid; grid-template-columns: 1fr; grid-template-areas: "h" "photo" "lead" "cta" "trust"; column-gap: 52px; }
.hero__grid > h1 { grid-area: h; }
.hero__grid > .hero__photo { grid-area: photo; margin: 4px 0 22px; }
.hero__grid > .lead { grid-area: lead; }
.hero__grid > .btn-row { grid-area: cta; margin-top: .2em; }
.hero__grid > .trust { grid-area: trust; }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); grid-template-areas: "h photo" "lead photo" "cta photo" "trust photo"; align-content: center; }
  .hero__grid > .hero__photo { align-self: center; margin: 0; }
  .hero__grid > h1 { align-self: end; }
}
.hero h1 { color: var(--white); font-size: clamp(1.85rem, 3.9vw, 3rem); }
.hero h1 .hl { color: var(--sun); }
.hero .lead { color: #E3F1FB; }
.hero__photo { border-radius: var(--radius); overflow: hidden; box-shadow: 0 18px 50px rgba(0,0,0,.35); border: 4px solid rgba(255,255,255,.9); }
.hero__photo img { width: 100%; height: auto; }
.trust { list-style: none; padding: 0; margin: 1.6em 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 600; color: var(--white); }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 3px rgba(254,188,0,.3); flex: none; }

/* Page header (inner pages) */
.page-head { position: relative; background: var(--ocean); color: var(--white); padding: clamp(28px, 5vw, 56px) 0 clamp(84px, 9vw, 120px); }
.page-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(40px, 5vw, 80px); background: var(--img-wave) center bottom / 100% 100% no-repeat; }
.page-head .wrap { position: relative; }
.page-head h1 { color: var(--white); max-width: 22ch; }
.page-head .lead { color: #E3F1FB; max-width: 62ch; }
.page-head--split .wrap { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .page-head--split .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; } }
.page-head__photo { border-radius: var(--radius); overflow: hidden; border: 4px solid rgba(255,255,255,.9); box-shadow: 0 18px 50px rgba(0,0,0,.3); }
.page-head__photo img { width: 100%; height: auto; }
.crumbs { font-size: .92rem; margin-bottom: 14px; color: #CFE6F7; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--sun); }
.crumbs a { color: var(--white); }

/* Sections */
.section { padding: var(--space) 0; }
.section--sky { background: var(--sky-50); }
.section--sand { background: var(--sand-50); }
.section--ocean { background: var(--ocean); color: var(--white); }
.section--ocean h2, .section--ocean h3 { color: var(--white); }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { color: var(--muted); font-size: 1.12rem; }
.section--ocean .section-head p { color: #DCEEFA; }
.center { text-align: center; margin-inline: auto; }
.sun-rule { display: block; width: 64px; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--sun) 0 60%, var(--sky) 60% 100%); margin-bottom: 18px; }
.center .sun-rule { margin-inline: auto; }

/* Trust strip */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
@media (max-width: 480px) { .fact { padding: 16px 14px; } .fact span { font-size: .92rem; } }
@media (min-width: 860px) { .facts { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.fact { padding: 20px 22px; border-left: 5px solid var(--sun); background: var(--white); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; box-shadow: 0 2px 10px rgba(4,26,42,.06); }
.fact strong { display: block; font-size: clamp(1.4rem, 2.6vw, 1.9rem); color: var(--ocean); line-height: 1.15; }
.fact span { color: var(--muted); font-size: .98rem; }

/* Services mosaic */
.svc-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 640px) { .svc-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1000px) { .svc-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.svc { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: transform .18s ease, box-shadow .18s ease, border-color .18s; }
.svc:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--sky); color: inherit; }
.svc img { width: 100%; height: auto; aspect-ratio: auto; }
.svc__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.svc h3 { margin-bottom: .35em; color: var(--navy); }
.svc p { color: var(--muted); margin-bottom: 1em; }
.svc .more { margin-top: auto; font-weight: 700; color: var(--ocean); }
.svc .more::after { content: " →"; }
.svc--feature { border: 2px solid var(--sun); }
@media (min-width: 1000px) {
  .svc--wide { grid-column: span 2; flex-direction: row; }
  .svc--wide picture { flex: 0 0 58%; display: block; align-self: center; }
  .svc--wide .svc__body { justify-content: center; padding: 28px 32px; }
}
.tag { display: inline-block; align-self: flex-start; font-size: .82rem; font-weight: 700; background: var(--sun); color: var(--ink); border-radius: 999px; padding: 3px 12px; margin-bottom: 10px; }

/* Split blocks */
.split { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0,1fr) minmax(0,1fr); } .split--rev > :first-child { order: 2; } }
.photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.photo img { width: 100%; height: auto; }
.photo-cap { font-size: .92rem; color: var(--muted); margin-top: 10px; }

.blue-panel { background: var(--sky-600); color: var(--white); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); }
.blue-panel h2 { color: var(--white); }
.blue-panel p { color: #EAF5FD; }

/* Differentiators */
.diffs { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
@media (min-width: 720px) { .diffs { grid-template-columns: repeat(2, minmax(0,1fr)); column-gap: 48px; } }
@media (min-width: 1040px) { .diffs { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.diffs li { padding: 22px 0 22px 52px; border-bottom: 1px solid var(--line); position: relative; }
.diffs li::before { content: ""; position: absolute; left: 0; top: 24px; width: 34px; height: 34px; border-radius: 50%; background: var(--sun) var(--img-check) center / 18px no-repeat; }
.diffs h3 { font-size: 1.18rem; margin-bottom: .25em; }
.diffs p { margin: 0; color: var(--muted); }

/* Owner / story */
.owner-quote { margin: 0; padding: 26px 28px; border-radius: var(--radius); background: var(--sun-50); border-left: 6px solid var(--sun); font-size: 1.2rem; color: var(--navy); font-weight: 600; }
.owner-quote footer { margin-top: 10px; font-size: 1rem; font-weight: 400; color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { position: relative; padding-left: 32px; margin-bottom: 10px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--palm) var(--img-check-white) center / 12px no-repeat; }
.section--ocean .checks li::before { background-color: var(--sun); background-image: var(--img-check); }

/* Steps */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1100px) { .steps--4 { grid-template-columns: repeat(4, minmax(0,1fr)); } .steps--5 { grid-template-columns: repeat(5, minmax(0,1fr)); } }
.steps li { counter-increment: s; background: var(--white); border-radius: var(--radius); padding: 24px 22px; border-top: 5px solid var(--sky); box-shadow: 0 2px 12px rgba(4,26,42,.06); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ocean); color: var(--white); font-weight: 700; margin-bottom: 12px; }
.steps strong { display: block; color: var(--navy); margin-bottom: 4px; font-size: 1.08rem; }
.steps span { color: var(--muted); }
.section--ocean .steps li { color: var(--text); }

/* Included list */
.included { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
@media (min-width: 760px) { .included { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.included li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px 18px 56px; position: relative; }
.included li::before { content: ""; position: absolute; left: 18px; top: 20px; width: 24px; height: 24px; border-radius: 50%; background: var(--palm) var(--img-check-white) center / 13px no-repeat; }
.included strong { display: block; color: var(--navy); }
.included span { color: var(--muted); }

/* Reviews */
.reviews { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .reviews { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.review { margin: 0; background: var(--white); border-radius: var(--radius); padding: 28px 28px 24px; position: relative; box-shadow: 0 2px 14px rgba(4,26,42,.07); display: flex; flex-direction: column; }
.review::before { content: "“"; position: absolute; top: -6px; left: 20px; font-size: 5rem; line-height: 1; color: var(--sun); font-family: Georgia, serif; }
.review blockquote { margin: 18px 0 16px; font-size: 1.05rem; }
.review figcaption { margin-top: auto; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; border-top: 1px solid var(--line); padding-top: 14px; }
.review cite { font-style: normal; font-weight: 700; color: var(--navy); }
.review .src { font-size: .9rem; color: var(--muted); }
.reviews--masonry { display: block; columns: 1; column-gap: 22px; }
@media (min-width: 760px) { .reviews--masonry { columns: 2; } }
@media (min-width: 1100px) { .reviews--masonry { columns: 3; } }
.reviews--masonry .review { break-inside: avoid; margin-bottom: 22px; }

/* Areas */
.areas { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.areas li a, .areas li span { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--navy); text-decoration: none; font-weight: 600; }
.areas li a { border-color: var(--sky); color: var(--ocean); }
.areas li a:hover { background: var(--sky-50); }
.areas li a::after { content: " →"; }

/* CTA band */
.cta-band { position: relative; background: var(--ocean); color: var(--white); padding: clamp(48px, 7vw, 84px) 0; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; right: -120px; top: -120px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, var(--sun) 0 52%, transparent 53%); opacity: .95; }
@media (max-width: 899px) { .cta-band::before { width: 200px; height: 200px; right: -110px; top: -110px; } .cta-band h2 { padding-right: 70px; } }
.cta-band .wrap { position: relative; display: grid; gap: 20px; align-items: center; }
@media (min-width: 900px) { .cta-band .wrap { grid-template-columns: 1.4fr 1fr; } }
.cta-band h2 { color: var(--white); margin-bottom: .3em; }
.cta-band p { color: #DCEEFA; margin: 0; max-width: 56ch; }
.cta-band .btn-row { margin-top: 0; }
@media (min-width: 900px) { .cta-band .btn-row { justify-content: flex-end; padding-right: 60px; } }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 20px; font-weight: 700; color: var(--navy); position: relative; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--sun); color: var(--ink); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; gap: 32px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 56px; } }
.info-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 14px; }
.info-list li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; }
.info-list strong { display: block; color: var(--navy); }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.hours td:last-child { text-align: right; font-weight: 600; }
.hours [data-ss-field="close"]:not(:empty)::before { content: " – "; }
.form-card { background: var(--white); border-radius: var(--radius); padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); border-top: 6px solid var(--sun); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--text); padding: 12px 14px; border: 2px solid #B9C7D3; border-radius: 10px; background: var(--white); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--sky); outline: 3px solid rgba(36,156,229,.25); outline-offset: 0; }
.field textarea { min-height: 140px; resize: vertical; }
.row2 { display: grid; gap: 0 16px; }
@media (min-width: 620px) { .row2 { grid-template-columns: 1fr 1fr; } }
.form-note { font-size: .92rem; color: var(--muted); }
.form-status { margin-top: 14px; padding: 14px 16px; border-radius: var(--radius-sm); font-weight: 600; }
.form-status.ok { background: #EAF5DD; color: #2D5507; border: 1px solid #B9DA92; }
.form-status.err { background: #FDECEC; color: #7A1616; border: 1px solid #F1B5B5; }
.cf-turnstile { margin: 6px 0 16px; min-height: 65px; }

/* Gallery */
.g-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.g-nav a { padding: 8px 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--sky); color: var(--ocean); font-weight: 700; text-decoration: none; }
.g-nav a:hover { background: var(--sky-50); }
.gallery { columns: 4 240px; column-gap: 14px; }
.gallery figure { break-inside: avoid; margin: 0 0 14px; background: var(--white); border-radius: var(--radius-sm); overflow: hidden; box-shadow: 0 2px 10px rgba(4,26,42,.08); }
.gallery img { width: 100%; height: auto; cursor: zoom-in; }
.gallery figcaption { padding: 10px 14px 12px; font-size: .95rem; color: var(--muted); }
.g-block + .g-block { margin-top: clamp(40px, 6vw, 72px); }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(4,26,42,.92); display: none; align-items: center; justify-content: center; padding: 56px 16px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(1100px, 100%); max-height: 100%; width: auto; height: auto; border-radius: 8px; }
.lightbox button { position: absolute; background: var(--sun); color: var(--ink); border: 0; width: 48px; height: 48px; border-radius: 50%; font: 700 1.4rem var(--font); cursor: pointer; }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-cap { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: var(--white); padding: 0 70px; }

/* Article / prose */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; font-size: clamp(1.45rem, 2.4vw, 1.9rem); }
.prose h3 { margin-top: 1.3em; }
.prose li { margin-bottom: .5em; }
.article-layout { display: grid; gap: 40px; }
@media (min-width: 1000px) { .article-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; } }
.aside-card { position: sticky; top: 120px; background: var(--sand-50); border-radius: var(--radius); padding: 26px; border-top: 6px solid var(--sun); }
.aside-card h2 { font-size: 1.35rem; }
.aside-card .btn { width: 100%; margin-top: 10px; }
.meta { color: #CFE6F7; font-size: .98rem; }
.posts { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
@media (min-width: 760px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .posts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.post-card { height: 100%; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px; border-top: 5px solid var(--sky); }
.post-card time { font-size: .9rem; color: var(--muted); }
.post-card h2 { font-size: 1.2rem; margin: 6px 0 8px; }
.post-card h2 a { color: var(--navy); text-decoration: none; }
.post-card h2 a:hover { color: var(--ocean); text-decoration: underline; }
.post-card p { color: var(--muted); font-size: .98rem; margin-bottom: 0; }

/* Footer */
.footer-band { width: 100%; aspect-ratio: 1440 / 180; min-height: 64px; background: var(--img-footer-band) left bottom / cover no-repeat; }
.site-footer { background: var(--sun); color: var(--ink); }
.site-footer a:not(.btn) { color: var(--ink); }
.site-footer a:not(.btn):hover { color: var(--ocean-800); }
.footer__grid { display: grid; gap: 32px; padding: 20px 0 44px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .footer__grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1040px) { .footer__grid { grid-template-columns: 1.3fr 1.2fr 1fr 1fr; } }
.site-footer h2 { font-size: 1.1rem; color: var(--ink); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer__logo { width: 190px; height: auto; margin-bottom: 12px; }
.footer__names { font-weight: 700; margin-bottom: 4px; }
.footer__lic { display: inline-block; background: var(--ink); color: var(--sun); padding: 4px 12px; border-radius: 6px; font-weight: 700; font-size: .95rem; margin: 6px 0 14px; }
.socials { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.socials a { font-weight: 600; }
.footer__contact p { margin-bottom: .6em; }
.footer__contact .btn { margin-top: 8px; }
.footer__legal { background: var(--navy); color: #C3D2DE; font-size: .9rem; }
.footer__legal .wrap { padding: 18px 0; display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; }
.footer__legal p { margin: 0; }
.site-footer .footer__legal a { color: #E6EEF5; }
.site-footer .footer__legal a:hover { color: var(--sun); }

/* 404 */
.notfound { text-align: center; padding: var(--space) 0; }
.notfound .big { font-size: clamp(4rem, 14vw, 9rem); font-weight: 700; color: var(--sun); line-height: 1; -webkit-text-stroke: 3px var(--ink); }
.notfound .btn-row { justify-content: center; }
.notfound ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: center; margin-top: 28px; }

.note { font-size: .92rem; color: var(--muted); }
.partner { display: flex; gap: 14px; align-items: flex-start; background: var(--sky-50); border: 1px solid #BFE0F6; border-radius: var(--radius-sm); padding: 18px 20px; margin: 1.2em 0; }
.partner strong { color: var(--navy); }
