/* Only shared responsive rules from the prototype, in their original order. */
@media (max-width: 1100px) {
  .nav__link, .dropdown__toggle { padding-inline: 8px; }
}

@media (max-width: 900px) {
  :root {
    --header-height: 80px;
    --section-padding: var(--section-padding-tablet);
    --font-size-h1: clamp(1.85rem, 4.5vw, 2.35rem);
    --font-size-h2: clamp(1.45rem, 3.4vw, 1.95rem);
    --font-size-h3: clamp(1.15rem, 2.5vw, 1.35rem);
  }
  .site-header { padding-block: 8px; }
  .site-header .nav { width: min(100% - 32px, var(--container)); min-height: 64px; gap: 16px; padding-inline: 0; }
  .site-header .brand { width: auto; height: 95px; }
  .site-header .brand__logo, .site-header.is-scrolled .brand__logo { position: static; top: auto; height: 95px; max-height: 100%; max-width: 100%; filter: none; transition: none; }
  .site-header .brand:hover .brand__logo { transform: none; }
  .site-header.is-scrolled { background: #1b120e; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav__actions { display: none; }
  .header-phone, .nav__actions .button { display: none; }
  .nav-toggle { display: block; flex: 0 0 44px; margin-left: auto; }
  .nav-toggle:focus-visible, .nav__menu a:focus-visible, .nav__menu button:focus-visible { outline: 3px solid #f4b27a; outline-offset: 3px; }
  .nav__menu { position: fixed; z-index: 3; inset: var(--header-height) 0 auto auto; width: min(65%, calc(100vw - 24px)); height: calc(100svh - var(--header-height)); height: calc(100dvh - var(--header-height)); max-height: none; margin: 0; padding: 20px 20px 28px; display: block; visibility: hidden; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; opacity: 1; transform: translateX(100%); border: 0; border-left: 1px solid rgba(244,178,122,.16); border-radius: 0; background: rgb(27,18,14); color: #fff; box-shadow: none; transition: visibility var(--ease), transform var(--ease); }
  .nav__menu.is-open { visibility: visible; transform: translateX(0); }
  html.nav-drawer-open { overflow: hidden; }
  .nav-drawer-backdrop { position: fixed; z-index: 999; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; background: rgba(12,7,4,.4); cursor: pointer; }
  .nav-drawer-backdrop[hidden] { display: none; }
  .nav__link, .dropdown__toggle { width: 100%; min-height: 50px; justify-content: space-between; padding-inline: 12px; color: rgba(255,255,255,.84); font-size: 1rem; }
  .nav__link[aria-current="page"], .dropdown__toggle.is-active { background: transparent; }
  .nav__link::after { display: none; }
  .nav__mobile-contact span{margin-left: 10px;}
  .dropdown__menu { position: static; display: none; min-width: 0; padding: 6px 12px 12px 12px; visibility: visible; opacity: 1; transform: none; border: 0; background: rgb(201 111 61 / 8%); color: #fff; box-shadow: none; backdrop-filter: none; }
  .dropdown__menu a { padding-block: 12px; }
  .dropdown.is-open .dropdown__menu { display: block; }
  .nav__mobile-contact, .nav__mobile-cta { display: block; margin-left: 11px;}
  .nav__mobile-contact a { min-height: 48px; display: flex; align-items: center; color: #f4b27a; font-weight: 600; text-decoration: none; }
  .nav__mobile-cta .button { width: 100%; margin-top: 16px; }
  .nav-toggle[aria-expanded="true"] span { opacity: 0; }
  .nav-toggle[aria-expanded="true"]::before { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"]::after { transform: translateY(-6.5px) rotate(-45deg); }
  .section__head { grid-template-columns: 1fr; align-items: start; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --section-padding: 48px; --section-content-gap: 20px; }
  .section, .section--tight { padding-block: var(--section-padding); }
  .nav__menu { text-align: left; }
  .nav__link, .dropdown__toggle { justify-content: space-between; }
  .nav__mobile-contact a { justify-content: flex-start; }
  .dropdown__menu { padding-left: 16px; text-align: left; }
  .nav__mobile-cta .button { width: min(100%, 300px); margin-inline: auto; }
  .section__head { gap: 20px; margin-bottom: 20px; }
  .footer__grid { gap: 20px; padding-bottom: clamp(34px, 4vw, 64px);}
  .button-row, .footer__bottom { gap: 20px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__grid > *, .footer__grid > :first-child { padding-top: 0; border-top: 0; }
  .footer__intro p { max-width: 100%; }
}

@media (max-width: 680px) {
  :root {
    --header-height: 76px;
    --section-padding: var(--section-padding-mobile);
    --font-size-h1: clamp(1.55rem, 5.8vw, 1.95rem);
    --font-size-h2: clamp(1.28rem, 4.6vw, 1.55rem);
    --font-size-h3: clamp(1.1rem, 3.6vw, 1.25rem);
  }
  h1, h2, h3, .section__head h2 { text-wrap: balance; max-inline-size: 100%; line-height: 1.22; }
  .container { width: min(100% - 32px, var(--container)); }
  .brand__logo { width: auto; height: 52px; }
  .site-header .nav { min-height: 60px; }
  .site-header .brand { width: auto; height: 95px; }
  .site-header .brand__logo, .site-header.is-scrolled .brand__logo { top: auto; height: 95px; }
  .site-footer .brand__logo { height: 96px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
}

@media (max-width: 420px) {
  :root {
    --font-size-h1: 32px;
    --font-size-h2: 26px;
    --font-size-h3: 18px;
  }
  h1 { font-size: 32px; }
  h2, .section__head h2 { font-size: 26px; }
  h3 { font-size: 18px; }
  .button-row .button { width: auto; }
  .nav { gap: 8px; }
  .nav-toggle { width: 44px; height: 44px; }
}
/* WordPress admin bar and linked-parent disclosures. */
/* Expanded fallback submenus must not compete with the logo/actions for one row. */
@media (min-width: 901px) {
  html:not(.js) .site-header .nav { flex-wrap: wrap; }
  html:not(.js) .site-header .nav__menu { order: 3; flex: 1 0 100%; flex-wrap: wrap; align-items: flex-start; }
  html:not(.js) .site-header .dropdown__menu { min-width: 0; width: 238px; max-width: 100%; }
}
@media (max-width: 900px) {
  .dropdown__heading > .nav__link { flex: 1; width: auto; }
  .dropdown__heading > .dropdown__toggle { width: 48px; flex: 0 0 48px; justify-content: center; }
  .js .nav-toggle { display: block; }
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .nav { flex-wrap: wrap; }
  html:not(.js) .nav__menu { position: static; width: 100%; height: auto; visibility: visible; opacity: 1; transform: none; max-height: none; overflow: visible; border: 0; background: transparent; transition: none; }
  html:not(.js) .dropdown__menu { display: block; }
  .admin-bar .nav__menu { top: calc(var(--header-height) + 32px); }
}
@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
  .nav__menu, .nav-toggle, .nav-toggle span, .nav-toggle::before, .nav-toggle::after { transition: none; }
}
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
  .admin-bar .nav__menu { top: calc(var(--header-height) + 46px); }
}
@media (max-width: 600px) {
  .admin-bar .site-header { top: 0; }
  .admin-bar .nav__menu { top: var(--header-height); }
}
