/* Palette pulled from the original Squarespace theme:
   --accent (pale yellow), --darkAccent (muted teal), --lightAccent (warm beige),
   --black (dark teal-grey body text), --white. */
:root {
    --bg: #ffffff;
    --bg-soft: #faf9f6;
    --bg-accent: #FCFFCC;       /* pale yellow — original header */
    --bg-light: #DBD5C7;        /* warm beige — original lightAccent */
    --ink: #3F4847;             /* dark teal-grey — original "black" */
    --ink-soft: #6e7977;
    --accent: #495A57;          /* muted teal — original darkAccent */
    --accent-dark: #354543;
    --line: #e6e1d6;
    --radius: 4px;
    --max: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Shrink all text 15% on phones — every rem-based size scales from this root */
@media (max-width: 600px) {
    html { font-size: 85%; }
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Helvetica, Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }

h1, h2, h3, h4 {
    font-family: Helvetica, Arial, sans-serif;
    color: var(--ink);
    line-height: 1.2;
    margin: 0 0 .5em;
    font-weight: 400;          /* original site uses light/regular weights */
    letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4vw + 1rem, 3.5rem); font-weight: 300; }
h2 { font-size: clamp(1.5rem, 2vw + 1rem, 2.25rem); font-weight: 300; }
h3 { font-size: 1.25rem; font-weight: 500; }

p { margin: 0 0 1em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Buttons — match original muted-teal style */
.btn {
    display: inline-block;
    padding: .85rem 1.6rem;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: .95rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    transition: background .15s ease;
    border: 2px solid var(--accent);
}
.btn:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
    text-decoration: none;
}
.btn-outline {
    background: transparent;
    color: var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #fff; }

/* Header — pale yellow background like original.
   Desktop = 3-column grid: brand left | page links centered | phone+Book right. */
.site-header {
    background: var(--bg-accent);
    border-bottom: 1px solid rgba(0,0,0,.06);
    position: sticky; top: 0; z-index: 50;
}
.header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
    gap: 1.5rem;
    padding: 0 1.75rem;     /* no vertical padding — the logo defines header height */
    max-width: var(--max);
    margin: 0 auto;
}
.brand {
    display: flex; align-items: center;
    justify-self: start;
    flex-shrink: 0;
    height: 110px;          /* sets the header height */
}
.brand img {
    height: 100%;           /* logo fills the header from edge to edge */
    width: auto;
    display: block;
}

/* `display: contents` lets the inner ul/div become direct grid children */
.primary-nav { display: contents; }

.nav-pages {
    display: flex; gap: 1.75rem; align-items: center;
    list-style: none; margin: 0; padding: 0;
    justify-self: center;
}
.nav-pages a {
    color: var(--ink);
    font-weight: 400;
    font-size: .95rem;
    padding: .35rem 0;
    border-bottom: 2px solid transparent;
    line-height: 1.2;
}
.nav-pages a:hover {
    text-decoration: none;
    border-color: var(--accent);
    color: var(--accent);
}
.nav-pages a[aria-current="page"] { border-color: var(--accent); }

.nav-utility {
    display: flex; align-items: center; gap: 1rem;
    justify-self: end;
}
.nav-phone {
    color: var(--ink-soft);
    font-size: .9rem;
    text-decoration: none;
    white-space: nowrap;
}
.nav-phone:hover { color: var(--accent); }

