/* AI: Shared spacing and corner treatment connect the main site with its article layouts. */
:root { --site-radius: 1rem; --site-control-radius: .5rem; --site-header-height: 96px; }
html { overflow-x: clip !important; }
body { display: flex; flex-direction: column; height: auto; min-height: 100dvh; overflow-x: clip; line-height: 1.7; }
h1, h2, h3 { line-height: 1.25; text-wrap: balance; }
p { margin-bottom: 1.25rem; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--site-accent); outline-offset: 4px; }
.site-header { padding: 0; background: var(--site-background); border-bottom: 1px solid var(--site-border); box-shadow: 0 3px 16px rgba(18,45,67,.06); }
.site-header .site-header-bar { height: var(--site-header-height); align-items: center; gap: 1rem; }
.site-header .site-header-control, .site-header .site-header-action { flex: 1; min-width: 0; align-items: center; }
.site-header .site-header-action { justify-content: flex-end; }
.site-header .site-header-brand { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.site-header .site-header-brand a { display: flex; align-items: center; }
.site-header .site-header-brand img { width: auto; height: 68px; max-width: 260px; object-fit: contain; }
.site-header .hamburger, .site-header .navbar-toggler { display: inline-flex; align-items: center; justify-content: center; padding: .75rem; margin-left: -.75rem; min-height: 48px; }
body .btn-link:where(:not(:hover):not(:focus-visible):not(:active)) { background: #fff; }
body .form-control, body :where(input:not([type=submit]):not([type=checkbox]):not([type=radio]):not([type=hidden]), textarea) { border-radius: var(--site-control-radius); }
.blog-card, .blog-enquiry, .blog-hero, .blog-empty { border-radius: var(--site-radius); }
.blog-refresh { --blog-sticky-offset: 120px; }
.site-footer { border-top: 1px solid var(--site-border); padding: 3rem 0 1.5rem; font-size: .9rem; line-height: 1.7; }
.site-footer p:last-child { margin-bottom: 0; }
body .site-footer a[href] { color: var(--site-accent); text-decoration: none; transition: color .2s ease; }
body .site-footer a[href]:hover, body .site-footer a[href]:focus-visible { color: #425563; text-decoration: none; }
body a[href^="mailto:"], body a[href^="tel:"] { color: var(--site-accent); text-underline-offset: .2em; }
body a[href^="mailto:"]:hover, body a[href^="tel:"]:hover { color: var(--site-accent); text-decoration: underline; }
@media (max-width: 767px) {
    :root { --site-header-height: 76px; }
    .site-header .site-header-bar { gap: .5rem; }
    .site-header .site-header-brand img { height: 48px; max-width: 180px; }
    .site-header .site-header-action .btn, .site-header .site-header-action .btn-link { min-height: 42px; padding: .6rem .8rem; font-size: .9rem; }
    .site-footer > .container-xxl > .d-flex, .site-footer > .container > .d-flex { gap: 1.5rem; }
    .blog-refresh { --blog-sticky-offset: 96px; }
}

:root { --site-accent: #4ab7ae; --site-background: #fff; --site-border: #e1e8eb; }
body > .site-header { padding: 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 3px 16px rgba(18,45,67,.06); }
body > .site-header img { max-width: 260px; max-height: none; }
body > .site-header .site-header-brand a { margin: 0 !important; }
#index #indexMain { bottom: 0; max-width: 680px; gap: 2rem; }
#index .index #indexLogo { width: 260px; max-width: 75%; height: auto; max-height: none; margin-bottom: 0 !important; }
#indexMain p { font-size: 1.05rem; line-height: 1.8; }
#overlay { overflow-y: auto; }
body #overlay .navbar-nav { margin-top: 112px; padding-bottom: 2rem; font-size: 1.5rem; }
#index2 .site-section { padding: 4rem 0; }
#index2 .section-heading { max-width: 720px; margin: 0 auto 2.5rem; text-align: center; }
#index2 .section-heading h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 1rem; }
#index2 .section-heading p { margin-bottom: 0; }
#index2 .reading-copy { max-width: 760px; margin: 0 auto; text-align: center; }
#index2 h3 { font-size: 1.25rem; margin-bottom: .75rem; }
#index2 p, #index2 li { line-height: 1.8; }
#index2 li + li { margin-top: .5rem; }
#index2 .cost-card { padding: 1.75rem; background: #f1f5f5; border-radius: var(--site-radius); }
#index2 .cost-card p { margin: 0; }
#index2 .team-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--site-radius); }
#index2 .team-bio { padding: 0; text-align: center; }
#index2 #slick2 .slick-track { display: flex; align-items: stretch; }
#index2 #slick2 .slick-slide { display: flex; flex-direction: column; height: auto; }
body.home #main { padding-top: 0; }
body > .site-footer > .container { max-width: 1320px; }
.site-footer .footer-links { margin-left: auto; flex: 0 0 auto; }
@media (max-width: 767px) {
    body > .site-header .site-header-brand img { max-width: 175px; height: 44px; }
    body > .site-header #contactLink { display: inline-flex; }
    #index .index { width: 90%; }
    #index .index #indexLogo { width: 220px; }
    #index2 .site-section { padding: 3rem 0; }
    .site-footer .footer-links { margin-left: 0; }
}

#index2 .site-section { scroll-margin-top: calc(var(--site-header-height) + 1.5rem); }

.footer-layout { gap: 2rem; }
.site-footer .footer-details { flex: 1 1 360px; max-width: 420px; }
.site-footer .footer-details p { max-width: 60ch; margin-bottom: .75rem; }
.site-footer .footer-links { flex: 0 0 auto; margin-left: auto; text-align: right; align-self: stretch; }
.site-footer .footer-links ul { list-style: none; padding: 0; margin: 0; }
.site-footer .footer-links a { display: block; }
.site-footer .footer-links .footer-social-links { align-items: flex-end; margin-bottom: 1.5rem; }
.site-footer .footer-partner img { width: 150px; max-height: 72px; object-fit: contain; }
.site-footer .footer-social img { width: 28px; height: 28px; object-fit: contain; }
.site-footer .footer-links #weird-wolf-logo { display: flex; justify-content: flex-end; flex: 0 0 auto; width: 42px; margin-top: auto; }
.site-footer .footer-links #weird-wolf-logo img { display: block; }
.site-footer .footer-details p:last-child { margin-bottom: 0; }
@media (max-width: 767px) {
    .site-footer .footer-details { flex-basis: 100%; }
    .site-footer .footer-links { margin-left: 0; }
}

/* AI: Let the opening screen scroll away before revealing the fixed homepage header. */
body.home:not(.intro-revealed) > .intro-header { position: fixed; top: 0; width: 100%; background: transparent; border-bottom: 1px solid transparent; box-shadow: none; }
body.home #indexIntro { height: 100dvh; min-height: 560px; background: #fafafa; }
body.home:not(.intro-revealed) .intro-header .site-header-brand { opacity: 0; pointer-events: none; }
body.home.intro-revealed > .intro-header { position: fixed; top: 0; width: 100%; }
body #overlay { inset: 0; z-index: 1100; }
body.menu-open { overflow: hidden; }
body.menu-open > .site-header { position: fixed; top: 0; width: 100%; z-index: 1101; background: #4ab7ae; border: 0; box-shadow: none; }
body.menu-open .site-header-brand, body.menu-open .site-header-brand img, body.menu-open .site-header-action { visibility: hidden !important; }
body.menu-open #hamburger { visibility: visible; }
#index2 .reading-copy ul { list-style-position: inside; padding: 0; text-align: center; }
#index2 .cost-card { text-align: center; }
#index2 #slick2 .team-card { padding: 0 .75rem; }
#index2 .team-card-inner { display: flex; flex: 1; flex-direction: column; padding: 1.5rem; border-radius: var(--site-radius); background: #fff; }
#index2 .team-photo { width: 100% !important; }
#index2 .team-bio p { font-size: .95rem; line-height: 1.75; }
#index2 .team-bio p:last-child { margin-bottom: 0; }

#index2 .blog-section-heading { padding-inline: 10px; }

/* AI: Match MBall's half-second header transition as the opening screen scrolls away. */
.site-header { transition: background-color .5s ease-in-out, border-color .5s ease-in-out, box-shadow .5s ease-in-out; }
.site-header .site-header-brand { transition: opacity .5s ease-in-out; }
@media (prefers-reduced-motion: reduce) {
    .site-header, .site-header .site-header-brand { transition: none; }
}

#index2 .blog-latest .blog-cards { gap: 0; }
#index2 .blog-latest .blog-card-column { width: 100%; padding-inline: .75rem; }
@media (min-width: 576px) {
    #index2 .blog-latest .blog-card-column { width: 50%; }
}
@media (min-width: 768px) {
    #index2 .blog-latest .blog-card-column { width: calc(100% / 3); }
}

#indexIntro .intro-scroll-cue { padding-bottom: calc(clamp(3rem, 6vh, 5rem) + env(safe-area-inset-bottom)); }
#arrowDown { display: block; width: 32px; height: auto; animation: intro-chevron-bounce 2.4s ease-in-out infinite; }
@keyframes intro-chevron-bounce {
    0%, 40%, 100% { transform: translateY(0); }
    20% { transform: translateY(-8px); }
    30% { transform: translateY(-3px); }
}
@media (prefers-reduced-motion: reduce) {
    #arrowDown { animation: none; }
}

/* AI: Match the contact layout across the three local sites using their existing forms. */
.contact-heading { margin: 2rem 0 3rem; }
.contact-layout { gap: 3rem; align-items: flex-start; padding-bottom: 3rem; }
.contact-location, .contact-enquiry { flex: 1 1 calc((100% - 3rem) / 2); min-width: 0; width: 100%; }
.contact-location { padding: 1.25rem; border: 1px solid var(--site-border); border-radius: var(--site-radius); background: #fafbfc; }
.contact-map { display: block; width: 100%; height: 300px; border: 0; border-radius: var(--site-radius); }
.contact-location-details { padding: 1.5rem 0 0; }
.contact-location-details h2 { font-size: 1.5rem; margin: 0 0 1rem; }
.contact-details-columns { gap: 1.5rem; }
.contact-details-columns > div { flex: 1 1 0; min-width: 0; }
.contact-details-columns address { margin: 0; }
.contact-details-columns a { overflow-wrap: anywhere; }
.contact-location-actions p { margin-bottom: 1.25rem; }
.contact-layout .btn-link { border: 1px solid var(--site-accent); background: #fff; color: var(--site-accent); }
.contact-layout .btn-link:hover { border-color: var(--site-accent); background: var(--site-accent); color: #fff; }
.contact-enquiry form { width: 100%; margin: 0; }
.contact-enquiry form label { display: block; width: 100%; font-size: .95rem; }
.contact-enquiry form .row { row-gap: 1.25rem; margin-bottom: 1.25rem; }
.contact-enquiry form p { margin: 0; }
.contact-enquiry form input:not([type=submit]):not([type=hidden]), .contact-enquiry form textarea { width: 100%; padding: .75rem 1rem; margin: .5rem 0 0; border: 1px solid #cbd5d9; background: #fff; color: inherit; border-radius: var(--site-control-radius); line-height: 1.5; }
.contact-enquiry form input:not([type=submit]):not([type=hidden]) { min-height: 48px; }
.contact-enquiry form textarea { height: 200px; min-height: 180px; resize: vertical; }
.contact-enquiry .wpcf7-spinner { display: none; }
.contact-enquiry .submitting .wpcf7-spinner { display: inline-block; }
@media (max-width: 575px) { .contact-layout { gap: 2rem; } }

.contact-page { padding-top: 1.5rem; }
.contact-page .contact-layout { padding-bottom: 2.5rem; }

.contact-location-actions { display: flex; flex-direction: column; align-items: flex-end; }
.contact-location-actions > p { align-self: stretch; text-align: right; }
.contact-location-actions > .btn-link { margin-top: auto; }

/* AI: Keep overlay navigation compact and distinguish service links from the main pages. */
body #overlay { overflow-y: auto; }
body #overlay .navbar-nav { margin: calc(var(--site-header-height) + .75rem) 0 0; padding: 0 0 2rem; list-style: none; }
body #overlay .navbar-nav li { margin: 0; padding: 0; }
body #overlay .navbar-nav a { display: block; padding: .3rem 0; font-size: clamp(1.4rem, 2vw, 1.75rem); line-height: 1.3; }
body #overlay .navbar-nav ul { list-style: none; margin: .4rem 0 .6rem; padding: 0 0 0 1.25rem; }
body #overlay .navbar-nav ul a { padding: .25rem 0; font-size: 1.1rem; line-height: 1.4; }

.thank-you-page { min-height: 45vh; }
.thank-you-page h1 { margin-bottom: 1.5rem; }
.thank-you-copy { max-width: 58ch; margin-bottom: 2rem; }
.thank-you-page .btn-link { background: #fff; border: 1px solid var(--site-accent); color: var(--site-accent); text-decoration: none; }
.thank-you-page .btn-link:hover, .thank-you-page .btn-link:focus-visible { background: var(--site-accent); border-color: var(--site-accent); color: #fff; text-decoration: none; }

body > #main { flex: 1 0 auto; }
body > .site-footer, body > #mailing { flex-shrink: 0; }
