/* ==========================================================================
   Freedom Digital — Happy Paws
   Theme styles. Palette and tokens are in /style.css :root.
   ========================================================================== */

/* --- Reset / base -------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    background: var(--color-off-white);
    color: var(--color-dark);
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: var(--lh-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a { color: var(--color-primary); text-decoration: none; transition: opacity 0.2s ease, color 0.2s ease; }
a:hover { opacity: 0.75; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: var(--lh-tight);
    letter-spacing: -0.015em;
    color: var(--color-dark);
    margin: 0 0 0.6em;
}

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }

.fd-skiplink { position: absolute; left: -9999px; top: auto; }
.fd-skiplink:focus { left: 12px; top: 12px; background: var(--color-dark); color: #fff; padding: 8px 12px; border-radius: var(--radius-sm); z-index: 10000; }

.fd-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; }

/* --- Containers ---------------------------------------------------------- */

.fd-container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }
.fd-container--narrow { max-width: var(--container-narrow); }

/* --- Section wrappers: padding + bg + text colour ----------------------- */

.fd-section { position: relative; }

/* fd- prefix avoids collision with Bootstrap's .bg-primary / .text-light / .pt-* utilities (which use !important). */
/* Each bg class also sets --fd-section-color so curved dividers can pick the right fill. */
.fd-bg-white     { background: var(--color-white);     --fd-section-color: var(--color-white); }
.fd-bg-off-white { background: var(--color-off-white); --fd-section-color: var(--color-off-white); }
.fd-bg-light     { background: var(--color-light);     --fd-section-color: var(--color-light); }
.fd-bg-primary   { background: var(--color-primary);   --fd-section-color: var(--color-primary); }
.fd-bg-secondary { background: var(--color-secondary); --fd-section-color: var(--color-secondary); }
.fd-bg-dark      { background: var(--color-dark);      --fd-section-color: var(--color-dark); }
.fd-bg-black     { background: var(--color-black);     --fd-section-color: var(--color-black); }

.fd-text-dark  { color: var(--color-dark); }
.fd-text-dark h1, .fd-text-dark h2, .fd-text-dark h3 { color: var(--color-dark); }
.fd-text-light { color: var(--color-white); }
.fd-text-light h1, .fd-text-light h2, .fd-text-light h3 { color: var(--color-white); }
.fd-text-light p { color: rgba(255,255,255,0.9); }

.fd-pt-none   { padding-top: 0; }
.fd-pt-sm     { padding-top: var(--section-padding-sm); }
.fd-pt-normal { padding-top: var(--section-padding); }
.fd-pt-lg     { padding-top: var(--section-padding-lg); }

.fd-pb-none   { padding-bottom: 0; }
.fd-pb-sm     { padding-bottom: var(--section-padding-sm); }
.fd-pb-normal { padding-bottom: var(--section-padding); }
.fd-pb-lg     { padding-bottom: var(--section-padding-lg); }

@media (max-width: 768px) {
    .fd-pt-lg     { padding-top: var(--section-padding); }
    .fd-pb-lg     { padding-bottom: var(--section-padding); }
    .fd-pt-normal { padding-top: 56px; }
    .fd-pb-normal { padding-bottom: 56px; }
}

/* --- Shared bits --------------------------------------------------------- */

.fd-eyebrow {
    font-size: var(--fs-sm);
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin: 0 0 var(--space-md);
}
.fd-eyebrow--center { text-align: center; }

.fd-section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    margin: 0 0 var(--space-md);
}
.fd-section-title--center { text-align: center; }

.fd-section-intro {
    text-align: center;
    color: var(--color-text-muted);
    max-width: 580px;
    margin: 0 auto var(--space-2xl);
}

.fd-prose p { color: var(--color-text-muted); }
.fd-prose p:last-child { margin-bottom: 0; }

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

.fd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 12px 22px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: var(--fs-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
    text-decoration: none;
    white-space: nowrap;
}

.fd-btn:hover { transform: translateY(-1px); opacity: 1; }

.fd-btn--lg { padding: 16px 28px; font-size: var(--fs-lg); }

