/*
Theme Name: Shipflooring Marine
Description: Marine flooring and ship refit project portfolio for Adrijus.
Version: 1.0.1
Requires PHP: 7.4
Text Domain: shipflooring-marine
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  color-scheme: light;
  --navy: #071b2a;
  --ink: #122b38;
  --muted: #4e636b;
  --paper: #f6f7f3;
  --cream: #edf3ef;
  --mint: #bce8de;
  --mint-text: #8ad4c6;
  --green: #28665d;
  --line: #d1dcd7;
  --gutter: clamp(20px, 5vw, 72px);
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, ul { margin: 0; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 2px solid #258171; outline-offset: 5px; }
.site-header a:focus-visible, .site-header button:focus-visible, .hero a:focus-visible,
.contact-section a:focus-visible, .site-footer a:focus-visible { outline-color: #c5f4e7; }
.container { width: min(1280px, calc(100% - var(--gutter) - var(--gutter))); margin-inline: auto; }
.section { padding-block: clamp(60px, 7.5vw, 112px); }
.section h2, .contact-section h2, .project-dialog h2 {
  font-size: clamp(36px, 4.35vw, 66px);
  line-height: 1.04;
  letter-spacing: -.055em;
  font-weight: 675;
  text-wrap: balance;
}
.section-heading { min-width: 0; }
.section-heading > p:not(.eyebrow) { margin-top: 18px; max-width: 36ch; color: var(--muted); }
.eyebrow {
  font-size: 11px;
  line-height: 1.4;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .17em;
  color: var(--green);
  margin-bottom: 13px;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: 10px;
  z-index: 15;
  background: var(--mint);
  color: var(--navy);
  padding: 10px 14px;
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: relative;
  z-index: 5;
  background: var(--navy);
  color: #f9fcfa;
  border-bottom: 1px solid #ffffff24;
}
.header-inner { min-height: 74px; display: grid; grid-template-columns: 1fr max-content 1fr; align-items: center; gap: 25px; }
.wordmark { font-size: clamp(16px, 1.62vw, 23px); line-height: 1; font-weight: 800; letter-spacing: .045em; text-decoration: none; white-space: nowrap; }
.wordmark span { color: var(--mint-text); }
.site-nav { display: flex; align-items: stretch; gap: clamp(16px, 2.7vw, 39px); }
.site-nav a, .header-contact {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 650;
  color: #e7eeef;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover, .header-contact:hover { color: var(--mint); }
.header-contact { justify-self: end; gap: 12px; border: 1px solid #ffffff4d; padding: 0 14px 0 16px; }
.header-contact:hover { border-color: var(--mint); }
.menu-toggle, .site-nav .mobile-contact { display: none; }

.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); color: #f7fbfb; }
.hero-photo { position: absolute; inset: 0 0 0 auto; width: 80%; height: 100%; object-fit: cover; object-position: 57% 49%; }
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #071b2a 5%, #071b2afa 19%, #071b2adc 39%, #071b2a62 63%, #071b2a12 100%),
    linear-gradient(0deg, #071b2ac9 2%, transparent 45%);
}
.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  gap: 26px;
  min-height: 552px;
  padding-block: 74px 68px;
}
.hero-copy { max-width: 780px; }
.hero-location { color: #c3eee4; display: flex; align-items: center; gap: 11px; margin-bottom: 22px; }
.hero-location > span { display: inline-block; width: 19px; height: 1px; background: #8ad4c6; }
.hero h1 { font-size: clamp(56px, 6.7vw, 100px); font-weight: 680; letter-spacing: -.069em; line-height: .99; text-wrap: balance; }
.hero-description { margin-top: 24px; max-width: 37ch; color: #d9e7e9; font-size: clamp(15px, 1.5vw, 20px); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 13px 23px; }
.hero-actions { margin-top: 31px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 17px; min-height: 49px; padding: 0 17px; font-size: 14px; font-weight: 750; line-height: 1.25; text-decoration: none; }
.button-mint { background: var(--mint); color: var(--navy); }
.button-mint:hover { background: #d2f5ee; }
.button-dark { background: var(--navy); color: #f8fbfa; }
.button-dark:hover { background: #184857; }
.text-link { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font-size: 14px; font-weight: 720; color: var(--green); text-decoration: underline; text-underline-offset: .26em; text-decoration-thickness: 1px; }
.text-link:hover { color: var(--navy); }
.hero-link { color: #f4faf9; }
.hero-link:hover { color: var(--mint); }
.icon { display: inline-block; position: relative; flex: 0 0 14px; width: 14px; height: 14px; }
.arrow-diagonal::before { content: ""; position: absolute; width: 8px; height: 8px; right: 1px; top: 1px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; }
.arrow-diagonal::after { content: ""; position: absolute; width: 13px; height: 1.5px; top: 6px; left: 1px; background: currentColor; transform: rotate(-45deg); }
.arrow-down::before { content: ""; position: absolute; left: 6px; top: 1px; height: 11px; width: 1.5px; background: currentColor; }
.arrow-down::after { content: ""; position: absolute; left: 3px; bottom: 2px; width: 7px; height: 7px; transform: rotate(45deg); border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; }
.hero-caption { align-self: end; display: flex; align-items: flex-start; gap: 12px; text-align: left; color: #f4fbfa; font-size: 12px; line-height: 1.35; }
.hero-project { min-height: 44px; padding: 0; text-align: left; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.hero-project:focus-visible { outline-color: var(--mint); }
.hero-project strong, .hero-project > span { display: block; }
.hero-project strong { text-decoration: underline; text-underline-offset: .22em; }
.hero-project > span { margin-top: 3px; color: #dce8ec; }
.caption-rule { height: 1px; width: 21px; margin-top: 7px; background: #acdfd3; }

.projects-section { background: var(--paper); }
.project-heading { display: flex; justify-content: space-between; align-items: end; gap: 12px 40px; margin-bottom: 34px; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2.1vw, 30px); }
.project { min-width: 0; position: relative; border-bottom: 1px solid var(--line); }
.project-image { aspect-ratio: 1.58; position: relative; overflow: hidden; background: #b8c6ca; }
.project-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .3s ease; }
.project:hover img, .project:focus-within img { transform: scale(1.025); }
.project-content { position: relative; padding: 19px 48px 24px 0; }
.project-location { margin-bottom: 7px; color: var(--green); font-size: 12px; font-weight: 680; }
.project h3 { font-size: clamp(21px, 2.1vw, 31px); letter-spacing: -.04em; line-height: 1.12; margin-bottom: 8px; }
.project-content > p:last-of-type { color: var(--muted); font-size: 14px; line-height: 1.5; }
.project-open { position: absolute; width: 44px; height: 44px; right: 0; top: 18px; display: grid; place-items: center; color: var(--green); background: transparent; border: 1px solid #a8bcb3; cursor: pointer; }
.project-open:hover { background: var(--cream); border-color: var(--green); }

.services-section { background: var(--cream); }
.services-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); gap: clamp(30px, 7vw, 120px); align-items: start; }
.services-intro .text-link, .about-copy .text-link { margin-top: 12px; }
.service-list { border-top: 1px solid #aabeB5; }
.service-list article { padding-block: 22px 23px; border-bottom: 1px solid #aabeb5; }
.service-list h3 { margin-bottom: 6px; letter-spacing: -.024em; font-size: clamp(19px, 1.9vw, 25px); line-height: 1.22; }
.service-list p, .about-copy p { color: var(--muted); }

.materials-heading { display: flex; gap: 20px 44px; align-items: end; justify-content: space-between; margin-bottom: 28px; }
.materials-heading > p:not(.eyebrow) { margin: 0 0 2px; max-width: 33ch; }
.material-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 26px; margin-bottom: 18px; }
.material-list li { border-top: 1px solid var(--line); }
.material-list li:nth-last-child(-n + 3) { border-bottom: 1px solid var(--line); }
.material-list a { display: flex; min-height: 61px; gap: 10px; align-items: center; justify-content: space-between; text-decoration: none; font-weight: 670; }
.material-list .icon { color: var(--green); }
.material-list a:hover { color: var(--green); text-decoration: underline; text-underline-offset: .2em; }

.about-section { border-top: 1px solid var(--line); padding-block: clamp(44px, 6.2vw, 90px); }
.about-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .72fr); align-items: center; gap: clamp(27px, 5vw, 80px); }
.about-copy p { max-width: 41ch; }

.contact-section { background: #0b2836; color: #f3f9f7; padding-block: clamp(57px, 7.2vw, 104px); }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) max-content; align-items: center; gap: 29px 48px; }
.contact-section .eyebrow { color: #99dbce; }
.contact-section .section-heading > p:not(.eyebrow) { color: #d9e9e6; }
.contact-links { display: grid; justify-items: start; gap: 9px; }
.contact-phone { min-height: 34px; display: inline-flex; align-items: center; text-underline-offset: .25em; font-size: 18px; font-weight: 750; }
.contact-links > span { color: #d9e9e6; font-size: 13px; }
.site-footer { color: #e3ecee; background: var(--navy); padding-block: 32px; }
.footer-inner { display: grid; grid-template-columns: 1.1fr 1fr auto; gap: 20px; align-items: start; font-size: 13px; }
.footer-inner p { margin-top: 5px; color: #c3d3da; }
.footer-inner address { font-style: normal; }
.footer-nav { display: grid; justify-items: start; gap: 2px; }
.footer-nav a { display: inline-flex; align-items: center; gap: 7px; text-underline-offset: .25em; }

.project-dialog { width: min(630px, calc(100% - 28px)); max-height: calc(100% - 28px); margin: auto; border: 0; padding: 0; background: var(--paper); color: var(--ink); }
.project-dialog::backdrop { background: #061622bc; }
.dialog-cover { position: relative; background: var(--navy); }
.dialog-cover img { width: 100%; height: auto; max-height: 310px; object-fit: cover; }
.dialog-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; color: #f5faf9; background: var(--navy); border: 1px solid #ffffffa3; line-height: 1; font-size: 32px; cursor: pointer; }
.dialog-body { padding: clamp(20px, 4.2vw, 38px); }
.dialog-body h2 { font-size: clamp(28px, 4.6vw, 48px); }
.dialog-scope { margin-block: 15px 18px; }
.dialog-scope h3 { font-size: 16px; margin-bottom: 5px; }
.dialog-scope ul { padding-left: 20px; color: var(--muted); }

@media (max-width: 900px) {
  .header-inner { gap: 17px; }
  .site-nav { gap: 16px; }
  .hero-layout { min-height: 505px; }
  .hero h1 { font-size: clamp(46px, 7.6vw, 75px); }
  .hero-photo { width: 88%; }
  .project-content { padding-right: 38px; }
  .project-open { width: 36px; height: 36px; }
}

@media (max-width: 660px) {
  .header-inner { display: flex; justify-content: space-between; flex-wrap: wrap; min-height: 62px; }
  .header-contact { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px 0 10px; background: transparent; color: inherit; border: 0; font-size: 14px; font-weight: 680; cursor: pointer; }
  .menu-lines { width: 15px; height: 10px; border-block: 1.5px solid currentColor; }
  .site-nav { position: absolute; top: 100%; inset-inline: 0; display: grid; gap: 0; padding: 0 var(--gutter) 12px; background: var(--navy); border-bottom: 1px solid #ffffff3d; }
  .menu-toggle[aria-expanded="false"] + .site-nav { display: none; }
  .menu-toggle[hidden] + .site-nav { position: static; display: flex; flex-basis: 100%; flex-wrap: wrap; padding: 0; border: 0; }
  .site-nav a { border-top: 1px solid #ffffff24; }
  .site-nav .mobile-contact { display: flex; }
  .hero-photo { width: 100%; height: min(88vw, 365px); object-position: 50% 43%; }
  .hero-shade { background: linear-gradient(0deg, var(--navy) 0%, var(--navy) 44%, #071b2aa6 67%, #071b2a1d 100%); }
  .hero-layout { grid-template-columns: 1fr; align-items: end; min-height: 0; gap: 20px; padding-block: clamp(204px, 59vw, 283px) 23px; }
  .hero-location { margin-bottom: 10px; }
  .hero h1 { font-size: clamp(40px, 10.6vw, 66px); letter-spacing: -.057em; }
  .hero-description { margin-top: 13px; max-width: 36ch; }
  .hero-actions { margin-top: 17px; gap: 5px 14px; }
  .hero-caption { font-size: 11px; gap: 8px; }
  .hero-project { min-height: 28px; }
  .hero-project strong, .hero-project > span { display: inline; }
  .hero-project > span::before { content: " · "; }
  .section { padding-block: 51px; }
  .project-heading, .materials-heading { flex-wrap: wrap; gap: 6px; align-items: start; margin-bottom: 16px; }
  .project-grid { grid-template-columns: minmax(0, 1fr); gap: 27px; }
  .project-content { padding: 15px 51px 18px 0; }
  .project-open { top: 12px; width: 44px; height: 44px; }
  .project-location { margin-bottom: 5px; }
  .project h3 { font-size: 25px; margin-bottom: 5px; }
  .services-layout, .about-layout, .contact-layout { grid-template-columns: minmax(0, 1fr); gap: 23px; }
  .material-list { grid-template-columns: minmax(0, 1fr); }
  .material-list a { min-height: 52px; }
  .material-list li:nth-last-child(-n + 3) { border-bottom: 0; }
  .material-list li:last-child { border-bottom: 1px solid var(--line); }
  .materials-heading > p:not(.eyebrow) { margin-top: 6px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 16px 12px; }
  .footer-inner > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 370px) {
  .hero-actions { gap: 2px 11px; }
  .button { padding-inline: 12px; gap: 8px; }
  .hero-actions a { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}


.hero h1, .section h2, .contact-section h2, .project-dialog h2,
.project h3, .service-list h3, .page-intro h1, .legacy-content strong,
.legacy-content b, .legacy-content h2, .legacy-content h3, .legacy-content h4 {
  font-kerning: normal;
  letter-spacing: normal;
}
.hero h1 { font-weight: 675; line-height: 1.04; }
.hero-layout { min-height: 530px; }
.hero-location { display: none; }
.header-brand { display: flex; align-items: center; gap: 13px; min-width: 0; }
.header-brand > .wordmark { font-size: clamp(15px, 1.33vw, 20px); }
.parent-brand { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: #d8e7e9; text-decoration: none; flex: 0 0 auto; }
.header-brand .parent-brand { border-left: 1px solid #ffffff3d; padding-left: 12px; }
.parent-brand-label { font-size: 11px; font-weight: 550; }
.parent-brand-logo { --logo-height: 31px; display: block; width: calc(var(--logo-height) * 1.39); height: var(--logo-height); overflow: hidden; }
.parent-brand-logo img { width: calc(var(--logo-height) * 2.56642); height: calc(var(--logo-height) * 1.29323); max-width: none; transform: translateX(calc(var(--logo-height) * -.62406)); }
.footer-parent { margin-top: 6px; }
.footer-parent .parent-brand-logo { --logo-height: 42px; }
.footer-parent .parent-brand { gap: 8px; }

.site-nav > .nav-list { display: flex; align-items: center; gap: clamp(7px, 1.1vw, 17px); }
.nav-list, .site-nav .sub-menu, .site-nav .children { list-style: none; margin: 0; padding: 0; }
.nav-list li { position: relative; }
.site-nav .current-menu-item > a, .site-nav .current-menu-ancestor > a { color: var(--mint); }
.site-nav .dropdown-toggle { display: inline-grid; place-items: center; width: 19px; height: 44px; padding: 0; background: none; color: #bce8de; border: 0; vertical-align: middle; cursor: pointer; }
.dropdown-toggle span { width: 6px; height: 6px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-1px) rotate(45deg); }
.dropdown-toggle[aria-expanded="true"] span { transform: translateY(2px) rotate(225deg); }
.site-nav .sub-menu, .site-nav .children { display: none; }
.site-nav .is-open > .sub-menu, .site-nav .is-open > .children { display: block; }
.site-nav:not(.nav-enhanced) li:hover > .sub-menu,
.site-nav:not(.nav-enhanced) li:focus-within > .sub-menu,
.site-nav:not(.nav-enhanced) li:hover > .children,
.site-nav:not(.nav-enhanced) li:focus-within > .children { display: block; }
.site-nav li > a { max-width: 100%; }

@media (min-width: 1121px) {
  .header-inner { grid-template-columns: max-content minmax(0, 1fr) max-content; gap: clamp(14px, 2.3vw, 35px); }
  .site-nav { justify-content: center; }
  .header-contact { padding-inline: 10px; }
  .site-nav .sub-menu, .site-nav .children { position: absolute; top: 100%; left: 0; min-width: 225px; padding: 5px 0; background: #10313f; border: 1px solid #ffffff36; }
  .site-nav .sub-menu .sub-menu, .site-nav .children .children { top: 0; left: 100%; }
  .site-nav .sub-menu a, .site-nav .children a { padding-inline: 13px; min-height: 39px; color: #f4fbfa; white-space: normal; }
  .site-nav .sub-menu li:hover, .site-nav .children li:hover { background: #173f4d; }
}

.page-intro { padding-block: clamp(39px, 6.1vw, 90px); background: var(--navy); color: #f4faf9; }
.page-intro h1 { max-width: 21ch; font-size: clamp(35px, 5.2vw, 76px); line-height: 1.06; font-weight: 690; overflow-wrap: anywhere; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 10px; font-size: 13px; color: #c7e9e2; margin-bottom: 15px; }
.breadcrumbs a { text-underline-offset: .27em; }
.breadcrumbs a:focus-visible { outline-color: var(--mint); }
.interior-content { padding-block: clamp(33px, 5.4vw, 74px) clamp(56px, 7.5vw, 105px); }
.legacy-content { display: flow-root; width: min(920px, 100%); max-width: 100%; min-width: 0; color: var(--ink); overflow-wrap: anywhere; }
.legacy-content > :first-child { margin-top: 0; }
.legacy-content p, .legacy-content ul, .legacy-content ol, .legacy-content dl, .legacy-content figure { margin-block: 0 1.1em; }
.legacy-content h2, .legacy-content h3, .legacy-content h4 { margin-block: 1.28em .42em; line-height: 1.16; }
.legacy-content h2 { font-size: clamp(25px, 3vw, 41px); }
.legacy-content h3 { font-size: clamp(21px, 2.4vw, 29px); }
.legacy-content li + li { margin-top: .35em; }
.legacy-content li ul, .legacy-content li ol { margin-block: .35em .45em; }
.legacy-content a { color: var(--green); text-underline-offset: .19em; }
.legacy-content img { display: inline-block; max-width: 100%; height: auto; }
.legacy-content .aligncenter { display: block; margin-inline: auto; }
.legacy-content .alignleft { float: left; margin: .35em 1.35em 1em 0; }
.legacy-content .alignright { float: right; margin: .35em 0 1em 1.35em; }
.legacy-content figure, .legacy-content .wp-caption, .legacy-content iframe, .legacy-content object, .legacy-content embed { max-width: 100%; }
.legacy-content iframe[src*="google.com/maps"] { width: 100%; min-height: 300px; height: clamp(300px, 38vw, 460px); }
.legacy-content .table-scroll { width: 100%; overflow-x: auto; margin-block: 1.1em; }
.legacy-content table { border-collapse: collapse; width: 100%; }
.legacy-content th, .legacy-content td { border: 1px solid var(--line); padding: .55rem; vertical-align: top; }
.legacy-content th { background: var(--cream); }
.legacy-content hr { border: 0; border-top: 1px solid var(--line); }
.legacy-content .gallery { display: flex; flex-wrap: wrap; gap: 12px; }
.legacy-content .gallery > * { max-width: 100%; margin: 0; }
.legacy-content .gallery .gallery-item { flex: 0 1 auto; }
.legacy-content .wp-caption-text, .legacy-content figcaption { color: var(--muted); font-size: .875em; }
.legacy-content pre { overflow: auto; max-width: 100%; }
.legacy-content .wp-block-button__link { color: #fff; }
.interior-content > .legacy-content + .legacy-content { margin-top: 26px; }
.inner-projects { padding-block: clamp(38px, 5vw, 72px) 0; }
.inner-projects .project-heading h2 { font-size: clamp(30px, 4vw, 55px); }
.archive-details { margin-top: 22px; border-top: 1px solid var(--line); }
.archive-details > summary { padding-block: 14px; color: var(--green); font-weight: 700; cursor: pointer; }
.archive-details > article { padding-top: 8px; }
.contact-page { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 28px 44px; align-items: start; }
.contact-panel { padding: 22px; background: var(--cream); }
.contact-panel h2 { font-size: 26px; margin-bottom: 10px; }
.contact-panel a { display: block; color: var(--green); text-underline-offset: .2em; }
.contact-panel-phone { font-size: 25px; font-weight: 700; }
.contact-panel address { margin-top: 12px; font-style: normal; }
.contact-panel p { margin-top: 9px; color: var(--muted); }
.not-found-actions { margin-top: 18px; }
.footer-directory { margin-top: 17px; }
.footer-directory details { border-top: 1px solid #ffffff29; font-size: 13px; }
.footer-directory summary { padding-block: 12px; font-weight: 650; cursor: pointer; }
.footer-directory nav > ul { columns: 3 180px; column-gap: 30px; }
.footer-directory ul { padding-left: 20px; }
.footer-directory li { margin-block: 4px; break-inside: avoid; }
.footer-directory a { text-underline-offset: .2em; }

@media (max-width: 1120px) {
  .header-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; min-height: 64px; }
  .header-contact { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px 0 10px; background: transparent; color: inherit; border: 0; font-size: 14px; font-weight: 680; cursor: pointer; }
  .menu-lines { width: 15px; height: 10px; border-block: 1.5px solid currentColor; }
  .site-nav { position: absolute; top: 100%; inset-inline: 0; display: block; max-height: calc(100dvh - 65px); overflow: auto; padding: 0 var(--gutter) 12px; background: var(--navy); border-bottom: 1px solid #ffffff3d; }
  .site-nav > .nav-list { display: block; }
  .site-nav a { border-top: 0; min-height: 44px; }
  .nav-list > li { border-top: 1px solid #ffffff24; }
  .menu-toggle[aria-expanded="false"] + .site-nav { display: none; }
  .menu-toggle[hidden] + .site-nav { position: static; display: block; flex-basis: 100%; padding: 0; border: 0; max-height: none; }
  .menu-toggle[hidden] + .site-nav .sub-menu, .menu-toggle[hidden] + .site-nav .children { display: block; }
  .site-nav .dropdown-toggle { width: 44px; }
  .site-nav .sub-menu, .site-nav .children { padding-left: 14px; border-left: 1px solid #ffffff3e; margin-left: 3px; }
}

@media (max-width: 660px) {
  .hero-layout { min-height: 0; }
  .hero h1 { font-size: clamp(35px, 10.35vw, 63px); }
  .hero-project { min-height: 44px; }
  .parent-brand-logo { --logo-height: 27px; }
  .header-brand { gap: 9px; }
  .header-brand .parent-brand { padding-left: 8px; }
  .contact-page { grid-template-columns: minmax(0, 1fr); }
  .legacy-content .alignleft, .legacy-content .alignright { float: none; margin: .5em 0 1em; }
}

@media (max-width: 370px) {
  .header-brand .parent-brand-label { display: none; }
  .header-brand > .wordmark { font-size: 14px; }
  .header-brand .parent-brand-logo { --logo-height: 25px; }
}
