/*
Theme Name: Esther Tur
Theme URI: https://www.esthertur.com
Author: Punto Rosso
Description: Custom lightweight theme for Esther Tur Hair — replaces Brizy, Toolset and Blocksy. Server-rendered, keeps Amelia booking, Formidable, Squirrly SEO.
Version: 0.1.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: esthertur
*/

/* ============================================================
   DESIGN TOKENS  (captured from the original Brizy site)
   ============================================================ */
:root {
  --et-navy:        #192A3D;   /* headings / nav text */
  --et-body:        #1A2C37;   /* body text */
  --et-orange:      #FF8600;   /* primary CTA */
  --et-orange-dark: #e67a00;
  --et-cream:       #F6EEEB;   /* soft section background */
  --et-beige:       #D8D0C1;   /* header bar */
  --et-brown:       #30221F;   /* dark sections / footer */
  --et-muted:       #89807D;   /* muted text */
  --et-line:        #e7e2dc;   /* hairlines */
  --et-white:       #ffffff;

  --et-font-display: "DM Serif Text", Georgia, "Times New Roman", serif;
  --et-font-ui:      "Lato", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --et-font-body:    "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --et-maxw: 1200px;
  --et-gutter: clamp(16px, 4vw, 40px);
  --et-header-h: 84px;
  --et-radius: 0px;         /* the brand uses square corners */
}

/* ============================================================
   BASE / RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--et-font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--et-body);
  background: var(--et-white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--et-orange); }

h1, h2, h3, h4 {
  font-family: var(--et-font-display);
  color: var(--et-navy);
  font-weight: 400;
  line-height: 1.12;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h3 { font-size: clamp(1.4rem, 3vw, 2rem); }
p { margin: 0 0 1.2em; }

.et-container { max-width: var(--et-maxw); margin-inline: auto; padding-inline: var(--et-gutter); }
.et-eyebrow { font-family: var(--et-font-ui); text-transform: uppercase; letter-spacing: .12em;
  font-size: .78rem; font-weight: 700; color: var(--et-orange); margin-bottom: .4em; }

/* ============================================================
   BUTTONS
   ============================================================ */
.et-btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--et-font-ui); font-weight: 700; font-size: .95rem;
  letter-spacing: .03em; text-transform: uppercase;
  padding: 12px 26px; border: 0; border-radius: var(--et-radius);
  background: var(--et-orange); color: #fff; cursor: pointer;
  transition: background .2s ease, transform .15s ease;
}
.et-btn:hover { background: var(--et-orange-dark); color: #fff; }
.et-btn--ghost { background: transparent; color: var(--et-navy); border: 1px solid var(--et-navy); }
.et-btn--ghost:hover { background: var(--et-navy); color: #fff; }
.et-btn svg { width: 1.05em; height: 1.05em; }

/* ============================================================
   HEADER
   ============================================================ */
.et-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--et-beige);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.et-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: var(--et-header-h);
}
.et-logo { display: inline-flex; align-items: center; }
.et-logo img { width: 56px; height: 56px; border-radius: 50%; }
.et-nav { display: flex; }
.et-nav ul { list-style: none; display: flex; gap: clamp(14px, 2vw, 30px); margin: 0; padding: 0; }
.et-nav a {
  font-family: var(--et-font-ui); font-weight: 600; font-size: .96rem;
  color: var(--et-navy); padding: 6px 2px; position: relative;
}
.et-nav a:hover { color: var(--et-orange); }
.et-header__cta { display: inline-flex; align-items: center; }

/* mobile nav toggle */
.et-navtoggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.et-navtoggle span { display: block; width: 24px; height: 2px; background: var(--et-navy); margin: 5px 0; transition: .25s; }

