/* ============================================================
   Caring Paws Veterinary Clinic — Public Site CSS
   Identity: friendly, warm, rounded. Teal + coral, warm cream bg,
   paw motif, soft shadows. Design system used by all public views.
   ============================================================ */

:root {
    --vet-primary: #0E9488;
    --vet-accent: #FF6B5C;
    --vet-dark: #14302E;
    --vet-warm: #F8B400;
    --vet-bg: #FBF7F0;          /* warm off-white, never pure #fff */
    --vet-surface: #FFFFFF;
    --vet-ink: #1B3A37;
    --vet-muted: #6B8480;
    --vet-line: #E7EFEC;
    --vet-primary-soft: #E6F4F2;
    --vet-accent-soft: #FFE9E6;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow-sm: 0 4px 16px rgba(20, 48, 46, .06);
    --shadow: 0 14px 40px rgba(20, 48, 46, .10);
    --shadow-lift: 0 22px 54px rgba(20, 48, 46, .16);
    --font-display: 'Baloo 2', 'Hind Siliguri', system-ui, sans-serif;
    --font-body: 'Inter', 'Hind Siliguri', system-ui, sans-serif;
    --font-bn: 'Hind Siliguri', 'Baloo 2', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--vet-ink);
    background: var(--vet-bg);
    line-height: 1.65;
    overflow-x: clip; /* §31 safety net — clip, not hidden (keeps sticky header) */
}

[lang="bn"] body, html[lang="bn"] { font-family: var(--font-bn); }

h1, h2, h3, h4, h5 { font-family: var(--font-display); color: var(--vet-dark); line-height: 1.2; font-weight: 700; }
a { color: var(--vet-primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--vet-accent); }
img { max-width: 100%; height: auto; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: 1200px; }