.fd-btn--primary {
    background: var(--color-primary);
    color: #fff;
}
.fd-btn--primary:hover { background: var(--color-primary); box-shadow: var(--shadow-cta); }

.fd-btn--ghost {
    background: transparent;
    color: var(--color-dark);
    border-color: var(--color-dark);
}
.fd-btn--ghost:hover { background: var(--color-dark); color: #fff; }

.fd-btn--white {
    background: #fff;
    color: var(--color-primary);
}
.fd-btn--white:hover { background: var(--color-off-white); }

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

.fd-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(253, 246, 238, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: box-shadow 0.2s ease;
}
.fd-header.is-scrolled { box-shadow: var(--shadow-sm); }

.fd-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: 16px 24px;
}

.fd-header__brand {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-dark);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    text-decoration: none;
}
.fd-header__brand img { max-height: 40px; width: auto; }
.fd-header__paw { font-size: 1.75rem; line-height: 1; }

.fd-header__nav { display: none; }
.fd-header__menu {
    display: flex;
    gap: 32px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.fd-header__menu a {
    color: var(--color-text-muted);
    font-size: var(--fs-md);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}
.fd-header__menu a:hover,
.fd-header__menu .current-menu-item a { color: var(--color-dark); }

.fd-header__aside {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.fd-header__phone {
    display: none;
    align-items: center;
    gap: 6px;
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    text-decoration: none;
}

.fd-header__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    background: transparent;
    border: none;
    color: var(--color-dark);
    cursor: pointer;
    border-radius: var(--radius-sm);
}
.fd-header__toggle:hover { background: rgba(0,0,0,0.05); }

.fd-header__mobile { padding: 0 24px 20px; }
.fd-header__mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.fd-header__mobile-menu a { color: var(--color-text-muted); font-weight: 500; }

@media (min-width: 900px) {
    .fd-header__nav { display: block; }
    .fd-header__toggle { display: none; }
    .fd-header__phone { display: inline-flex; }
    .fd-header__mobile { display: none !important; }
}

body { padding-top: 72px; }

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

.fd-hero { overflow: hidden; }

.fd-hero__inner {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.fd-hero__copy { flex: 1; text-align: center; }

.fd-hero__title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: var(--fs-hero);
    line-height: var(--lh-tight);
    margin: 0 0 20px;
}

.fd-hero__subtitle {
    font-size: var(--fs-lg);
    color: var(--color-text-muted);
    max-width: 520px;
    margin: 0 auto 32px;
}

.fd-hero__ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.fd-hero__media { flex: 1; display: flex; justify-content: center; }

.fd-hero__image-wrap { position: relative; }
.fd-hero__image {
    width: min(320px, 80vw);
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    animation: fdPawFloat 4s ease-in-out infinite;
}

.fd-hero__badge {
    position: absolute;
    width: 64px; height: 64px;
    background: #fff;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 1.5rem;
    box-shadow: var(--shadow-md);
}
.fd-hero__badge--1 { bottom: -16px; left: -16px; }
.fd-hero__badge--2 { top: -16px; right: -16px; width: 52px; height: 52px; font-size: 1.25rem; }

.fd-hero__blob {
    position: absolute;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: fdBlobMorph 10s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}
.fd-hero__blob--1 { top: 80px; right: -40px; width: 280px; height: 280px; background: var(--color-secondary); opacity: 0.2; }
.fd-hero__blob--2 { bottom: 40px; left: -20px; width: 180px; height: 180px; background: var(--color-primary); opacity: 0.15; }

@keyframes fdPawFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-12px) rotate(3deg); }
}

