/*!
Theme Name: AGROHROM
Theme URI: https://agrohrom.rs/
Author: Bogdan Vracar
Author URI: https://agrohrom.rs/
Description: Custom theme for AGROHROM — poljoprivredno gazdinstvo Hromiš, Đurđevo. Ported from the standalone static build.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: custom_agrohrom
Tags: custom-theme, one-column, agriculture

AGROHROM is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.
*/

/* ============================================================
   AGROHROM — standalone stylesheet
   Brand palette sampled from client logo (navy + gold + bone)
   ============================================================ */

:root {
  --navy: #011e48;
  --navy-deep: #01153a;
  --header-blue: #003964; /* sampled from deltaagrar.rs header; still used by back-to-top */
  --header-bg: #ffffff;
  --plate: #0a2a5e;
  --gold: #f1a311;
  --gold-soft: #f5bc4c;
  --bone: #f7f3ea;
  --bone-deep: #efe7d3;
  --ink: #101c33;
  --ink-soft: #3c4a68;
  --sky-100: #dce4f2;
  --sky-200: #c2cfe6;

  --font-display: 'Archivo', sans-serif;
  --font-cond: 'Archivo Narrow', sans-serif;
  --font-sans: 'Inter', sans-serif;

  --maxw: 72rem; /* max-w-6xl */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--navy);
  color: var(--bone);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* Long Serbian words ("organizovanju", "proizvodnja") must never force a
   column wider than its container — break them instead of blowing out the
   grid. Paired with minmax(0, 1fr) on every grid below. */
h1, h2, h3, h4, p, blockquote, li, figcaption, label {
  overflow-wrap: break-word;
}

a {
  color: inherit;
  text-decoration: none;
}

.icon-16 { width: 1rem; height: 1rem; }
.icon-20 { width: 1.25rem; height: 1.25rem; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.container-narrow {
  width: 100%;
  max-width: 48rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.container-mid {
  width: 100%;
  max-width: 56rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 768px) {
  .container, .container-narrow, .container-mid { padding-inline: 2rem; }
}

.main { color: var(--bone); }

.section { padding-block: 6rem; }
@media (min-width: 768px) { .section { padding-block: 7rem; } }

/* ---------- Typography ---------- */
.font-display,
.section-title,
.hero-title,
.product-name,
.process-card-title,
.process-no,
.product-no,
.final-cta-title,
.final-cta-phone,
.faq-q span,
.testimonial-name,
.benefit-title,
.wordmark,
.footer-heading,
.marquee-label {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.9;
  text-transform: uppercase;
}

.text-gold { color: var(--gold); }

.text-stroke {
  -webkit-text-stroke: 2px var(--bone);
  color: transparent;
}
@media (max-width: 640px) {
  .text-stroke { -webkit-text-stroke-width: 1.4px; }
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  line-height: 0.9;
}
@media (min-width: 768px) { .eyebrow { font-size: 0.875rem; } }
.eyebrow-gold { color: var(--gold); }

.section-title {
  color: var(--bone);
  margin-top: 1rem;
  font-size: clamp(2.4rem, 6.5vw, 5.2rem);
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}
.section-lead {
  max-width: 24rem;
  color: var(--sky-200);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  border-radius: 9999px;
  font-weight: 800;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  will-change: transform;
}
.btn-gold { background: var(--gold); color: var(--navy); padding: 0.625rem 1.25rem; }
.btn-gold:hover { background: var(--gold-soft); }
.btn-lg { padding: 1rem 1.75rem; }
.btn-outline {
  border: 1.6px solid rgba(247, 243, 234, 0.35);
  color: var(--bone);
  background: transparent;
}
.btn-outline:hover { border-color: var(--bone); transform: translateY(-2px); }
.btn-block { width: 100%; }

.stars { display: inline-flex; color: var(--gold); }

/* ============================================================
   ANNOUNCEMENT MARQUEE
   ============================================================ */
.announce {
  overflow: hidden;
  border-bottom: none;
  background: var(--gold);
  color: var(--bone);
}
.marquee-track {
  display: flex;
  width: max-content;
  padding-block: 0.625rem;
  will-change: transform;
}
.marquee-group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
}
.marquee-item { display: flex; align-items: center; }
.marquee-label {
  padding-inline: 1.5rem;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  font-style: normal;
}
.marquee-dot { color: rgba(247, 243, 234, 0.55); }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  border-bottom: none;
  transition: box-shadow 0.3s ease;
}
/* A white bar needs separation once it scrolls over the light (bone)
   sections — a soft shadow rather than the border we removed earlier. */
