/*
Theme Name: Encore Child
Template: generatepress
Version: 1.0.1
Text Domain: encore-child
*/

/* Gutenberg's own editor CSS sets `.block-editor-block-list__block { position: relative }`
   at the same specificity as a single class selector, and loads after this stylesheet — so
   any GB element block meant to be `position: absolute` (full-bleed backgrounds, arc/photo
   overlays, decorative overlaps) renders as `relative` in the block editor unless forced with
   `!important`. Frontend is unaffected; this only matters for editor-preview fidelity. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
ul, ol { list-style: none; padding: 0; margin: 0; }
p { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; cursor: pointer; }

:root {
  --encore-green: #276c33;
  --encore-green-light: #33893f;
  --encore-off-white: #fffdf5;
  --encore-tan: #f5dfbb;
  --encore-black: #1a1a1a;
  --encore-white: #ffffff;
  --encore-max-width: 1200px;
  --encore-section-py: 4rem;
  --encore-section-px: 20px;
  --encore-font-display: 'Italiana', Georgia, serif;
  --encore-font-body: 'Raleway', sans-serif;
  --encore-font-logo: 'Minerva Modern', 'Big Caslon', 'Iowan Old Style', Georgia, serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--encore-font-body);
  font-weight: 400;
  color: var(--encore-black);
  line-height: 1.5;
  background: var(--encore-white);
}

h1, h2, h3, h4 {
  font-family: var(--encore-font-display);
  font-weight: 400;
  color: var(--encore-green);
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.75rem, 2.6vw, 2rem);
  text-align: center;
}

.encore-container {
  max-width: var(--encore-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Outer/inner pair used by every content section except the header and footer */
.encore-section {
  padding: var(--encore-section-py) var(--encore-section-px);
}

.encore-section-inner {
  max-width: var(--encore-max-width);
  margin-left: auto;
  margin-right: auto;
}

.encore-visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.encore-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  background: var(--encore-green);
  color: var(--encore-off-white);
  font-family: var(--encore-font-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  padding: 13px 32px;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.encore-btn:hover { background: var(--encore-green-light); }

.encore-btn-outline {
  background: var(--encore-green);
  border-color: var(--encore-off-white);
}

/* ---------- Top strip + header ---------- */

.encore-topstrip {
  height: 25px;
  background: var(--encore-tan);
}

.encore-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--encore-off-white);
}

.encore-header-inner {
  max-width: var(--encore-max-width);
  margin: 0 auto;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.encore-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.encore-logo-icon { height: 48px; width: auto; flex-shrink: 0; }

.encore-main-nav { display: flex; align-items: center; gap: 32px; }

.encore-main-nav .gb-menu-container > ul {
  display: flex;
  align-items: center;
  gap: 32px;
}

.encore-main-nav a {
  font-family: var(--encore-font-body);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--encore-black);
}

.encore-main-nav > .gb-menu-container > ul > li > a:hover { color: var(--encore-green); }