@keyframes fdBlobMorph {
    0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50%      { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
}

@media (min-width: 900px) {
    .fd-hero__inner { flex-direction: row; gap: 60px; }
    .fd-hero__copy { text-align: left; }
    .fd-hero__subtitle { margin-left: 0; margin-right: 0; }
    .fd-hero__ctas { justify-content: flex-start; }
    .fd-hero__image { width: 420px; }
}

/* --- Stats bar ----------------------------------------------------------- */

.fd-stats__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.fd-stats__item { text-align: center; padding: 8px; }

.fd-stats__number {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: var(--color-primary);
    margin: 0;
    line-height: 1.1;
}

.fd-stats__label {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    margin: 6px 0 0;
}

@media (min-width: 768px) {
    .fd-stats__grid { grid-template-columns: repeat(4, 1fr); }
}

/* --- Services grid (signature) ------------------------------------------ */

.fd-services__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 56px;
}

.fd-service-card {
    position: relative;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.fd-service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.fd-service-card__tag {
    position: absolute;
    top: 16px; right: 16px;
    background: var(--color-secondary);
    color: #fff;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.fd-service-card__icon {
    width: 56px; height: 56px;
    border-radius: var(--radius-md);
    background: var(--color-off-white);
    color: var(--color-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.fd-service-card__title {
    font-size: var(--fs-xl);
    margin: 0 0 12px;
}

.fd-service-card__desc {
    color: var(--color-text-muted);
    font-size: var(--fs-sm);
    line-height: 1.6;
    margin: 0 0 20px;
}

.fd-service-card__price {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--color-primary);
    margin: 0;
}

.fd-service-card__suffix {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    margin-left: 4px;
}

@media (min-width: 768px) {
    .fd-services__grid { grid-template-columns: repeat(3, 1fr); }
}

/* --- Image + Text -------------------------------------------------------- */

.fd-image-text__inner {
    display: flex;
    flex-direction: column;
    gap: 48px;
    align-items: center;
}

.fd-image-text__media { flex: 1; display: flex; justify-content: center; width: 100%; }

.fd-image-text__image-wrap { position: relative; }
.fd-image-text__image-wrap img {
    width: min(340px, 80vw);
    aspect-ratio: 5/6;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.fd-image-text__badge {
    position: absolute;
    bottom: -16px; right: -16px;
    background: #fff;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--color-dark);
}
.fd-image-text__badge i { color: var(--color-primary); }

.fd-image-text__copy { flex: 1; width: 100%; }

.fd-image-text__checks {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.fd-image-text__checks li { display: flex; align-items: center; gap: 12px; font-size: var(--fs-md); font-weight: 500; color: var(--color-dark); }

.fd-image-text__check-dot {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--color-off-white);
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.85rem;
}

.fd-bg-off-white .fd-image-text__check-dot { background: var(--color-white); }

@media (min-width: 900px) {
    .fd-image-text__inner { flex-direction: row; gap: 72px; }
    .fd-image-text--img-right .fd-image-text__inner { flex-direction: row-reverse; }
    .fd-image-text__image-wrap img { width: 360px; }
}

/* --- Meet the Pack ------------------------------------------------------- */

.fd-pack__head { text-align: center; margin-bottom: 56px; }

.fd-pack__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

.fd-pack-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.fd-pack-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.fd-pack-card__photo { aspect-ratio: 1/1; background: var(--color-off-white); }
.fd-pack-card__photo img { width: 100%; height: 100%; object-fit: cover; }

.fd-pack-card__body { padding: 22px 24px 26px; }
.fd-pack-card__name { font-size: 1.25rem; margin: 0 0 4px; }
.fd-pack-card__breed { font-size: var(--fs-sm); color: var(--color-primary); font-weight: 600; margin: 0 0 8px; }
.fd-pack-card__bio   { font-size: var(--fs-sm); color: var(--color-text-muted); margin: 0; }

@media (min-width: 640px)  { .fd-pack__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px)  { .fd-pack__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .fd-pack__grid { grid-template-columns: repeat(4, 1fr); } }

/* --- Testimonials -------------------------------------------------------- */

.fd-testimonials__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 56px;
}

.fd-testimonial-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    margin: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.fd-testimonial-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.fd-testimonial-card__stars {
    display: flex;
    gap: 4px;
    color: var(--color-secondary);
    margin-bottom: 16px;
}

.fd-testimonial-card__quote {
    margin: 0 0 24px;
    font-size: var(--fs-md);
    line-height: 1.6;
    color: var(--color-text-muted);
}
.fd-testimonial-card__quote::before,
.fd-testimonial-card__quote::after { content: '"'; color: var(--color-primary); }

.fd-testimonial-card__by { display: flex; align-items: center; gap: 12px; }

.fd-testimonial-card__avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}
.fd-testimonial-card__avatar--primary   { background: var(--color-primary); }
.fd-testimonial-card__avatar--secondary { background: var(--color-secondary); }
.fd-testimonial-card__avatar--accent    { background: var(--color-accent); color: var(--color-dark); }

.fd-testimonial-card__avatar-img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }

.fd-testimonial-card__meta { display: flex; flex-direction: column; }
.fd-testimonial-card__name  { font-size: var(--fs-sm); font-weight: 600; color: var(--color-dark); }
.fd-testimonial-card__label { font-size: 0.75rem; color: var(--color-text-muted); }

@media (min-width: 768px)  { .fd-testimonials__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .fd-testimonials__grid { grid-template-columns: repeat(3, 1fr); } }

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

.fd-faq__head { text-align: center; margin-bottom: 40px; }

.fd-faq__list { display: flex; flex-direction: column; gap: 12px; }

.fd-faq__item {
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.fd-faq__question {
    list-style: none;
    cursor: pointer;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-weight: 600;
    color: var(--color-dark);
    font-size: var(--fs-md);
}
.fd-faq__question::-webkit-details-marker { display: none; }

.fd-faq__chevron { transition: transform 0.2s ease; color: var(--color-primary); }
.fd-faq__item[open] .fd-faq__chevron { transform: rotate(180deg); }

.fd-faq__answer {
    padding: 0 24px 20px;
    color: var(--color-text-muted);
    line-height: 1.65;
}

/* --- Trust signals ------------------------------------------------------- */

.fd-trust__head { text-align: center; margin-bottom: 40px; }

.fd-trust__grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.fd-trust__item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
}
.fd-bg-off-white .fd-trust__item,
.fd-bg-white     .fd-trust__item { background: var(--color-off-white); }

.fd-trust__icon {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.fd-trust__label { display: flex; flex-direction: column; line-height: 1.3; }
.fd-trust__label strong { color: var(--color-dark); font-size: var(--fs-md); }
.fd-trust__label small  { color: var(--color-text-muted); font-size: 0.8rem; margin-top: 2px; }

@media (min-width: 768px) { .fd-trust__grid { grid-template-columns: repeat(4, 1fr); } }

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

.fd-contact__head { text-align: center; margin-bottom: 32px; }

.fd-contact__form {
    position: relative;
    overflow: hidden;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 40px 36px 36px;
    box-shadow: var(--shadow-md);
}

/* Subtle paw-print watermark in the corner — brand touch, not childish. */
.fd-contact__form::before {
    content: '\f1b0';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: -28px;
    right: -18px;
    font-size: 7rem;
    color: var(--color-primary);
    opacity: 0.06;
    pointer-events: none;
    transform: rotate(-20deg);
}

/* Two-column row (name + phone). */
.fd-form__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 18px;
}
.fd-form__row > .fd-form__field { margin-bottom: 0; }
@media (min-width: 560px) { .fd-form__row { grid-template-columns: 1fr 1fr; } }

.fd-form__field {
    display: block;
    margin-bottom: 18px;
    cursor: pointer;
}

.fd-form__label {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 8px;
    letter-spacing: 0.005em;
}

.fd-form__input-wrap {
    position: relative;
    display: block;
}

.fd-form__icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    font-size: 0.95rem;
    pointer-events: none;
    z-index: 2;
    transition: color 0.2s ease, transform 0.2s ease;
}
.fd-form__input-wrap:focus-within .fd-form__icon {
    color: var(--color-primary);
}

/* "About your dog" section divider inside the form. */
.fd-form__divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 28px 0 18px;
    color: var(--color-text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.fd-form__divider::before,
.fd-form__divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-border);
}