.header.is-scrolled { box-shadow: 0 2px 14px rgba(1, 30, 72, 0.12); }
.header-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 1.25rem;
  transition: padding 0.3s ease;
}
.header.is-scrolled .header-inner { padding-block: 0.875rem; }
@media (min-width: 768px) { .header-inner { padding-inline: 2rem; } }

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--bone);
}
.logo {
  height: 2.75rem;
  width: auto;
}
.header .logo {
  height: 3.5rem;
  transition: height 0.3s ease;
}
.header.is-scrolled .logo { height: 2.75rem; }

.nav-desktop { display: none; align-items: center; gap: 1.75rem; font-size: 1rem; font-weight: 700; }
.nav-desktop a { color: var(--ink-soft); transition: color 0.2s ease; }
.nav-desktop a:hover { color: var(--navy); }
@media (min-width: 1024px) { .nav-desktop { display: flex; } }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.header-call { display: none; font-size: 0.875rem; font-weight: 800; }
@media (min-width: 640px) { .header-call { display: inline-flex; } }

.menu-btn {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(1, 30, 72, 0.2);
  color: var(--navy);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
/* Header and mobile menu are both light now, so one dark style covers both. */
.menu-btn:hover { border-color: var(--navy); background: rgba(1, 30, 72, 0.04); }
@media (min-width: 1024px) { .menu-btn { display: none; } }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--header-bg);
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}
/* JS clears [hidden] first, then adds .is-open on the next frame so the
   panel animates in rather than snapping. Reversed on close, with the
   element hidden again only after the transition finishes. */
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { opacity: 1; transform: none; }
.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
}
.mobile-nav {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-inline: 1.25rem;
}
.mobile-nav a {
  border-bottom: 1px solid rgba(1, 30, 72, 0.1);
  padding-block: 1rem;
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.9;
  font-size: 1.875rem;
  color: var(--navy);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s ease;
}
.mobile-menu.is-open .mobile-nav a { opacity: 1; transform: none; }
/* light stagger so the links cascade in behind the panel */
.mobile-menu.is-open .mobile-nav a:nth-child(1) { transition-delay: 0.08s; }
.mobile-menu.is-open .mobile-nav a:nth-child(2) { transition-delay: 0.12s; }
.mobile-menu.is-open .mobile-nav a:nth-child(3) { transition-delay: 0.16s; }
.mobile-menu.is-open .mobile-nav a:nth-child(4) { transition-delay: 0.20s; }
.mobile-menu.is-open .mobile-nav a:nth-child(5) { transition-delay: 0.24s; }
.mobile-menu.is-open .mobile-nav a:nth-child(6) { transition-delay: 0.28s; }
.mobile-menu-foot {
  padding: 2rem 1.25rem 0;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.mobile-menu.is-open .mobile-menu-foot { opacity: 1; transform: none; transition-delay: 0.32s; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: 3.5rem;
  padding-bottom: 2.5rem;
}
@media (min-width: 768px) { .hero { padding-top: 4rem; } }

.hero-title {
  margin-top: 1.25rem;
  color: var(--bone);
  /* Max 9.5rem so "VAŠE STADO" fits the 1088px container on one row (at
     10.5rem it needed ~1123px and the title broke into 3 lines on desktop). */
  font-size: clamp(3.4rem, 13vw, 9.5rem);
  overflow: hidden;
}
.hero-title-row { display: block; overflow: hidden; }
.hero-line { display: inline-block; }

.hero-body {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}
.hero-body-left { max-width: 36rem; }
.hero-lead {
  font-size: 1.125rem;
  color: var(--sky-100);
  line-height: 1.55;
}
@media (min-width: 768px) { .hero-lead { font-size: 1.25rem; } }

.hero-cta {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.hero-rating {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--sky-200);
}

.hero-slider {
  position: relative;
  margin-top: 2.75rem;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  border-radius: 1.5rem;
}
@media (min-width: 768px) { .hero-slider { margin-top: 3.5rem; } }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(1, 30, 72, 0.5), transparent 55%);
  pointer-events: none;
}
.hero-slider-dots {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}
@media (min-width: 768px) { .hero-slider-dots { bottom: 1.5rem; } }
.hero-slider-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  border: none;
  padding: 0;
  background: rgba(247, 243, 234, 0.45);
  cursor: pointer;
  transition: background-color 0.2s ease, width 0.2s ease;
}
.hero-slider-dot.is-active { background: var(--gold); width: 1.5rem; }

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust {
  border-top: 1px solid rgba(247, 243, 234, 0.1);
  border-bottom: 1px solid rgba(247, 243, 234, 0.1);
  padding-block: 4.5rem;
}
.trust-grid {
  display: grid;
  /* single column on phones so the long titles read properly */
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}
@media (min-width: 560px) { .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; } }
@media (min-width: 768px) { .trust-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .trust-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.trust-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 1rem;
  border: 1px solid rgba(247, 243, 234, 0.1);
  background: var(--plate);
  padding: 1.375rem;
}
@media (min-width: 560px) { .trust-card { padding: 1.5rem; } }
.trust-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border-radius: 0.625rem;
  background: var(--gold);
  color: var(--navy);
}
.trust-title {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.1;
  /* Shrinks with its card (down to 14px) so "ORGANIZOVANJU" fits in the
     five-column row; below that it hyphenates at the soft hyphen in trust.php. */
  font-size: clamp(0.875rem, 9.8cqi, 1rem);
  color: var(--bone);
}
.trust-card { container-type: inline-size; }
.trust-text {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--sky-200);
}