.encore-main-nav .menu-item-has-children > a,
.encore-main-nav li:has(> ul.sub-menu) > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.encore-main-nav ul.sub-menu {
  position: absolute;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  background: rgba(0, 0, 0, 0.85);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 220px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.encore-main-nav li:hover > ul.sub-menu,
.encore-main-nav li:focus-within > ul.sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.encore-main-nav ul.sub-menu a {
  color: var(--encore-white);
  font-weight: 700;
  font-size: 0.8rem;
  white-space: nowrap;
}

.encore-header-cta { flex-shrink: 0; }

.encore-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

/* ---------- Hero ---------- */

.encore-hero {
  position: relative;
  z-index: 0;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.encore-hero-bg {
  position: absolute !important;
  inset: 0;
  z-index: -1;
}

.encore-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.encore-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 700px;
}

.encore-hero-inner {
  width: 100%;
  max-width: 870px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.encore-hero-inner h1 {
  color: var(--encore-off-white);
  font-size: clamp(2.25rem, 4.6vw, 3.75rem);
  font-weight: 400;
}

.encore-hero-inner p {
  color: var(--encore-off-white);
  font-family: var(--encore-font-body);
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 1.5;
  max-width: 55ch;
}

/* ---------- Shop by product ---------- */

.encore-shop h2 { margin-bottom: 16px; }

.encore-shop-intro {
  max-width: 780px;
  margin: 0 auto 48px;
  text-align: center;
  font-family: var(--encore-font-body);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--encore-black);
}

.encore-shop-grid-wrap {
  position: relative;
  margin-bottom: 40px;
}

.encore-shop-arcs {
  position: absolute !important;
  top: 0;
  left: 8.333%;
  right: 8.333%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  z-index: 0;
  pointer-events: none;
}

.encore-shop-arcs img { width: 100%; height: auto; display: block; }

.encore-products-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.encore-product-card-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.encore-product-card {
  display: block;
  width: 100%;
  aspect-ratio: 179 / 218;
  border-radius: 999px 999px 0 0;
  overflow: hidden;
}

.encore-product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.encore-product-card:hover img { transform: scale(1.06); }

.encore-product-label {
  font-family: var(--encore-font-body);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: center;
  color: var(--encore-black);
}

.encore-shop-cta { text-align: center; }

/* ---------- Local approach / stats ---------- */

.encore-approach {
  position: relative;
  z-index: 0;
  color: var(--encore-white);
  overflow: hidden;
}

.encore-approach-bg { position: absolute !important; inset: 0; z-index: -1; }
.encore-approach-bg img { width: 100%; height: 100%; object-fit: cover; }
.encore-approach-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}

.encore-approach-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
}

.encore-stats-list {
  display: flex;
  flex-direction: column;
  gap: 36px;
  border-right: 1px solid rgba(255, 255, 255, 0.3);
  padding-right: 48px;
}

.encore-stat-row {
  display: flex;
  align-items: center;
  gap: 24px;
}

.encore-stat-number {
  font-family: var(--encore-font-body);
  font-weight: 600;
  font-size: 3.6rem;
  min-width: 130px;
  line-height: 1;
}

.encore-stat-text { font-size: 1.1rem; max-width: 27ch; }

.encore-approach-content { display: flex; flex-direction: column; gap: 20px; justify-content: center; }

.encore-approach-content h2 {
  color: var(--encore-white);
  text-align: left;
  font-size: clamp(1.9rem, 3vw, 2.75rem);
}

.encore-approach-content p { font-size: 1.1rem; line-height: 1.55; }
.encore-approach-content p strong { font-weight: 700; }

/* ---------- Process ---------- */

.encore-process-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.encore-process-media h2 {
  text-align: left;
  margin-bottom: 24px;
}

.encore-process-media img {
  width: 100%;
  aspect-ratio: 641 / 440;
  object-fit: cover;
  border-radius: 4px;
}

.encore-process-steps { display: flex; flex-direction: column; padding-top: 8px; position: relative; }

/* One continuous line from the center of the first badge to the center of the
   last, sitting behind all steps — replaces per-step segments so it doesn't
   depend on adjacent steps' heights lining up exactly. */
.encore-process-steps::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 28px;
  bottom: 28px;
  width: 1px;
  background: var(--encore-green);
  z-index: 0;
}

.encore-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  position: relative;
  padding-bottom: 44px;
  cursor: pointer;
}

.encore-step:last-child { padding-bottom: 0; }

.encore-step-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--encore-font-body);
  font-weight: 600;
  font-size: 1.4rem;
  position: relative;
  z-index: 1;
}

