/* ASH & HOUND editorial layer.
   Loaded last on every page that carries data-page, after theme.css and
   experience.css, so the whole site reads like the homepage: white ground,
   black and grey sans-serif type, rounded photography, pill buttons, and very
   little decorative UI. Nothing here changes copy or markup; it re-skins
   what each page already has.

   Selectors are written as body[data-page][data-page] ... on purpose. The
   doubled attribute lifts specificity above experience.css (which prefixes
   its rules with body[data-page]) and the suburb and page-level rules, so
   this file wins without !important and without editing forty inline style
   blocks. Rules that need to beat services.css carry #main as that file does. */

:root {
    --ink: #111111;
    --muted: #6b6b6b;
    --line: #ececec;
    --wash: #f7f6f3;
    --round: 18px;
    --gutter: clamp(1rem, 3vw, 2.5rem);
    /* Re-point the site tokens so colour-only rules on every page follow */
    --primary: #111111;
    --secondary: #6b6b6b;
    --border: #ececec;
    --cream: #f7f6f3;
    --link: #111111;
    --deep-sage: #111111;
    --dark-sage: #6b6b6b;
    --sage: #e4e6df;
    --accent: #e4e6df;
    --radius: 18px;
    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: none;
    --font-serif: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
}

/* ── Type ──────────────────────────────────────────────────────────────── */
/* :where() adds no specificity, so this is (0,2,1): above any class-only rule
   on a page, below anything this file states more precisely. */
