/* =========================================================================
   Happy Paws Care — design system
   Warm, premium, approachable. Bootstrap 5 is used for layout primitives;
   this file provides the brand layer on top.
   ========================================================================= */

:root {
    --hp-teal: #2e7d6b;
    --hp-teal-dark: #225f51;
    --hp-teal-deep: #1a4a3f;
    --hp-teal-mist: #e6f0ec;
    --hp-cream: #faf6ee;
    --hp-cream-2: #f4efe4;
    --hp-white: #ffffff;
    --hp-charcoal: #2b2f2e;
    --hp-muted: #5d6a66;
    --hp-border: #e6ded0;
    --hp-amber: #e5a64a;
    --hp-gradient: linear-gradient(135deg, #2e7d6b 0%, #3b917d 55%, #4ba389 100%);
    --hp-radius: 1.1rem;
    --hp-shadow-sm: 0 2px 10px rgba(46, 80, 70, 0.08);
    --hp-shadow: 0 14px 40px rgba(46, 80, 70, 0.12);
    --hp-font-heading: "Fraunces", Georgia, serif;
    --hp-font-body: "Inter", Arial, sans-serif;
}

/* ---- Base ---------------------------------------------------------------- */

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--hp-font-body);
    color: var(--hp-charcoal);
    background-color: var(--hp-cream);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--hp-font-heading);
    color: var(--hp-charcoal);
    font-weight: 600;
    letter-spacing: -0.01em;
}

p {
    color: var(--hp-muted);
}

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

a {
    color: var(--hp-teal);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--hp-teal-dark);
}

/* Accessible focus states */
:focus-visible {
    outline: 3px solid var(--hp-amber);
    outline-offset: 2px;
    border-radius: 4px;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    z-index: 2000;
    background: var(--hp-teal-dark);
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 0 0 0.5rem 0;
}

.skip-link:focus {
    left: 0;
    color: #fff;
}

/* ---- Buttons ------------------------------------------------------------- */

.btn {
    border-radius: 999px;
    font-weight: 600;
    padding: 0.7rem 1.4rem;
}

.btn-hp-primary {
    background: var(--hp-gradient);
    border: none;
    color: #fff;
    box-shadow: 0 8px 20px rgba(46, 125, 107, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-hp-primary:hover,
.btn-hp-primary:focus {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(46, 125, 107, 0.34);
}

.btn-hp-outline {
    border: 1.5px solid rgba(255, 255, 255, 0.75);
    color: #fff;
    background: transparent;
}

.btn-hp-outline:hover,
.btn-hp-outline:focus {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.btn-hp-ghost {
    border: 1.5px solid var(--hp-border);
    color: var(--hp-charcoal);
    background: #fff;
}

.btn-hp-ghost:hover,
.btn-hp-ghost:focus {
    border-color: var(--hp-teal);
    color: var(--hp-teal-dark);
}

.btn-hp-outline-light {
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    color: #fff;
}

.btn-hp-outline-dark {
    border: 1.5px solid var(--hp-teal);
    color: var(--hp-teal);
    background: transparent;
}

.btn-hp-outline-dark:hover,
.btn-hp-outline-dark:focus {
    background: var(--hp-teal-mist);
    color: var(--hp-teal-dark);
    border-color: var(--hp-teal-dark);
}

.btn-hp-outline-light:hover,
.btn-hp-outline-light:focus {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* ---- Header / nav -------------------------------------------------------- */

.navbar-custom {
    background: rgba(250, 246, 238, 0.92);
    backdrop-filter: blur(10px);
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--hp-border);
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--hp-font-heading);
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--hp-teal-deep);
}

.navbar-brand .brand-paw {
    color: var(--hp-teal);
}

.navbar-brand:hover {
    color: var(--hp-teal-dark);
}

.navbar-custom .nav-link {
    color: var(--hp-charcoal);
    font-weight: 500;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: var(--hp-teal-dark);
    background: var(--hp-teal-mist);
}

.nav-spacer {
    height: 68px;
}

@media (min-width: 992px) {
    .nav-spacer {
        height: 74px;
    }
}

/* ---- Hero ---------------------------------------------------------------- */

.hero {
    position: relative;
    overflow: hidden;
    padding: 4.5rem 0 5rem;
    background:
        radial-gradient(1000px 500px at 85% -10%, rgba(79, 163, 137, 0.16), transparent 60%),
        radial-gradient(700px 400px at -10% 110%, rgba(229, 166, 74, 0.14), transparent 60%),
        var(--hp-cream);
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hp-teal);
    background: var(--hp-teal-mist);
    border: 1px solid #d4e6de;
    padding: 0.4rem 1rem;
    border-radius: 999px;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.12;
    color: var(--hp-teal-deep);
}

.hero h1 .accent {
    color: var(--hp-teal);
    font-style: italic;
}