/* ============================================================
   PRODUCTS
   ============================================================ */
.products { scroll-margin-top: 6rem; }
.product-list {
  margin-top: 3.5rem;
  border-top: 2px solid rgba(247, 243, 234, 0.15);
}
.product-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 1.25rem;
  row-gap: 0.5rem;
  align-items: center;
  border-bottom: 2px solid rgba(247, 243, 234, 0.15);
  padding-block: 1.75rem;
  transition: padding-left 0.3s ease;
}
.product-row:hover { padding-left: 1rem; }
@media (min-width: 768px) {
  .product-row {
    grid-template-columns: 64px minmax(0, 1.4fr) minmax(0, 1fr) auto;
    column-gap: 1.5rem;
  }
}
.product-no {
  display: none;
  font-size: 1.125rem;
  color: var(--sky-200);
}
@media (min-width: 768px) { .product-no { display: block; } }

.product-name-wrap { grid-column-start: 1; }
@media (min-width: 768px) { .product-name-wrap { grid-column-start: 2; } }
.product-name-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; }
.product-name {
  color: var(--bone);
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
}
.product-badge {
  border-radius: 9999px;
  background: var(--gold);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--navy);
  font-family: var(--font-sans);
}

.product-desc {
  grid-column: 1 / -1;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--sky-200);
}
@media (min-width: 768px) {
  .product-desc {
    grid-column: 3 / 4;
    max-width: 20rem;
  }
}

.product-price {
  grid-column-start: 2;
  grid-row-start: 1;
  text-align: right;
}
@media (min-width: 768px) { .product-price { grid-column-start: 4; grid-row-start: auto; } }
.product-price-value {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.9;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--gold);
}
.product-price-unit { font-size: 0.75rem; color: var(--sky-200); }

