/* ============================================================
   AutoCraft Premium Garage — Public Site CSS
   Identity: LIGHT "Graphite & Brass" — brushed brass (#C8A04A) accents on a
   clean light surface, deep-graphite headings/hero/footer. Premium, precise,
   automotive. Design system used by all public views.
   (Theme vars --vet-primary / --vet-accent / --vet-dark are injected from
   Site Settings in _Layout; the rest are defined here.)
   ============================================================ */

:root {
    --vet-primary: #C8A04A;          /* brushed brass — solid fills, buttons, icons */
    --vet-primary-ink: #94701F;      /* deep brass — readable links/eyebrows on light */
    --vet-accent: #E2E8F0;           /* light steel — soft decorative fills only */
    --vet-dark: #0E1116;             /* graphite — headings, hero, footer */
    --vet-warm: #C8A04A;
    --vet-bg: #F5F6F8;               /* cool light page background */
    --vet-surface: #FFFFFF;
    --vet-ink: #1F2630;              /* near-graphite body text */
    --vet-muted: #687387;
    --vet-line: #E4E7EC;
    --vet-primary-soft: #F6EFDD;     /* brass tint */
    --vet-accent-soft: #EEF1F6;      /* steel tint */
    --radius: 18px;
    --radius-sm: 12px;
    --shadow-sm: 0 4px 16px rgba(14, 17, 22, .06);
    --shadow: 0 14px 40px rgba(14, 17, 22, .10);
    --shadow-lift: 0 22px 54px rgba(14, 17, 22, .16);
    --font-display: 'Sora', 'Hind Siliguri', system-ui, sans-serif;
    --font-body: 'Inter', 'Hind Siliguri', system-ui, sans-serif;
    --font-bn: 'Hind Siliguri', 'Sora', 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; /* overflow 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-ink); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--vet-primary); }
img { max-width: 100%; height: auto; }
p { margin: 0 0 1rem; }

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

/* ---------- Buttons ---------- */
.btn-cta {
    background: linear-gradient(135deg, #C8A04A, #A8842F); color: #0E1116; border: none; border-radius: 999px;
    padding: .62rem 1.5rem; font-weight: 700; font-family: var(--font-display);
    display: inline-flex; align-items: center; gap: .45rem; transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
    box-shadow: 0 8px 20px rgba(200, 160, 74, .28);
}
.btn-cta:hover { color: #0E1116; transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 12px 26px rgba(200, 160, 74, .38); }
.btn-accent { background: var(--vet-dark); color: #fff; box-shadow: 0 8px 20px rgba(14, 17, 22, .25); }
.btn-accent:hover { background: #1b2230; color: #fff; }
.btn-outline-cta {
    background: transparent; color: var(--vet-primary-ink); 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: #0E1116; }
.btn-soft { background: var(--vet-primary-soft); color: var(--vet-primary-ink); border: none; border-radius: 999px; padding: .55rem 1.3rem; font-weight: 600; }
.btn-soft:hover { background: #efe2c4; color: var(--vet-primary-ink); }

/* ---------- Notice bar ---------- */
.notice-bar { background: var(--vet-dark); color: #C8A04A; 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: 10px; background: linear-gradient(135deg, #C8A04A, #9C7A33); color: #0E1116; 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-ink); background: var(--vet-primary-soft); }
/* dropdown parent is a pure toggle (no navigation) */
.navbar-nav .dropdown-toggle { cursor: pointer; }
.navbar-nav .dropdown-menu { border: 1px solid var(--vet-line); border-radius: 14px; box-shadow: var(--shadow); padding: .4rem; margin-top: .4rem; }
.navbar-nav .dropdown-item { border-radius: 9px; font-weight: 600; color: var(--vet-dark); padding: .5rem .8rem; }
.navbar-nav .dropdown-item:hover, .navbar-nav .dropdown-item.active { background: var(--vet-primary-soft); color: var(--vet-primary-ink); }
@media (min-width: 1200px) { .navbar-nav { flex-wrap: nowrap; } }
.header-search .form-control { border-radius: 999px; border: 1px solid var(--vet-line); background: #fff; min-width: 150px; }
.header-search .form-control:focus { border-color: var(--vet-primary); box-shadow: 0 0 0 .2rem rgba(200,160,74,.18); }
.lang-toggle { font-weight: 600; color: var(--vet-dark); display: inline-flex; align-items: center; }
.lang-toggle:hover { color: var(--vet-primary-ink); }

/* ---------- 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(8,10,14,.86) 0%, rgba(8,10,14,.55) 55%, rgba(8,10,14,.18) 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(200,160,74,.18); color: #E6CD8E; border-radius: 999px; padding: .35rem 1rem; font-weight: 600; margin-bottom: 1rem; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section.alt { background: var(--vet-surface); }
.section.soft { background: var(--vet-accent-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-primary-ink); 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: 70px; height: 4px; margin-top: .5rem; border-radius: 999px; background: linear-gradient(90deg, var(--vet-primary), #E6CD8E); }

/* ---------- Cards ---------- */
.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-ink); display: grid; place-items: center; font-size: 1.6rem; margin-bottom: .4rem; }

.price-tag { color: var(--vet-primary-ink); 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-ink); border-radius: 999px; padding: .25rem .7rem; font-size: .78rem; font-weight: 700; display: inline-flex; align-items: center; gap: .3rem; }
.badge-accent { background: #FDECEA; color: #C0392B; }
.badge-warn { background: #FFF4D6; color: #9A6B00; }
.badge-rx { background: #E7E0FF; color: #5b3fbf; }

/* ---------- Category / brand chips (generic) ---------- */
.animal-chip, .category-chip, .brand-chip { background: var(--vet-surface); 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, .category-chip:hover, .brand-chip:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--vet-primary); }
.animal-chip .ic { font-size: 2rem; color: var(--vet-primary-ink); }

/* ---------- Stats (flex tile) ---------- */
.stat-tile { display: flex; gap: .9rem; align-items: center; background: var(--vet-surface); border: 1px solid var(--vet-line); border-radius: 14px; padding: 1.1rem 1.25rem; box-shadow: var(--shadow-sm); }
.stat-tile .stat-ico { width: 50px; height: 50px; border-radius: 13px; background: var(--vet-primary-soft); color: var(--vet-primary-ink); display: grid; place-items: center; font-size: 1.4rem; flex: none; }
.stat-tile .stat-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 3vw, 2rem); color: var(--vet-dark); line-height: 1; }
.stat-tile .stat-lbl, .stat-tile .stat-label { color: var(--vet-muted); font-weight: 600; font-size: .85rem; margin-top: .25rem; }
.stat-ic { font-size: 1.8rem; color: var(--vet-primary-ink); margin-bottom: .3rem; }

/* ---------- Testimonials ---------- */
.testi-card { background: var(--vet-surface); 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-primary); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { background: linear-gradient(135deg, #11151c 0%, #1b2230 100%); color: #fff; padding: 70px 0 60px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(200,160,74,.16), transparent 70%); }
.page-hero h1 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.6rem); margin: 0; }
.page-hero p { color: #C9CFDA; }
.page-hero .crumbs { opacity: .9; margin-top: .5rem; }
.page-hero .crumbs a { color: #E6CD8E; opacity: .9; }

/* ---------- 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(200,160,74,.18); }
.form-card { background: var(--vet-surface); 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: var(--vet-surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.fee-table th { background: var(--vet-dark); 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 .page-link:hover { color: var(--vet-primary-ink); }
.pagination .active .page-link { background: var(--vet-primary); border-color: var(--vet-primary); color: #0E1116; }

/* ---------- Cost estimator widget ---------- */
.cost-estimator { background: var(--vet-surface); border: 1px solid var(--vet-line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.cost-estimator-head { border-bottom: 1px solid var(--vet-line); padding: 1.2rem 1.5rem; }
.cost-estimator-head .eyebrow { display: block; font-size: .72rem; letter-spacing: 1.4px; text-transform: uppercase; color: var(--vet-primary-ink); font-weight: 700; margin-bottom: .3rem; }
.cost-estimator-head h3 { font-family: var(--font-display); font-size: 1.35rem; margin: 0; color: var(--vet-dark); }
.cost-estimator-body { padding: 1.5rem; }
.cost-result-range { background: var(--vet-bg); border: 1px solid var(--vet-line); border-left: 3px solid var(--vet-primary); padding: 1rem 1.2rem; border-radius: 10px; margin-top: 1.2rem; }
.cost-result-label { display: block; font-size: .72rem; letter-spacing: 1px; text-transform: uppercase; color: var(--vet-muted); margin-bottom: .4rem; }
.cost-result-values { font-family: var(--font-display); font-size: 1.6rem; color: var(--vet-dark); }
.cost-result-values .sep { color: var(--vet-primary-ink); padding: 0 .3rem; }
.cost-result-mid { font-size: .88rem; color: var(--vet-muted); margin-top: .5rem; }
.cost-estimator-note { display: flex; gap: .5rem; font-size: .82rem; color: var(--vet-muted); margin: 1.1rem 0 0; line-height: 1.55; }
.cost-estimator-note i { color: var(--vet-primary-ink); margin-top: .15rem; }
.cost-estimator-actions { margin-top: 1.3rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--vet-dark); color: #AEB6C2; padding: 0 0 1.4rem; margin-top: 0; position: relative; }
.footer-accent { height: 6px; background: linear-gradient(90deg, var(--vet-primary) 0 60%, #E6CD8E 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: #98A2B3; font-size: .95rem; }
.footer-social { display: flex; gap: .6rem; margin-top: 1rem; flex-wrap: wrap; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; transition: background .2s ease, transform .2s ease, color .2s ease; }
.footer-social a:hover { background: var(--vet-primary); color: #0E1116; transform: translateY(-3px); }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a { color: #98A2B3; }
.footer-links a:hover { color: var(--vet-primary); }
.footer-contact li { display: flex; gap: .6rem; margin-bottom: .7rem; color: #98A2B3; min-width: 0; }
.footer-contact li i { color: var(--vet-primary); margin-top: .2rem; }
.footer-contact a { color: #98A2B3; overflow-wrap: anywhere; }
.footer-contact a:hover { color: var(--vet-primary); }
.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: #7E8796; }
.footer-bottom .admin-link a { color: #98A2B3; }
.footer-bottom .admin-link a:hover { color: var(--vet-primary); }

/* ---------- "Developed by iSoft" credit badge ---------- */
.dev-credit { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; color: #98A2B3; }
.dev-credit .heart { color: #E0556A; display: inline-block; animation: dc-beat 1.3s ease-in-out infinite; }
.dev-credit a { display: inline-flex; align-items: center; gap: .35rem; background: rgba(200,160,74,.14); border: 1px solid rgba(200,160,74,.4); color: var(--vet-primary); padding: .12rem .6rem; border-radius: 999px; font-weight: 700; }
.dev-credit a:hover { background: var(--vet-primary); color: #0E1116; }
@keyframes dc-beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.28); } 30% { transform: scale(1); } 45% { transform: scale(1.18); } 60% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .dev-credit .heart { animation: none; } }

/* ---------- Share buttons (detail pages) ---------- */
.share-buttons { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin: 1.2rem 0; }
.share-buttons .share-label { font-weight: 700; color: var(--vet-muted); font-size: .9rem; }
.share-buttons a, .share-buttons button { width: 40px; height: 40px; border: 1px solid var(--vet-line); background: var(--vet-surface); border-radius: 50%; display: grid; place-items: center; color: var(--vet-ink); font-size: 1.05rem; cursor: pointer; transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease; }
.share-buttons a:hover, .share-buttons button:hover { transform: translateY(-3px); color: #fff; }
.share-buttons .s-fb:hover { background: #1877F2; border-color: #1877F2; }
.share-buttons .s-x:hover { background: #0E1116; border-color: #0E1116; }
.share-buttons .s-wa:hover { background: #25D366; border-color: #25D366; }
.share-buttons .s-in:hover { background: #0A66C2; border-color: #0A66C2; }
.share-buttons .s-copy:hover { background: var(--vet-primary); border-color: var(--vet-primary); color: #0E1116; }

/* ---------- 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); color: #0E1116 !important; }
.fa-emergency { background: #D64531; animation: pulse-emerg 2s infinite; }
@keyframes pulse-emerg { 0%,100% { box-shadow: 0 0 0 0 rgba(214,69,49,.5); } 50% { box-shadow: 0 0 0 12px rgba(214,69,49,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); color: var(--vet-primary); }

/* ============================================================
   Mobile safety-net + 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; }
.navbar-brand { min-width: 0; }

@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; }
    .navbar-nav .dropdown-menu { border: none; box-shadow: none; padding-left: .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: 575.98px) {
    .header-search .form-control { min-width: 0; }
    .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, .share-buttons { display: none !important; }
    body { background: #fff; }
}