.nav-cta.btn {
    padding: .6rem 1.2rem;
    font-size: .8rem;
    color: #fff;
    line-height: 1.2;
    white-space: nowrap;
}
.nav-cta.btn:hover { color: #fff; }

.nav-toggle {
    display: none;
    background: none; border: 0; cursor: pointer;
    width: 44px; height: 44px;
    flex-direction: column; gap: 5px; justify-content: center; align-items: center;
}
.nav-toggle .bar {
    width: 24px; height: 2px; background: var(--ink); border-radius: 2px;
}

@media (max-width: 900px) {
    /* Switch back to flex so brand and toggle bookend the row */
    .header-inner {
        display: flex; justify-content: space-between; align-items: center;
    }
    .brand { height: auto; }                      /* let flex centering do the work */
    .brand img { height: 64px; max-height: 64px; }
    .nav-toggle {
        display: flex;
        width: 52px; height: 52px;
        gap: 6px;
    }
    .nav-toggle .bar { width: 30px; height: 3px; }

    /* Override `display: contents` so the nav becomes a real dropdown panel */
    .primary-nav {
        display: block;
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--bg-accent);
        border-bottom: 1px solid rgba(0,0,0,.06);
        max-height: 0; overflow: hidden;
        transition: max-height .25s ease;
        padding: 0;
    }
    .primary-nav.is-open { max-height: 520px; }

    .nav-pages {
        flex-direction: column; align-items: stretch;
        padding: .75rem 1.5rem 0;
        gap: 0;
        justify-self: stretch;
    }
    .nav-pages li { width: 100%; }
    .nav-pages a {
        display: block;
        padding: .85rem 0;
        text-align: center;
        border-bottom: 1px solid rgba(0,0,0,.08);
    }

    .nav-utility {
        flex-direction: column; align-items: stretch;
        gap: .5rem;
        padding: .75rem 1.5rem 1rem;
        justify-self: stretch;
    }
    .nav-phone { padding: .5rem 0; text-align: center; }
    .nav-cta.btn { display: block; text-align: center; }
}

