/* ============================================================
   Heron Lakes — Main Styles
   ============================================================ */

/* CSS Custom Properties */
:root {
  /* === Brand Palette — Neutrals === */
  --color-white:        #FFFFFF;
  --color-black-pure:   #000000;
  --color-black:        #1A1A1A;
  --color-black-soft:   #111111;
  --color-gray:         #707070;
  --color-blue-grey:    #607D8B;

  /* === Brand Palette — Blues === */
  --color-navy:         #012C55;
  --color-blue:         #0989C4;
  --color-blue-bright:  #029DE5;
  --color-blue-deep:    #0288D1;

  /* === Brand Palette — Accents === */
  --color-gold:         #FFC72C;
  --color-red:          #DD042C;
  --color-peach:        #FFC98B;

  /* === Overlays === */
  --color-transparent:  #00000000;
  --overlay-black-07:   #00000012;
  --overlay-black-16:   #00000029;
  --overlay-navy-20:    #012C5534;
  --overlay-navy-94:    #012C55F0;

  /* === Semantic Aliases ===
     Placeholder mapping — adjust once the visual design is finalized. */
  --color-primary:      var(--color-navy);
  --color-secondary:    var(--color-blue);
  --color-accent:       var(--color-gold);
  --color-background:   var(--color-white);
  --color-text:         var(--color-black);

  /* Typography
     --font-display  → Advercase Regular (local)   — logo, títulos decorativos
     --font-heading   → Montserrat (Google Fonts)   — headings h1–h6, weight 600/700
     --font-body      → Montserrat (Google Fonts)   — texto, nav, UI, weight 400
  */
  --font-display:  'Advercase Regular', sans-serif;
  --font-heading:  'Montserrat', sans-serif;
  --font-body:     'Montserrat', sans-serif;

  /* Spacing scale */
  --space-xs:   0.25rem;
  --space-sm:   0.5rem;
  --space-md:   1rem;
  --space-lg:   1.5rem;
  --space-xl:   2rem;
  --space-section: 2.5rem; /* section vertical rhythm — .section's min padding, reused anywhere that should stay in sync with it */
  --space-2xl:  3rem;
  --space-3xl:  4rem;

  /* Layout */
  --container-max: 1680px;
  --container-max-narrow: 1280px; /* Hero, page-header banners, and the homepage map section all cap here */
  --container-pad: clamp(1rem, 5vw, 2rem);
  --header-height: clamp(70px, 7vw, 90px);

  /* Border radius */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --radius-xl:  20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;
}

/* Base */
body {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background-color: var(--color-background);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* Section — vertical rhythm for content sections on inner pages */
.section {
  padding-block: clamp(var(--space-section), 4vw, 3.75rem);
}

/* Generic inner-page header (title banner above an archive/page's content) */
.page-header {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-2xl);
  background-color: var(--overlay-navy-94);
  background-image: url('../images/palm-bg.png');
  background-repeat: repeat;
  background-size: 300px auto;
  /* wave-up.png is ~86% solid white at the bottom of its own canvas —
     compensate so the visible navy padding below the title matches
     the rest of the site instead of being eaten by that white block. */
  padding-block-end: calc(var(--space-2xl) + 3.1vw);
}

.page-header .container,
.hero-content .container,
.virtual-tour-section .container,
.page-content-section .container,
.thank-you-section .container,
.error-404-section .container {
  max-width: var(--container-max-narrow);
}

/* Wave divider — reusable on any section that needs a wavy edge
   instead of a flat one. Sits fully inside its own section's box
   (no need to overlap into the adjacent section). */
.section-wave {
  position: absolute;
  left: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.section-wave--top {
  top: 0;
}

.section-wave--bottom {
  bottom: 0;
}

/* wave-up.png's very last pixel row isn't fully opaque, which shows
   as a faint seam against .page-header's navy background — nudge it
   past the section's own edge so overflow:hidden clips that row off. */
.page-header .section-wave--bottom {
  bottom: -2px;
}

.page-header-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  text-transform: capitalize;
  color: var(--color-white);
  line-height: 1.3;
}

/* Section header — reusable title + optional description above a
   section's content. Base pattern for homepage sections beyond the
   hero (Featured Stores, and future ones after it). */
.section-header {
  text-align: center;
  max-width: 780px;
  margin-inline: auto;
  margin-block-end: var(--space-xl);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  text-transform: capitalize;
  color: var(--color-navy);
  line-height: 1.3;
}

.section-description {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-gray);
  margin-block-start: var(--space-sm);
  line-height: 1.6;
}

/* CTA Button — the site's one shared "pill" button style, reused
   everywhere (header, hero, About Us, store cards, Stores/homepage
   banner buttons, Contact/Thank You CTAs). Formerly named
   .header-cta, renamed since it's used well beyond the header — keep
   using this one class for any future button instead of introducing a
   new one. Only the color scheme should ever vary between contexts —
   see .cta-button--light below, which changes nothing but
   background/color. */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  background: var(--color-blue-bright) 0% 0% no-repeat padding-box;
  opacity: 1;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(0.75rem, 0.9vw, 0.85rem);
  border-radius: 50px;
  white-space: nowrap;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.cta-button:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* .cta-button is an <a> in most places it's used (reset.css only
   zeroes outline on native input/button/textarea/select, not links) —
   mouse clicks shouldn't leave a lingering focus ring; keep one for
   keyboard navigation only. */
.cta-button:focus {
  outline: none;
}

.cta-button:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 2px;
}

/* Light variant — solid white fill / navy text, used on top of navy
   or blue-gradient backgrounds (Stores banner, homepage map section). */
.cta-button--light {
  background: var(--color-white);
  color: var(--color-navy);
}

/* 404 page */
.error-404-content {
  max-width: 560px;
  margin-inline: auto;
  text-align: center;
}

.error-404-message {
  color: var(--color-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  margin-block-end: var(--space-lg);
}

/* Generic WYSIWYG content (Privacy Policy, Sitemap, and any other plain
   WP Page using page.php) — comfortable reading width, basic heading/
   list/link rhythm. Not needed on ACF-driven pages like Home/Contact,
   which don't use the_content(). */
.entry-content {
  max-width: 860px;
  margin-inline: auto;
  color: var(--color-text);
  line-height: 1.7;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.3;
  margin-block: var(--space-xl) var(--space-sm);
}

.entry-content h2 { font-size: clamp(1.375rem, 3vw, 1.75rem); }
.entry-content h3 { font-size: clamp(1.125rem, 2.5vw, 1.375rem); }

.entry-content p,
.entry-content ul,
.entry-content ol {
  margin-block-end: var(--space-md);
}

.entry-content ul,
.entry-content ol {
  padding-inline-start: var(--space-xl);
}

.entry-content a {
  color: var(--color-blue-bright);
}

.entry-content > :first-child {
  margin-block-start: 0;
}