.product-thumb {
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 50%;
  z-index: 10;
  height: 9rem;
  width: 14rem;
  transform: translateY(-50%) scale(0.9);
  overflow: hidden;
  border-radius: 0.75rem;
  border: 3px solid var(--navy);
  opacity: 0;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: none;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1024px) { .product-thumb { display: block; } }
.product-row:hover .product-thumb {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.products-cta { margin-top: 2.5rem; }

/* ============================================================
   WHY US
   ============================================================ */
.whyus { scroll-margin-top: 6rem; }
.whyus-grid {
  display: grid;
  align-items: center;
  gap: 3rem;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 1024px) {
  .whyus-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4rem; }
}
.whyus-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 3px solid var(--navy);
}
.whyus-image img, .whyus-image video { width: 100%; height: 100%; object-fit: cover; display: block; }
.whyus-content .section-title { line-height: 1.08; }
/* "PROVERENO." is ~7.3em wide; cap the title at 13% of its column so the word
   never splits ("PROVEREN / O."). Only bites in the two-column layout. */
.whyus-content { container-type: inline-size; }
.whyus-content .section-title { font-size: min(clamp(2.4rem, 6.5vw, 5.2rem), 13cqi); }
.whyus-lead {
  margin-top: 1rem;
  max-width: 28rem;
  color: var(--sky-100);
}
.benefits {
  margin-top: 2rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.benefit { display: flex; align-items: flex-start; gap: 1rem; }
.benefit-check {
  margin-top: 0.125rem;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: 0.5rem;
  background: var(--gold);
  color: var(--navy);
}
.benefit-title {
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--bone);
}
.benefit-text { margin-top: 0.25rem; font-size: 0.875rem; color: var(--sky-200); }
.whyus-cta { margin-top: 2.25rem; }

/* ============================================================
   PROCESS
   ============================================================ */
.process {
  background: var(--bone);
  color: var(--ink);
}
.process-title { color: var(--ink); max-width: 42rem; font-size: clamp(2.1rem, 5.5vw, 4.4rem); }
.process-lead { margin-top: 1rem; max-width: 28rem; color: var(--ink-soft); }
.process-grid {
  margin-top: 3.5rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 768px) { .process-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.process-card {
  border-radius: 1rem;
  border: 1px solid var(--bone-deep);
  background: #fff;
  padding: 1.5rem;
  min-width: 0;
}
@media (min-width: 560px) { .process-card { padding: 2rem; } }
.process-no { font-size: 3rem; color: var(--gold); }
.process-card-title {
  margin-top: 1.25rem;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.process-card-text { margin-top: 0.75rem; line-height: 1.6; color: var(--ink-soft); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials { scroll-margin-top: 6rem; }
.testimonials .section-title { font-size: clamp(2.1rem, 5.5vw, 4.4rem); }
.testimonials-rating {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 1rem;
  background: var(--plate);
  padding: 1rem 1.25rem;
}
.testimonials-rating .stars svg { width: 1.25rem; height: 1.25rem; }
.testimonials-rating-label { font-size: 0.875rem; font-weight: 600; color: var(--sky-100); }
/* Carousel: native scroll-snap row; main.js drives the arrows. */
.testimonials-carousel { margin-top: 3.5rem; }
.testimonials-track {
  --per-view: 1;
  --gap: 1.5rem;
  display: flex;
  gap: var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.testimonials-track::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .testimonials-track { --per-view: 2; } }
@media (min-width: 1024px) { .testimonials-track { --per-view: 3; } }
.testimonials-slide {
  display: flex;
  flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view));
  min-width: 0;
  scroll-snap-align: start;
}
.testimonials-nav {
  margin-top: 2rem;
  display: flex;
  justify-content: center; /* centered, not right: the fixed back-to-top button sits there */
  gap: 0.75rem;
}
.testimonials-nav[hidden] { display: none; } /* [hidden] alone loses to the display:flex above (same specificity, author wins) */
.testimonials-arrow {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(247, 243, 234, 0.25);
  border-radius: 9999px;
  background: var(--plate);
  color: var(--bone);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, opacity 0.2s;
}
.testimonials-arrow:hover:not(:disabled) { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.testimonials-arrow:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.testimonials-arrow:disabled { opacity: 0.35; cursor: default; }
.testimonial {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 1rem;
  border: 1px solid rgba(247, 243, 234, 0.12);
  background: var(--plate);
  padding: 2rem;
}
.quote-icon { width: 2rem; height: 2rem; color: var(--gold); }
.testimonial-quote {
  margin-top: 1.25rem;
  flex: 1;
  font-size: 15px;
  line-height: 1.6;
  color: var(--sky-100);
}
.testimonial-foot {
  margin-top: 1.5rem;
  border-top: 1px solid rgba(247, 243, 234, 0.12);
  padding-top: 1.25rem;
}
.testimonial-name { font-size: 1.125rem; letter-spacing: -0.02em; color: var(--bone); }
.testimonial-role { font-size: 0.875rem; color: var(--sky-200); }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery .section-title { font-size: clamp(2.1rem, 5.5vw, 4.4rem); max-width: 42rem; }
.gallery-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; } }
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 3px solid var(--navy);
  aspect-ratio: 1 / 1;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item img:hover { transform: scale(1.05); }
