/* Shared page furniture. Load after style.css or simple.css. Changes to the
   header, controls, closing band and footer belong here; test_shared_shell.js
   compares these components under both page stylesheets. */
:root {
    --color-primary: #2d5016;
    --color-primary-light: #3d6b20;
    --color-primary-dark: #1e3a0e;
    --color-accent-warm: #d4a843;
    --color-bg: #fff;
    --color-bg-alt: #f7f9f5;
    --color-bg-dark: #1a2e0d;
    --color-text: #2c2c2c;
    --color-text-muted: #5a5a5a;
    --color-text-light: #f0f4ec;
    --color-border: #dde4d8;
    --font-heading: 'Merriweather', Georgia, serif;
    --font-body: 'Cabin', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-accent: 'Montserrat', 'Cabin', sans-serif;
    --space-xs: .5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 3rem;
    --space-xl: 5rem;
    --max-width: 1200px;
    --header-height: 72px;
    --transition: .3s cubic-bezier(.4, 0, .2, 1);
    --ease-out: cubic-bezier(.2, .7, .2, 1);
}
.skip-link { position: fixed; top: -100px; left: 50%; transform: translateX(-50%); z-index: 1300; background: var(--color-primary-dark); color: #fff; font: 600 .85rem/1.7 var(--font-accent); padding: .7rem 1.4rem; border-radius: 0 0 10px 10px; transition: top .2s ease; }
.skip-link:focus { top: 0; color: #fff; }
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--color-accent-warm); z-index: 1200; }
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: var(--header-height); background: rgba(255,255,255,.62); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); border-bottom: 1px solid rgba(255,255,255,.5); box-shadow: 0 1px 0 rgba(255,255,255,.6) inset; transition: box-shadow var(--transition); }
.site-header.scrolled { background: rgba(255,255,255,.78); box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 6px 24px rgba(30,58,14,.1); }
.header-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-md); height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); }
.logo-link { flex-shrink: 0; }
.logo { height: 42px; width: auto; }
.nav-list { display: flex; gap: var(--space-md); }
.nav-link { font-family: var(--font-accent); font-weight: 600; font-size: .95rem; text-transform: none; letter-spacing: 0; color: var(--color-text); padding: .5rem 0; position: relative; }
.nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--color-primary); transition: width var(--transition); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link:hover, .nav-link.active { color: var(--color-primary); }
.nav-item-services { position: relative; }
.nav-sub { position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px); background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 10px; box-shadow: 0 14px 40px rgba(0,0,0,.12); padding: .4rem; min-width: 235px; opacity: 0; visibility: hidden; transition: opacity var(--transition), transform var(--transition), visibility var(--transition); z-index: 1001; }
.nav-item-services:hover .nav-sub, .nav-item-services:focus-within .nav-sub { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-sub a { display: block; font-family: var(--font-accent); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--color-text); padding: .55rem .8rem; border-radius: 6px; }
.nav-sub a:hover { background: var(--color-bg-alt); color: var(--color-primary); }
.header-phone { display: none; align-items: center; gap: .45rem; font-family: var(--font-accent); font-weight: 700; font-size: .82rem; letter-spacing: .03em; color: var(--color-text); white-space: nowrap; }
.header-phone svg { width: 17px; height: 17px; color: var(--color-primary); }
.header-phone:hover { color: var(--color-primary); }
.nav-quote { display: none; }
.btn { display: inline-block; font-family: var(--font-accent); font-weight: 700; font-size: .98rem; text-transform: none; letter-spacing: 0; padding: .85rem 1.5rem; border-radius: 10px; border: 2px solid transparent; cursor: pointer; text-align: center; transition: background-color .16s var(--ease-out), border-color .16s var(--ease-out), color .16s var(--ease-out), transform .16s var(--ease-out), box-shadow .16s var(--ease-out); }
.btn-primary { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.btn-primary:hover { background: var(--color-primary-light); border-color: var(--color-primary-light); color: #fff; transform: translateY(-2px); box-shadow: 0 4px 16px rgba(45,80,22,.3); }
.btn-outline { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: #fff; transform: translateY(-2px); }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.05rem; }
.btn.header-cta { padding: .55rem 1.1rem; font-size: .9rem; }
.btn:active { transform: translateY(0) scale(.98); }
.btn:focus-visible, .nav-link:focus-visible { outline: 2px solid var(--color-accent-warm); outline-offset: 3px; }
.btn-cta-ghost { background: transparent; border-color: rgba(255,255,255,.45); color: #fff; }
.btn-cta-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.mobile-menu-btn { display: none; box-sizing: border-box; flex-direction: column; justify-content: center; gap: 5px; background: none; border: none; cursor: pointer; min-width: 44px; min-height: 44px; padding: 10px; z-index: 1001; }
.mobile-menu-btn span { display: block; width: 24px; height: 2px; background: var(--color-text); transition: all var(--transition); border-radius: 2px; }
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.mobile-cta-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 950; display: flex; gap: .6rem; background: rgba(255,255,255,.7); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); border-top: 1px solid rgba(255,255,255,.5); padding: .7rem .9rem calc(.7rem + env(safe-area-inset-bottom)); box-shadow: 0 -8px 30px rgba(0,0,0,.3); transform: translateY(0); transition: transform .3s ease, visibility 0s; }
.mobile-cta-bar.hidden { transform: translateY(110%); }
.mobile-cta-bar .btn { flex: 1; padding: .8rem .6rem; font-size: .8rem; }
.mobile-cta-bar .btn-cta-ghost { border-color: var(--color-primary-dark); color: var(--color-primary-dark); }
.mobile-cta-bar .btn-cta-ghost:hover, .mobile-cta-bar .btn-cta-ghost:focus-visible { background: rgba(30,58,14,.1); color: var(--color-primary-dark); }
.in-hero .mobile-cta-bar { transform: translateY(110%); visibility: hidden; transition: transform .3s ease, visibility 0s linear .3s; }
.section-dark { position: relative; isolation: isolate; background: var(--color-bg-dark); color: var(--color-text-light); }
.section-dark:not(.quote-promise) { padding: var(--section-space, clamp(3.75rem, 8vw, 6.5rem)) 0; }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--color-text-light); }
.section-dark .section-title { font-family: var(--font-heading); color: var(--color-text-light); font-size: clamp(1.75rem, 3.6vw, 2.75rem); font-weight: 700; line-height: 1.12; letter-spacing: -.015em; text-wrap: balance; text-align: center; max-width: none; margin-bottom: var(--space-lg); }
.band-line { margin-bottom: 2rem; color: rgba(255,255,255,.7); font-family: var(--font-body); font-size: .95rem; font-style: italic; font-weight: 400; }
.site-footer { background: var(--color-bg-dark); color: var(--color-text-light); padding: var(--space-lg) 0 var(--space-md); }
.site-footer > .container, .section-dark > .container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-md); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--space-lg); }
/* The logo's 112/224/336px derivatives come from the original artwork.
   Keep its transparent edge; the filter changes colour, never its shape. */