.hero .lead {
    font-size: 1.12rem;
    color: var(--hp-muted);
    max-width: 34rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.hero-media {
    position: relative;
}

.hero-media .hero-frame {
    border-radius: 1.6rem;
    overflow: hidden;
    box-shadow: var(--hp-shadow);
    aspect-ratio: 4 / 3.4;
}

.hero-media .hero-frame img,
.img-frame img,
.card-img-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-media .hero-badge {
    position: absolute;
    bottom: -1.2rem;
    left: -1.2rem;
    background: var(--hp-gradient);
    color: #fff;
    border-radius: 1rem;
    padding: 1rem 1.2rem;
    box-shadow: var(--hp-shadow);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hero-media .hero-badge .bi {
    font-size: 1.6rem;
}

@media (max-width: 991.98px) {
    .hero {
        padding: 3rem 0 4rem;
    }
    .hero-media .hero-badge {
        left: 0;
        bottom: -1rem;
    }
}

/* ---- General sections ---------------------------------------------------- */

.site-section {
    padding: 4.5rem 0;
}

.site-section--cream {
    background: var(--hp-cream);
}

.site-section--white {
    background: var(--hp-white);
}

.site-section--mist {
    background: var(--hp-teal-mist);
}

.section-head {
    max-width: 46rem;
}

.section-head .section-kicker {
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--hp-teal);
}

.section-head h2 {
    font-size: clamp(1.7rem, 3.4vw, 2.5rem);
    color: var(--hp-teal-deep);
}

.section-head p {
    font-size: 1.05rem;
}

/* ---- Image frame --------------------------------------------------------- */

.img-frame {
    border-radius: 1.4rem;
    overflow: hidden;
    box-shadow: var(--hp-shadow);
    aspect-ratio: 4 / 3;
}

.img-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---- Trust / intro ------------------------------------------------------- */

.trust-points {
    list-style: none;
    padding: 0;
    margin: 0;
}

.trust-points li {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.8rem;
    color: var(--hp-muted);
}

.trust-points .bi {
    color: var(--hp-teal);
    font-size: 1.15rem;
    flex-shrink: 0;
}

/* ---- Service cards ------------------------------------------------------- */

.service-card {
    background: #fff;
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius);
    overflow: hidden;
    box-shadow: var(--hp-shadow-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--hp-shadow);
}

.service-card .card-img-frame {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.service-card .card-img-frame img {
    transition: transform 0.5s ease;
}

.service-card:hover .card-img-frame img {
    transform: scale(1.05);
}

.service-card .card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-card h3 {
    font-size: 1.25rem;
    color: var(--hp-teal-deep);
}

.service-card .card-meta {
    color: var(--hp-muted);
    margin-bottom: 1rem;
}

.service-card .card-foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-link {
    font-weight: 600;
    color: var(--hp-teal);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.card-link:hover {
    color: var(--hp-teal-dark);
}

.card-link .bi {
    transition: transform 0.2s ease;
}

.card-link:hover .bi {
    transform: translateX(3px);
}

/* ---- Videos -------------------------------------------------------------- */

.video-card {
    background: #fff;
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius);
    overflow: hidden;
    box-shadow: var(--hp-shadow-sm);
    height: 100%;
}

.video-card video {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: var(--hp-charcoal);
}

.video-card .video-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.video-card h3 {
    font-size: 1.15rem;
    color: var(--hp-teal-deep);
    margin-bottom: 0.25rem;
}

/* ---- Why choose us ------------------------------------------------------- */

.benefit-card {
    background: #fff;
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius);
    padding: 1.6rem;
    height: 100%;
    box-shadow: var(--hp-shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hp-shadow);
}

.benefit-icon {
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--hp-teal);
    background: var(--hp-teal-mist);
    margin-bottom: 1rem;
}

.benefit-card h3 {
    font-size: 1.12rem;
    color: var(--hp-teal-deep);
}

/* ---- Process ------------------------------------------------------------- */

.process-step {
    position: relative;
    text-align: center;
    padding: 1.5rem 1rem;
}

.process-number {
    width: 3.4rem;
    height: 3.4rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--hp-gradient);
    color: #fff;
    font-family: var(--hp-font-heading);
    font-weight: 700;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(46, 125, 107, 0.3);
}

.process-step h3 {
    font-size: 1.1rem;
    color: var(--hp-teal-deep);
}

@media (min-width: 992px) {
    .process-step:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 2.6rem;
        right: -1.6rem;
        width: 3.2rem;
        height: 2px;
        background: var(--hp-border);
    }
}

/* ---- FAQ -------------------------------------------------------------- */

.accordion-item {
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius) !important;
    margin-bottom: 0.9rem;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--hp-shadow-sm);
}

