/* ESMÉRA — Responsive refinement layer v1.0
 * Sources:
 * - ESMERA_Homepage_10of10_Master_Plan_Asymmetry_Section8_v1.0
 * - ESMERA_Responsive_Master_Plan_10of10_v1.0
 * - ESMERA_Visual_Contract_Final_Responsive_Round_v1.0
 * Scope: final responsive calibration and QA before consolidation into esmera-master.css.
 */

/* -------------------------------------------------------------------------- */
/* Global micro-hierarchy                                                     */
/* -------------------------------------------------------------------------- */

.esv-hero-statement {
  font-size: clamp(44px, 4.35vw, 56px);
  line-height: .97;
}

.esv-maison-copy h2,
.esv-selected-head h2,
.esv-shelf-head h2,
.esv-provenance-intro-copy h2,
.esv-experience-intro h2 {
  font-size: clamp(38px, 3.15vw, 50px);
}

.esv-signature-copy h2,
.esv-provenance-stage-copy h3 {
  font-size: clamp(24px, 2.15vw, 34px);
}

.esv-private-copy h2 {
  font-size: clamp(40px, 3.9vw, 56px);
}

.esv-maison-text,
.esv-selected-head > p:not(.esv-kicker),
.esv-shelf-head > p:last-child,
.esv-signature-subtitle,
.esv-signature-text,
.esv-provenance-intro-copy > p,
.esv-provenance-stage-copy p,
.esv-experience-text,
.esv-experience-pillars p,
.esv-private-copy p,
.esv-footer-main > p {
  font-size: 14px;
  line-height: 1.55;
}



/* -------------------------------------------------------------------------- */
/* 02 — Maison: one dominant asymmetry, no incidental drift                  */
/* -------------------------------------------------------------------------- */

.esv-maison-main {
  inset: 0 0 0 10%;
}

.esv-maison-secondary {
  left: -5%;
  bottom: 11%;
}

/* -------------------------------------------------------------------------- */
/* 03 — Objetos: cleaner heading axis + disciplined card baselines            */
/* -------------------------------------------------------------------------- */

.esv-selected-head > .esv-kicker {
  grid-column: 1 / span 3;
  align-self: start;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.esv-selected-head > p:not(.esv-kicker) {
  grid-column: 8 / -1;
  margin-top: var(--space-6);
}

.esv-product-shelf {
  margin-top: var(--space-16);
}

/* -------------------------------------------------------------------------- */
/* 07 — Proveniência: preserve zig-zag, standardize vertical rhythm           */
/* -------------------------------------------------------------------------- */

.esv-provenance-stages {
  margin-top: var(--space-24);
}

.esv-provenance-stage {
  padding-top: var(--space-16);
}

.esv-provenance-stage + .esv-provenance-stage {
  margin-top: var(--space-24);
}

.esv-provenance-stage-copy p {
  max-width: 38ch;
}

/* -------------------------------------------------------------------------- */
/* 08 — Da escolha à entrega: aligned ritual grid                             */
/* -------------------------------------------------------------------------- */

.esv-experience-head {
  display: block;
  max-width: min(620px, 100%);
}

.esv-experience-intro {
  margin-top: var(--space-6);
}

.esv-experience-intro h2 {
  max-width: 10ch;
}

.esv-experience-text {
  max-width: 48ch;
}

.esv-experience-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--grid-gap);
  align-items: stretch;
  margin-top: var(--space-16);
}

.esv-experience-pillars article,
.esv-experience-pillars article:nth-child(1),
.esv-experience-pillars article:nth-child(2),
.esv-experience-pillars article:nth-child(3) {
  grid-column: auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  margin-top: 0;
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}

.esv-experience-pillars article:nth-child(1) img,
.esv-experience-pillars article:nth-child(2) img,
.esv-experience-pillars article:nth-child(3) img {
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: var(--space-4);
  object-fit: cover;
}

.esv-experience-pillars small {
  font-size: 11px;
  line-height: 1.3;
}

.esv-experience-pillars h3 {
  margin-top: var(--space-3);
  font-size: clamp(20px, 1.7vw, 24px);
  line-height: 1.12;
}