.gallery-item-lead { grid-column: span 2; grid-row: span 2; }
.gallery-link { display: block; width: 100%; height: 100%; cursor: zoom-in; }

/* Lightbox (native <dialog>, opened by main.js) */
.lightbox {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(2, 6, 14, 0.96);
  color: var(--bone);
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: transparent; }
.lightbox-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: min(88vw, 60rem);
  pointer-events: none;
}
.lightbox-figure img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  max-height: 78dvh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 1rem;
  pointer-events: auto;
}
.lightbox-figure figcaption { font-size: 0.9375rem; text-align: center; color: var(--sky-100); }
.lightbox-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--bone);
  cursor: pointer;
  transition: background 0.2s ease;
}
.lightbox-btn:hover { background: rgba(255, 255, 255, 0.18); }
.lightbox-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev,
.lightbox-next { top: 50%; translate: 0 -50%; }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
/* On phones the arrows move to the bottom corners so they never sit on the photo */
@media (max-width: 767px) {
  .lightbox-prev,
  .lightbox-next { top: auto; bottom: 1.25rem; translate: none; }
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  scroll-margin-top: 6rem;
  background: var(--bone);
  color: var(--ink);
}
.faq-eyebrow { text-align: center; }
.faq-title { color: var(--ink); text-align: center; font-size: clamp(2.1rem, 5.5vw, 4rem); }
.faq-list {
  margin-top: 3rem;
  border-top: 1px solid var(--bone-deep);
  border-bottom: 1px solid var(--bone-deep);
}
.faq-item { border-bottom: 1px solid var(--bone-deep); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
}
.faq-q span {
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
@media (min-width: 768px) { .faq-q span { font-size: 1.25rem; } }
.faq-plus {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  color: var(--gold);
  transition: transform 0.3s ease;
}
.faq-item.is-open .faq-plus { transform: rotate(45deg); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.3s ease, opacity 0.3s ease, padding-bottom 0.3s ease;
}
.faq-item.is-open .faq-a {
  grid-template-rows: 1fr;
  opacity: 1;
  padding-bottom: 1.25rem;
}
.faq-a-inner { overflow: hidden; }
.faq-a-inner p { padding-right: 2.5rem; line-height: 1.6; color: var(--ink-soft); }
.faq-more { margin-top: 2.5rem; text-align: center; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta {
  scroll-margin-top: 6rem;
  padding-block: 7rem;
  text-align: center;
}
@media (min-width: 768px) { .final-cta { padding-block: 9rem; } }
.final-cta-title {
  margin-top: 2.25rem;
  color: var(--bone);
  font-size: clamp(3rem, 11vw, 9rem);
}
.final-cta-phone {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.9;
  font-size: clamp(2.6rem, 8vw, 6rem);
  color: var(--gold);
  transition: color 0.2s ease;
}
.final-cta-phone:hover { color: var(--gold-soft); }
.final-cta-phones {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.final-cta-phones .final-cta-phone { margin-top: 0; }
.final-cta-lead {
  margin-inline: auto;
  margin-top: 1.25rem;
  max-width: 28rem;
  font-size: 1.125rem;
  color: var(--sky-100);
}
.final-cta-buttons {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.final-cta-hours { margin-top: 1.5rem; font-size: 0.875rem; color: var(--sky-200); }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-form-section {
  scroll-margin-top: 6rem;
  background: var(--bone);
  color: var(--ink);
}
.contact-form-title { color: var(--ink); text-align: center; margin-top: 2.25rem; }
.contact-form-eyebrow { text-align: center; }
.contact-form-lead {
  margin-top: 1rem;
  margin-inline: auto;
  max-width: 30rem;
  text-align: center;
  color: var(--ink-soft);
}
.contact-form {
  margin-top: 3rem;
  margin-inline: auto;
  max-width: 40rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-row {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 640px) { .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.form-field { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.form-label { font-size: 0.8125rem; font-weight: 600; color: var(--ink-soft); }
.form-field input,
.form-field textarea {
  width: 100%; /* override the intrinsic size/cols width of form controls */
  min-width: 0;
  border-radius: 0.75rem;
  border: 1.6px solid var(--bone-deep);
  background: #fff;
  padding: 0.875rem 1rem;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--ink-soft); opacity: 0.55; }
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-field textarea { resize: vertical; min-height: 8rem; }
.contact-form-submit { align-self: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 2px solid var(--gold);
  background: var(--navy-deep);
}
.footer-inner { padding-block: 4rem; }
.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); } }
.footer-about {
  margin-top: 1rem;
  max-width: 20rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--sky-200);
}
.footer-heading {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  color: var(--gold);
}
.footer-links {
  margin-top: 1rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  font-size: 0.875rem;
}
.footer-links a { color: var(--sky-100); transition: color 0.2s ease; }
.footer-links a:hover { color: var(--bone); }
.footer-contact {
  margin-top: 1rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--sky-100);
}
.footer-contact li { display: inline-flex; align-items: center; gap: 0.625rem; }
.footer-contact a { display: inline-flex; align-items: center; gap: 0.625rem; transition: color 0.2s ease; }
.footer-contact a:hover { color: var(--bone); }
.footer-ic { color: var(--gold); flex-shrink: 0; }
.footer-bottom {
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 1px solid rgba(247, 243, 234, 0.12);
  padding-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--sky-200);
}
@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ============================================================
   STICKY MOBILE CALL
   ============================================================ */
