/* Smart Paws Landing — aligned with smartpawsec.com brand */

:root {
    --sp-purple: #773B8C;
    --sp-green: #9CB83D;
    --sp-purple-rgb: 119, 59, 140;
    --sp-green-rgb: 156, 184, 61;
    --sp-white: #FFFFFF;
    --sp-text: #3D2C1E;
    --sp-muted: #6b5b52;
    --sp-page-bg: #FFFFFF;
    --sp-soft: #f7f3fa;
    --sp-radius: 16px;
    --sp-radius-lg: 22px;
    --sp-shadow: 0 0 16px rgba(var(--sp-purple-rgb), 0.22);
    --sp-shadow-hover: 0 12px 28px rgba(var(--sp-purple-rgb), 0.28);
    --sp-dock-h: 78px;
}

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

html {
    scroll-behavior: smooth;
}

body.sp-landing {
    margin: 0;
    font-family: 'Fustat', system-ui, sans-serif;
    letter-spacing: -0.3px;
    background: var(--sp-page-bg);
    color: var(--sp-text);
    padding-bottom: calc(var(--sp-dock-h) + 28px + env(safe-area-inset-bottom, 0px));
    overflow-x: hidden;
}

.sp-landing .head,
.sp-landing h1,
.sp-landing h2,
.sp-landing h3 {
    font-family: 'Gloock', Georgia, serif;
    letter-spacing: 0.5px;
    color: var(--sp-purple);
}

.sp-wrap {
    width: min(1120px, calc(100% - 1.5rem));
    margin-inline: auto;
}

/* Top social strip */
.sp-topbar {
    background: var(--sp-soft);
    border-bottom: 1px solid rgba(var(--sp-purple-rgb), 0.08);
    padding: 0.45rem 0;
}

.sp-topbar-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.85rem;
    justify-content: center;
    align-items: center;
}

.sp-topbar a {
    color: var(--sp-purple);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    opacity: 0.85;
    transition: opacity 0.2s, color 0.2s;
}

.sp-topbar a:hover {
    opacity: 1;
    color: var(--sp-green);
}

/* Header */
.sp-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(var(--sp-purple-rgb), 0.1);
}

.sp-header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0;
}

.sp-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--sp-purple);
}

.sp-brand img {
    height: 46px;
    width: auto;
    border-radius: 12px;
    object-fit: contain;
}

.sp-brand-name {
    font-family: 'Gloock', serif;
    font-size: 1.15rem;
    line-height: 1.1;
}

.sp-nav {
    display: none;
    justify-content: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

@media (min-width: 900px) {
    .sp-nav {
        display: flex;
    }
}

.sp-nav a {
    text-decoration: none;
    color: #444;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.sp-nav a:hover {
    background: rgba(var(--sp-purple-rgb), 0.08);
    color: var(--sp-purple);
}

.sp-nav a.is-pill {
    background: var(--sp-purple);
    color: #fff;
}

.sp-nav a.is-pill:hover {
    background: #5d2d6e;
    color: #fff;
    transform: translateY(-1px);
}

.sp-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sp-icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--sp-green);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(var(--sp-green-rgb), 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}

.sp-icon-btn:hover {
    transform: translateY(-2px) scale(1.04);
    color: #fff;
    box-shadow: 0 10px 22px rgba(var(--sp-green-rgb), 0.45);
}

.sp-menu-toggle {
    display: inline-flex;
    background: var(--sp-purple);
    border: none;
    cursor: pointer;
}

@media (min-width: 900px) {
    .sp-menu-toggle {
        display: none;
    }
}

.sp-mobile-nav {
    display: none;
    padding: 0 0 0.85rem;
    gap: 0.35rem;
    flex-wrap: wrap;
    justify-content: center;
}

.sp-mobile-nav.is-open {
    display: flex;
}

.sp-mobile-nav a {
    text-decoration: none;
    color: var(--sp-purple);
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: var(--sp-soft);
}