.footer-logo { width: 104px; height: auto; filter: brightness(0) invert(1); opacity: 1; margin-bottom: var(--space-sm); }
.footer-brand p { font-size: .85rem; color: rgba(255,255,255,.6); margin-bottom: .2rem; }
.abn, .rights { font-size: .8rem !important; }
.footer-links h2 { font-family: var(--font-accent); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; line-height: inherit; text-wrap: inherit; color: rgba(255,255,255,.9); margin-bottom: var(--space-sm); font-size: .85rem; }
.footer-links a { color: rgba(255,255,255,.6); font-size: .9rem; display: block; padding: .25rem 0; transition: color var(--transition); }
.footer-links a:hover { color: #fff; }
.footer-phone a { color: rgba(255,255,255,.85); font-family: var(--font-accent); font-weight: 600; font-size: .9rem; }
.footer-phone a:hover { color: #fff; }
.social-links { display: flex; gap: .9rem; margin-top: .9rem; }
.social-links a { color: rgba(255,255,255,.55); }
.social-links a:hover { color: #fff; }
.social-links svg { width: 19px; height: 19px; display: block; }
/* Keep the fixed quote bar's clearance inside the dark footer. */
body { padding-bottom: 0; }
@media (min-width: 1600px) {
    :root { --max-width: 1320px; }
    html { font-size: 17px; }
}
@media (min-width: 993px) {
    .mobile-cta-bar { display: none; }
    .header-phone { display: inline-flex; }
    .nav-list > li > .nav-link { white-space: nowrap; }
}
@media (min-width: 993px) and (max-width: 1120px) { .header-phone span { display: none; } }
@media (min-width: 993px) and (max-width: 1100px) { .nav-list { gap: var(--space-sm); } }
@media (max-width: 992px) {
    :root { --header-height: 64px; }
    .main-nav { position: fixed; top: 0; right: -100%; width: min(320px, 85vw); height: 100vh; height: 100dvh; background: var(--color-bg); padding: calc(var(--header-height) + var(--space-md)) var(--space-md) var(--space-md); transition: right var(--transition); box-shadow: -4px 0 20px rgba(0,0,0,.1); z-index: 999; overflow-y: auto; }
    .main-nav.open { right: 0; }
    .nav-list { flex-direction: column; gap: 0; }
    .nav-link { display: block; padding: var(--space-sm) 0; border-bottom: 1px solid var(--color-border); }
    .nav-quote { display: block; }
    .nav-quote .nav-link { color: var(--color-primary); font-weight: 700; }
    .nav-sub { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: none; background: transparent; padding: 0 0 0 1rem; min-width: 0; }
    .nav-sub a { border-bottom: 1px solid var(--color-border); border-radius: 0; padding: .6rem 0; font-size: .85rem; }
    .mobile-menu-btn { display: flex; }
    .header-cta { display: none; }
    .site-footer { padding-bottom: calc(var(--space-md) + 64px + env(safe-area-inset-bottom)); }
}
@media (max-width: 768px) {
    :root { --header-height: 60px; --space-xl: 3.5rem; --space-lg: 2.25rem; --section-space: 2rem; }
    .footer-inner { grid-template-columns: 1fr; gap: var(--space-md); }
}
@media (max-width: 480px) { .site-footer > .container, .section-dark > .container { padding: 0 var(--space-sm); } }
/* Real boxes provide thumb clearance while logos, icons and text keep their
   drawn size. Shared here so the small blog/privacy shell stays identical. */
@media (max-width: 700px) {
    .logo-link, .footer-phone a, .breadcrumb a, .post-back a, .post-row h2 a, .post-link {
        display: inline-flex;
        align-items: center;
        min-width: 44px;
        min-height: 44px;
    }
    .nav-sub a, .footer-links a { min-height: 44px; display: flex; align-items: center; }
    .social-links { gap: .4rem; }
    .social-links a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; }
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .site-header { background: rgba(255,255,255,.97); }
    .site-header.scrolled, .mobile-cta-bar { background: #fff; }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
    .site-header, .site-header.scrolled, .mobile-cta-bar { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) {
    .btn, .site-header, .main-nav, .nav-link::after, .nav-sub, .mobile-menu-btn span, .mobile-cta-bar, .in-hero .mobile-cta-bar { transition: none !important; }
}