.encore-step.is-active .encore-step-badge {
  background: var(--encore-green);
  color: var(--encore-white);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.encore-step:not(.is-active) .encore-step-badge {
  background: var(--encore-white);
  border: 1px solid var(--encore-green);
  color: var(--encore-green);
}

.encore-step-content h3 {
  font-size: 1.5rem;
  text-align: left;
  color: var(--encore-black);
  margin-bottom: 8px;
}

.encore-step-content p {
  font-size: 1.1rem;
  color: var(--encore-black);
  line-height: 1.55;
  visibility: hidden;
}

.encore-step.is-active .encore-step-content p { visibility: visible; }

/* ---------- CTA band ---------- */

.encore-cta-band {
  position: relative;
  background-color: var(--encore-tan);
  background-image: url(assets/cta-band-pattern.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  text-align: center;
  padding: 56px 20px;
}

.encore-cta-band h2 {
  color: var(--encore-green);
  margin-bottom: 24px;
}

/* ---------- Testimonial ---------- */

.encore-testimonial-inner { position: relative; }

.encore-testimonial-box {
  background: var(--encore-green);
  color: var(--encore-white);
  padding: 48px 308px 48px 56px;
  border-radius: 4px;
  position: relative;
}

.encore-testimonial-quote-mark {
  font-family: var(--encore-font-display);
  font-size: 7rem;
  line-height: 0.5;
  display: block;
  margin-bottom: 20px;
}

.encore-testimonial-text {
  font-size: 1.15rem;
  max-width: 640px;
  margin-bottom: 28px;
  line-height: 1.5;
}

.encore-testimonial-cite {
  font-family: var(--encore-font-display);
  font-size: 1.75rem;
  display: block;
}

.encore-testimonial-photo {
  position: absolute !important;
  right: 48px;
  top: -32px;
  width: 260px;
  aspect-ratio: 271 / 330;
  border-radius: 999px 999px 0 0;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.encore-testimonial-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Footer ---------- */

.encore-site-footer {
  background: var(--encore-green);
  color: var(--encore-white);
  padding: 64px 20px 48px;
}

.encore-footer-inner {
  max-width: var(--encore-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.3fr;
  gap: 48px;
}

.encore-footer-brand { display: flex; flex-direction: column; }

.encore-footer-logo { display: flex; align-items: center; gap: 10px; }

.encore-footer-logo-icon { height: 56px; width: auto; flex-shrink: 0; }

.encore-footer-col h4 {
  font-family: var(--encore-font-body);
  font-weight: 700;
  color: var(--encore-white);
  font-size: 1rem;
  margin-bottom: 18px;
}

.encore-footer-col li { margin-bottom: 12px; }
.encore-footer-col a { font-size: 0.95rem; color: var(--encore-white); font-weight: 400; }
.encore-footer-col a:hover { text-decoration: underline; }

.encore-footer-contact p { font-size: 0.95rem; line-height: 1.9; margin-bottom: 4px; }
.encore-footer-contact a { text-decoration: underline; }

.encore-footer-social { display: flex; gap: 12px; margin-top: 20px; }
.encore-footer-social img { width: 33px; height: 33px; }

/* ---------- Page hero (global, used site-wide via the Hero Element) ---------- */

.encore-page-hero {
  position: relative;
  z-index: 0;
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.encore-page-hero-bg {
  position: absolute !important;
  inset: 0;
  z-index: -1;
}

.encore-page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.encore-page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 450px;
}

.encore-page-hero-content {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.encore-page-hero-content h1 {
  color: var(--encore-white);
  font-size: clamp(2.25rem, 4.2vw, 3.75rem);
  font-weight: 400;
}

.encore-leaf-accent {
  width: 40px;
  height: auto;
  flex-shrink: 0;
}

/* ---------- About page ---------- */

.encore-story h2 { margin-bottom: 32px; }

.encore-story-text {
  max-width: 900px;
  margin: 0 auto 56px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
  font-family: var(--encore-font-body);
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--encore-black);
}

.encore-story-photos-wrap { position: relative; }

.encore-story-arcs {
  position: absolute !important;
  top: 0;
  left: 16.667%;
  right: 16.667%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  z-index: 0;
  pointer-events: none;
}

.encore-story-arcs img { width: 100%; height: auto; display: block; }

.encore-story-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.encore-story-photo {
  width: 100%;
  aspect-ratio: 271 / 330;
  border-radius: 999px 999px 0 0;
  overflow: hidden;
}

.encore-story-photo img { width: 100%; height: 100%; object-fit: cover; }

.encore-principles {
  position: relative;
  z-index: 0;
  color: var(--encore-white);
  overflow: hidden;
}

.encore-principles-bg { position: absolute !important; inset: 0; z-index: -1; }
.encore-principles-bg img { width: 100%; height: 100%; object-fit: cover; }
.encore-principles-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}

.encore-principles h2 {
  color: var(--encore-white);
  margin-bottom: 48px;
}

.encore-principles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  max-width: 900px;
  margin: 0 auto;
}

.encore-principle {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.encore-principle-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--encore-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.encore-principle-icon img { width: 55px; height: auto; }

.encore-principle h3 {
  color: var(--encore-white);
  font-family: var(--encore-font-body);
  font-weight: 800;
  font-size: 1.15rem;
}

.encore-principle p {
  font-family: var(--encore-font-body);
  font-weight: 500;
  font-size: 1.1rem;
  line-height: 1.55;
}

/* ---------- Product page ---------- */

.encore-product-header { text-align: center; }

.encore-product-header h1 {
  font-size: clamp(2.25rem, 4.2vw, 3.75rem);
  font-weight: 400;
  margin-bottom: 24px;
}

.encore-product-tagline {
  display: block;
  max-width: 1160px;
  margin: 0 auto 24px;
  font-family: var(--encore-font-body);
  font-style: italic;
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--encore-black);
}

.encore-product-intro {
  max-width: 1160px;
  margin: 0 auto 48px;
  font-family: var(--encore-font-body);
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 1.5;
  text-align: center;
  color: var(--encore-black);
}

/* Alternating photo/text rows used by one-off custom product pages (e.g. Eze-Breeze) */
.encore-product-info {
  position: relative;
  z-index: 0;
  color: var(--encore-white);
  overflow: hidden;
}

.encore-product-info-bg { position: absolute !important; inset: 0; z-index: -1; }
.encore-product-info-bg img { width: 100%; height: 100%; object-fit: cover; }
.encore-product-info-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
}

.encore-product-info-rows {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.encore-product-info-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.encore-product-info-row.is-reversed .encore-product-info-photo { order: 1; }
.encore-product-info-row.is-reversed .encore-product-info-text { order: 2; }

.encore-product-info-photo {
  width: 100%;
  aspect-ratio: 474 / 321;
  border-radius: 4px;
  overflow: hidden;
}

.encore-product-info-photo img { width: 100%; height: 100%; object-fit: cover; }

.encore-product-info-text h2 {
  color: var(--encore-white);
  text-align: left;
  font-size: clamp(1.75rem, 2.6vw, 2rem);
  margin-bottom: 20px;
}

.encore-product-info-text p {
  font-family: var(--encore-font-body);
  font-weight: 500;
  font-size: 1.1rem;
  line-height: 1.5;
}

.encore-product-info-text p + p { margin-top: 20px; }
.encore-product-info-text strong { font-weight: 700; }

.encore-product-gallery {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 32px;
  max-width: 1160px;
  margin: 0 auto 56px;
}

.encore-product-gallery-main {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
}

.encore-product-gallery-main img { width: 100%; height: 100%; object-fit: cover; }

.encore-product-gallery-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.encore-product-gallery-side > a {
  display: block;
  position: relative;
  flex: 1;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
}

.encore-product-gallery-side img { width: 100%; height: 100%; object-fit: cover; }

.encore-product-gallery-more::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.encore-product-gallery-more-count {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--encore-white);
  font-family: var(--encore-font-body);
  font-weight: 700;
  font-size: 2.5rem;
}

.encore-product-gallery-expand::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.encore-product-gallery-expand-icon {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--encore-white);
  font-family: var(--encore-font-body);
  font-weight: 700;
  font-size: 2.5rem;
}