/* Welcome banner */
.sp-welcome {
    margin-top: 1rem;
}

.sp-welcome-bar {
    background: var(--sp-purple);
    color: #fff;
    border-radius: var(--sp-radius);
    padding: 0.95rem 1.25rem;
    font-weight: 600;
    font-size: 1.15rem;
    box-shadow: var(--sp-shadow);
    animation: sp-fade-up 0.7s ease both;
}

/* Hero */
.sp-hero {
    margin-top: 1rem;
    position: relative;
}

.sp-hero-media {
    position: relative;
    border-radius: var(--sp-radius-lg);
    overflow: hidden;
    box-shadow: var(--sp-shadow);
    aspect-ratio: 16 / 9;
    background: var(--sp-soft);
    animation: sp-fade-up 0.8s 0.1s ease both;
}

@media (max-width: 640px) {
    .sp-hero-media {
        aspect-ratio: 4 / 3;
    }
}

.sp-hero-media img.sp-hero-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
    transition: transform 6s ease;
}

.sp-hero:hover .sp-hero-cover {
    transform: scale(1.08);
}

.sp-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(119, 59, 140, 0.15) 0%, rgba(61, 44, 30, 0.62) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
    padding: 1.5rem 1.25rem 2rem;
    gap: 0.85rem;
}

.sp-hero-title {
    color: #fff !important;
    font-size: clamp(1.55rem, 4.2vw, 2.55rem);
    margin: 0;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
    max-width: 18ch;
}

.sp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
    margin-top: 0.35rem;
}

/* Buttons */
.sp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.7rem 1.35rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.sp-btn:hover {
    transform: translateY(-2px);
}

.sp-btn-sm {
    padding: 0.5rem 0.95rem;
    font-size: 0.85rem;
}

.sp-btn-green {
    background: var(--sp-green);
    color: #fff;
    box-shadow: 0 8px 18px rgba(var(--sp-green-rgb), 0.35);
}

.sp-btn-green:hover {
    color: #fff;
    background: #8aa834;
}

.sp-btn-purple {
    background: var(--sp-purple);
    color: #fff;
    box-shadow: 0 8px 18px rgba(var(--sp-purple-rgb), 0.35);
}

.sp-btn-purple:hover {
    color: #fff;
    background: #5d2d6e;
}

.sp-btn-outline {
    background: rgba(255, 255, 255, 0.92);
    color: var(--sp-purple);
    border: 2px solid rgba(255, 255, 255, 0.9);
}

.sp-btn-outline:hover {
    background: #fff;
    color: var(--sp-purple);
}

.sp-btn-outline-solid {
    background: transparent;
    color: var(--sp-purple);
    border: 2px solid var(--sp-purple);
}

.sp-btn-outline-solid:hover {
    background: var(--sp-purple);
    color: #fff;
}

/* Intro */
.sp-intro {
    margin-top: 1.75rem;
    text-align: center;
    max-width: 760px;
    margin-inline: auto;
}

.sp-intro p,
.sp-intro .sp-lead {
    color: var(--sp-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0.75rem 0 0;
}

.sp-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(var(--sp-green-rgb), 0.15);
    color: #5f7a1f;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
}

.sp-underline {
    width: 72px;
    height: 4px;
    border-radius: 999px;
    background: var(--sp-purple);
    margin: 0.7rem auto 0;
}

/* Sections */
.sp-section {
    padding: 2.75rem 0 1rem;
}

.sp-section-head {
    text-align: center;
    margin-bottom: 1.75rem;
}

.sp-section-head h2 {
    margin: 0;
    font-size: clamp(1.55rem, 3.2vw, 2.15rem);
}

.sp-section-head p {
    color: var(--sp-muted);
    max-width: 560px;
    margin: 0.75rem auto 0;
    line-height: 1.6;
}