.esv-experience-pillars p {
  max-width: 35ch;
  margin-top: var(--space-3);
}

.esv-experience-pillars a {
  align-self: flex-start;
  margin-top: auto;
  padding-top: var(--space-4);
}

/* -------------------------------------------------------------------------- */
/* 10 — Footer: informational close                                           */
/* -------------------------------------------------------------------------- */

.esv-footer {
  padding-block: var(--space-16) var(--space-8);
}

.esv-footer-main > p {
  max-width: 28ch;
}

.esv-footer-contact .esv-kicker,
.esv-footer-bottom .esv-kicker {
  font-size: 11px;
}

.esv-footer-contact a {
  font-size: 12px;
}

/* -------------------------------------------------------------------------- */
/* Tablet — 768–1023                                                          */
/* -------------------------------------------------------------------------- */

@media (max-width: 1023px) {
  :root {
    --page-x: clamp(24px, 3.4vw, 32px);
    --section-y: clamp(88px, 10vw, 120px);
  }

  .esv-selected-head > .esv-kicker {
    grid-column: 1 / span 2;
  }

  .esv-product-shelf {
    margin-top: var(--space-12);
  }

  .esv-experience-head {
    max-width: min(560px, 100%);
  }

  .esv-experience-pillars {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .esv-experience-pillars article,
  .esv-experience-pillars article:nth-child(1),
  .esv-experience-pillars article:nth-child(2),
  .esv-experience-pillars article:nth-child(3) {
    grid-column: auto;
    margin-top: 0;
  }
}

/* -------------------------------------------------------------------------- */
/* Mobile — 430–767                                                           */
/* -------------------------------------------------------------------------- */

@media (max-width: 767px) {
  :root {
    --page-x: clamp(18px, 5vw, 22px);
    --section-y: clamp(68px, 16vw, 88px);

  }







  .esv-hero {
    min-height: 86svh;
  }

  .esv-hero-statement {
    max-width: 8.5ch;
    font-size: clamp(38px, 9vw, 48px);
  }

  .esv-hero-content {
    padding-bottom: clamp(48px, 10vw, 72px);
  }

  .esv-maison-copy h2,
  .esv-selected-head h2,
  .esv-provenance-intro-copy h2,
  .esv-experience-intro h2 {
    font-size: clamp(34px, 9.8vw, 44px);
  }

  .esv-maison-media {
    min-height: clamp(420px, 118vw, 520px);
  }

  .esv-maison-main {
    inset: 0 0 0 4%;
  }

  .esv-maison-secondary {
    left: 0;
    bottom: 8%;
    width: 36%;
  }

  .esv-selected-head > .esv-kicker,
  .esv-selected-head h2,
  .esv-selected-head > p:not(.esv-kicker) {
    grid-column: 1 / -1;
  }

  .esv-selected-head h2 {
    margin-top: var(--space-8);
  }

  .esv-product-shelf {
    margin-top: var(--space-12);
    gap: var(--space-8);
  }

  .esv-territory-panel {
    height: clamp(420px, 118vw, 560px);
    min-height: 0;
  }

  .esv-signature-copy {
    margin-top: clamp(24px, 6vw, 28px);
  }

  .esv-matter-interlude {
    min-height: min(80svh, 760px);
  }

  .esv-provenance-stages {
    margin-top: var(--space-12);
  }

  .esv-provenance-stage,
  .esv-provenance-stage + .esv-provenance-stage {
    margin-top: 0;
    padding-block: var(--space-12);
  }

  .esv-provenance-stage-origin .esv-provenance-stage-media,
  .esv-provenance-stage-transform .esv-provenance-stage-media,
  .esv-provenance-stage-register .esv-provenance-stage-media {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .esv-provenance-stage-origin .esv-provenance-stage-media {
    width: calc(100% - 16px);
    margin-right: 16px;
  }

  .esv-provenance-stage-transform .esv-provenance-stage-media {
    width: calc(100% - 16px);
    margin-left: 16px;
  }

  .esv-provenance-stage-register .esv-provenance-stage-media {
    width: calc(100% - 24px);
    margin-left: auto;
  }

  .esv-provenance-stage-copy {
    margin-top: var(--space-6);
  }

  .esv-provenance-stage-copy h3 {
    font-size: clamp(22px, 7vw, 28px);
  }

  .esv-provenance-stage-copy p {
    max-width: 38ch;
    font-size: 14px;
  }

  .esv-experience-head {
    max-width: 100%;
  }

  .esv-experience-intro {
    margin-top: var(--space-6);
  }

  .esv-experience-pillars {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: var(--space-12);
  }

  .esv-experience-pillars article,
  .esv-experience-pillars article:nth-child(1),
  .esv-experience-pillars article:nth-child(2),
  .esv-experience-pillars article:nth-child(3) {
    grid-column: 1;
    margin-top: 0;
  }

  .esv-experience-pillars article + article {
    margin-top: var(--space-12);
  }

  .esv-experience-pillars article:nth-child(1) img,
  .esv-experience-pillars article:nth-child(2) img,
  .esv-experience-pillars article:nth-child(3) img {
    aspect-ratio: 4 / 3;
  }

  .esv-private {
    min-height: min(70svh, 680px);
  }

  .esv-footer {
    padding-block: 48px 24px;
  }

  .esv-footer-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .esv-footer-wordmark,
  .esv-footer-main > p,
  .esv-footer-contact {
    grid-column: 1;
  }

  .esv-footer-main > p {
    max-width: 22ch;
    font-size: 14px;
  }

  .esv-footer-contact {
    gap: 10px;
  }

  .esv-footer-contact a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 13px;
  }

  .esv-footer-bottom {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px 20px;
    align-items: center;
    margin-top: 40px;
    padding-top: 16px;
  }

  .esv-footer-bottom nav {
    grid-column: 1 / -1;
    order: -1;
  }

  .esv-footer-bottom nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .esv-footer-bottom > span:last-child {
    justify-self: end;
  }
}

/* -------------------------------------------------------------------------- */
/* Micro-mobile — ≤429                                                        */
/* -------------------------------------------------------------------------- */

@media (max-width: 429px) {
  :root {
    --page-x: 18px;
    --section-y: 72px;
    --grid-gap: 14px;
  }







  .esv-hero-statement {
    font-size: clamp(32px, 9.8vw, 42px);
  }

  .esv-hero-content {
    padding-bottom: 44px;
  }

  .esv-maison-copy h2,
  .esv-selected-head h2,
  .esv-provenance-intro-copy h2,
  .esv-experience-intro h2 {
    font-size: clamp(32px, 9.2vw, 40px);
  }

  .esv-maison-media {
    min-height: clamp(400px, 124vw, 480px);
  }

  .esv-maison-main {
    inset: 0 0 0 4%;
  }

  .esv-maison-secondary {
    width: 36%;
  }

  .esv-product-shelf {
    gap: var(--space-6);
  }

  .esv-territory-panel {
    height: clamp(400px, 122vw, 520px);
  }

  .esv-provenance-stage,
  .esv-provenance-stage + .esv-provenance-stage {
    padding-block: 42px;
  }

  .esv-provenance-stage-origin .esv-provenance-stage-media,
  .esv-provenance-stage-transform .esv-provenance-stage-media {
    width: calc(100% - 14px);
  }

  .esv-provenance-stage-origin .esv-provenance-stage-media {
    margin-right: 14px;
  }

  .esv-provenance-stage-transform .esv-provenance-stage-media {
    margin-left: 14px;
  }

  .esv-provenance-stage-register .esv-provenance-stage-media {
    width: calc(100% - 20px);
  }

  .esv-experience-pillars {
    margin-top: var(--space-8);
  }

  .esv-experience-pillars article + article {
    margin-top: var(--space-8);
  }

  .esv-experience-pillars h3 {
    font-size: 21px;
  }

  .esv-experience-pillars p {
    font-size: 13px;
  }

  .esv-footer-main {
    gap: 28px;
  }

  .esv-footer-bottom {
    gap: 12px 20px;
  }
}