/* Photo sections — full-bleed image with centered white text overlay (matches original Squarespace layout) */
.photo-section {
    position: relative;
    min-height: 80vh;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    background-size: cover;
    background-position: center;
    padding: 6rem 1.5rem;
    text-align: center;
}
.photo-section .overlay {
    position: absolute; inset: 0;
    background: rgba(20, 28, 26, .42);
    pointer-events: none;
}
.photo-section-content {
    position: relative; z-index: 1;
    max-width: 780px;
}
.photo-section h1, .photo-section h2 {
    color: #fff;
    font-weight: 300;
    letter-spacing: -0.005em;
}
.photo-section h1 { font-size: clamp(1.8rem, 3vw + 1rem, 2.75rem); line-height: 1.25; }
.photo-section h2 { font-size: clamp(1.6rem, 2.5vw + 1rem, 2.25rem); margin-bottom: 1.25rem; }
.photo-section p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255,255,255,.95);
    max-width: 680px;
    margin-left: auto; margin-right: auto;
}
.photo-section .eyebrow {
    text-transform: uppercase;
    letter-spacing: .15em;
    font-size: .85rem;
    color: rgba(255,255,255,.85);
    margin-bottom: 1.5rem;
}
.photo-section .btn-row {
    margin-top: 2rem;
    display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
}
.photo-section .btn-outline { color: #fff; border-color: #fff; background: transparent; }
.photo-section .btn-outline:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* Hero fills the full viewport */
.hero {
    min-height: 100vh;
    min-height: 100dvh;  /* dvh accounts for mobile browser chrome */
}

/* Yellow accent band — used for "Hours and Location" and similar */
.band-yellow {
    background: var(--bg-accent);
    padding: 5rem 1.5rem;
    color: var(--ink);
}
.band-yellow h2 { font-weight: 300; margin-bottom: 1rem; }
.band-yellow .text-center { text-align: center; }
.band-yellow a { color: var(--accent); }

/* Generic sections (used on inner pages) */
section { padding: 5rem 0; }
section.alt { background: var(--bg-soft); }
section.beige { background: var(--bg-light); }

.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { font-weight: 300; }
.section-title p { color: var(--ink-soft); max-width: 38rem; margin: 0 auto; }

.feature-grid {
    display: grid; gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.feature {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem;
}
.feature h3 { margin-top: 0; color: var(--accent); font-weight: 500; }

/* Service / policy lists */
.stack > * + * { margin-top: 2rem; }

.service-card, .policy-card {
    background: #fff;
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    padding: 1.75rem 2rem;
    border-radius: var(--radius);
}
.service-card h3, .policy-card h3 {
    color: var(--accent);
    margin-top: 0;
    font-weight: 500;
}
.service-card ul {
    columns: 2; column-gap: 2.5rem;
    padding-left: 1.25rem; margin: .5rem 0 0;
}
.service-card ul li { break-inside: avoid; margin-bottom: .35rem; }
@media (max-width: 600px) { .service-card ul { columns: 1; } }

.note {
    background: var(--bg-light);
    border-left: 3px solid var(--ink-soft);
    padding: .85rem 1.25rem;
    border-radius: var(--radius);
    font-style: italic;
    color: var(--ink);
    font-size: .95rem;
}

/* Team — each groomer is a block: photo slideshow + bio side by side, then grooms slideshow */
.team-stack > * + * { margin-top: 5rem; }

.team-member {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
}
@media (max-width: 820px) {
    .team-member { grid-template-columns: 1fr; gap: 1.75rem; }
}

.team-member-bio h3 {
    margin-bottom: .25rem;
    font-weight: 500;
    font-size: 1.6rem;
}
.team-member-bio .role {
    color: var(--accent);
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 1.25rem;
}

.team-grooms { margin-top: 2rem; }
.team-grooms-title {
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--ink-soft);
    margin-bottom: 1rem;
    text-align: center;
}

/* Slideshow component */
.slideshow {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--bg-soft);
}
.slideshow-track { position: absolute; inset: 0; }
.slideshow-slide {
    position: absolute; inset: 0;
    opacity: 0;
    transition: opacity .6s ease;
}
.slideshow-slide.is-active { opacity: 1; }
.slideshow-slide img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.slideshow-arrow {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px;
    background: rgba(255,255,255,.85);
    border: 0; border-radius: 50%;
    color: var(--ink);
    font-size: 1.5rem; line-height: 1;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: opacity .2s ease, background .15s ease;
    z-index: 2;
}
.slideshow:hover .slideshow-arrow,
.slideshow:focus-within .slideshow-arrow { opacity: 1; }
.slideshow-arrow:hover { background: #fff; }
.slideshow-prev { left: 12px; }
.slideshow-next { right: 12px; }

.slideshow-dots {
    position: absolute;
    bottom: 12px; left: 50%;
    transform: translateX(-50%);
    display: flex; gap: 6px;
    z-index: 2;
}
.slideshow-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    border: 0;
    background: rgba(255,255,255,.55);
    cursor: pointer;
    padding: 0;
    transition: background .15s ease, transform .15s ease;
}
.slideshow-dot:hover { background: rgba(255,255,255,.85); }
.slideshow-dot.is-active { background: #fff; transform: scale(1.3); }

.slideshow-caption {
    text-align: center;
    color: var(--ink-soft);
    font-size: .9rem;
    margin-top: .75rem;
}

/* Touch-friendly: hide arrows on small screens, tap to advance */
@media (max-width: 600px) {
    .slideshow-arrow { display: none; }
}

/* CTA band */
.cta-band {
    background: var(--accent);
    color: #fff;
    text-align: center;
    padding: 4rem 1.5rem;
}
.cta-band h2 { color: #fff; font-weight: 300; }
.cta-band p { color: rgba(255,255,255,.9); }
.cta-band .btn {
    background: #fff;
    color: var(--accent);
    border-color: #fff;
}
.cta-band .btn:hover {
    background: var(--bg-accent);
    border-color: var(--bg-accent);
    color: var(--accent-dark);
}

/* Footer */
.site-footer {
    background: var(--ink);
    color: #d4d8d7;
    padding: 4rem 0 1.5rem;
}
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 1rem; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; }
.site-footer a { color: #d4d8d7; }
.site-footer a:hover { color: #fff; }
.footer-grid {
    display: grid; gap: 2.5rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.social { list-style: none; padding: 0; margin: 0 0 1rem; }
.social li { display: inline-block; margin-right: 1.25rem; }
.footer-bottom {
    margin-top: 2.5rem; padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,.08);
    text-align: center; color: rgba(255,255,255,.5);
    font-size: .85rem;
}

/* Page header (non-home) — muted teal-green so it doesn't bleed into the yellow site header */
.page-header {
    background: var(--accent);
    padding: 2.25rem 0 2rem;
    text-align: center;
    color: #fff;
    border-bottom: 1px solid rgba(0,0,0,.1);
}
.page-header h1 { font-weight: 300; color: #fff; margin-bottom: .35em; }
.page-header h1:last-child { margin-bottom: 0; }
.page-header p {
    color: rgba(255,255,255,.9);
    max-width: 38rem;
    margin: 0 auto;
    font-size: .95rem;
}