/* Inputs — 2px borders, warm hover, no generic look. */
.fd-contact__form input[type="text"],
.fd-contact__form input[type="tel"],
.fd-contact__form input[type="email"],
.fd-contact__form input[type="url"],
.fd-contact__form textarea,
.fd-contact__form select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--color-border);
    border-radius: 12px;
    background: #fff;
    font-family: inherit;
    font-size: var(--fs-md);
    color: var(--color-dark);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.fd-contact__form input:hover,
.fd-contact__form textarea:hover,
.fd-contact__form select:hover {
    border-color: var(--color-primary);
    background: var(--color-off-white);
}

.fd-contact__form input:focus,
.fd-contact__form textarea:focus,
.fd-contact__form select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(91,139,165,0.18);
    background: #fff;
}

/* Inputs with a left icon get extra padding. */
.fd-form__input-wrap input {
    padding-left: 46px;
}

.fd-contact__form textarea { resize: vertical; min-height: 130px; line-height: 1.55; }

.fd-contact__form select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 7'><path d='M1 1l5 5 5-5' stroke='%232c3e50' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 12px;
    padding-right: 44px;
}

/* Submit button — tactile, pill-shaped, with arrow. */
.fd-contact__form input[type="submit"],
.fd-contact__form button[type="submit"] {
    width: 100%;
    padding: 18px 28px;
    margin-top: 8px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    font-family: inherit;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.fd-contact__form input[type="submit"]:hover,
.fd-contact__form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(91,139,165,0.32);
    background: #4a7a94;
}
.fd-contact__form input[type="submit"]:active,
.fd-contact__form button[type="submit"]:active {
    transform: translateY(0);
}

/* CF7 response states — warmer than the defaults. */
.wpcf7-response-output {
    border-radius: var(--radius-md);
    padding: 14px 18px;
    font-size: var(--fs-sm);
    margin-top: 18px !important;
    border-width: 1px !important;
}
.wpcf7-mail-sent-ok {
    background: #e8f5e8 !important;
    color: #2e7d32 !important;
    border-color: #b8dfb8 !important;
}
.wpcf7-validation-errors,
.wpcf7-mail-sent-ng {
    background: #fef0f0 !important;
    color: #b32d2e !important;
    border-color: #f0baba !important;
}
.wpcf7-not-valid-tip {
    font-size: 0.85rem;
    color: #b32d2e;
    margin-top: 4px;
}

.wpcf7-response-output {
    border-radius: var(--radius-md);
    padding: 12px 16px;
    font-size: var(--fs-sm);
}

/* Contact page 2-column layout (form + sidebar). */
.fd-contact__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

@media (min-width: 900px) {
    .fd-contact__grid--with-aside {
        grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
        gap: 40px;
        align-items: start;
    }
}

.fd-contact__aside {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fd-contact__aside-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 14px;
    color: var(--color-dark);
}

.fd-contact__details {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 26px 24px;
    box-shadow: var(--shadow-sm);
}

.fd-contact__details ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fd-contact__details li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.fd-contact__detail-icon {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.fd-contact__detail-text {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
    min-width: 0;
    word-break: break-word;
}
.fd-contact__detail-text small {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--color-text-muted);
    margin-bottom: 2px;
}
.fd-contact__detail-text a,
.fd-contact__detail-text address {
    color: var(--color-dark);
    font-style: normal;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
}
.fd-contact__detail-text a:hover { color: var(--color-primary); opacity: 1; }

.fd-contact__hours {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 26px 24px;
    box-shadow: var(--shadow-sm);
}
.fd-contact__hours ul { list-style: none; padding: 0; margin: 0; }
.fd-contact__hours li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: var(--fs-sm);
}
.fd-contact__hours li:last-child { border-bottom: none; }
.fd-contact__hours li.is-closed { color: var(--color-text-muted); }

.fd-contact__map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.fd-contact__map iframe { display: block; width: 100%; height: 280px; border: 0; }

/* --- CTA banner ---------------------------------------------------------- */