.accordion-button {
    font-weight: 600;
    color: var(--hp-charcoal);
    background: #fff;
    padding: 1.15rem 1.4rem;
}

.accordion-button:not(.collapsed) {
    color: var(--hp-teal-dark);
    background: var(--hp-teal-mist);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(46, 125, 107, 0.18);
}

.accordion-body {
    color: var(--hp-muted);
    padding: 1rem 1.4rem 1.25rem;
}

/* ---- Contact form -------------------------------------------------------- */

.contact-form-card {
    background: #fff;
    border: 1px solid var(--hp-border);
    border-radius: 1.4rem;
    padding: 2rem;
    box-shadow: var(--hp-shadow);
}

.form-label {
    font-weight: 600;
    color: var(--hp-charcoal);
}

.form-control,
.form-select {
    border-radius: 0.8rem;
    border-color: var(--hp-border);
    padding: 0.7rem 0.95rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--hp-teal);
    box-shadow: 0 0 0 0.2rem rgba(46, 125, 107, 0.18);
}

.form-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-info-card {
    border-radius: 1.4rem;
    overflow: hidden;
}

.contact-info-card .img-frame {
    border-radius: 0;
    aspect-ratio: 4 / 3.2;
}

/* ---- CTA band ------------------------------------------------------------ */

.cta-band {
    background: var(--hp-gradient);
    border-radius: 1.6rem;
    padding: 3rem 2rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.cta-band h2,
.cta-band p {
    color: #fff;
}

.cta-band p {
    max-width: 38rem;
    margin-inline: auto;
    opacity: 0.92;
}

/* ---- Page hero (inner pages) --------------------------------------------- */

.page-hero {
    padding: 3.4rem 0 0;
}

.page-hero .img-frame {
    aspect-ratio: 21 / 9;
    border-radius: 1.4rem;
}

/* ---- FAQ / legal prose --------------------------------------------------- */

.prose {
    max-width: 46rem;
}

.prose h2 {
    font-size: 1.35rem;
    margin-top: 2rem;
    color: var(--hp-teal-deep);
}

.prose h3 {
    font-size: 1.15rem;
    color: var(--hp-teal-deep);
}

.prose p,
.prose li {
    color: var(--hp-muted);
}

.prose ul {
    padding-left: 1.2rem;
}

.prose a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ---- 404 ---------------------------------------------------------------- */

.error-hero {
    text-align: center;
    padding: 5rem 0;
}

.error-code {
    font-family: var(--hp-font-heading);
    font-size: clamp(4rem, 10vw, 7rem);
    line-height: 1;
    color: var(--hp-teal);
}

/* ---- Footer -------------------------------------------------------------- */

.site-footer {
    background: var(--hp-teal-deep);
    color: #dbeae4;
    padding: 4rem 0 0;
    margin-top: 5rem;
}

.site-footer a {
    color: #cfded8;
}

.site-footer a:hover {
    color: #fff;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--hp-font-heading);
    font-weight: 700;
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 0.9rem;
}

.footer-brand .brand-paw {
    color: #7fc6ae;
}

.footer-blurb {
    color: #bcd0c7;
    max-width: 22rem;
    margin-bottom: 1.1rem;
}

.footer-email {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.footer-heading {
    color: #fff;
    font-size: 1rem;
    font-family: var(--hp-font-body);
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.5rem;
}

.footer-links a {
    display: inline-block;
}

.footer-note {
    color: #bcd0c7;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 3rem;
    padding: 1.4rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 2rem;
    justify-content: space-between;
}

.footer-bottom p {
    color: #9eb8ac;
    margin: 0;
    font-size: 0.9rem;
}

/* ---- Cookie consent modal -------------------------------------------------- */

.cookie-consent {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.cookie-consent[hidden] {
    display: none;
}

.cookie-consent__overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 46, 40, 0.45);
    backdrop-filter: blur(2px);
}

.cookie-consent__card {
    position: relative;
    background: #fff;
    border-radius: 1.4rem;
    padding: 2rem 1.8rem;
    max-width: 30rem;
    width: 100%;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    text-align: center;
}

.cookie-consent__icon {
    width: 3.4rem;
    height: 3.4rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--hp-teal-mist);
    color: var(--hp-teal);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-consent__title {
    font-size: 1.4rem;
    color: var(--hp-teal-deep);
    margin-bottom: 0.75rem;
}

.cookie-consent__text {
    font-size: 0.95rem;
    margin-bottom: 1.4rem;
}

.cookie-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    justify-content: center;
}

/* ---- Subtle reveal animation (respects reduced motion) ---------------------- */

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .service-card:hover,
    .benefit-card:hover {
        transform: none;
    }
}

/* ---- Utility -------------------------------------------------------------- */

.text-muted-hp {
    color: var(--hp-muted);
}

.bg-white-soft {
    background: var(--hp-cream-2);
}