/* ---------- Lightbox (product gallery) ---------- */

.encore-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  padding: 24px;
}

.encore-lightbox.is-open { display: flex; }

.encore-lightbox-figure {
  position: relative;
  max-width: min(1200px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.encore-lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  border-radius: 4px;
  object-fit: contain;
}

.encore-lightbox-counter {
  color: var(--encore-off-white);
  font-family: var(--encore-font-body);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.encore-lightbox-close {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--encore-green);
  color: var(--encore-off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.encore-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 253, 245, 0.15);
  color: var(--encore-off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  transition: background 0.2s ease;
}

.encore-lightbox-nav:hover { background: var(--encore-green); }
.encore-lightbox-prev { left: -64px; }
.encore-lightbox-next { right: -64px; }

@media (max-width: 900px) {
  .encore-lightbox-close { top: -52px; right: 0; }
  .encore-lightbox-prev { left: 0; }
  .encore-lightbox-next { right: 0; }
  .encore-lightbox-nav { top: auto; bottom: -56px; transform: none; }
}

.encore-product-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 48px;
  max-width: 900px;
  margin: 0 auto 48px;
}

.encore-product-feature {
  display: flex;
  align-items: center;
  gap: 12px;
}

.encore-product-feature img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.encore-product-feature span {
  font-family: var(--encore-font-body);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--encore-green);
  white-space: nowrap;
}