/* Service cards — symmetrical grid */
.sp-grid {
    display: grid;
    gap: 1.1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .sp-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.sp-card {
    background: var(--sp-white);
    border-radius: var(--sp-radius);
    border: 1.5px solid rgba(var(--sp-purple-rgb), 0.14);
    box-shadow: var(--sp-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.sp-card-media {
    aspect-ratio: 16 / 10;
    background: var(--sp-soft);
    overflow: hidden;
}

.sp-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sp-card:hover .sp-card-media img {
    transform: scale(1.06);
}

.sp-card-body {
    padding: 1.15rem 1.2rem 1.35rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.55rem;
}

.sp-card-body h3 {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.25;
}

.sp-card-body p {
    margin: 0;
    color: var(--sp-muted);
    font-size: 0.92rem;
    line-height: 1.55;
    flex: 1;
}

.sp-card-body .sp-link {
    color: var(--sp-green);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
}

.sp-card-body .sp-link:hover {
    color: var(--sp-purple);
}

.sp-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.35rem;
}

.sp-card--slide {
    height: 100%;
    margin: 0.25rem 0 2.25rem;
}

/* Categories grid */
.sp-cat-grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(2, 1fr);
}

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

@media (min-width: 1100px) {
    .sp-cat-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.sp-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: var(--sp-text);
    background: var(--sp-white);
    border: 1.5px solid rgba(var(--sp-purple-rgb), 0.14);
    border-radius: var(--sp-radius);
    box-shadow: var(--sp-shadow);
    padding: 0.75rem 0.6rem 0.9rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    gap: 0.55rem;
}

.sp-cat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--sp-shadow-hover);
    color: var(--sp-purple);
}

.sp-cat-thumb {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 14px;
    overflow: hidden;
    background: var(--sp-soft);
}

.sp-cat-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sp-cat-card span {
    font-weight: 700;
    font-size: 0.78rem;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Services swiper */
.sp-services-swiper {
    width: 100%;
    padding: 0.25rem 0.15rem 0.5rem;
}

.sp-services-swiper::part(button-prev),
.sp-services-swiper::part(button-next) {
    color: var(--sp-purple);
    background: rgba(255, 255, 255, 0.92);
    width: 36px;
    height: 36px;
    border-radius: 999px;
    box-shadow: var(--sp-shadow);
}

.sp-services-swiper::part(pagination) {
    bottom: 0;
}

.sp-services-swiper::part(bullet-active) {
    background: var(--sp-green);
}

/* Icon feature cards (regulations) */
.sp-feature {
    background: var(--sp-white);
    border-radius: var(--sp-radius);
    border: 1.5px solid rgba(var(--sp-purple-rgb), 0.14);
    box-shadow: var(--sp-shadow);
    padding: 1.25rem;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.9rem;
    align-items: start;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sp-feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--sp-shadow-hover);
}

