/* =========================================================
   Coast Gates Investment — Site Styles
   Palette: Navy #0C2340 / Deep Navy #071629 / Gold #C59B27
   Type: Fraunces (display) + Inter (UI/body)
   ========================================================= */

:root {
  --coast-navy: #0C2340;
  --coast-deep: #071629;
  --coast-gold: #C59B27;
  --coast-gold-deep: #8C6A11;
  --coast-gold-hover: #DDAE2C;
  --coast-surface: #F8FAFC;
  --coast-border: #E2E8F0;
  --coast-slate: #4A5568;

  /* ---- Motion & depth tokens ----
     One consistent easing curve and shadow scale used everywhere,
     instead of one-off values per component. */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(12, 35, 64, 0.06), 0 1px 1px rgba(12, 35, 64, 0.04);
  --shadow-md: 0 8px 24px -8px rgba(12, 35, 64, 0.16);
  --shadow-lg: 0 24px 60px -12px rgba(12, 35, 64, 0.28);
  --shadow-gold: 0 8px 20px -6px rgba(197, 155, 39, 0.45);
}

::selection {
  background: var(--coast-gold);
  color: var(--coast-navy);
}

/* ---- Accessibility ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--coast-gold);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

html { scroll-behavior: smooth; }

/* ---- Scroll reveal ----
   Sections and cards start slightly lowered/faded, then settle into
   place as they enter the viewport. Respects reduced-motion above. */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-group .reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal-group .reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal-group .reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal-group .reveal:nth-child(5) { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* WordPress inserts a default margin-top between top-level template
   blocks (header, hero, footer) via --wp--style--block-gap unless a
   theme explicitly zeroes it out. That default gap was showing as a
   pale strip between the header and the hero. */
.wp-site-blocks > * {
  margin-block-start: 0 !important;
}

/* =========================================================
   Header — light sticky bar, gains a shadow once you scroll
   ========================================================= */
.coast-master-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), background-color 0.3s var(--ease);
  /* Guards against the flex default (stretch) making child rows,
     including the CTA button, fill the header's full height. */
  align-items: center !important;
}

.coast-master-header .btn-gold .wp-element-button {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.3rem !important;
  border-radius: var(--radius-sm);
  line-height: 1.2;
  box-shadow: var(--shadow-gold);
}

.coast-master-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--coast-border);
}

.coast-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem !important;
  position: relative;
  transition: color 0.2s var(--ease);
}

.coast-nav a::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.1rem;
  height: 2px;
  background: var(--coast-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.coast-nav a:hover { color: var(--coast-gold) !important; }
.coast-nav a:hover::after { transform: scaleX(1); }

/* Site title/tagline: never let the two-word title wrap onto a
   second line and cramp the header — shrink instead. */
.coast-master-header .wp-block-site-title,
.coast-master-header .wp-block-site-title a {
  white-space: nowrap;
}

/* Mobile nav toggle (hamburger): WP renders this with no chrome by
   default — give it a proper, consistent tap target. */
.coast-master-header .wp-block-navigation__responsive-container-open {
  color: var(--coast-navy) !important;
  border: 1px solid var(--coast-border);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.6rem !important;
  min-width: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
}

.coast-master-header .wp-block-navigation__responsive-container-open:hover {
  border-color: var(--coast-gold);
}

/* =========================================================
   Hero — full-bleed image, italic display line, floating
   search card that overlaps into the next section
   ========================================================= */
.coast-hero {
  position: relative;
  overflow: visible !important;
}

.coast-hero__slideshow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.coast-hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: coast-slide-fade 18s infinite ease-in-out, coast-slide-zoom 18s infinite linear;
  transform-origin: center;
}

.coast-hero__slide:nth-child(1) { animation-delay: 0s; }
.coast-hero__slide:nth-child(2) { animation-delay: 6s; }
.coast-hero__slide:nth-child(3) { animation-delay: 12s; }