@media (max-width: 960px) {
  .et-navtoggle { display: block; order: 3; }
  .et-header__cta { order: 2; }
  .et-nav {
    position: fixed; inset: var(--et-header-h) 0 auto 0;
    background: var(--et-beige); flex-direction: column;
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
    border-bottom: 1px solid rgba(0,0,0,.08);
  }
  .et-nav.is-open { max-height: 70vh; }
  .et-nav ul { flex-direction: column; gap: 0; padding: 8px var(--et-gutter); }
  .et-nav li { border-bottom: 1px solid rgba(0,0,0,.06); }
  .et-nav a { display: block; padding: 14px 0; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.et-footer { background: var(--et-cream); color: var(--et-body); }

/* Features row */
.et-features { padding: 54px 0 44px; }
.et-features__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; text-align: center; }
.et-feature svg, .et-feature img { width: 34px; height: 34px; margin: 0 auto 14px; color: var(--et-brown); }
.et-feature p { font-size: .92rem; color: var(--et-muted); margin: 0; }
.et-feature strong { color: var(--et-body); }
.et-feature a { color: var(--et-body); text-decoration: underline; }

/* Newsletter band */
.et-newsletter { padding: 0 0 44px; }
.et-newsletter__form { display: flex; background: #c9b7a6; border-radius: 3px; overflow: hidden; }
.et-newsletter__input { flex: 1; border: 0; background: transparent; padding: 22px 26px; font-family: var(--et-font-body); font-size: .95rem; color: #fff; }
.et-newsletter__input::placeholder { color: rgba(255,255,255,.85); }
.et-newsletter__input:focus { outline: none; background: rgba(255,255,255,.08); }
.et-newsletter__btn { border: 0; background: transparent; color: #fff; font-family: var(--et-font-ui); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; padding: 0 30px; cursor: pointer; }
.et-newsletter__btn:hover { color: var(--et-navy); }
.et-newsletter .mailpoet_form { max-width: 640px; }
.et-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.et-newsletter__msg { margin: 12px 2px 0; font-size: .9rem; min-height: 1.2em; }
.et-newsletter__msg.is-ok { color: #2e7d32; }
.et-newsletter__msg.is-err { color: #b3261e; }
.et-newsletter__btn[disabled] { opacity: .6; cursor: default; }

/* Columns */
.et-footcols { padding: 8px 0 40px; }
.et-footcols__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.et-footcol__title { font-family: var(--et-font-ui); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; color: var(--et-navy); margin: 0 0 16px; }
.et-footcol__title--sub { margin-top: 26px; }
.et-footcol address { font-style: normal; color: var(--et-muted); font-size: .92rem; line-height: 1.9; }
.et-footcol address a, .et-footmenu a { color: var(--et-muted); }
.et-footcol address a:hover, .et-footmenu a:hover { color: var(--et-orange); }
.et-footmenu { list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.et-footmenu li { margin-bottom: 10px; }
.et-social { display: flex; gap: 12px; }
.et-social a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid rgba(0,0,0,.14); border-radius: 50%; color: var(--et-navy); }
.et-social a:hover { background: var(--et-orange); border-color: var(--et-orange); color: #fff; }
.et-social svg { width: 17px; height: 17px; }

/* Bottom bar */
.et-footbottom { border-top: 1px solid rgba(0,0,0,.08); padding: 24px 0 34px; }
.et-footbottom__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.et-footbottom__brand { display: flex; align-items: center; gap: 14px; color: var(--et-muted); font-size: .85rem; }
.et-footbottom__brand img { width: 52px; height: 52px; border-radius: 50%; }
.et-footbottom__slogan { font-family: var(--et-font-display); letter-spacing: .06em; color: var(--et-navy); margin: 0; }

@media (max-width: 900px) { .et-footcols__grid { grid-template-columns: repeat(2, 1fr); gap: 30px; } }
@media (max-width: 720px) {
  .et-features__grid { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
  .et-footbottom__inner { justify-content: center; text-align: center; }
}

/* ============================================================
   BOOKING MODAL (replaces the old Brizy popup)
   ============================================================ */
.et-modal { position: fixed; inset: 0; z-index: 1000; display: none; }
.et-modal.is-open { display: block; }
.et-modal__backdrop { position: absolute; inset: 0; background: rgba(20,15,13,.55); backdrop-filter: blur(2px); }
.et-modal__dialog {
  position: relative; z-index: 1; background: #fff;
  width: min(920px, 94vw);
  max-height: 92vh; max-height: 92dvh;      /* dvh = the *visible* viewport on mobile */
  overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  margin: 4vh auto; margin: 4dvh auto; padding: 28px clamp(16px, 3vw, 40px);
  border-radius: 6px; box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.et-modal__close {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: #1a1a1a; color: #fff; font-size: 20px; line-height: 40px;
}
.et-modal__close:hover { background: var(--et-orange); }
body.et-modal-open { overflow: hidden; }

/* Amelia's "fullscreen" wrapper hardcodes a 100px top margin to clear its own
   header bar; inside our modal (which has its own close button) that's just a
   big empty gap, so remove it. */
.et-modal__body .am-fs__wrapper { margin-top: 0 !important; }

/* On phones the dialog goes full-screen and scrolls internally, so the whole
   Amelia form (service list, stylist, "Continuar") is always reachable. */
@media (max-width: 640px) {
  .et-modal__dialog {
    width: 100%; max-width: none;
    height: 100vh; height: 100dvh; max-height: 100dvh;
    margin: 0; border-radius: 0; padding: 38px 12px 28px;
  }
  .et-modal__close { position: fixed; top: 8px; right: 8px; width: 36px; height: 36px; line-height: 36px; font-size: 18px; }
}

/* Amelia's service/stylist pickers (Element-UI cascader + select). They are
   portaled to <body> as `.am-adv-select__popper-mobile` — Amelia renders the
   *mobile* popper inside our narrow booking modal on every device. Two problems
   on phones: (1) the list was capped at 160px (≈4 of 45 services), and (2) its
   scroll container had `overscroll-behavior: auto`, so a drag past the last
   visible item CHAINED to the scroll-locked page behind and rubber-banded the
   list back to the top on finger-release — making lower services unreachable.
   Fix: give the list a tall, self-contained, touch-scrollable panel. Scope to
   the mobile-popper class (not a viewport media query) so it always matches. */
.am-adv-select__popper-mobile .el-cascader-menu,
.am-adv-select__popper-mobile .el-cascader-menu__wrap.el-scrollbar__wrap,
.am-adv-select__popper-mobile .el-select-dropdown__wrap.el-scrollbar__wrap,
.am-adv-select__popper-mobile .el-select-dropdown__list {
  max-height: 55vh !important; max-height: 55dvh !important;
}
.am-adv-select__popper-mobile .el-scrollbar__wrap {
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
}
/* Fallback for any small screen where a non-mobile popper is used. */
@media (max-width: 640px) {
  .el-cascader-menu__wrap.el-scrollbar__wrap,
  .el-cascader-menu,
  .el-select-dropdown__wrap.el-scrollbar__wrap,
  .el-select-dropdown__list { max-height: 55vh !important; max-height: 55dvh !important; }
  .el-scrollbar__wrap { overflow-y: auto !important; overscroll-behavior: contain !important; -webkit-overflow-scrolling: touch !important; }
}

/* ============================================================
   FULL-PAGE BOOKING SCREEN (template-reservar.php — used on phones)
   ============================================================ */
.et-bookpage { background: var(--et-cream); }
.et-bookbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 12px;
  padding: 10px clamp(12px, 4vw, 24px);
  background: var(--et-beige);
  border-bottom: 1px solid var(--et-line);
}
.et-bookbar__logo { display: inline-flex; }
.et-bookbar__logo img { display: block; }
.et-bookbar__title { flex: 1; font-family: var(--et-font-display); font-size: 1.15rem; color: var(--et-navy); }
.et-bookbar__close {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 26px; line-height: 1; text-decoration: none;
  color: #fff; background: var(--et-brown);
}
.et-bookbar__close:hover { color: #fff; background: #1a1210; }
.et-bookpage__main { padding: clamp(16px, 4vw, 32px) 0 48px; min-height: 60vh; }
/* Amelia hardcodes a big top margin on its fullscreen wrapper — not needed here. */
.et-bookpage__main .am-fs__wrapper { margin-top: 0 !important; }

/* ============================================================
   HELPERS
   ============================================================ */
.et-section { padding: clamp(48px, 8vw, 96px) 0; }
.et-section--cream { background: var(--et-cream); }
.et-section--brown { background: var(--et-brown); color: #efe7e2; }
.et-section--brown h1, .et-section--brown h2, .et-section--brown h3 { color: #fff; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.et-skip { position: absolute; left: -9999px; }
.et-skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 14px; z-index: 200; }
.et-center { text-align: center; margin-top: 40px; }

/* ============================================================
   FRONT PAGE — HERO
   ============================================================ */
.et-hero {
  position: relative; min-height: min(88vh, 760px);
  display: flex; align-items: center;
  background: var(--et-brown) var(--et-hero-img, none) center/cover no-repeat;
  color: #fff; text-align: center;
}
.et-hero__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,14,12,.55), rgba(20,14,12,.72)); }
.et-hero__content { position: relative; z-index: 1; width: 100%; }
.et-hero__kicker { font-family: var(--et-font-ui); letter-spacing: .04em; font-size: clamp(1rem, 2.4vw, 1.5rem); color: #f2e9e4; margin: 0 0 .3em; opacity: .95; }
.et-hero__pre { font-family: var(--et-font-ui); text-transform: uppercase; letter-spacing: .2em; font-size: .8rem; opacity: .85; margin: 0 0 .4em; }
.et-hero__title { color: #fff; font-size: clamp(3rem, 8vw, 6rem); margin: 0; }
.et-hero__panel { display: inline-block; margin-top: .1em; padding: 10px clamp(24px, 5vw, 60px);
  background: rgba(28, 20, 17, .34); backdrop-filter: blur(2px); }
.et-hero__cta { font-size: 1rem; padding: 14px 34px; }

/* Hero background video */
.et-hero--video { background: var(--et-brown); }
.et-hero__video { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
/* scale up so YouTube's title bar (top) + any chrome are cropped outside the hero */
.et-hero__video iframe { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(1.4);
  width: 100vw; height: 56.25vw; min-height: 100%; min-width: 177.78vh; border: 0; pointer-events: none; }

/* Left-aligned + variant section headings (to match the original) */
.et-h-left { text-align: left; font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 clamp(28px, 4vw, 48px); }
.et-h-serif { font-size: clamp(2rem, 5vw, 3.2rem); }
.et-caps { text-transform: uppercase; letter-spacing: .06em; font-size: clamp(1.8rem, 4.5vw, 2.8rem); }
.et-lead-sub { font-family: var(--et-font-display); font-size: 1.15rem; color: var(--et-navy); margin-top: -.4em; }

/* ===== GALLERY (4 models, each with a slow Ken Burns zoom) ===== */
.et-gallery { background: var(--et-brown); padding: 0; overflow: hidden; }
.et-gallery__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.et-gallery__item { margin: 0; aspect-ratio: 3 / 4; overflow: hidden; background: var(--et-brown); }
.et-gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block;
  animation: et-kb-1 15s ease-in-out infinite alternate; will-change: transform; }
.et-gallery__item:nth-child(1) img { animation-name: et-kb-1; animation-duration: 15s; }
.et-gallery__item:nth-child(2) img { animation-name: et-kb-2; animation-duration: 18s; }
.et-gallery__item:nth-child(3) img { animation-name: et-kb-3; animation-duration: 14s; }
.et-gallery__item:nth-child(4) img { animation-name: et-kb-4; animation-duration: 17s; }
@keyframes et-kb-1 { from { transform: scale(1.05) translate(0, 0); }      to { transform: scale(1.26) translate(-4%, -3%); } }
@keyframes et-kb-2 { from { transform: scale(1.24) translate(3%, -3%); }   to { transform: scale(1.05) translate(0, 0); } }
@keyframes et-kb-3 { from { transform: scale(1.05) translate(-3%, 2%); }   to { transform: scale(1.25) translate(3%, -3%); } }
@keyframes et-kb-4 { from { transform: scale(1.24) translate(2%, 3%); }    to { transform: scale(1.05) translate(-3%, -2%); } }
@media (max-width: 720px) { .et-gallery__row { grid-template-columns: repeat(2, 1fr); } }
@media (prefers-reduced-motion: reduce) { .et-gallery__item img { animation: none; } }

/* ===== BLOG (Novedades) ===== */
.et-grid--blog { grid-template-columns: repeat(3, 1fr); gap: 30px; }
.et-blogcard { text-align: center; }
.et-blogcard__media { display: block; aspect-ratio: 3/4; overflow: hidden; border-radius: 3px; }
.et-blogcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.et-blogcard:hover .et-blogcard__media img { transform: scale(1.04); }
.et-blogcard__title { font-family: var(--et-font-display); text-transform: uppercase; letter-spacing: .03em; font-size: 1.15rem; margin: 18px 0 10px; }
.et-blogcard__title a { color: var(--et-navy); }
@media (max-width: 720px) { .et-grid--blog { grid-template-columns: 1fr; max-width: 380px; margin-inline: auto; } }

/* ===== SERVICIOS — stacked rows ===== */
.et-servicelist { display: flex; flex-direction: column; gap: 16px; }
.et-servicerow { display: grid; grid-template-columns: 240px 1fr 40px; align-items: center; gap: 28px;
  background: #fff; padding: 30px 34px; border-radius: 3px; color: var(--et-body); transition: box-shadow .2s, transform .2s; }
.et-servicerow:hover { box-shadow: 0 12px 30px rgba(0,0,0,.07); transform: translateY(-2px); color: var(--et-body); }
.et-servicerow__name { font-family: var(--et-font-display); font-size: 1.7rem; color: var(--et-navy); }
.et-servicerow__desc { color: var(--et-muted); font-size: .98rem; }
.et-servicerow__arrow { font-size: 1.6rem; color: var(--et-navy); justify-self: end; transition: transform .2s; }
.et-servicerow:hover .et-servicerow__arrow { transform: translateX(6px); color: var(--et-orange); }
@media (max-width: 720px) {
  .et-servicerow { grid-template-columns: 1fr; gap: 8px; padding: 24px; }
  .et-servicerow__arrow { display: none; }
}

/* ===== SALÓN — Nuestro espacio ===== */
.et-salon { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.et-salon__video { position: relative; aspect-ratio: 9 / 16; border-radius: 4px; overflow: hidden; background: #000; }
/* Cover the 9:16 frame: width 316% makes the iframe a 16:9 box as tall as the
   frame, so only its centre (the portrait clip — no YouTube pillarbox) shows.
   Explicit width, NOT aspect-ratio (iOS Safari applies it unreliably to iframes),
   and the frame stays 9:16 on mobile too so no black side stripes appear. */
.et-salon__video iframe { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  height: 100%; width: 316%; min-width: 316%; border: 0; pointer-events: none; }
.et-salon__body { padding-top: 10px; }
.et-salon__pic { width: 100%; margin-top: 28px; border-radius: 4px; object-fit: cover; }
@media (max-width: 820px) { .et-salon { grid-template-columns: 1fr; } }

/* ===== PRODUCTOS — featured (image + name + desc) ===== */
.et-grid--prodfeat { grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }
.et-prodfeat { display: block; text-align: center; color: var(--et-body); }
.et-prodfeat__media { aspect-ratio: 3/4; overflow: hidden; border-radius: 3px; background: var(--et-cream); }
.et-prodfeat__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.et-prodfeat:hover .et-prodfeat__media img { transform: scale(1.04); }
.et-prodfeat__title { font-family: var(--et-font-display); text-transform: uppercase; letter-spacing: .03em;
  font-size: 1.05rem; color: var(--et-navy); margin: 18px 0 8px; }
.et-prodfeat__desc { color: var(--et-muted); font-size: .92rem; margin: 0; }
@media (max-width: 720px) { .et-grid--prodfeat { grid-template-columns: 1fr; } }

/* ===== PROCESO — Te contamos cómo trabajamos ===== */
.et-proceso .et-sechead { margin-bottom: clamp(36px, 5vw, 60px); }
.et-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); }
.et-step { text-align: center; }
.et-step__num { display: block; font-family: var(--et-font-ui); font-weight: 700; font-size: 2.6rem; color: var(--et-orange); line-height: 1; }
.et-step__title { font-size: 1.6rem; margin: 12px 0 14px; }
.et-step p { color: var(--et-muted); font-size: .98rem; }
.et-proceso__note { text-align: center; max-width: 760px; margin: clamp(36px,5vw,52px) auto 0; color: var(--et-muted); font-size: .95rem; }
@media (max-width: 820px) { .et-steps { grid-template-columns: 1fr; gap: 34px; } }

/* ============================================================
   SPLIT (image + text)
   ============================================================ */
.et-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.et-split--reverse .et-split__media { order: 2; }
.et-split__media img { width: 100%; height: 100%; max-height: 620px; object-fit: cover; border-radius: 4px; }
.et-split__body .et-eyebrow { color: var(--et-orange); }
.et-lead { font-size: 1.25rem; font-family: var(--et-font-display); color: var(--et-navy); }
.et-signature { margin-top: 1.4em; color: var(--et-muted); }
.et-signature strong { color: var(--et-navy); font-family: var(--et-font-display); font-size: 1.2rem; }
@media (max-width: 820px) {
  .et-split { grid-template-columns: 1fr; }
  .et-split--reverse .et-split__media { order: 0; }
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.et-sechead { text-align: center; max-width: 640px; margin: 0 auto clamp(32px, 5vw, 56px); }
.et-sechead h2 { margin: .1em 0 .3em; }
.et-sechead__sub { color: var(--et-muted); font-size: 1.05rem; margin: 0; }

/* ============================================================
   GRIDS + CARDS
   ============================================================ */
.et-grid { display: grid; gap: 28px; }
.et-grid--services { grid-template-columns: repeat(4, 1fr); }
.et-grid--products { grid-template-columns: repeat(4, 1fr); }
.et-grid--reviews  { grid-template-columns: repeat(2, 1fr); gap: 30px; }
@media (max-width: 1000px) { .et-grid--services, .et-grid--products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px)  { .et-grid--services, .et-grid--products, .et-grid--reviews { grid-template-columns: 1fr; } }

.et-card--service { background: #fff; padding: 30px 26px; border: 1px solid var(--et-line); border-radius: 4px; }
.et-card__title { font-size: 1.5rem; margin: 0 0 .5em; }
.et-card__excerpt { color: var(--et-muted); font-size: .96rem; margin-bottom: 1em; }
.et-arrowlink { font-family: var(--et-font-ui); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--et-orange); }
.et-arrowlink span { transition: margin .2s; } .et-arrowlink:hover span { margin-left: .3em; }

.et-product { display: block; text-align: center; background: #fff; border: 1px solid var(--et-line); border-radius: 4px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.et-product:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0,0,0,.08); }
.et-product__media { aspect-ratio: 1/1; background: var(--et-cream); display: flex; align-items: center; justify-content: center; }
.et-product__media img { width: 100%; height: 100%; object-fit: cover; }
.et-product__title { font-family: var(--et-font-display); font-size: 1.1rem; color: var(--et-navy); margin: 16px 12px 20px; }

.et-review { background: var(--et-cream); border-radius: 4px; padding: 32px 30px; margin: 0; }
.et-review__stars { color: var(--et-orange); letter-spacing: 3px; margin-bottom: 14px; }
.et-review__quote { font-family: var(--et-font-display); font-size: 1.2rem; line-height: 1.5; color: var(--et-navy); margin: 0 0 18px; }
.et-review__name { font-family: var(--et-font-ui); text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; font-weight: 700; color: var(--et-muted); }

/* ============================================================
   CONTACT
   ============================================================ */
.et-contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.et-contact .et-eyebrow { color: var(--et-orange); }
.et-contact h2 { color: #fff; }
.et-contact__list { list-style: none; margin: 22px 0 28px; padding: 0; }
.et-contact__list li { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.et-contact__list strong { display: block; font-family: var(--et-font-ui); text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; color: var(--et-orange); margin-bottom: 3px; }
.et-contact__list a { color: #efe7e2; }
.et-contact__map img { width: 100%; border-radius: 4px; }
@media (max-width: 820px) { .et-contact { grid-template-columns: 1fr; } }

/* ============================================================
   SINGLE (product / post)
   ============================================================ */
.et-single__product { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.et-single__media img { width: 100%; border-radius: 4px; object-fit: cover; }
.et-single__media { background: var(--et-cream); border-radius: 4px; min-height: 320px; display: flex; align-items: center; justify-content: center; }
.et-single__meta .et-eyebrow { color: var(--et-orange); }
.et-single__title { margin: .1em 0 .5em; }
.et-single__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
@media (max-width: 820px) { .et-single__product { grid-template-columns: 1fr; } }

.et-single__article { max-width: 760px; margin-inline: auto; }
.et-single__head { text-align: center; margin-bottom: 28px; }
.et-single__head .et-eyebrow { color: var(--et-orange); }
.et-single__date { color: var(--et-muted); font-size: .9rem; }
.et-single__cover { margin: 0 0 32px; }
.et-single__cover img { width: 100%; border-radius: 4px; }
.et-single__back { margin-top: 36px; }

/* Prose (page + article content) */
.et-prose { font-size: 1.02rem; }
.et-prose h2 { font-size: 1.9rem; margin: 1.4em 0 .5em; }
.et-prose h3 { font-size: 1.4rem; margin: 1.2em 0 .5em; }
.et-prose ul, .et-prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.et-prose li { margin-bottom: .4em; }
.et-prose a { color: var(--et-orange); text-decoration: underline; }
.et-prose img { border-radius: 4px; margin: 1em 0; }

/* ============================================================
   POST CARDS / LIST
   ============================================================ */
.et-grid--posts { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .et-grid--posts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .et-grid--posts { grid-template-columns: 1fr; } }
.et-postcard { background: #fff; border: 1px solid var(--et-line); border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; }
.et-postcard__media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.et-postcard__title { font-size: 1.3rem; margin: 18px 20px 8px; }
.et-postcard__excerpt { color: var(--et-muted); font-size: .95rem; margin: 0 20px 14px; flex: 1; }
.et-postcard .et-arrowlink { margin: 0 20px 20px; }

/* Page */
.et-page__content { max-width: 800px; margin-inline: auto; }

/* Pagination */
.pagination, .et-pagelinks { margin-top: 44px; text-align: center; }
.pagination .nav-links { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--et-line);
  border-radius: 4px; font-family: var(--et-font-ui); font-weight: 600; color: var(--et-navy); }
.pagination .page-numbers.current { background: var(--et-orange); border-color: var(--et-orange); color: #fff; }
.pagination a.page-numbers:hover { border-color: var(--et-orange); color: var(--et-orange); }