.sp-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(var(--sp-purple-rgb), 0.1);
    color: var(--sp-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.sp-feature strong {
    display: block;
    font-family: 'Gloock', serif;
    color: var(--sp-purple);
    margin-bottom: 0.25rem;
}

.sp-feature span {
    color: var(--sp-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.sp-disclaimer {
    margin-top: 1.25rem;
    padding: 1rem 1.15rem;
    border-radius: var(--sp-radius);
    background: rgba(var(--sp-green-rgb), 0.12);
    color: var(--sp-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
}

/* Store CTA band */
.sp-store-cta {
    background: linear-gradient(135deg, var(--sp-purple) 0%, #5d2d6e 100%);
    color: #fff;
    border-radius: var(--sp-radius-lg);
    padding: 1.75rem 1.5rem;
    display: grid;
    gap: 1rem;
    align-items: center;
    box-shadow: var(--sp-shadow);
}

@media (min-width: 768px) {
    .sp-store-cta {
        grid-template-columns: 1fr auto;
        padding: 2rem 2.25rem;
    }
}

.sp-store-cta h2 {
    color: #fff !important;
    margin: 0 0 0.4rem;
    font-size: 1.55rem;
}

.sp-store-cta p {
    margin: 0;
    opacity: 0.95;
    max-width: 42ch;
}

/* Quote form */
.sp-form-shell {
    max-width: 820px;
    margin-inline: auto;
}

.sp-form-card {
    background: var(--sp-white);
    border-radius: var(--sp-radius-lg);
    border: 1.5px solid rgba(var(--sp-purple-rgb), 0.16);
    box-shadow: var(--sp-shadow);
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .sp-form-card {
        padding: 2rem;
    }
}

.sp-form-card .form-label {
    font-weight: 700;
    color: var(--sp-text);
    margin-bottom: 0.3rem;
}

.sp-form-card .form-control,
.sp-form-card .form-select {
    border-radius: 12px !important;
    border: 1.5px solid rgba(var(--sp-purple-rgb), 0.22);
    padding: 0.7rem 0.9rem;
    background: #fff;
}

.sp-form-card .form-control:focus,
.sp-form-card .form-select:focus {
    border-color: var(--sp-purple);
    box-shadow: 0 0 0 3px rgba(var(--sp-purple-rgb), 0.16);
}

.sp-alert {
    border-radius: 12px;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
}

.sp-alert-success {
    background: #eef8df;
    color: #3f5a12;
}

.sp-alert-error {
    background: #fdecea;
    color: #8a1f11;
}

/* Footer */
.sp-footer {
    margin-top: 2.5rem;
    background: var(--sp-purple);
    color: #fff;
    padding: 2rem 0 1.5rem;
    border-radius: var(--sp-radius-lg) var(--sp-radius-lg) 0 0;
}

.sp-footer a {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.sp-footer a:hover {
    color: var(--sp-green);
}

.sp-footer-grid {
    display: grid;
    gap: 1.25rem;
    text-align: center;
}

@media (min-width: 768px) {
    .sp-footer-grid {
        grid-template-columns: 1fr 1fr;
        text-align: left;
        align-items: center;
    }

    .sp-footer-social {
        justify-content: flex-end !important;
    }
}

.sp-footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.sp-footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
}

.sp-footer-social a:hover {
    background: var(--sp-green);
    transform: translateY(-2px);
}

/* Floating dock (like store bottom bar) */
.sp-dock {
    position: fixed;
    left: 50%;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    z-index: 80;
    width: min(420px, calc(100% - 1.5rem));
    background: var(--sp-purple);
    border-radius: 999px;
    box-shadow: 0 12px 30px rgba(var(--sp-purple-rgb), 0.45);
    padding: 0.55rem 0.75rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.15rem;
}

.sp-dock a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    color: #fff;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem;
    border-radius: 12px;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.sp-dock a i,
.sp-dock a .ti {
    font-size: 1.2rem;
}

.sp-dock a:hover,
.sp-dock a.is-active {
    color: var(--sp-green);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

/* WhatsApp FAB */
.sp-wa {
    position: fixed;
    right: 1rem;
    bottom: calc(var(--sp-dock-h) + 28px + env(safe-area-inset-bottom, 0px));
    z-index: 85;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: #25D366;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.45);
    animation: sp-pulse 2.4s ease-in-out infinite;
}

.sp-wa:hover {
    color: #fff;
    transform: scale(1.06);
}

/* Reveal animations */
.sp-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.sp-reveal-delay-1 { transition-delay: 0.08s; }
.sp-reveal-delay-2 { transition-delay: 0.16s; }
.sp-reveal-delay-3 { transition-delay: 0.24s; }

@keyframes sp-fade-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes sp-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes sp-pulse {
    0%, 100% { box-shadow: 0 10px 24px rgba(37, 211, 102, 0.45); }
    50% { box-shadow: 0 10px 24px rgba(37, 211, 102, 0.45), 0 0 0 12px rgba(37, 211, 102, 0.18); }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .sp-reveal {
        opacity: 1;
        transform: none;
    }
}