.sticky-call {
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 40;
  transform: translateY(1rem);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.sticky-call.is-visible { transform: translateY(0); opacity: 1; pointer-events: auto; }
@media (min-width: 1024px) { .sticky-call { display: none; } }
.sticky-call a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  border-radius: 1rem;
  background: var(--gold);
  padding: 1rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: 1.125rem;
  color: var(--navy);
  box-shadow: 0 25px 50px -12px rgba(1, 21, 58, 0.5);
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: none;
  border-radius: 9999px;
  background: var(--header-blue);
  color: var(--bone);
  cursor: pointer;
  box-shadow: 0 25px 50px -12px rgba(1, 21, 58, 0.5);
  transform: translateY(1rem);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.2s ease;
}
.back-to-top:hover { background: var(--navy-deep); }
.back-to-top.is-visible { transform: translateY(0); opacity: 1; pointer-events: auto; }
@media (max-width: 1023px) { .back-to-top { bottom: 5.5rem; } }

/* ============================================================
   SUBPAGE HERO
   ============================================================ */
.page-hero {
  padding-block: 4rem 3rem;
  border-bottom: 1px solid rgba(247, 243, 234, 0.1);
}
@media (min-width: 768px) { .page-hero { padding-block: 5rem 4rem; } }
.page-hero-title {
  color: var(--bone);
  margin-top: 1rem;
  font-size: clamp(2.6rem, 8vw, 6rem);
}
.page-hero-lead {
  margin-top: 1.25rem;
  max-width: 34rem;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--sky-100);
}