@keyframes coast-slide-fade {
  0%   { opacity: 0; }
  4%   { opacity: 1; }
  30%  { opacity: 1; }
  36%  { opacity: 0; }
  100% { opacity: 0; }
}

/* Slow, continuous Ken Burns drift — each slide scales up gently
   for the entire cycle so the motion never resets/jumps when it
   becomes visible again. */
@keyframes coast-slide-zoom {
  0%   { transform: scale(1); }
  100% { transform: scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  .coast-hero__slide { animation: none; opacity: 0; transform: none; }
  .coast-hero__slide:first-child { opacity: 1; }
}

.coast-hero__scrim {
  position: relative;
  z-index: 1;
  /* Darkens well before the bottom edge so the render's baked-in
     signage text doesn't surface behind the buttons/search bar. */
  background: linear-gradient(180deg, rgba(7,22,41,0.5) 0%, rgba(7,22,41,0.8) 45%, rgba(7,22,41,0.95) 75%, rgba(7,22,41,0.98) 100%) !important;
}

.coast-hero .wp-block-cover__inner-container {
  position: relative;
  z-index: 2;
}

.coast-hero__content {
  animation: coast-hero-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes coast-hero-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.coast-hero__title {
  font-size: clamp(2.25rem, 4.8vw, 4rem);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 1.1rem;
}

.coast-hero__title em {
  font-style: italic;
  font-weight: 400;
}

/* Search bar sits in normal document flow, a fixed gap below
   whatever height the headline/subtext actually render at — so it
   can never overlap the text regardless of viewport width or how
   many lines the copy wraps to. The negative margin-bottom then
   pulls the *hero's own* bottom edge up after the card, which is
   what makes the card appear to float half into the section below,
   without needing to guess the hero's total height in advance. */
.coast-hero__search {
  position: relative;
  margin: 2.75rem auto -4.5rem;
  width: min(920px, calc(100% - 2rem));
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-lg);
  padding: 1.2rem 1.5rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.25rem !important;
  z-index: 20;
}

.coast-search-field {
  flex: 1 1 0% !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.3rem !important;
  padding: 0 1.1rem !important;
  min-width: 0;
}

.coast-search-field label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--coast-slate);
  letter-spacing: 0.01em;
}

.coast-search-select {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--coast-navy);
  padding: 0.15rem 0;
  cursor: pointer;
}

.coast-search-select:focus-visible { outline-offset: 4px; }

.coast-search-divider {
  width: 1px !important;
  min-width: 1px;
  align-self: stretch;
  background: var(--coast-border);
  flex-shrink: 0 !important;
}

.coast-search-submit {
  flex-shrink: 0;
  margin-left: 0.75rem;
  padding: 0.9rem 1.75rem !important;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  box-shadow: var(--shadow-gold);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease) !important;
}

.coast-search-submit:hover {
  transform: translateY(-2px);
}

@media (max-width: 782px) {
  .coast-hero__search {
    flex-direction: column;
    align-items: stretch !important;
    margin: 2rem auto 0 !important;
    width: 100%;
  }
  .coast-search-field { padding: 0.6rem 0 !important; }
  .coast-search-divider { width: 100%; height: 1px; }
  .coast-search-submit { margin-left: 0; margin-top: 0.75rem; width: 100%; }
}

/* =========================================================
   Land inventory — filters, card grid, price panel
   ========================================================= */
.coast-inventory-section { position: relative; }

.coast-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 2.5rem 0 2.75rem;
}