.fd-cta__inner { text-align: center; }
.fd-cta .fd-eyebrow { color: rgba(255,255,255,0.8); }
.fd-cta .fd-section-title { color: #fff; }
.fd-cta .fd-section-intro { color: rgba(255,255,255,0.85); margin-bottom: 24px; }

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

.fd-footer {
    background: var(--color-dark);
    color: rgba(255,255,255,0.9);
    padding: 72px 0 0;
    margin-top: 0;
}

.fd-footer a { color: rgba(255,255,255,0.9); text-decoration: none; }
.fd-footer a:hover { color: #fff; }

.fd-footer__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

.fd-footer__brand-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 12px;
}
.fd-footer__brand-link img { max-height: 40px; width: auto; }
.fd-footer__paw { font-size: 1.75rem; }

.fd-footer__blurb { font-size: var(--fs-sm); color: rgba(255,255,255,0.75); max-width: 380px; }
.fd-footer__blurb p { margin: 0; }

.fd-footer__heading {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--fs-md);
    color: #fff;
    margin: 0 0 16px;
}

.fd-footer__menu,
.fd-footer__contact-list,
.fd-footer__socials {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fd-footer__contact-list { color: rgba(255,255,255,0.8); font-size: var(--fs-sm); }
.fd-footer__contact-list li { display: flex; align-items: flex-start; gap: 10px; }
.fd-footer__contact-list i { color: #fff; margin-top: 3px; }
.fd-footer__contact-list address { font-style: normal; }

.fd-footer__socials { flex-direction: row; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.fd-footer__socials a {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background 0.2s ease;
}
.fd-footer__socials a:hover { background: var(--color-primary); }

.fd-footer__base {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 24px 0;
}
.fd-footer__base-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.fd-footer__copyright,
.fd-footer__by {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
}

@media (min-width: 768px) {
    .fd-footer__inner { grid-template-columns: 2fr 1fr 1.25fr; }
}

/* --- 404 / single / archive --------------------------------------------- */

.fd-404 { text-align: center; max-width: 580px; margin: 0 auto; }
.fd-404__title { font-size: clamp(2rem, 4vw, 2.75rem); margin: 16px 0; }
.fd-404__lede { color: var(--color-text-muted); font-size: var(--fs-lg); margin-bottom: 28px; }

.fd-single__title { font-size: clamp(2rem, 4vw, 2.75rem); margin: 0; }
.fd-single__thumb img { border-radius: var(--radius-lg); margin: 0 auto; box-shadow: var(--shadow-md); }

.fd-archive__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}
@media (min-width: 640px)  { .fd-archive__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px)  { .fd-archive__grid { grid-template-columns: repeat(3, 1fr); } }

.fd-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.fd-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.fd-card__image img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.fd-card__body { padding: 22px 24px 24px; }
.fd-card__title { font-size: var(--fs-lg); margin: 4px 0 8px; }
.fd-card__title a { color: var(--color-dark); }
.fd-card__date { font-size: 0.8rem; color: var(--color-text-muted); margin: 0; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }

.fd-archive__pagination { margin-top: 40px; text-align: center; }
.fd-archive__pagination .page-numbers { display: inline-block; padding: 8px 14px; margin: 0 4px; background: #fff; border-radius: var(--radius-sm); color: var(--color-dark); }
.fd-archive__pagination .current { background: var(--color-primary); color: #fff; }

/* --- Curved section dividers -------------------------------------------- */

.fd-section { overflow: visible; }
/* Scoped to the content container only — otherwise position:absolute siblings
   (e.g. .fd-hero__blob decorations) get overridden to relative and break layout. */
.fd-section > .fd-container { position: relative; z-index: 2; }

.fd-divider-top-curve::before,
.fd-divider-bottom-curve::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--fd-section-color, transparent);
    pointer-events: none;
    z-index: 1;
}

.fd-divider-top-curve::before {
    bottom: 100%;
    clip-path: ellipse(60% 100% at 50% 100%);
}

.fd-divider-bottom-curve::after {
    top: 100%;
    clip-path: ellipse(60% 100% at 50% 0%);
}

@media (max-width: 768px) {
    .fd-divider-top-curve::before,
    .fd-divider-bottom-curve::after { height: 36px; }
}

/* --- Highlight section -------------------------------------------------- */

.fd-highlight { text-align: center; }

.fd-highlight__inner {
    position: relative;
    padding-top: 48px;
}

.fd-highlight__mark {
    display: block;
    font-family: var(--font-heading);
    font-size: 10rem;
    line-height: 0.6;
    color: rgba(255,255,255,0.35);
    margin: 0 auto 0;
    font-weight: 700;
}

.fd-highlight__eyebrow {
    color: rgba(255,255,255,0.85) !important;
    margin-top: 8px;
}

.fd-highlight__quote {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    line-height: 1.2;
    color: #fff;
    margin: 0 auto 24px;
    max-width: 720px;
    letter-spacing: -0.01em;
}

.fd-highlight__quote em {
    font-style: italic;
    color: var(--color-accent);
}

.fd-highlight__attribution {
    color: rgba(255,255,255,0.8);
    font-size: var(--fs-md);
    margin: 0 0 24px;
}

.fd-highlight__cta {
    margin-top: 8px;
}

.fd-btn--outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}
.fd-btn--outline-light:hover {
    background: #fff;
    color: var(--color-primary);
    border-color: #fff;
}

/* --- Process / How it Works --------------------------------------------- */

.fd-process__head { text-align: center; margin-bottom: 56px; }

.fd-process__list {
    list-style: none;
    counter-reset: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    position: relative;
}
.fd-process__list--3 { --cols: 3; }
.fd-process__list--2 { --cols: 2; }
.fd-process__list--4 { --cols: 4; }

.fd-process__step {
    position: relative;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 40px 28px 32px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.fd-process__step:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.fd-bg-off-white .fd-process__step,
.fd-bg-light     .fd-process__step { background: #fff; }

.fd-process__num {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    color: rgba(91,139,165,0.18);
    margin-bottom: 4px;
}

.fd-process__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-size: 1.25rem;
    margin: 0 auto 16px;
}

.fd-process__label {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-secondary);
    font-weight: 700;
    margin: 0 0 6px;
}

.fd-process__title {
    font-size: 1.35rem;
    margin: 0 0 10px;
}

.fd-process__desc {
    color: var(--color-text-muted);
    font-size: var(--fs-sm);
    margin: 0;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .fd-process__list--2 { grid-template-columns: repeat(2, 1fr); }
    .fd-process__list--3 { grid-template-columns: repeat(3, 1fr); }
    .fd-process__list--4 { grid-template-columns: repeat(4, 1fr); }
    .fd-process__list--5,
    .fd-process__list--6 { grid-template-columns: repeat(3, 1fr); }
}

/* --- Gallery ------------------------------------------------------------ */

.fd-gallery__head { text-align: center; margin-bottom: 40px; }

.fd-gallery__grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

@media (min-width: 640px) { .fd-gallery__grid { gap: 14px; grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) {
    .fd-gallery__grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
    .fd-gallery__grid--cols-4 { grid-template-columns: repeat(4, 1fr); }
}

.fd-gallery__item { position: relative; }

.fd-gallery__link {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--radius-md);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.fd-gallery__link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.fd-gallery__link:hover img { transform: scale(1.06); }

.fd-gallery__overlay {
    position: absolute;
    inset: 0;
    background: rgba(91, 139, 165, 0.0);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    opacity: 0;
    transition: opacity 0.3s ease, background 0.3s ease;
}
.fd-gallery__link:hover .fd-gallery__overlay { opacity: 1; background: rgba(91, 139, 165, 0.55); }

/* --- Scroll reveal ------------------------------------------------------ */

.fd-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    will-change: opacity, transform;
}

.fd-reveal.fd-in-view {
    opacity: 1;
    transform: translateY(0);
}

/* --- Reduced motion ----------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .fd-hero__image,
    .fd-hero__blob { animation: none; }
    .fd-reveal { opacity: 1; transform: none; transition: none; }
    * { transition: none !important; }
}