/* Active nav item */
/* Gold text on white is only ~2.2:1, so the active link is navy with a
   gold underline instead. The mobile menu is on navy, where gold is fine. */
.nav-desktop a.is-active {
  color: var(--navy);
  font-weight: 700;
  padding-bottom: 3px;
  border-bottom: 2px solid var(--gold);
}
/* The mobile panel is white now too, so gold text would drop to ~2.1:1.
   Same treatment as the desktop nav: navy text, gold underline. */
.mobile-nav a.is-active { color: var(--navy); border-bottom: 2px solid var(--gold); }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-methods { padding-block: 4.5rem; }
.contact-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 768px) { .contact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.contact-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 1rem;
  border: 1px solid rgba(247, 243, 234, 0.1);
  background: var(--plate);
  padding: 1.75rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
a.contact-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.contact-card-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border-radius: 0.625rem;
  background: var(--gold);
  color: var(--navy);
}
.contact-card-label {
  margin-top: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--sky-200);
}
.contact-card-value {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-size: 1.375rem;
  color: var(--bone);
  overflow-wrap: break-word; /* an email address has no break opportunities */
}
/* The email is too long for the uppercase display style: lowercase it and let
   it shrink with its card (8cqi) so it stays on one line at every width. */
.contact-card { container-type: inline-size; }
.contact-card-value-email {
  text-transform: none;
  letter-spacing: -0.01em;
  font-size: 1.375rem;
  font-size: min(1.375rem, 8cqi);
}
.contact-card-note {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--sky-200);
}