/* ---------- Buttons ---------- */
.btn-cta {
    background: var(--vet-primary); color: #fff; border: none; border-radius: 999px;
    padding: .62rem 1.5rem; font-weight: 600; font-family: var(--font-display);
    display: inline-flex; align-items: center; gap: .45rem; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
    box-shadow: 0 8px 20px rgba(14, 148, 136, .28);
}
.btn-cta:hover { background: #0c857a; color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(14, 148, 136, .36); }
.btn-accent { background: var(--vet-accent); box-shadow: 0 8px 20px rgba(255, 107, 92, .3); }
.btn-accent:hover { background: #f2584a; box-shadow: 0 12px 26px rgba(255, 107, 92, .4); }
.btn-outline-cta {
    background: transparent; color: var(--vet-primary); border: 2px solid var(--vet-primary); border-radius: 999px;
    padding: .56rem 1.4rem; font-weight: 600; font-family: var(--font-display); display: inline-flex; align-items: center; gap: .45rem; transition: all .18s ease;
}
.btn-outline-cta:hover { background: var(--vet-primary); color: #fff; }
.btn-soft { background: var(--vet-primary-soft); color: var(--vet-primary); border: none; border-radius: 999px; padding: .55rem 1.3rem; font-weight: 600; }

/* ---------- Notice bar ---------- */
.notice-bar { background: var(--vet-dark); color: #fff; font-size: .9rem; padding: .5rem 0; text-align: center; }
.notice-bar a, .notice-bar span { color: inherit; }
.notice-bar a:hover { text-decoration: underline; }

/* ---------- Header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 1030; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--vet-line); transition: box-shadow .25s ease, padding .25s ease; }
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.site-header .navbar { padding-top: .7rem; padding-bottom: .7rem; }
.navbar-brand { display: inline-flex; align-items: center; gap: .55rem; min-width: 0; font-family: var(--font-display); font-weight: 800; }
.brand-logo { max-height: 46px; }
.brand-mark { width: 42px; height: 42px; border-radius: 50%; background: var(--vet-primary); color: #fff; display: inline-grid; place-items: center; font-size: 1.25rem; flex: 0 0 auto; }
.brand-name { font-size: 1.3rem; color: var(--vet-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100vw - 130px); }
.navbar-nav .nav-link { font-weight: 600; color: var(--vet-dark); padding: .4rem .85rem; border-radius: 999px; transition: color .15s ease, background .15s ease; }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: var(--vet-primary); background: var(--vet-primary-soft); }
.header-search .form-control { border-radius: 999px; border: 1px solid var(--vet-line); background: var(--vet-bg); min-width: 170px; }
.header-search .form-control:focus { border-color: var(--vet-primary); box-shadow: 0 0 0 .2rem rgba(14,148,136,.15); }
.lang-toggle { font-weight: 600; color: var(--vet-dark); display: inline-flex; align-items: center; }
.lang-toggle:hover { color: var(--vet-primary); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--vet-dark); color: #fff; }
.hero-slide { position: relative; min-height: 78vh; display: flex; align-items: center; background-size: cover; background-position: center; }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(20,48,46,.82) 0%, rgba(20,48,46,.5) 55%, rgba(20,48,46,.15) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 640px; padding: 2rem 0; }
.hero-content h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.4rem); margin-bottom: 1rem; }
.hero-content p { font-size: 1.15rem; opacity: .94; margin-bottom: 1.6rem; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.16); border-radius: 999px; padding: .35rem 1rem; font-weight: 600; margin-bottom: 1rem; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section.alt { background: #fff; }
.section.soft { background: var(--vet-primary-soft); }
.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-head.start { margin-left: 0; text-align: left; }
.eyebrow { display: inline-flex; align-items: center; gap: .45rem; color: var(--vet-accent); font-weight: 700; font-family: var(--font-display); letter-spacing: .04em; text-transform: uppercase; font-size: .82rem; margin-bottom: .6rem; }
.section-title { font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin-bottom: .7rem; }
.lede { color: var(--vet-muted); font-size: 1.08rem; }
.paw-underline { display: inline-block; width: 64px; height: 10px; margin-top: .4rem; background: radial-gradient(circle at 6px 5px, var(--vet-accent) 4px, transparent 5px), radial-gradient(circle at 22px 3px, var(--vet-accent) 4px, transparent 5px), radial-gradient(circle at 38px 3px, var(--vet-accent) 4px, transparent 5px), radial-gradient(circle at 54px 5px, var(--vet-accent) 4px, transparent 5px); }

/* ---------- Cards (equal height via .h-100 inside grids; never height:100% on base) ---------- */
.card-vet { background: var(--vet-surface); border: 1px solid var(--vet-line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .22s ease, box-shadow .22s ease; }
.card-vet.h-100 { display: flex; flex-direction: column; }
.card-vet:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.card-vet .card-img { aspect-ratio: 4/3; overflow: hidden; background: var(--vet-primary-soft); }
.card-vet .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card-vet:hover .card-img img { transform: scale(1.06); }
.card-vet .card-body { padding: 1.25rem 1.35rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; flex: 1 1 auto; }
.card-vet h3, .card-vet h4 { font-size: 1.2rem; margin: 0; }
.card-vet .muted { color: var(--vet-muted); font-size: .95rem; }
.card-icon { width: 58px; height: 58px; border-radius: 16px; background: var(--vet-primary-soft); color: var(--vet-primary); display: grid; place-items: center; font-size: 1.6rem; margin-bottom: .4rem; }

.price-tag { color: var(--vet-primary); font-weight: 700; font-family: var(--font-display); }
.old-price { color: var(--vet-muted); text-decoration: line-through; font-weight: 500; margin-left: .4rem; font-size: .9em; }
.badge-soft { background: var(--vet-primary-soft); color: var(--vet-primary); border-radius: 999px; padding: .25rem .7rem; font-size: .78rem; font-weight: 700; display: inline-flex; align-items: center; gap: .3rem; }
.badge-accent { background: var(--vet-accent-soft); color: #d6402f; }
.badge-warn { background: #FFF4D6; color: #9A6B00; }
.badge-rx { background: #E7E0FF; color: #5b3fbf; }

/* ---------- Animal-type chips ---------- */
.animal-chip { background: #fff; border: 1px solid var(--vet-line); border-radius: var(--radius); padding: 1.4rem 1rem; text-align: center; transition: transform .2s ease, box-shadow .2s ease; display: block; height: 100%; }
.animal-chip:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.animal-chip .ic { font-size: 2rem; color: var(--vet-primary); }

/* ---------- Stats ---------- */
.stat-tile { text-align: center; padding: 1.5rem 1rem; }
.stat-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4vw, 2.8rem); color: var(--vet-primary); }
.stat-label { color: var(--vet-muted); font-weight: 600; }
.stat-ic { font-size: 1.8rem; color: var(--vet-accent); margin-bottom: .3rem; }

/* ---------- Testimonials ---------- */
.testi-card { background: #fff; border: 1px solid var(--vet-line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.testi-card .quote { color: var(--vet-ink); font-size: 1.02rem; }
.testi-card .who { display: flex; align-items: center; gap: .8rem; margin-top: 1rem; }
.testi-card .who img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.stars { color: var(--vet-warm); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { background: var(--vet-primary); color: #fff; padding: 70px 0 60px; position: relative; overflow: hidden; }
.page-hero::after { content: "\F1A6"; font-family: "bootstrap-icons"; position: absolute; right: -10px; bottom: -30px; font-size: 12rem; opacity: .08; }
.page-hero h1 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.6rem); margin: 0; }
.page-hero .crumbs { opacity: .9; margin-top: .5rem; }
.page-hero .crumbs a { color: #fff; opacity: .85; }

/* ---------- Forms ---------- */
.vet-form .form-label { font-weight: 600; color: var(--vet-dark); }
.vet-form .form-control, .vet-form .form-select { border-radius: var(--radius-sm); border: 1px solid var(--vet-line); padding: .6rem .85rem; }
.vet-form .form-control:focus, .vet-form .form-select:focus { border-color: var(--vet-primary); box-shadow: 0 0 0 .2rem rgba(14,148,136,.15); }
.form-card { background: #fff; border: 1px solid var(--vet-line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.8rem; }

/* ---------- Price / fee table ---------- */
.fee-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.fee-table th { background: var(--vet-primary); color: #fff; text-align: left; padding: .85rem 1rem; }
.fee-table td { padding: .8rem 1rem; border-top: 1px solid var(--vet-line); }
.fee-table tr:nth-child(even) td { background: var(--vet-bg); }

/* ---------- Pagination ---------- */
.pagination { gap: .35rem; }
.pagination .page-link { border-radius: 999px !important; border: 1px solid var(--vet-line); color: var(--vet-dark); margin: 0 2px; }
.pagination .active .page-link { background: var(--vet-primary); border-color: var(--vet-primary); color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--vet-dark); color: #d7e6e3; padding: 0 0 1.4rem; margin-top: 0; position: relative; }
.footer-accent { height: 6px; background: linear-gradient(90deg, var(--vet-primary) 0 60%, var(--vet-accent) 60% 100%); }
.site-footer .container { padding-top: 56px; }
.site-footer h5 { color: #fff; font-size: 1.05rem; margin-bottom: 1rem; }
.footer-brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: #fff; display: inline-flex; align-items: center; }
.footer-logo { max-height: 52px; }
.footer-about { color: #aecdc8; font-size: .95rem; }
.footer-social { display: flex; gap: .6rem; margin-top: 1rem; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; transition: background .2s ease, transform .2s ease; }
.footer-social a:hover { background: var(--vet-accent); transform: translateY(-3px); }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a { color: #aecdc8; }
.footer-links a:hover { color: #fff; }
.footer-contact li { display: flex; gap: .6rem; margin-bottom: .7rem; color: #aecdc8; min-width: 0; }
.footer-contact li i { color: var(--vet-accent); margin-top: .2rem; }
.footer-contact a { color: #aecdc8; overflow-wrap: anywhere; }
.footer-contact a:hover { color: #fff; }
.newsletter-form { display: flex; gap: .5rem; margin-top: .6rem; }
.newsletter-form .form-control { border-radius: 999px; border: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.3rem; display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; align-items: center; justify-content: space-between; font-size: .9rem; color: #93b3ae; }
.footer-bottom a { color: var(--vet-warm); }

/* ---------- Floating actions ---------- */
.float-actions { position: fixed; right: 18px; bottom: 18px; z-index: 1040; display: flex; flex-direction: column; gap: .65rem; }
.float-actions a { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 1.4rem; box-shadow: var(--shadow); transition: transform .18s ease; }
.float-actions a:hover { transform: scale(1.08); color: #fff; }
.fa-whatsapp { background: #25D366; }
.fa-call { background: var(--vet-primary); }
.fa-emergency { background: var(--vet-accent); animation: pulse-emerg 2s infinite; }
@keyframes pulse-emerg { 0%,100% { box-shadow: 0 0 0 0 rgba(255,107,92,.5); } 50% { box-shadow: 0 0 0 12px rgba(255,107,92,0); } }
.back-to-top { position: fixed; right: 18px; bottom: 86px; z-index: 1039; width: 46px; height: 46px; border-radius: 50%; border: none; background: var(--vet-dark); color: #fff; opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
.back-to-top.show { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-3px); }

/* ============================================================
   §12.1 Mobile safety-net + §31 overflow trio
   ============================================================ */
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
table { max-width: 100%; }
.container, .container-fluid { overflow-wrap: break-word; }
h1, h2, h3, h4, p, a, span, li { overflow-wrap: break-word; }

@media (max-width: 1199.98px) {
    .row.g-5, .row.gx-5 { --bs-gutter-x: 1.5rem; }
}

@media (max-width: 991.98px) {
    .site-header .navbar-collapse { background: #fff; border: 1px solid var(--vet-line); border-radius: var(--radius); padding: 1rem; margin-top: .6rem; box-shadow: var(--shadow); }
    .navbar-nav .nav-link { padding: .55rem .6rem; }
    .header-search { margin: .5rem 0; }
    .header-search .form-control { width: 100%; }
    .section { padding: 64px 0; }
    .hero-slide { min-height: 64vh; }
}

@media (max-width: 767px) {
    .section, .page-hero { padding: 44px 0; }
    .section-head { margin-bottom: 2rem; }
    .float-actions a { width: 48px; height: 48px; }
    .footer-bottom { justify-content: flex-start; }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 1.8rem; }
    .brand-name { font-size: 1.1rem; }
}

@media print {
    .site-header, .site-footer, .float-actions, .back-to-top, .notice-bar { display: none !important; }
    body { background: #fff; }
}
