/*
 * Responsive Header + Hero — Phase 3: tablet portrait.
 * Scope is strictly 768–899px. No accepted viewport at 900px or above is
 * overridden. The original accepted decoration plate remains unchanged.
 */
@media (min-width: 768px) and (max-width: 899px) {
  .f4u-utility,
  .f4u-header,
  .f4u-hero {
    font-family: "F4U Bahnschrift", "Bahnschrift", "Segoe UI", sans-serif;
    font-synthesis: none;
  }

  .f4u-utility {
    height: 38px;
    border: 0;
    background: #f7d8dc;
    color: #292526;
    font-size: clamp(8px, 1.12vw, 9px);
    letter-spacing: .045em;
  }

  .f4u-utility .f4u-container {
    display: grid;
    width: auto;
    min-height: 38px;
    margin: 0 clamp(22px, 3vw, 28px);
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    justify-content: initial;
    gap: 14px;
  }

  .f4u-utility__start,
  .f4u-utility__end,
  .f4u-utility__item {
    display: flex;
    align-items: center;
  }

  .f4u-utility__start { gap: 6px; white-space: nowrap; }
  .f4u-utility__end { justify-self: end; gap: clamp(14px, 2vw, 18px); }
  .f4u-utility__item { gap: 5px; color: inherit; text-decoration: none; white-space: nowrap; }
  .f4u-utility__start svg,
  .f4u-utility__item svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.35;
  }

  .f4u-utility__accent { display: none; }
  .f4u-utility__item:last-child { display: flex; }

  .f4u-header {
    height: 84px;
    border: 0;
    background: rgba(255, 255, 255, .98);
  }

  .f4u-header__inner {
    position: relative;
    width: auto;
    min-height: 84px;
    margin: 0 clamp(22px, 3vw, 28px);
    grid-template-columns: 48px 88px minmax(0, 1fr) auto;
    gap: 8px;
  }

  .f4u-header__thread { display: none; }
  .f4u-menu-toggle {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
  }

  .f4u-menu-toggle .f4u-control__label {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    font-size: 8px;
    letter-spacing: .05em;
    line-height: 1;
    text-transform: uppercase;
  }

  .f4u-brand {
    display: flex;
    width: 88px;
    height: 84px;
    grid-column: 2;
    align-items: center;
    overflow: visible;
    text-align: initial;
  }

  .f4u-brand__link {
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
  }

  .f4u-brand img,
  .f4u-brand__logo {
    width: 84px;
    height: 84px;
    max-width: none;
    max-height: none;
    margin: 0;
    aspect-ratio: 1;
    object-fit: contain;
  }

  .f4u-nav {
    position: absolute;
    z-index: 30;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    margin: 0;
    padding: 18px clamp(22px, 3vw, 28px) 22px;
    border-top: 1px solid rgba(207,95,107,.12);
    border-bottom: 1px solid rgba(207,95,107,.2);
    background: rgba(255,255,255,.99);
    box-shadow: 0 16px 28px rgba(74,47,43,.1);
  }

  .f4u-nav.is-open { display: block; }
  .f4u-nav ul {
    width: 100%;
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
  }

  .f4u-nav a,
  .f4u-nav .qa-nav span {
    display: block;
    padding: 11px 8px;
    color: #252223;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: .045em;
    line-height: 1;
  }

  .f4u-header__actions {
    display: flex;
    width: auto;
    min-width: max-content;
    grid-column: 4;
    grid-template-columns: none;
    justify-self: end;
    align-items: center;
    gap: 0;
  }

  .f4u-header__actions .f4u-icon-button {
    flex-direction: row;
    min-width: 44px;
    min-height: 44px;
    padding: 5px 6px;
    border-radius: 999px;
    font-size: 9px;
    letter-spacing: .03em;
  }

  .f4u-header__actions .f4u-control__label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .f4u-control__icon { width: 21px; height: 21px; stroke-width: 1.45; }

  .f4u-hero {
    height: clamp(902px, 117.5vw, 980px);
    padding: 0;
    overflow: hidden;
    background: #fff8f7;
  }

  .f4u-hero__frame {
    width: 100%;
    height: clamp(902px, 117.5vw, 980px);
    margin: 0;
  }

  .f4u-hero__surface {
    position: relative;
    isolation: isolate;
    display: block;
    width: 100%;
    height: clamp(902px, 117.5vw, 980px);
    min-height: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #fff8f7;
    box-shadow: none;
  }

  .f4u-hero__surface::before,
  .f4u-hero__surface::after {
    display: none;
    background: none;
    content: none;
  }

  .f4u-hero__decoration {
    position: absolute;
    z-index: 0;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: auto;
    max-width: none;
    opacity: 1;
    pointer-events: none;
  }

  .f4u-hero__brush,
  .f4u-hero .f4u-gold-stroke { display: none; }

  .f4u-hero__copy {
    position: absolute;
    z-index: 4;
    top: clamp(25px, 3.4vw, 29px);
    left: 50%;
    width: min(86vw, 700px);
    max-width: none;
    padding: 0;
    text-align: center;
    transform: translateX(-50%);
  }

  .f4u-hero .f4u-eyebrow {
    margin: 0 0 8px;
    color: #cf5f6b;
    font-size: clamp(12px, 1.65vw, 14px);
    font-weight: 600;
    letter-spacing: .2em;
    line-height: 1.2;
  }

  .f4u-hero h1,
  .f4u-hero .f4u-hero__slide-title {
    max-width: 100%;
    margin: 0;
    color: #202021;
    font-family: var(--f4u-hero-headline-font, Georgia, "Times New Roman", serif);
    font-size: min(var(--f4u-hero-headline-size, 126px), clamp(78px, 10.5vw, 88px));
    font-weight: 400;
    letter-spacing: -.058em;
    line-height: var(--f4u-hero-headline-line-height, .96);
    overflow-wrap: normal;
    text-wrap: balance;
    white-space: normal;
  }

  .f4u-hero .f4u-script {
    width: 100%;
    max-width: 100%;
    margin: -4px 0 0;
    color: #cf5f6b;
    font-family: var(--f4u-font-script);
    font-size: min(var(--f4u-hero-malvinas-size, 72px), clamp(44px, 5.8vw, 49px));
    font-style: normal;
    font-weight: 400;
    font-synthesis: none;
    letter-spacing: 0;
    line-height: var(--f4u-hero-malvinas-line-height, 1);
    transform: none;
    white-space: normal;
  }

  .f4u-hero .f4u-script__ampersand {
    display: inline-block;
    margin: 0 .04em;
    color: inherit;
    font-family: Georgia, "Times New Roman", serif;
    font-size: .55em;
    font-style: italic;
    font-weight: 400;
    line-height: 1;
    transform: translateY(.1em);
  }

  .f4u-hero .f4u-lede {
    display: block;
    width: min(82vw, 650px);
    max-width: 100%;
    min-height: 0;
    margin: clamp(13px, 1.8vw, 16px) auto 0;
    color: #292627;
    font-size: min(var(--f4u-hero-supporting-copy-size, 17px), clamp(14px, 1.85vw, 15.5px));
    font-weight: 400;
    line-height: var(--f4u-hero-supporting-copy-line-height, 1.52);
  }

  .f4u-hero__ctas {
    display: flex;
    justify-content: center;
    gap: clamp(11px, 1.7vw, 14px);
    margin-top: clamp(11px, 1.6vw, 14px);
  }

  .f4u-hero__copy .f4u-button,
  .f4u-hero__copy .f4u-button--secondary {
    width: clamp(184px, 25vw, 208px);
    min-width: 0;
    height: 46px;
    min-height: 46px;
    margin: 0;
    padding: 0 12px;
    border-radius: 5px;
    font-size: min(var(--f4u-hero-cta-label-size, 14px), clamp(11px, 1.5vw, 12.5px));
    font-weight: var(--f4u-hero-cta-label-weight, 600);
    letter-spacing: .065em;
  }

  .f4u-hero__copy .f4u-button--secondary {
    border-color: #bb8534;
    background: rgba(255, 255, 255, .94);
    color: #a56d1d;
    box-shadow: none;
  }

  .f4u-media--hero {
    position: absolute;
    z-index: 3;
    top: clamp(301px, calc(36.6vw + 16px), 321px);
    left: 50%;
    width: clamp(292px, 38vw, 317px);
    height: auto;
    max-width: none;
    max-height: none;
    margin: 0;
    overflow: hidden;
    aspect-ratio: 458 / 657;
    border: 2px solid #c99022;
    border-radius: clamp(21px, 2.8vw, 24px);
    background: transparent;
    box-shadow: 0 0 0 5px rgba(255,255,255,.86), 0 12px 28px rgba(74,47,43,.12);
    transform: translateX(-50%);
  }

  .f4u-media--hero > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--f4u-hero-focal-x, 50%) var(--f4u-hero-focal-y, 50%);
  }

  .f4u-hero__media-placeholder,
  .f4u-media--hero-deferred {
    width: clamp(292px, 38vw, 317px);
    height: auto;
    aspect-ratio: 458 / 657;
  }

  .f4u-hero__benefits {
    position: absolute;
    z-index: 5;
    top: clamp(749px, calc(81.8vw + 121px), 803px);
    left: 50%;
    display: flex;
    width: min(88vw, 720px);
    height: 58px;
    align-items: center;
    gap: clamp(8px, 1.4vw, 12px);
    margin: 0;
    padding: 0;
    list-style: none;
    transform: translateX(-50%);
  }

  .f4u-hero__benefit {
    display: grid;
    flex: 1 1 0;
    grid-template-columns: clamp(38px, 5vw, 42px) minmax(0, auto);
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: clamp(5px, .8vw, 7px);
    padding-right: clamp(8px, 1.2vw, 10px);
    border-right: 1px solid rgba(205, 141, 147, .35);
  }

  .f4u-hero__benefit:last-child { padding-right: 0; border-right: 0; }
  .f4u-hero__benefit-icon-frame {
    display: grid;
    width: clamp(38px, 5vw, 42px);
    height: clamp(38px, 5vw, 42px);
    place-items: center;
    border: 1px solid transparent;
    border-radius: 50%;
    background: transparent;
  }

  .f4u-hero--benefit-icons-outline .f4u-hero__benefit-icon-frame {
    border-color: rgba(207, 95, 107, .4);
    background: rgba(255, 255, 255, .58);
  }

  .f4u-hero--benefit-icons-blush .f4u-hero__benefit-icon-frame {
    border-color: transparent;
    background: #f8e8e8;
  }

  .f4u-hero__benefit-icon {
    display: block;
    width: min(var(--f4u-hero-benefit-icon-size, 36px), 34px);
    max-width: none;
    height: min(var(--f4u-hero-benefit-icon-size, 36px), 34px);
    margin: 0;
    object-fit: contain;
  }

  .f4u-hero__benefit .f4u-hero__benefit-label {
    color: #2f2b2b;
    font-family: "F4U Bahnschrift";
    font-size: min(var(--f4u-hero-benefit-text-size, 15px), clamp(11.5px, 1.5vw, 12.5px));
    font-weight: var(--f4u-hero-benefit-text-weight, 500);
    letter-spacing: 0;
    line-height: var(--f4u-hero-benefit-text-line-height, 1.35);
  }

  .f4u-hero__nav {
    position: absolute;
    z-index: 6;
    top: clamp(828px, calc(78.8vw + 223px), 880px);
    bottom: auto;
    left: 50%;
    display: flex;
    width: min(92vw, 754px);
    height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: clamp(8px, 1.3vw, 11px);
    margin: 0;
    transform: translateX(-50%);
  }

  .f4u-hero__nav-track {
    display: flex;
    flex: 1;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: clamp(8px, 1.2vw, 10px);
  }

  .f4u-hero__nav .f4u-hero__arrow {
    display: grid;
    flex: 0 0 48px;
    width: 48px;
    min-width: 44px;
    height: 48px;
    min-height: 44px;
    padding: 0;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
    place-items: center;
  }

  .f4u-hero__arrow-control {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 50%;
    background: transparent;
  }

  .f4u-hero--selector-arrow-circle .f4u-hero__arrow-control {
    border-color: rgba(47, 43, 43, .18);
    background: rgba(255, 255, 255, .58);
  }

  .f4u-hero__arrow-icon {
    display: block;
    width: min(var(--f4u-hero-selector-arrow-glyph-size, 20px), 18px);
    height: min(var(--f4u-hero-selector-arrow-glyph-size, 20px), 18px);
    border-right: var(--f4u-hero-selector-arrow-stroke, 2.5px) solid #2f2b2b;
    border-bottom: var(--f4u-hero-selector-arrow-stroke, 2.5px) solid #2f2b2b;
    filter: contrast(var(--f4u-hero-selector-arrow-contrast, 1.1));
    transform: rotate(135deg);
    transform-origin: center;
  }

  .f4u-hero__arrow--next .f4u-hero__arrow-icon { transform: rotate(-45deg); }

  .f4u-hero__nav-track button {
    display: grid;
    grid-template-columns: auto 1fr;
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    min-height: 52px;
    align-items: center;
    gap: clamp(6px, .9vw, 8px);
    padding: 5px 2px 8px;
    border: 0;
    border-bottom: 2px solid rgba(207,95,107,.18);
    border-radius: 0;
    background: transparent;
    color: #343031;
    text-align: left;
  }

  .f4u-hero__nav-track button[aria-pressed="true"] { border-color: #cf5f6b; }
  .f4u-hero__nav-track button strong {
    color: #ba5b65;
    font-family: Georgia, "Times New Roman", serif;
    font-size: min(var(--f4u-hero-selector-number-size, 36px), clamp(27px, 3.55vw, 30px));
    font-weight: 400;
    letter-spacing: -.045em;
    line-height: 1;
  }

  .f4u-hero__nav-track button span {
    color: #2f2b2b;
    font-size: min(var(--f4u-hero-selector-label-size, 11px), clamp(8px, 1.05vw, 9px));
    font-weight: 500;
    letter-spacing: .08em;
    line-height: 1;
    text-transform: uppercase;
  }
}