.encore-product-cta-btn { text-align: center; }

/* ---------- Contact page ---------- */

.encore-contact-intro {
  background: #f2f2ef;
  text-align: center;
}

.encore-contact-intro h1 {
  font-size: clamp(2.25rem, 4.2vw, 3.75rem);
  font-weight: 400;
}

.encore-contact-grid {
  background: #f2f2ef;
}

.encore-contact-grid-inner {
  display: grid;
  grid-template-columns: 442fr 668fr;
  gap: 24px;
  align-items: start;
}

.encore-contact-info {
  background: var(--encore-green);
  color: var(--encore-white);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.encore-contact-info h2 {
  color: var(--encore-white);
  text-align: left;
  font-size: 2rem;
}

.encore-contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.encore-contact-info-item {
  display: flex;
  align-items: center;
  gap: 20px;
}

.encore-contact-info-icon {
  width: 35px;
  height: 35px;
  flex-shrink: 0;
}

.encore-contact-info-item p {
  font-family: var(--encore-font-body);
  font-size: 1.1rem;
  line-height: 1.4;
}

/* Gravity Forms overrides — scoped to keep gravity-theme defaults from leaking in */
.encore-contact-form .gform_wrapper {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  max-width: none;
  box-shadow: none;
  text-align: left;
}

/* Gravity Forms' own theme already renders `.gform_fields` as a native 12-column
   CSS grid — each field's `layoutGridColumnSpan` (set via GFAPI, 6 = half, 12 =
   full width) controls its `grid-column` span. Don't fight that with our own
   `grid-template-columns`; it loses to GF's higher-specificity/later-loaded rule. */
.encore-contact-form .gform_fields {
  gap: 24px;
  list-style: none;
}

.encore-contact-form .gfield {
  padding: 0;
  margin: 0;
  background: none;
  border: none;
}

.encore-contact-form .gfield_label,
.encore-contact-form legend.gfield_label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.encore-contact-form .ginput_container {
  margin-top: 0;
}

.encore-contact-form input[type="text"],
.encore-contact-form input[type="email"],
.encore-contact-form input[type="tel"],
.encore-contact-form select,
.encore-contact-form textarea {
  width: 100%;
  border: 1px solid #4a4a4a;
  border-radius: 0;
  padding: 20px 24px;
  font-family: var(--encore-font-body);
  font-size: 1.15rem;
  color: var(--encore-black);
}

.encore-contact-form input::placeholder,
.encore-contact-form textarea::placeholder {
  color: #4a4a4a;
  opacity: 0.5;
}

.encore-contact-form textarea {
  min-height: 190px;
  resize: vertical;
}

.encore-contact-form select {
  appearance: none;
  background-image: url(assets/contact-select-chevron.svg);
  background-repeat: no-repeat;
  background-position: right 24px center;
  background-size: 16px auto;
  color: #4a4a4a;
  opacity: 0.8;
  cursor: pointer;
}

.encore-contact-form .gform_footer {
  grid-column: 1 / -1;
  display: block;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
}

/* Gravity Forms' own gravity-theme stylesheet is enqueued after ours and ties our
   selector's specificity on `.gform_button`, so it wins the cascade on individual
   properties (background/color/width/display) even though `appearance` came through
   fine — force the ones that lost. */
.encore-contact-form .gform_button {
  appearance: none;
  -webkit-appearance: none;
  display: block !important;
  width: 100% !important;
  background: transparent !important;
  border: 1px solid var(--encore-green) !important;
  border-radius: 0 !important;
  color: var(--encore-green) !important;
  font-family: var(--encore-font-body) !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  letter-spacing: 0.02em;
  padding: 20px 24px !important;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.encore-contact-form .gform_button:hover {
  background: var(--encore-green) !important;
  color: var(--encore-white) !important;
}

.encore-contact-form .gform_confirmation_message {
  font-family: var(--encore-font-body);
  font-size: 1.15rem;
  color: var(--encore-green);
  text-align: center;
  padding: 48px 24px;
  border: 1px solid var(--encore-green);
}

.encore-contact-form .validation_error {
  font-family: var(--encore-font-body);
  color: #b3261e;
  border-color: #b3261e;
  border-radius: 0;
  margin-bottom: 24px;
}

.encore-contact-form .gfield_validation_message {
  font-family: var(--encore-font-body);
  font-size: 0.9rem;
  color: #b3261e;
  margin-top: 6px;
}

/* ---------------------------------------------------
   Responsive
   --------------------------------------------------- */

@media (max-width: 1080px) {
  .encore-footer-inner { grid-template-columns: repeat(2, 1fr); }
  .encore-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .encore-header-inner { flex-wrap: wrap; }

  .encore-header-cta { order: 3; width: 100%; }
  .encore-header-cta .encore-btn { width: 100%; }

  .encore-main-nav { position: relative; order: 2; margin-left: auto; }

  /* GenerateBlocks Pro's own `:where(.gb-menu-container--mobile){inset:0;...}`
     rule never sets `position`, so `inset:0` does nothing on its own — force
     a real fixed full-screen panel here instead of trusting the plugin default. */
  .encore-main-nav .gb-menu-container--mobile {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    /* iOS Safari resolves a plain %/vh height against the "layout viewport"
       (as if its address bar were fully expanded), not whatever's actually
       visible right now — so if the toolbar has already collapsed from
       scrolling before this panel opens, `height:100%` undersizes it and the
       fixed CTA bar below ends up past the real visible bottom edge, cut off
       behind where the toolbar reappears. `dvh` tracks the real current
       viewport live; older browsers that don't understand it just ignore
       this line and keep the `100%` above. */
    height: 100dvh;
    background: var(--encore-off-white);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* flex-start, not center: the Products submenu toggles open/closed via
       GB Pro's own JS, changing this panel's content height. Centering made
       every item jump up/down each time it toggled since the whole flex
       column re-centered around the new height. Top-anchoring means only
       the items below the toggle move, which is the expected accordion feel. */
    justify-content: flex-start;
    overflow-y: auto;
    padding: 100px 40px 120px;
    z-index: 100;
  }

  .encore-main-nav .gb-menu-container--mobile > ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  /* Submenu visibility follows GB Pro's own real open/closed state
     (.gb-sub-menu--open on the parent <li>, toggled by its own JS on tap)
     rather than being forced open — an earlier version of this rule forced
     display/opacity/visibility/pointer-events open unconditionally to make
     the Products submenu look expanded by default, which desynced from GB
     Pro's real state and broke taps on submenu links. Only the static/
     unstyled-panel look is unconditional here; open vs. closed is left to
     the state-scoped rule below. display:none at rest still needs stating
     explicitly (not just inherited from GB Pro's own base rule) because our
     theme's own *desktop* dropdown rule above sets opacity/visibility/
     pointer-events for `.encore-main-nav ul.sub-menu` with no min-width
     gate, so it still applies at mobile widths and must be countered by the
     state-scoped rule below when the submenu is actually open. */
  .encore-main-nav .gb-menu-container--mobile ul.sub-menu {
    position: static;
    display: none;
    transform: none;
    background: none;
    box-shadow: none;
    padding: 16px 0 0;
  }

  .encore-main-nav .gb-menu-container--mobile .menu-item.gb-sub-menu--open > ul.sub-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* display:block doesn't support `gap`, so spacing between items comes
     from margin instead. */
  .encore-main-nav .gb-menu-container--mobile ul.sub-menu li:not(:last-child) {
    margin-bottom: 16px;
  }

  .encore-main-nav .gb-menu-container--mobile ul.sub-menu a { color: var(--encore-black); }

  /* Pin the header's own CTA to the bottom of the full-screen menu while it's open,
     above the overlay, instead of leaving it in the header behind the panel. */
  .encore-main-nav.gb-navigation--open ~ .encore-header-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    z-index: 101;
    /* Keeps the button's tap target clear of the home-indicator gesture
       area on notched iPhones instead of butting right up against it. */
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .encore-main-nav.gb-navigation--open ~ .encore-header-cta .encore-btn {
    width: 100%;
    border-radius: 0;
  }

  .encore-menu-toggle {
    display: flex;
    color: var(--encore-green);
  }

  .encore-menu-toggle svg { width: 26px; height: 26px; }

  /* GB Pro clones the toggle button into the full-overlay panel (as the close
     "X", positioned via its own plugin CSS) — the original stays in the header
     too, so hide it once open or both render on top of each other. */
  .encore-main-nav.gb-navigation--open > .gb-menu-toggle {
    display: none;
  }

  .encore-approach-inner { grid-template-columns: 1fr; }
  .encore-stats-list { border-right: none; padding-right: 0; border-bottom: 1px solid rgba(255,255,255,0.3); padding-bottom: 32px; }
  .encore-process-inner { grid-template-columns: 1fr; }
  .encore-testimonial-box { padding: 40px 40px 140px; }
  .encore-testimonial-photo { position: static !important; margin: 24px auto 0; }
  .encore-footer-inner { grid-template-columns: 1fr; }
  .encore-principles-grid { grid-template-columns: 1fr; gap: 40px; }
  .encore-product-gallery { grid-template-columns: 1fr; }
  .encore-product-gallery-main { aspect-ratio: 666 / 480; }
  .encore-product-gallery-side { flex-direction: row; aspect-ratio: 442 / 220; }
  .encore-contact-grid-inner { grid-template-columns: 1fr; }
  .encore-product-info-row { grid-template-columns: 1fr; gap: 32px; }
  .encore-product-info-row.is-reversed .encore-product-info-photo,
  .encore-product-info-row.is-reversed .encore-product-info-text { order: initial; }
}

@media (max-width: 640px) {
  .encore-hero { min-height: 560px; }
  .encore-products-grid { grid-template-columns: repeat(3, 1fr); gap: 20px 10px; }
  .encore-shop-arcs { display: none; }
  .encore-testimonial-box { padding: 32px 24px 140px; }
  .encore-story-grid { grid-template-columns: 1fr; max-width: 300px; }
  .encore-story-arcs { display: none; }
  .encore-product-gallery-side { flex-direction: column; aspect-ratio: auto; }
  .encore-product-gallery-side > a { aspect-ratio: 442 / 330; }
  .encore-contact-form .gform_fields { grid-template-columns: 1fr; }
  .encore-contact-form .gfield.encore-field-half { grid-column: 1 / -1; }
}