.coast-pill-group,
.coast-plan-toggle {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.coast-pill {
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--coast-slate);
  background: #fff;
  border: 1px solid var(--coast-border);
  border-radius: var(--radius-pill);
  padding: 0.55rem 1.15rem;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.coast-pill:hover { border-color: var(--coast-gold); transform: translateY(-1px); }

.coast-pill.is-active {
  background: var(--coast-navy);
  border-color: var(--coast-navy);
  color: #fff;
}

.coast-plan-toggle {
  background: var(--coast-surface);
  border: 1px solid var(--coast-border);
  border-radius: var(--radius-pill);
  padding: 0.3rem;
}

.coast-plan-btn {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--coast-slate);
  background: transparent;
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.coast-plan-btn.is-active {
  background: var(--coast-gold);
  color: var(--coast-navy);
}

.coast-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

@media (max-width: 960px) {
  .coast-card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .coast-card-grid { grid-template-columns: 1fr; }
}

.coast-land-card {
  background: #fff;
  border: 1px solid var(--coast-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  display: flex;
  flex-direction: column;
}

.coast-land-card.is-hidden { display: none; }

.coast-land-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.coast-land-card__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.coast-land-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}

.coast-land-card:hover .coast-land-card__image img {
  transform: scale(1.07);
}

.coast-land-card__body {
  padding: 1.35rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.coast-land-card__body h3 {
  font-family: var(--wp--preset--font-family--serif, 'Fraunces', Georgia, serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--coast-navy);
  margin: 0;
  letter-spacing: -0.01em;
}

.coast-land-card__meta {
  font-size: 0.82rem;
  color: var(--coast-slate);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.coast-land-card__meta svg { flex-shrink: 0; color: var(--coast-gold-deep); }

.coast-land-card__desc {
  font-size: 0.9rem;
  color: var(--coast-slate);
  margin: 0.15rem 0 0.5rem;
  flex: 1;
}

.coast-land-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--coast-border);
}

.coast-land-card__price {
  font-family: var(--wp--preset--font-family--serif, 'Fraunces', Georgia, serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--coast-navy);
}

.coast-land-card__cta {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--coast-navy);
  background: var(--coast-gold);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.coast-land-card__cta:hover {
  background: var(--coast-gold-hover);
  transform: translateY(-1px);
}

.coast-empty-state {
  text-align: center;
  color: var(--coast-slate);
  padding: 2.5rem 1rem;
}

/* ---- Calculator panel ---- */
.coast-calculator-panel {
  margin-top: 4rem;
  background: var(--coast-surface);
  border: 1px solid var(--coast-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  gap: 2.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.coast-calculator-panel__intro { flex: 1; min-width: 240px; }

.coast-calculator-panel__intro h3 {
  font-family: var(--wp--preset--font-family--serif, 'Fraunces', Georgia, serif);
  font-size: 1.4rem;
  color: var(--coast-navy);
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}

.coast-calculator-panel__intro p {
  color: var(--coast-slate);
  font-size: 0.95rem;
  margin: 0;
}

.calculator-box {
  background: #ffffff;
  border: 1px solid var(--coast-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  flex: 1;
  min-width: 280px;
  max-width: 380px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.calculator-box::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--coast-gold), var(--coast-gold-hover));
}

.calculator-box label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--coast-navy);
  display: block;
  margin-top: 0.85rem;
}

.calculator-box label:first-child { margin-top: 0; }

.calculator-control {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--coast-border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  margin-top: 0.35rem;
  font-family: inherit;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.calculator-control:focus-visible {
  border-color: var(--coast-gold);
}

.calculator-box__results {
  margin-top: 1.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--coast-border);
}

.calculator-box__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
}

.calculator-box__row span { flex-shrink: 0; }
.calculator-box__row strong { text-align: right; }

.calculator-box__row strong { color: var(--coast-navy); transition: color 0.2s var(--ease); }
.calculator-box__row strong.is-gold { color: var(--coast-gold-deep); }

.coast-calculator-cta {
  display: block;
  text-align: center;
  padding: 0.85rem;
  margin-top: 1.5rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.92rem;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease) !important;
}

.coast-calculator-cta:hover { transform: translateY(-2px); }

/* =========================================================
   Proof-of-work image grid
   ========================================================= */