body[data-page][data-page] :where(main, header, footer, .ah-dock) :where(*:not(.signature):not(svg):not(svg *)) {
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
}
body[data-page][data-page] {
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400; font-size: 1rem; line-height: 1.65;
    color: var(--ink); background: #fff;
}
body[data-page][data-page] :is(h1, h2, h3, h4, .section-title, .content-section h2, .team-section h2,
    .moments-head h2, .founder-text h2, .wall-head h2, .page-hero h1, .hero h1, .cta-section h2,
    .blog-hero h1, .blog-content h2, .region-hero h1, .region-page h2, .post-card h2, .blog-card h2,
    .hero-title, .team-card h3, .service-card h3, .faq-item h3, .r-card h3, .tip-card h3) {
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400; letter-spacing: -0.01em; text-transform: none; line-height: 1.2;
    color: var(--ink); text-shadow: none; font-style: normal;
}
body[data-page][data-page] :is(h1, .page-hero h1, .hero h1, .blog-hero h1, .region-hero h1, .hero-title) {
    font-size: clamp(1.9rem, 3.6vw, 2.9rem);
}
body[data-page][data-page] :is(h2, .section-title, .content-section h2, .cta-section h2, .blog-content h2) {
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
}
body[data-page][data-page] :is(h3, .service-card h3, .team-card h3, .faq-item h3) { font-size: 1.05rem; font-weight: 500; }
body[data-page][data-page] :is(h4) { font-size: 0.95rem; font-weight: 500; }
body[data-page][data-page] .blog-content h2::before { display: none; }
body[data-page][data-page] :is(.blog-content h3, .group-label, .section-eyebrow, .eyebrow, .pill-badge,
    .card-label, .role-tag, .step-name, .services-eyebrow, .services-location, .blog-meta, .tip-card-meta,
    .hero-eyebrow, .team-location, .card-link-hint, .r-source, .partner-suburb, .footer-areas p) {
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--muted); border: 0; background: transparent; padding: 0;
}
body[data-page][data-page] :is(p, li) { font-style: normal; }
body[data-page][data-page] :is(.content-section, .blog-content, .founder-text) :is(p, li) { font-size: 1rem; line-height: 1.75; color: var(--muted); }
body[data-page][data-page] :is(.content-section, .blog-content) p { max-width: 64ch; }
body[data-page][data-page] em, body[data-page][data-page] i { font-style: italic; }
body[data-page][data-page] main a:not([class]) { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; border: 0; }
body[data-page][data-page] main a:not([class]):hover { color: var(--muted); }
body[data-page][data-page] ::selection { background: var(--ink); color: #fff; }
body[data-page][data-page] :focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
body[data-page][data-page] .skip-link { background: var(--ink); color: #fff; border-radius: 0 0 999px 0; top: -80px; }
body[data-page][data-page] .skip-link:focus { top: 0; }
html { scrollbar-color: #c9c9c9 transparent; }
::-webkit-scrollbar-thumb { background: #c9c9c9; }

/* ── Header ────────────────────────────────────────────────────────────── */
body[data-page][data-page] header {
    position: sticky; top: 0; z-index: 100;
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
    height: 64px; padding: 0 var(--gutter); gap: 1rem;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
    -webkit-backdrop-filter: none; backdrop-filter: none;
    transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}
/* editorial.js hides the bar while scrolling down and brings it back on the
   first scroll up, so a long page keeps its full height for the photos. */
body[data-page][data-page] header.ed-hidden { transform: translateY(-100%); }
body[data-page][data-page] header nav { display: flex; gap: 1.75rem; align-items: center; grid-column: 1; grid-row: 1; justify-self: start; }
body[data-page][data-page] header nav a,
body[data-page][data-page] .header-actions a:not(.pill-btn) {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0;
    font-size: 0.78rem; font-weight: 400; letter-spacing: 0.02em;
    text-transform: none; color: var(--ink); text-decoration: none;
    background: transparent; border: 0;
    /* an underline that draws in from the left on hover */
    background-image: linear-gradient(var(--ink), var(--ink));
    background-repeat: no-repeat; background-size: 0 1px; background-position: 0 calc(50% + 0.75em);
    transition: background-size 0.3s ease, color 0.3s ease;
}
body[data-page][data-page] header nav a:hover,
body[data-page][data-page] header nav a:focus-visible,
body[data-page][data-page] .header-actions a:not(.pill-btn):hover { color: var(--ink); background-size: 100% 1px; }
body[data-page][data-page] header nav a[aria-current="page"] { background-size: 100% 1px; text-decoration: none; }
body[data-page][data-page] header nav .nav-mobile-only { display: none; }
body[data-page][data-page] header .logo {
    grid-column: 2; grid-row: 1; justify-self: center;
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.05rem; font-weight: 400; letter-spacing: 0.32em; padding-left: 0.32em;
    color: var(--ink); text-decoration: none; white-space: nowrap;
}
body[data-page][data-page] header .logo:hover { color: var(--ink); }
body[data-page][data-page] .header-actions { grid-column: 3; grid-row: 1; justify-self: end; display: flex; align-items: center; gap: 1.5rem; }
body[data-page][data-page] .header-actions .pill-btn { min-height: 36px; padding: 0 1.1rem; font-size: 0.74rem; }
body[data-page][data-page] .menu-toggle { display: none; }
/* The three pages without a drawer keep a plain row: wordmark left, links right. */
body[data-page][data-page] header:not(:has(nav[data-drawer])) { display: flex; justify-content: space-between; height: auto; min-height: 64px; flex-wrap: wrap; }
body[data-page][data-page] header:not(:has(nav[data-drawer])) nav { gap: 1.25rem; flex-wrap: wrap; }
body[data-page][data-page] header:not(:has(nav[data-drawer])) .logo { padding-left: 0; }
body[data-page][data-page] header nav a.nav-cta {
    min-height: 36px; padding: 0 1.1rem; border-radius: 999px; background: var(--ink); color: #fff;
    background-image: none; font-weight: 500; font-size: 0.74rem; letter-spacing: 0.06em;
}
body[data-page][data-page] header nav a.nav-cta:hover { background: #333; color: #fff; transform: none; box-shadow: none; }

/* ── Buttons ───────────────────────────────────────────────────────────── */
body[data-page][data-page] :is(.pill-btn, .cta-button, .card-btn, .btn, .submit-btn, .leave-btn, .btn-next, .btn-back,
    .services-primary, .blog-cta a, .region-cta a.btn, .hero-cta, .leave .btn, .r-more, .primary-btn, .secondary-btn),
body[data-page][data-page] #main :is(.card-btn, .services-primary) {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
    min-height: 44px; padding: 0 1.5rem; border-radius: 999px; width: auto;
    background: var(--ink); color: #fff; border: 1px solid var(--ink);
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.8rem; font-weight: 500; letter-spacing: 0.06em; line-height: 1;
    text-transform: none; text-decoration: none; cursor: pointer; white-space: nowrap;
    box-shadow: none; transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
body[data-page][data-page] :is(.pill-btn, .cta-button, .card-btn, .btn, .submit-btn, .leave-btn, .btn-next, .btn-back,
    .services-primary, .blog-cta a, .hero-cta, .r-more, .primary-btn, .secondary-btn):hover,
body[data-page][data-page] #main :is(.card-btn, .services-primary):hover {
    background: #333; color: #fff; border-color: #333; transform: none; box-shadow: none;
}
/* Quieter second actions keep the outline only */
body[data-page][data-page] :is(.btn-back, .leave-btn.facebook, .cta-button--ghost, .secondary-btn, .blog-cta a + a, .pill-btn--ghost),
body[data-page][data-page] #main .card-btn.secondary {
    background: transparent; color: var(--ink); border-color: var(--ink);
}
body[data-page][data-page] :is(.btn-back, .leave-btn.facebook, .cta-button--ghost, .secondary-btn, .blog-cta a + a, .pill-btn--ghost):hover,
body[data-page][data-page] #main .card-btn.secondary:hover { background: var(--ink); color: #fff; }
body[data-page][data-page] :is(.btn, .submit-btn, button):disabled { opacity: 0.45; }
body[data-page][data-page] .back-to-top { background: var(--ink); color: #fff; border-radius: 50%; box-shadow: none; }
body[data-page][data-page] .back-to-top:hover { background: #333; }

/* Text links that were sage-underlined uppercase labels */
body[data-page][data-page] :is(.specialisation-link, .gallery-cta a, .text-link, .card-link, .card-link-hint, .service-nav a,
    .cta-links a, .how-we-work-note a, .content-section a, .footer-links a) {
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif; text-transform: none; letter-spacing: 0;
    color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; border: 0;
}
body[data-page][data-page] :is(.specialisation-link, .gallery-cta a, .text-link, .card-link, .card-link-hint, .cta-links a, .content-section a):hover { color: var(--muted); }

/* ── Surfaces and cards ────────────────────────────────────────────────── */
body[data-page][data-page] :is(.alt-bg, .services, .updates, .pet-care-tips, .page-hero, .hero, .founder-section, .wall, .leave,
    .faq-section, .testimonials, .region-hero, .region-cta, .form-section, .looking-for, .practical, .posts, .blog-cta,
    .how-it-works, .enquiry-section, .editorial-section, .services-hero, .service-section, .moments, .contact, .cta-section) {
    background: #fff; color: var(--ink);
}
body[data-page][data-page] :is(.alt-bg, .blog-cta, .testimonial-block, .founder-text .highlight, .editorial-section) { background: var(--wash); border: 0; }
body[data-page][data-page] :is(.cta-section, .contact, .region-cta, .leave) { border-top: 1px solid var(--line); text-align: center; padding: clamp(4rem, 8vw, 6rem) var(--gutter); }
body[data-page][data-page] :is(.cta-section, .contact, .region-cta) :is(h2, p, a:not([class])) { color: var(--ink); opacity: 1; }
body[data-page][data-page] :is(.cta-section, .contact, .region-cta) p { color: var(--muted); }
body[data-page][data-page] .contact::before { display: none; }
body[data-page][data-page] :is(.service-card, .team-card, .post-card, .blog-card, .tip-card, .r-card, .value-card, .feature,
    .faq-item, .rate-card, .partner-entry, .form-card, .testimonial, .testimonial-block, .how-we-work-item, .w-card, .instax, .polaroid) {
    background: #fff; border: 1px solid var(--line); border-radius: var(--round); box-shadow: none; overflow: hidden;
    transition: border-color 0.3s ease;
}
body[data-page][data-page] :is(.service-card, .team-card, .post-card, .blog-card, .tip-card, .r-card, .faq-item, .rate-card, .partner-entry, .feature):hover {
    transform: none; box-shadow: none; border-color: #c9c9c9;
}
body[data-page][data-page] .faq-item { border-radius: 0; border-width: 0 0 1px; }
body[data-page][data-page] .r-card, body[data-page][data-page] .r-card :is(p, span, div, cite, a) { color: var(--ink); }
body[data-page][data-page] .r-card .r-text { font-style: normal; color: var(--ink); }
body[data-page][data-page] .r-card :is(.r-who, .r-source, .r-author) { color: var(--muted); }
body[data-page][data-page] .r-card::before { color: #d9d9d9; }
body[data-page][data-page] .signature { color: var(--muted); }
body[data-page][data-page] .faq-item summary, body[data-page][data-page] summary { font-size: 1rem; color: var(--ink); }
body[data-page][data-page] details[open] summary { color: var(--muted); }
body[data-page][data-page] .polaroid { transform: none; padding: 0; border: 0; }
body[data-page][data-page] .polaroid .pcap { font-size: 0.72rem; letter-spacing: 0.14em; color: var(--muted); margin-top: 0.75rem; }
body[data-page][data-page] .polaroid img { border-radius: var(--round); }
body[data-page][data-page] :is(.testimonial-block, .blog-cta) { border-left: 0; padding: 2rem; }
body[data-page][data-page] .testimonial-block .quote { font-style: normal; font-size: 1.1rem; color: var(--ink); }
body[data-page][data-page] :is(.review-stars, .r-stars, .google-stars, .google-rating-stars) { color: var(--ink); }
body[data-page][data-page] :is(.r-avatar, .team-card.featured .team-photo) { border-radius: 50%; }
body[data-page][data-page] :is(.rating-badge, .google-rating-display, .google-badge, .pill-option, .suburb-links a) {
    border: 1px solid var(--line); border-radius: 999px; background: #fff; box-shadow: none; color: var(--ink);
    text-transform: none; letter-spacing: 0.02em; font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
}
body[data-page][data-page] :is(.suburb-links a):hover { background: var(--ink); color: #fff; border-color: var(--ink); }
body[data-page][data-page] .pill-option.selected, body[data-page][data-page] .pill-option[aria-pressed="true"],
body[data-page][data-page] .pill-option:has(input:checked) { background: var(--ink); color: #fff; border-color: var(--ink); }
body[data-page][data-page] main img:not(.team-photo):not(.r-avatar img) { border-radius: min(var(--round), 10%); }
body[data-page][data-page] :is(.service-card, .post-card, .tip-card, .blog-card) img { border-radius: 0; }
body[data-page][data-page] :is(.service-card, .post-card, .tip-card, .blog-card, .team-card) picture img { transition: transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1); }
body[data-page][data-page] :is(.service-card, .post-card, .tip-card, .blog-card):hover picture img { transform: scale(1.03); }
body[data-page][data-page] :is(input, select, textarea):not([type="checkbox"]):not([type="radio"]) {
    border: 1px solid #cfcfcf; border-radius: 12px; background: #fff; color: var(--ink);
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
}
body[data-page][data-page] :is(input, select, textarea):focus { border-color: var(--ink); box-shadow: none; outline: none; }
body[data-page][data-page] input[type="checkbox"], body[data-page][data-page] input[type="radio"] { accent-color: var(--ink); }
body[data-page][data-page] .stepper .step-num { background: var(--ink); color: #fff; border-color: var(--ink); }
body[data-page][data-page] .steps .step-num { color: var(--muted); }

/* ── Heroes: text on white, the photo in a rounded frame beneath it ─────── */
/* Suburb and anxious-pet pages paint a darkened photo behind white capitals.
   The pseudo-element is kept, taken out of the background and set below the
   heading as a rounded landscape, so the same photo reads as a lookbook plate. */
body[data-page^="pet-sitting-"][data-page] main > .hero,
body[data-page="anxious-pet-care-brisbane"][data-page] main > .hero {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    min-height: 0; padding: clamp(3rem, 6vw, 4.5rem) var(--gutter) 0; overflow: visible;
}
body[data-page^="pet-sitting-"][data-page] main > .hero::before,
body[data-page="anxious-pet-care-brisbane"][data-page] main > .hero::before {
    content: ''; position: static; order: 2; display: block; inset: auto;
    width: min(100%, 1440px); aspect-ratio: 16 / 7; margin-top: clamp(2rem, 4vw, 3rem);
    border-radius: var(--round); filter: none; background-size: cover; background-position: center 40%;
}
body[data-page^="pet-sitting-"][data-page] main > .hero .hero-content,
body[data-page="anxious-pet-care-brisbane"][data-page] main > .hero .hero-content { order: 1; max-width: 760px; }
body[data-page][data-page] main > .hero :is(h1, .hero h1) { color: var(--ink); margin-bottom: 1rem; }
body[data-page][data-page] main > .hero p { color: var(--muted); font-size: 1rem; }
body[data-page][data-page] main > .hero :is(.cta-button, .btn) { margin-top: 1.5rem; }
body[data-page][data-page] .page-hero { padding: clamp(3rem, 6vw, 4.5rem) var(--gutter) 2rem; text-align: center; background: #fff; }
body[data-page][data-page] .page-hero :is(h1, p, .hero-sub) { color: var(--ink); opacity: 1; }
body[data-page][data-page] .page-hero :is(p, .hero-sub) { color: var(--muted); font-size: 1.05rem; max-width: 560px; margin-inline: auto; }
body[data-page][data-page] .hero-image { padding: 0 var(--gutter); }
body[data-page][data-page] .hero-image img { border-radius: var(--round); }
/* Enquiry: the immersive hero becomes a small heading above a rounded plate */
body[data-page][data-page] .hero-immersive { height: auto; min-height: 0; display: flex; flex-direction: column; padding: clamp(2.5rem, 5vw, 3.5rem) var(--gutter) 0; }
body[data-page][data-page] .hero-immersive .hero-overlay { display: none; }
body[data-page][data-page] .hero-immersive .hero-bg { position: static; order: 2; margin-top: 2rem; border-radius: var(--round); overflow: hidden; aspect-ratio: 16 / 6; max-width: 1440px; width: 100%; align-self: center; }
body[data-page][data-page] .hero-immersive .hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; border-radius: 0; }
body[data-page][data-page] .hero-immersive .hero-content { position: static; order: 1; text-align: center; padding: 0; }
body[data-page][data-page] .hero-immersive :is(.hero-title, .hero-sub, .hero-eyebrow) { color: var(--ink); text-shadow: none; }
body[data-page][data-page] .hero-immersive .hero-sub { color: var(--muted); }
body[data-page][data-page] .hero-immersive .hero-eyebrow { color: var(--muted); }
/* Reviews hero */
body[data-page][data-page] .hero .reviews-intro { color: var(--muted); }
body[data-page][data-page] .hero h1 em { font-family: inherit; font-style: normal; color: var(--muted); letter-spacing: 0; font-size: 0.5em; font-weight: 400; }
/* Services hero */
body[data-page][data-page] #main .services-hero { background: #fff; padding-top: 3rem; }
body[data-page][data-page] #main .services-hero h1 { font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif; font-weight: 400; font-size: clamp(1.9rem, 3.6vw, 2.9rem); letter-spacing: -0.01em; }
body[data-page][data-page] #main .services-hero h1 em { color: var(--muted); font-style: normal; }
body[data-page][data-page] #main .services-hero p { font-size: 1.05rem; }
body[data-page][data-page] .services-portrait img { border-radius: var(--round); }
body[data-page][data-page] .services-portrait figcaption { font-style: normal; font-size: 0.8rem; }
body[data-page][data-page] #main .section-header h2 { font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif; font-weight: 400; letter-spacing: -0.01em; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
body[data-page][data-page] #main .service-nav { border-color: var(--line); }
body[data-page][data-page] #main .service-nav span { font-style: normal; color: var(--muted); font-size: 0.8rem; }
body[data-page][data-page] .care-comparison-note { border-left-color: var(--ink); }
/* Blog posts */
body[data-page][data-page] .blog-hero { min-height: 0; padding: clamp(3rem, 6vw, 4.5rem) var(--gutter) 2rem; background: #fff; text-align: center; }
body[data-page][data-page] .blog-hero::after, body[data-page][data-page] .blog-hero::before { display: none; }
body[data-page][data-page] .blog-hero :is(h1, .blog-meta) { color: var(--ink); }
body[data-page][data-page] .blog-meta { color: var(--muted); }
body[data-page][data-page] .blog-content > p:first-of-type, body[data-page][data-page] .blog-lede { font-size: 1.15rem; color: var(--ink); }
body[data-page][data-page] .blog-content li::marker { color: var(--ink); }
/* Region pages (areas, coasts, in-home sitting) */
body[data-page][data-page] .region-hero { background: #fff; }
body[data-page][data-page] .region-page h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }

/* ── Footer and dock ───────────────────────────────────────────────────── */
body[data-page][data-page] .ah-footer { background: #fff; border-top: 1px solid var(--line); padding: 3.5rem var(--gutter) 2rem; font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif; }
body[data-page][data-page] .ah-footer-logo img { width: 120px !important; border-radius: 0; }
body[data-page][data-page] .ah-footer-tagline { font-family: inherit; font-style: normal; font-size: 0.8rem; color: var(--muted); }
body[data-page][data-page] .ah-footer-col h2 { font-size: 0.7rem; letter-spacing: 0.14em; font-weight: 500; color: var(--muted); text-transform: uppercase; }
body[data-page][data-page] .ah-footer-col a, body[data-page][data-page] .ah-footer-social a { font-size: 0.8rem; letter-spacing: 0; color: var(--ink); line-height: 1.5; padding-block: 0.4rem; text-decoration: none; }
body[data-page][data-page] .ah-footer-col a:hover, body[data-page][data-page] .ah-footer-social a:hover, body[data-page][data-page] .ah-footer-legal a:hover { color: var(--muted); text-decoration: none; }
body[data-page][data-page] .ah-footer-legal, body[data-page][data-page] .ah-footer-copy { font-size: 0.74rem; color: var(--muted); border-color: var(--line); }
body[data-page][data-page] .ah-footer-legal a { color: var(--muted); display: inline-flex; align-items: center; min-height: 40px; }
@media (max-width: 768px) {
    body[data-page][data-page] .ah-dock { border-top-color: var(--line); background: rgba(255, 255, 255, 0.92); }
    body[data-page][data-page] .ah-dock a { border-radius: 999px; border-color: var(--line); text-transform: none; letter-spacing: 0.02em; font-size: 0.82rem; font-weight: 500; color: var(--ink); padding: 0.8rem 0; }
    body[data-page][data-page] .ah-dock a.ah-dock-cta { background: var(--ink); border-color: var(--ink); color: #fff; }
}

/* Join hides its .reveal blocks without a script guard; without JS they would
   never return, so give them back when editorial.js has not run. */
html:not(.ed-js) body[data-page="join"] .reveal { opacity: 1; transform: none; }

/* ── Reveal on scroll for pages with no motion of their own ────────────── */
/* editorial.js sets html.ed-js and marks top-level sections data-ed-reveal.
   Hidden only under that class, so a page with JS off or broken renders whole. */
html.ed-js [data-ed-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1); }
html.ed-js [data-ed-reveal].ed-in { opacity: 1; transform: none; }
html.ed-js body[data-page] { animation: ed-page-in 0.6s ease both; }
@keyframes ed-page-in { from { opacity: 0; } to { opacity: 1; } }

/* ── Phone ─────────────────────────────────────────────────────────────── */
@media (max-width: 1000px) {
    body[data-page][data-page] header nav { gap: 1.1rem; }
    body[data-page][data-page] .header-actions { gap: 1rem; }
}
@media (max-width: 768px) {
    body[data-page][data-page] header { height: 58px; padding-block: 0; grid-template-columns: 44px 1fr auto; }
    body[data-page][data-page] .menu-toggle {
        display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
        width: 44px; min-width: 44px; height: 44px; padding: 0; cursor: pointer; grid-column: 1; grid-row: 1; z-index: 1001;
    }
    body[data-page][data-page] .menu-toggle span { width: 20px; height: 1.5px; background: var(--ink); opacity: 1; transition: transform 0.25s ease, opacity 0.25s ease; }
    body[data-page][data-page] .menu-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
    body[data-page][data-page] .menu-toggle.active span:nth-child(2) { opacity: 0; }
    body[data-page][data-page] .menu-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
    body[data-page][data-page] header .logo { grid-column: 2; font-size: 0.92rem; letter-spacing: 0.26em; padding-left: 0.26em; }
    body[data-page][data-page] .header-actions a.header-guides { display: none; }
    body[data-page][data-page] header nav[data-drawer] {
        position: fixed; top: 58px; left: 0; right: 0; bottom: auto; width: auto; height: auto; z-index: 99;
        flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; justify-self: stretch;
        max-height: calc(100dvh - 58px); overflow-y: auto; overscroll-behavior: contain;
        padding: 0.5rem var(--gutter) 1.5rem; background: #fff; border-bottom: 1px solid var(--line); box-shadow: none;
        opacity: 0; transform: translateY(-8px); pointer-events: none;
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
    }
    body[data-page][data-page] header nav[data-drawer].active { opacity: 1; transform: none; pointer-events: auto; transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0s; }
    body[data-page][data-page] header nav[data-drawer] a { font-size: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line); min-height: 52px; width: 100%; text-align: left; background-image: none; }
    body[data-page][data-page] header nav[data-drawer] a:last-child { border-bottom: 0; }
    body[data-page][data-page] header nav[data-drawer] a.nav-cta { display: none; }
    body[data-page][data-page] header nav .nav-mobile-only { display: inline-flex; }
    body[data-page][data-page] header:not(:has(nav[data-drawer])) { padding: 0.75rem var(--gutter); }
    body[data-page^="pet-sitting-"][data-page] main > .hero::before,
    body[data-page="anxious-pet-care-brisbane"][data-page] main > .hero::before { aspect-ratio: 4 / 5; }
    body[data-page][data-page] .hero-immersive .hero-bg { aspect-ratio: 4 / 5; }
}

@media (prefers-reduced-motion: reduce) {
    html.ed-js [data-ed-reveal] { opacity: 1; transform: none; transition: none; }
    html.ed-js body[data-page] { animation: none; }
    body[data-page][data-page] header { transition: none; }
}

/* ── Polish pass ────────────────────────────────────────────────────────
   The restyle made the site consistent; this makes it pleasant. A larger,
   lighter display scale so a heading can carry a page, body copy a shade
   darker and a touch larger so it reads as prose rather than fine print,
   more air between sections, warmer washes, and the two layouts that read
   awkwardly fixed: the lone portrait on suburb pages sits beside its copy,
   and the sitter cards on About get room to breathe. Order in the file
   does the overriding; the selectors match the ones above. */
:root {
    --ink: #141414;
    --muted: #6f6a66;
    --body: #3a3733;
    --line: #e8e4de;
    --wash: #f6f3ee;
    --round: 20px;
}
body[data-page][data-page] { font-size: 1.05rem; line-height: 1.7; color: var(--body); }
body[data-page][data-page] :is(h1, h2, h3, h4) { text-wrap: balance; }
body[data-page][data-page] p { text-wrap: pretty; }
body[data-page][data-page] :is(h1, .page-hero h1, .hero h1, .blog-hero h1, .region-hero h1, .hero-title, .home-headline) {
    font-size: clamp(2.3rem, 4.6vw, 3.8rem); font-weight: 300; letter-spacing: -0.025em; line-height: 1.08; color: var(--ink);
}
body[data-page][data-page] #main .services-hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.8rem); font-weight: 300; letter-spacing: -0.025em; line-height: 1.08; }
body[data-page][data-page] :is(h2, .section-title, .content-section h2, .cta-section h2, .blog-content h2, .block-head h2, .statement h2),
body[data-page][data-page] #main .section-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 300; letter-spacing: -0.02em; line-height: 1.15; color: var(--ink);
}
body[data-page][data-page] :is(h3, .service-card h3, .team-card h3, .faq-item h3) { font-size: 1.2rem; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
body[data-page][data-page] :is(.content-section, .blog-content, .founder-text, .campaign-copy, .areas-copy, .block-head) :is(p, li) { font-size: 1.08rem; line-height: 1.75; color: var(--body); }
body[data-page][data-page] :is(.hero-lead, .page-hero p, .page-hero .hero-sub, .hero-sub, .reviews-intro, .tile-desc, .updates-intro, .cta-section p, .statement > p, main > .hero p) { font-size: 1.08rem; line-height: 1.65; color: var(--muted); }
body[data-page][data-page] :is(.label, .tip-card-meta, .blog-meta, .card-label, .pill-badge, .eyebrow, .services-eyebrow, .hero-eyebrow, .group-label, .section-eyebrow) { font-size: 0.7rem; letter-spacing: 0.18em; }
body[data-page][data-page] .section-title { margin-bottom: 2.5rem; }
body[data-page][data-page] :is(.block, section.content-section, section.alt-bg, .service-section, .wall, .moments, .faq-section, .form-section, .looking-for, .practical, .posts, .how-it-works, .team-section, .founder-section) { padding-top: clamp(4.5rem, 8vw, 7rem); padding-bottom: clamp(4.5rem, 8vw, 7rem); }
body[data-page][data-page] #main .service-section { padding-top: clamp(4.5rem, 8vw, 7rem); padding-bottom: clamp(4.5rem, 8vw, 7rem); }
body[data-page][data-page] .block { padding-bottom: 0; }
body[data-page][data-page] .block + .block { padding-top: clamp(5rem, 9vw, 8rem); }
body[data-page][data-page] :is(.page-hero, .blog-hero, main > .hero, .hero-immersive, .region-hero) { padding-top: clamp(3.5rem, 7vw, 5.5rem); }

/* Buttons a touch larger, nav a touch wider */
body[data-page][data-page] :is(.pill-btn, .cta-button, .card-btn, .btn, .submit-btn, .leave-btn, .btn-next, .btn-back, .services-primary, .blog-cta a, .hero-cta, .primary-btn, .secondary-btn),
body[data-page][data-page] #main :is(.card-btn, .services-primary) { min-height: 48px; padding: 0 1.75rem; font-size: 0.82rem; }
body[data-page][data-page] .header-actions .pill-btn, body[data-page][data-page] header nav a.nav-cta { min-height: 38px; padding: 0 1.2rem; font-size: 0.76rem; }
body[data-page][data-page] header { height: 68px; }
body[data-page][data-page] header nav { gap: 2rem; }
body[data-page][data-page] header nav a, body[data-page][data-page] .header-actions a:not(.pill-btn) { font-size: 0.8rem; letter-spacing: 0.03em; }
body[data-page][data-page] header .logo { font-size: 1.1rem; letter-spacing: 0.36em; padding-left: 0.36em; font-weight: 400; }

/* Cards: more padding, softer border, image and text breathing */
body[data-page][data-page] :is(.service-card, .team-card, .post-card, .blog-card, .tip-card, .r-card, .value-card, .feature, .rate-card, .partner-entry, .form-card, .testimonial-block) { border-color: var(--line); }
body[data-page][data-page] .r-card { padding: 2.25rem 2rem 1.75rem; background: #fff; }
body[data-page][data-page] .r-card::before { display: none; }
body[data-page][data-page] .r-card .r-text { font-size: 1.02rem; line-height: 1.7; }
body[data-page][data-page] .r-card .r-stars { font-size: 0.8rem; letter-spacing: 3px; margin-bottom: 1.1rem; }
body[data-page][data-page] .wall-grid { column-gap: 1.25rem; }
body[data-page][data-page] .wall-grid > * { margin-bottom: 1.25rem; }
body[data-page][data-page] :is(.post-card, .tip-card, .blog-card) .tip-card-content, body[data-page][data-page] .post-card > div { padding: 1.5rem 1.6rem 1.75rem; }
body[data-page][data-page] :is(.post-card h2, .blog-card h2) { font-size: 1.3rem; line-height: 1.3; font-weight: 400; }

/* About: sitter cards in two generous columns with larger portraits */
body[data-page][data-page="about"] .team-grid { gap: 1.25rem; }
body[data-page][data-page="about"] .team-card.featured { grid-template-columns: 112px minmax(0, 1fr); gap: 1.5rem; padding: 1.75rem; align-items: center; }
body[data-page][data-page="about"] .team-card.featured .team-photo { width: 112px; height: 112px; border: 0; filter: none; }
body[data-page][data-page="about"] .team-card.featured h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
body[data-page][data-page="about"] .team-card.featured .team-content p { font-size: 1rem; line-height: 1.6; }
body[data-page][data-page="about"] .founder-grid { gap: clamp(2rem, 5vw, 5rem); align-items: center; }
body[data-page][data-page="about"] .signature { font-size: 2rem; margin-top: 1.25rem; }

/* Suburb and anxious-pet pages: the portrait sits beside the copy on desktop */
@media (min-width: 900px) {
    body[data-page^="pet-sitting-"][data-page] .content-section .container:has(> .copy-photo),
    body[data-page="anxious-pet-care-brisbane"][data-page] .content-section .container:has(> .copy-photo) {
        display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); column-gap: clamp(2rem, 5vw, 4.5rem); align-items: center; max-width: 1100px;
    }
    body[data-page^="pet-sitting-"][data-page] .content-section .container:has(> .copy-photo) > .section-title,
    body[data-page="anxious-pet-care-brisbane"][data-page] .content-section .container:has(> .copy-photo) > .section-title { grid-column: 1 / -1; text-align: left; margin-bottom: 2rem; }
    body[data-page^="pet-sitting-"][data-page] .content-section .container:has(> .copy-photo) > .copy-photo,
    body[data-page="anxious-pet-care-brisbane"][data-page] .content-section .container:has(> .copy-photo) > .copy-photo { grid-column: 2; grid-row: 2 / span 6; align-self: center; max-width: none; margin: 0; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 0; }
    body[data-page^="pet-sitting-"][data-page] .content-section .container:has(> .copy-photo) > p,
    body[data-page="anxious-pet-care-brisbane"][data-page] .content-section .container:has(> .copy-photo) > p { grid-column: 1; max-width: 52ch; }
}
body[data-page][data-page] .copy-photo { border: 0; }
body[data-page][data-page] .suburb-links { gap: 0.6rem; }
body[data-page][data-page] .suburb-links a { padding: 0.65rem 1.25rem; font-size: 0.82rem; }

/* Services page: rows get air and the right-hand tier details read as a list */
body[data-page][data-page] #main .service-card { padding: 2.25rem 0; gap: 1.25rem 3rem; }
body[data-page][data-page] #main .card-title { font-size: 1.35rem; font-weight: 400; letter-spacing: -0.01em; }
body[data-page][data-page] #main .card-desc { font-size: 1rem; line-height: 1.65; color: var(--body); }
body[data-page][data-page] #main .card-features li { font-size: 0.95rem; color: var(--body); }

/* Forms: calmer fields */
body[data-page][data-page] :is(input, select, textarea):not([type="checkbox"]):not([type="radio"]) { border-color: #d8d3cc; border-radius: 14px; padding-inline: 1rem; }
body[data-page][data-page] :is(input, select, textarea):focus { border-color: var(--ink); }
body[data-page][data-page] .form-card { padding: clamp(1.75rem, 4vw, 3rem); }

/* Footer: a little more air and a hairline rhythm */
body[data-page][data-page] .ah-footer { padding-top: 4.5rem; }
body[data-page][data-page] .ah-footer-grid { gap: 2.5rem; margin-bottom: 3.5rem; }
body[data-page][data-page] .ah-footer-col h2 { margin-bottom: 1.25rem; }

/* Homepage specifics */
body[data-page="index"][data-page] .hero-intro { max-width: 900px; }
body[data-page="index"][data-page] .hero-lead { max-width: 600px; }
body[data-page="index"][data-page] .campaign-copy { max-width: 600px; font-size: 1.08rem; }
body[data-page="index"][data-page] .tile-desc { max-width: 460px; }
body[data-page="index"][data-page] .ticker-track span { font-size: 0.7rem; letter-spacing: 0.18em; }
body[data-page="index"][data-page] .statement h2 { font-size: clamp(2rem, 3.6vw, 3rem); }

@media (max-width: 768px) {
    body[data-page][data-page] { font-size: 1rem; }
    body[data-page][data-page] :is(h1, .page-hero h1, .hero h1, .blog-hero h1, .region-hero h1, .hero-title, .home-headline) { font-size: clamp(2rem, 8.5vw, 2.6rem); }
    body[data-page][data-page] #main .services-hero h1 { font-size: clamp(2rem, 8.5vw, 2.6rem); }
    body[data-page][data-page] :is(h2, .section-title, .content-section h2, .cta-section h2, .blog-content h2, .block-head h2, .statement h2) { font-size: clamp(1.6rem, 6.5vw, 2rem); }
    body[data-page][data-page] header { height: 60px; }
    body[data-page][data-page] header nav[data-drawer] { top: 60px; max-height: calc(100dvh - 60px); }
    body[data-page][data-page] header .logo { font-size: 0.92rem; letter-spacing: 0.26em; padding-left: 0.26em; }
    body[data-page][data-page] .header-actions .pill-btn { min-height: 36px; padding: 0 1.1rem; font-size: 0.74rem; }
    body[data-page][data-page="about"] .team-card.featured { grid-template-columns: 84px minmax(0, 1fr); gap: 1rem; padding: 1.25rem; }
    body[data-page][data-page="about"] .team-card.featured .team-photo { width: 84px; height: 84px; }
    body[data-page][data-page] .r-card { padding: 1.75rem 1.5rem 1.5rem; }
}
/* The display scale above must not reach the footer column headings. */
body[data-page][data-page] .ah-footer-col h2 { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.18em; line-height: 1.6; }
/* The pill rule sets display on buttons, which would otherwise override the
   hidden attribute: the enquiry wizard's Back button drew as an empty black
   circle on step one. */
body[data-page][data-page] [hidden] { display: none !important; }