.contact-details {
  margin-top: 1.25rem;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 768px) { .contact-details { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ============================================================
   FAQ PAGE
   ============================================================ */
.faq-page {
  background: var(--bone);
  color: var(--ink);
}
.faq-group + .faq-group { margin-top: 3.5rem; }
.faq-group-title {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.875rem;
  color: var(--gold);
}
.faq-group .faq-list { margin-top: 1.25rem; }
.faq-page-cta {
  margin-top: 4rem;
  border-radius: 1.25rem;
  border: 1px solid var(--bone-deep);
  background: #fff;
  padding: 2.5rem 2rem;
  text-align: center;
}
.faq-page-cta-title {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-size: 1.75rem;
  color: var(--ink);
}
.faq-page-cta-text {
  margin-top: 0.75rem;
  margin-inline: auto;
  max-width: 26rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.faq-page-cta-buttons {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.btn-ink {
  border: 1.6px solid rgba(16, 28, 51, 0.25);
  color: var(--ink);
  background: transparent;
}
.btn-ink:hover { border-color: var(--ink); transform: translateY(-2px); }

/* ============================================================
   REVEAL / MOTION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(34px) scale(0.97); }
.no-js .reveal { opacity: 1; transform: none; }

.hero-fade { opacity: 0; transform: translateY(22px); }
.no-js .hero-fade { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-fade { opacity: 1 !important; transform: none !important; }
  html, .testimonials-track { scroll-behavior: auto; }
  /* Menu still opens/closes, just without the motion. */
  .mobile-menu, .mobile-nav a, .mobile-menu-foot {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}

/* ============================================================
   WORDPRESS INTEGRATION
   Everything above this line is the standalone stylesheet,
   copied verbatim. Below are the additions the WordPress port
   needs — nothing here changes the front-end design.
   ============================================================ */

/* --- Admin bar ------------------------------------------------
   The header is position:sticky/top:0 and the mobile menu is
   position:fixed/top:0, so both slide under the logged-in admin
   bar unless they're pushed down by its height. --------------- */
.admin-bar .header { top: 32px; }
.admin-bar .mobile-menu { top: 46px; }
@media screen and (max-width: 782px) {
  .admin-bar .header { top: 46px; }
}
@media screen and (max-width: 600px) {
  /* Core un-fixes the admin bar below 600px, so no offset is needed. */
  .admin-bar .header { top: 0; }
  .admin-bar .mobile-menu { top: 0; }
}

/* --- Screen reader utilities (WordPress core markup) --------- */
.screen-reader-text {
  border: 0;
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  background-color: var(--bone);
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip-path: none;
  color: var(--ink);
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* --- Contact Form 7 --------------------------------------------
   CF7 injects its own wrappers around each control and runs the
   form template through wpautop. These rules make that markup
   render identically to the hand-written form it replaces.
   See CF7-SETUP.md for the form template to paste into CF7. ---- */
.contact-form .wpcf7-form-control-wrap { display: block; }
.contact-form p { margin: 0; }

/* The submit button and CF7's spinner share one flex row, so the spinner
   doesn't claim a row of its own while the form is idle. */
.contact-form-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.contact-form .wpcf7-spinner { margin: 0; }

/* CF7 renders the submit as <input type="submit">, not <button>. */
.contact-form input[type="submit"] {
  -webkit-appearance: none;
  appearance: none;
}

.contact-form .wpcf7-not-valid-tip {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #b3261e;
  margin-top: 0.375rem;
}
.contact-form .wpcf7-form-control.wpcf7-not-valid {
  border-color: #b3261e;
}

/* CF7 styles this as `.wpcf7 form .wpcf7-response-output` — three classes, so
   the theme has to match that specificity to win. The form is a flex column
   with a 1.25rem gap, which already spaces the message; no margin needed. */
.wpcf7 form.contact-form .wpcf7-response-output {
  margin: 0;
  padding: 0.875rem 1.125rem;
  border: 1px solid var(--sky-200);
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  background: #fff;
}
.wpcf7 form.contact-form.sent .wpcf7-response-output {
  border-color: var(--gold);
  color: var(--ink);
}
.wpcf7 form.contact-form.invalid .wpcf7-response-output,
.wpcf7 form.contact-form.unaccepted .wpcf7-response-output,
.wpcf7 form.contact-form.spam .wpcf7-response-output,
.wpcf7 form.contact-form.failed .wpcf7-response-output,
.wpcf7 form.contact-form.aborted .wpcf7-response-output {
  border-color: #b3261e;
  color: #b3261e;
}

/* --- Blog / archive fallback ---------------------------------
   The site has no blog, but WordPress still routes /?p=1,
   search and 404 somewhere. These give those views the same
   page shell as the real pages instead of unstyled markup. ---- */
.fallback-list { display: grid; gap: 2rem; }
.fallback-entry {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--sky-200);
}
.fallback-entry:last-child { border-bottom: none; padding-bottom: 0; }
.fallback-entry-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.fallback-entry-title a { color: inherit; text-decoration: none; }
.fallback-entry-title a:hover { color: var(--gold); }
.fallback-meta {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
}
.fallback-content { color: var(--ink-soft); }
.fallback-content > * + * { margin-top: 1rem; }
.fallback-content a { color: var(--ink); }
.fallback-content h1,
.fallback-content h2,
.fallback-content h3 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.2;
}
.fallback-content ul,
.fallback-content ol { padding-left: 1.25rem; }
.fallback-content img { border-radius: 0.75rem; }
.fallback-nav { margin-top: 3rem; }
.fallback-nav a { color: var(--ink); font-weight: 700; }