.wp-block-image img[style*="aspect-ratio"] {
  transition: transform 0.4s ease;
}

.coast-render-frame {
  position: relative;
}

.coast-render-tag {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 5;
  background: rgba(7, 22, 41, 0.85);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
}

/* =========================================================
   Multi-sector pillar cards
   ========================================================= */
.coast-pillar-card {
  background: #ffffff;
  border: 1px solid var(--coast-border);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.coast-pillar-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

.coast-pillar-card h3 {
  font-family: var(--wp--preset--font-family--serif, 'Fraunces', Georgia, serif);
  letter-spacing: -0.01em;
  margin: 0 0 0.6rem;
}

.coast-pillar-card > p {
  margin: 0 0 1.25rem;
}

.coast-icon-badge {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: linear-gradient(155deg, var(--coast-navy) 0%, var(--coast-deep) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}

.coast-pillar-card:hover .coast-icon-badge {
  transform: scale(1.08) rotate(-4deg);
}

.coast-icon-badge svg {
  width: 22px;
  height: 22px;
  color: var(--coast-gold);
}

/* =========================================================
   Footer map
   ========================================================= */
.coast-footer-map-wrap { width: 100%; }

.coast-footer-map {
  width: 100%;
  height: 240px;
  border: 0;
  border-radius: var(--radius-md);
  display: block;
  filter: grayscale(0.2) contrast(1.05);
  box-shadow: var(--shadow-sm);
}

/* =========================================================
   Buttons — one consistent system: solid gold primary,
   outline secondary (from core's is-style-outline), same
   radius/easing/lift everywhere.
   ========================================================= */
.btn-gold {
  background-color: var(--coast-gold) !important;
  color: var(--coast-navy) !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  border: none !important;
  border-radius: var(--radius-sm) !important;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn-gold:hover {
  background-color: var(--coast-gold-hover) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-gold:active { transform: translateY(0); }

.wp-block-button.is-style-outline .wp-element-button {
  border-radius: var(--radius-sm) !important;
  border-width: 1.5px !important;
  font-weight: 600 !important;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease) !important;
}

.wp-block-button.is-style-outline .wp-element-button:hover {
  background-color: var(--coast-navy) !important;
  color: #fff !important;
  transform: translateY(-2px);
}

/* =========================================================
   RESPONSIVE — TABLET & MOBILE
   Two consistent breakpoints used everywhere below:
     960px = tablet (iPad portrait and similar)
     600px = phone
   Section vertical padding shrinks in the same two steps at
   every section, so the rhythm stays consistent site-wide
   instead of each block scaling differently.
   ========================================================= */

/* ---------- Tablet (≤960px) ---------- */
@media (max-width: 960px) {
  .coast-master-header { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }
  .coast-nav a { padding: 0.4rem 0.5rem !important; font-size: 0.82rem; }
  .coast-master-header .wp-block-site-title { font-size: 0.92rem !important; }
  .coast-master-header .wp-block-site-tagline { display: none; }
  .coast-master-header .btn-gold .wp-element-button { padding: 0.55rem 1rem !important; font-size: 0.85rem; }

  .coast-hero { padding-top: 6rem !important; padding-bottom: 2.5rem !important; min-height: 600px !important; }
  .coast-hero__content { padding-left: 0.5rem; padding-right: 0.5rem; }

  #land-schedule { padding-top: 3rem !important; padding-bottom: 4rem !important; }
  #site-proof { padding-top: 4rem !important; padding-bottom: 4rem !important; padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
  #portfolios { padding-top: 4rem !important; padding-bottom: 4rem !important; }

  .coast-calculator-panel { padding: 2rem; gap: 2rem; }

  /* Pillar cards: 2x2 grid instead of 4-in-a-row or a single column.
     Using CSS Grid here (not flex-basis) because WordPress's own
     block-support styles were winning the specificity fight and
     silently keeping this at 4-in-a-row or a single column. */
  #portfolios .wp-block-columns {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1.5rem !important;
  }
  #portfolios .wp-block-column { width: auto !important; flex: none !important; }

  /* Site verification photos: force 3-across to hold at tablet too,
     for the same reason as above. */
  #site-proof .wp-block-columns {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.5rem !important;
  }
  #site-proof .wp-block-column { width: auto !important; flex: none !important; }

  .coast-card-grid { gap: 1.4rem; }
}

/* ---------- Phone (≤600px) ---------- */
@media (max-width: 600px) {
  html { font-size: 15px; }

  .coast-master-header { padding-left: 1rem !important; padding-right: 1rem !important; }
  .coast-master-header .wp-block-site-title { font-size: 0.88rem !important; }
  .coast-master-header .wp-block-site-tagline { display: none; }
  .coast-master-header .btn-gold .wp-element-button {
    padding: 0.55rem 0.9rem !important;
    font-size: 0.82rem;
  }

  .coast-hero { padding-top: 5.5rem !important; padding-bottom: 2.5rem !important; min-height: 560px !important; }
  .coast-hero__title { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .coast-hero__content p { font-size: 1rem !important; }
  .coast-hero__search { padding: 1rem 1.1rem !important; border-radius: var(--radius-md) !important; }

  #land-schedule { padding-top: 2.5rem !important; padding-bottom: 3rem !important; padding-left: 1.25rem !important; padding-right: 1.25rem !important; }
  #site-proof { padding-top: 3rem !important; padding-bottom: 3rem !important; padding-left: 1.25rem !important; padding-right: 1.25rem !important; }
  #portfolios { padding-top: 3rem !important; padding-bottom: 3rem !important; padding-left: 1.25rem !important; padding-right: 1.25rem !important; }

  .coast-filter-row { gap: 1rem; margin: 1.75rem 0 2rem; }
  .coast-pill { padding: 0.5rem 0.95rem; font-size: 0.82rem; }
  .coast-plan-btn { padding: 0.45rem 0.85rem; font-size: 0.8rem; }

  .coast-card-grid { gap: 1.1rem; }
  .coast-land-card__body { padding: 1.1rem 1.15rem 1.25rem; }

  .coast-calculator-panel {
    padding: 1.5rem;
    gap: 1.5rem;
    margin-top: 2.5rem;
    border-radius: var(--radius-md);
  }
  .calculator-box { min-width: 0; width: 100%; max-width: none; }

  /* Pillar cards: single column on phones. These containers are
     display:grid from the tablet rule above (600px still matches
     that ≤960px query too), so we override grid-template-columns
     here rather than flex-basis, which has no effect on a grid item. */
  #portfolios .wp-block-columns { grid-template-columns: 1fr !important; gap: 1.25rem !important; }
  .coast-pillar-card {
    padding: 1.75rem;
    height: auto !important;
  }
  .coast-pillar-card .wp-block-buttons {
    margin-top: 1.5rem !important;
  }

  /* Site verification photos: single column, tighter gap */
  #site-proof .wp-block-columns { grid-template-columns: 1fr !important; gap: 1.75rem !important; }

  /* Footer: stack columns, trim padding */
  footer.wp-block-group { padding-top: 3rem !important; padding-bottom: 2rem !important; padding-left: 1.25rem !important; padding-right: 1.25rem !important; }
  footer .wp-block-columns { row-gap: 2rem; }
  footer .wp-block-column { flex-basis: 100% !important; }
  .coast-footer-map { height: 190px; }
}

/* ---------- Small phones (≤380px) ---------- */
@media (max-width: 380px) {
  .coast-hero__title { font-size: 1.7rem; }
  .coast-search-field { padding: 0.5rem 0 !important; }
  .coast-land-card__footer { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .coast-land-card__cta { width: 100%; text-align: center; }
}
