/* Two Pillars base: reset, shared primitives, header, mobile menu, footer.
   Ported verbatim from the locked homepage stylesheet (ui_kits/homepage/homepage.css). The 1120 / 800 / 480 queries are the
   prototype's own and are listed in docs/DEVIATIONS.md. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id], main[id], details[id] { scroll-margin-top: 100px; }
.skip-link { position: fixed; top: 12px; left: 16px; z-index: 100; padding: 14px 22px; background: var(--white); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
/* Unfocused: also clip it away. It only sits 12.5px above the viewport (transform), and a screenshot taken while the page is scrolled (full-page capture) can paint the box edge as a 1px line at the top of the page. Still focusable, no visual change. */
.skip-link:not(:focus) { clip-path: inset(50%); }
#main-content:focus { outline: 0; }
body { margin: 0; color: var(--navy); background: var(--white); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body, button, a { font-family: var(--sans); }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button:focus-visible, a:focus-visible { outline: 3px solid color-mix(in srgb, var(--gold) 55%, transparent); outline-offset: 4px; }
/* .container is Bootstrap's (assets/vendor/bootstrap, configured in tp-bootstrap.scss): same content box as var(--container). See docs/BOOTSTRAP.md. */
.section { padding: 128px 0; }
.eyebrow { margin: 0 0 20px; color: var(--teal-dark); font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.section-heading { max-width: 700px; }
.section-heading h2, .contact-card h2 { margin: 0; font-family: var(--serif); font-size: clamp(42px, 4.5vw, 66px); font-weight: 400; line-height: .98; letter-spacing: -.035em; }
.section-copy { margin: 28px 0 0; color: var(--ink-muted); font-size: 17px; line-height: 1.75; max-width: 640px; }
.section-heading--light h2 { color: white; }
.section-heading--light .eyebrow { color: var(--teal); }
.section-heading--light .section-copy { color: color-mix(in srgb, var(--white) 74%, var(--navy)); }

.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 28px; padding: 0 22px; border: 1px solid transparent; border-radius: 2px; background: none; font-size: 14px; font-weight: 700; cursor: pointer; transition: .25s ease; }
.button svg { transition: transform .25s ease; }
.button:hover svg { transform: translateX(4px); }
.button--primary { color: white; background: var(--teal-dark); }
.button--primary:hover { background: var(--navy); }
.button--light { color: var(--navy); background: white; }
.button--light:hover { color: var(--navy); background: var(--teal); }
.button--outline { border-color: var(--navy); }
.button--outline:hover { color: white; background: var(--navy); }
.button--text { padding-inline: 6px; border-bottom-color: var(--navy); }
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; border-bottom: 1px solid transparent; transition: .3s ease; }
.site-header--scrolled { border-color: rgba(18, 40, 59, .1); background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); box-shadow: 0 4px 28px rgba(11, 30, 47, .05); }
/* .header-inner: container d-flex align-items-center justify-content-between (markup in nav.php). */
.header-inner { height: 96px; transition: height .3s ease; }
.site-header--scrolled .header-inner { height: 76px; }
.brand { width: 152px; min-width: 152px; height: 64px; padding: 6px; display: flex; align-items: center; }
.brand img { width: 100%; height: auto; object-fit: contain; }
.desktop-nav { display: flex; align-items: center; gap: clamp(14px, 1.7vw, 28px); margin-left: auto; margin-right: clamp(14px, 2vw, 30px); }
.desktop-nav > a, .nav-dropdown > a { position: relative; display: flex; align-items: center; gap: 4px; padding: 36px 0; font-size: 13px; font-weight: 600; white-space: nowrap; }
.desktop-nav > a::after, .nav-dropdown > a::after { content: ""; position: absolute; inset: auto 0 27px; height: 1px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.desktop-nav a:hover::after, .desktop-nav a:focus-visible::after, .desktop-nav a[aria-current="page"]::after, .nav-dropdown:focus-within > a::after { transform: scaleX(1); }
.nav-dropdown { position: relative; }
.dropdown-panel { position: absolute; top: 77px; left: -24px; width: 230px; padding: 20px 22px; background: white; border-top: 2px solid var(--teal); box-shadow: 0 18px 50px rgba(11, 30, 47, .15); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .2s ease; }
.nav-dropdown:hover .dropdown-panel, .nav-dropdown:focus-within .dropdown-panel { opacity: 1; visibility: visible; transform: none; }
.dropdown-panel span { display: block; margin-bottom: 12px; color: var(--teal-dark); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.dropdown-panel a { display: block; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
/* .header-actions: layout comes from the Bootstrap utilities d-flex align-items-center gap-3 (markup in nav.php). */
.menu-toggle { display: none; padding: 8px; border: 0; background: none; cursor: pointer; }
.mobile-menu { display: none; }

.site-footer { padding: 82px 0 30px; color: color-mix(in srgb, var(--white) 78%, var(--navy)); background: var(--navy-2); }
/* .footer-grid stays a CSS grid inside a Bootstrap .container: a flex/.row version of 1.5fr 1fr 1fr with a 10% gap differs by up to 1/64 px per column (anti-aliasing diff), so it was reverted (docs/BOOTSTRAP.md, pattern 3). */
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(2, 1fr); gap: 10%; padding-bottom: 65px; }
.footer-brand img { width: 220px; height: auto; }
.footer-brand p { max-width: 310px; margin: 25px 0 0; color: color-mix(in srgb, var(--white) 68%, var(--navy)); font-size: 13px; line-height: 1.7; }
/* .social-links: d-flex align-items-center (markup in footer.php). */
.social-links { gap: 10px; margin-top: 20px; }
.social-links a { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--white) 32%, transparent); border-radius: 50%; color: var(--white); font-size: 12px; font-weight: 700; line-height: 1; }
.social-links a:is(:hover, :focus-visible, :active) { border-color: var(--teal); background: var(--teal); color: var(--navy) !important; }
.footer-grid h2 { margin: 0 0 22px; color: white; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.footer-grid > div:not(:first-child) a, .footer-grid > div:not(:first-child) p { display: block; margin: 0 0 13px; color: color-mix(in srgb, var(--white) 68%, var(--navy)); font-size: 12px; line-height: 1.5; }
.footer-grid a:hover { color: var(--teal) !important; }
.footer-bottom { padding-top: 26px; border-top: 1px solid rgba(255,255,255,.1); display: flex; color: color-mix(in srgb, var(--white) 53%, var(--navy)); font-size: 10px; }
.footer-bottom div { gap: 26px; }
.footer-bottom > p > a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1120px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: block; }
  .header-actions { margin-left: auto; }
  .mobile-menu { position: fixed; inset: 0; height: 100dvh; overflow-y: auto; z-index: 60; padding: 28px clamp(24px, 5vw, 70px) 40px; display: block; color: white; background: var(--navy-2); visibility: hidden; opacity: 0; transform: translateX(100%); transition: .35s ease; }
  .mobile-menu.is-open { visibility: visible; opacity: 1; transform: none; }
  /* .mobile-menu-head: d-flex justify-content-between align-items-center (markup in nav.php). */
  .mobile-menu-head img { width: 166px; height: auto; padding: 10px; background: white; }
  .mobile-menu-head button { border: 0; color: white; background: none; }
  .mobile-menu nav { max-width: 700px; margin: 55px auto 35px; display: grid; }
  .mobile-menu nav a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-family: var(--serif); font-size: clamp(30px, 5vw, 48px); }
  .mobile-menu nav span { display: inline-block; width: 50px; color: var(--teal); font-family: var(--sans); font-size: 10px; }
}
@media (max-width: 800px) {
  :root { --container: min(100% - 32px, 680px); }
  .section { padding: 90px 0; }
  .header-inner { height: 78px; }
  .brand { width: 142px; min-width: 142px; }
  .brand img { width: 100%; }
  .footer-grid { grid-template-columns: 1.4fr 1fr; gap: 45px; }
}
@media (max-width: 480px) {
  :root { --container: calc(100% - 32px); }
  .section { padding: 76px 0; }
  .section-heading h2, .contact-card h2 { font-size: 41px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand, .footer-grid > div:last-child { grid-column: auto; }
  .footer-bottom { display: block; }
  .footer-bottom div { margin-top: 18px; flex-wrap: wrap; gap: 14px; }
}
/* Footer readability: larger type, brighter text */
.footer-brand p { max-width: 340px; color: color-mix(in srgb, var(--white) 88%, var(--navy)); font-size: 15px; line-height: 1.65; }
.footer-grid h2 { font-size: 13px; }
.footer-grid > div:not(:first-child) a, .footer-grid > div:not(:first-child) p { color: color-mix(in srgb, var(--white) 88%, var(--navy)); font-size: 14px; line-height: 1.6; }
.footer-bottom { color: color-mix(in srgb, var(--white) 76%, var(--navy)); font-size: 12.5px; }
/* Design Valley credit — sits after the copyright line */
.tp-credit{display:inline-flex;align-items:center;gap:8px;margin-left:14px;padding-left:14px;border-left:1px solid rgba(255,255,255,.18);color:inherit!important;text-decoration:none!important;vertical-align:middle;opacity:.85;transition:opacity .15s ease}
.tp-credit:hover{opacity:1}
.tp-credit img{display:block;width:auto;height:22px}
.tp-credit:focus-visible{outline:2px solid var(--teal);outline-offset:3px}
@media (max-width:800px){.tp-credit{display:flex;width:max-content;margin:12px 0 0;padding:0;border:0}}
/* Theme additions (not in the prototype) ------------------------------------------------------ */
/* Scroll lock while the mobile menu is open (the prototype set body.style.overflow in JS). */
body.tp-menu-open { overflow: hidden; }
/* Inner pages: the prototype shows the header in its scrolled (solid white) state and in normal flow. */
.site-header--solid { position: sticky; top: 0; border-color: rgba(18, 40, 59, .1); background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); box-shadow: 0 4px 28px rgba(11, 30, 47, .05); }
.site-header--solid .header-inner { height: 76px; }
/* Inner-page header in the prototype keeps the 152px logo at every width (the 142px step is homepage-only). */
.site-header--solid .brand { width: 152px; min-width: 152px; }
/* Inner-page header controls: in the prototype inner pages the three-line toggle, the drawer close button and the drawer chevron are plain <button>s that keep the browser default font (Arial), not the page font. The button line box then measures 39 / 31 px instead of 40 / 32 px (and the chevron svg sits 0.5px lower). Scoped to the inner header/drawer so the home header (which inherits the page font, as in the prototype home) is untouched. */
.site-header--solid .menu-toggle, .mobile-menu--solid .mobile-menu-close, .mobile-menu--solid .pm-m-toggle { font-family: Arial, sans-serif; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-header, .header-inner, .mobile-menu, .button, .button svg { transition: none; }
}
