/* ============================================================
   Salon PP — Public Site CSS  (elegant charcoal / gold / cream)
   Theme colours come from SiteSettings via inline CSS vars in _Layout
   (--primary, --accent, --dark). Defaults below match the gold theme.
   ============================================================ */

:root {
    --primary: #C9A24B;   /* gold */
    --accent: #C9A24B;    /* gold accent */
    --dark: #1A1A1A;      /* charcoal */
    --cream: #F5F2EC;     /* warm cream */
    --light: #FBF9F4;
    --border: #E5DFD2;
    --muted: #6b6b6b;
}

html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans Bengali", "Hind Siliguri", sans-serif;
    color: #2a2a2a;
    background: #fff;
    line-height: 1.65;
    overflow-x: clip; /* §31 safety net — clip not hidden (keeps sticky header working) */
}

h1, h2, h3, .section-title, .hero-title { font-family: 'Cormorant Garamond', 'Inter', Georgia, serif; }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--dark); }

.btn-primary { background: var(--primary); border-color: var(--primary); color: #1a1a1a; font-weight: 600; }
.btn-primary:hover { background: #b58e3a; border-color: #b58e3a; color: #1a1a1a; }
.btn-outline-primary { color: var(--dark); border-color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); border-color: var(--primary); color: #1a1a1a; }
.btn-outline-light:hover { color: var(--dark); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #1a1a1a; font-weight: 600; }
.btn-accent:hover { background: #b58e3a; border-color: #b58e3a; color: #1a1a1a; }

.text-primary { color: var(--primary) !important; }
.text-accent  { color: var(--accent) !important; }
.bg-primary   { background: var(--primary) !important; }
.bg-accent    { background: var(--accent) !important; }

/* ===== Top bar ===== */
.topbar { background: var(--dark); color: #cbbf9f; font-size: 13px; padding: 8px 0; }
.topbar a { color: #cbbf9f; }
.topbar a:hover { color: #fff; }

/* ===== Header ===== */
.site-header { background: #fff; box-shadow: 0 2px 10px rgba(26,26,26,.06); position: sticky; top: 0; z-index: 1020; }
.site-header .navbar-brand { font-weight: 700; color: var(--dark); min-width: 0; }
.site-header .navbar-brand .brand-name { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-header .nav-link { color: #3a3a3a; font-weight: 500; padding: 12px 14px; letter-spacing: .3px; }
.site-header .nav-link.active, .site-header .nav-link:hover { color: var(--primary); }

/* ===== Hero ===== */
.hero { position: relative; min-height: 560px; background: var(--dark); color: #fff; overflow: hidden; display: flex; align-items: center; }
.hero .hero-bg { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(26,26,26,.92), rgba(60,48,30,.6)),
    url('https://images.unsplash.com/photo-1521590832167-7bcbfaa6381f?w=1600&q=80') center/cover no-repeat; }
.hero .hero-inner { position: relative; z-index: 2; padding: 90px 0; }
.hero .hero-eyebrow { display: inline-block; color: var(--accent); letter-spacing: 3px; text-transform: uppercase; font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.hero .hero-title { font-size: 64px; font-weight: 700; line-height: 1.1; margin-bottom: 14px; }
.hero .hero-sub { font-size: 19px; opacity: .9; max-width: 640px; margin: 0 auto; }

/* ===== Sections ===== */
.section { padding: 80px 0; }
.section.bg-cream { background: var(--cream); }
.section-eyebrow { color: var(--primary); font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; }
.section-title { font-size: 38px; font-weight: 700; color: var(--dark); margin-top: 8px; margin-bottom: 16px; }

.intro-card { background: var(--cream); border: 1px solid var(--border); border-radius: 14px; padding: 28px; }

/* ===== CTA band ===== */
.cta-band { background: var(--dark); color: #fff; padding: 60px 0; }
.cta-band h2 { font-size: 34px; font-weight: 700; }

/* ===== Generic content card ===== */
.s-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 6px 22px rgba(26,26,26,.06); transition: transform .25s ease, box-shadow .25s ease; }
.s-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(26,26,26,.12); }

/* ===== Partners ===== */
.partner-logo { padding: 10px; opacity: .7; transition: opacity .2s; }
.partner-logo:hover { opacity: 1; }
.partner-logo img { max-height: 60px; max-width: 140px; }

/* ===== Footer ===== */
.site-footer { background: var(--dark); color: #cbbf9f; padding: 60px 0 24px; margin-top: 60px; }
.site-footer h5 { color: #fff; font-weight: 700; margin-bottom: 18px; font-size: 16px; text-transform: uppercase; letter-spacing: 1px; }
.site-footer a { color: #cbbf9f; }
.site-footer a:hover { color: #fff; }
.site-footer .footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 40px; padding-top: 20px; font-size: 13px; }
.site-footer .footer-bottom a { color: #cbbf9f; }
/* §31: long unbreakable strings in flex footer children */
.site-footer p, .site-footer li { min-width: 0; overflow-wrap: anywhere; }

/* ===== Floating WhatsApp + Call ===== */
.float-actions { position: fixed; right: 18px; bottom: 18px; z-index: 1030; display: flex; flex-direction: column; gap: 10px; }
.float-actions a { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 22px; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.float-actions .fa-whatsapp { background: #25D366; }
.float-actions .fa-call { background: var(--primary); color: #1a1a1a; }

/* ===== Misc ===== */
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 .2rem rgba(201,162,75,.18); }
.divider { height: 4px; width: 60px; background: var(--primary); border-radius: 2px; margin: 0 auto; }

/* §31: keep wide Bootstrap g-5 gutters from overflowing on tablet/mobile */
@media (max-width: 1199.98px) {
    .row.g-5, .row.gx-5 { --bs-gutter-x: 1.5rem; }
}

/* ===== TABLET (≤991px) ===== */
@media (max-width: 991.98px) {
    .topbar .small { font-size: 12px; }
    .hero { min-height: 480px; }
    .hero .hero-title { font-size: 48px; }
    .site-header .navbar-brand .brand-name { font-size: 22px; max-width: calc(100vw - 140px); }
    .section-title { font-size: 30px; }
    .section { padding: 56px 0; }
}

/* ===== MOBILE (≤767px) ===== */
@media (max-width: 767.98px) {
    .topbar { padding: 6px 0; font-size: 11px; }
    .topbar .small { font-size: 11px; flex: 1 1 auto; }
    .topbar a i { font-size: 14px; }

    .hero { min-height: 420px; }
    .hero .hero-inner { padding: 60px 0; }
    .hero .hero-title { font-size: 36px; line-height: 1.15; }
    .hero .hero-sub { font-size: 15px; }
    .hero .btn-lg { padding: 10px 18px; font-size: 15px; }

    .section { padding: 40px 0; }
    .section-title { font-size: 24px; }
    .cta-band h2 { font-size: 26px; }
    .intro-card { padding: 20px; }

    .site-footer { padding: 40px 0 20px; margin-top: 40px; }
    .site-footer h5 { font-size: 14px; margin-bottom: 12px; }

    .float-actions { right: 12px; bottom: 12px; gap: 8px; }
    .float-actions a { width: 46px; height: 46px; font-size: 18px; }

    /* Newsletter footer form stacks */
    .site-footer .col-lg-3 form { flex-wrap: wrap; }
    .site-footer .col-lg-3 form .form-control { flex: 1 1 100%; }
    .site-footer .col-lg-3 form .btn { flex: 1 1 100%; }
    .site-footer .footer-bottom { text-align: center; flex-direction: column; gap: .5rem !important; }
    .site-footer .footer-bottom > div { width: 100%; }
}

/* ===== EXTRA SMALL (≤480px) ===== */
@media (max-width: 480px) {
    .hero .hero-title { font-size: 30px; }
    .hero .hero-sub { font-size: 13px; }
    .section-title { font-size: 21px; }
    .cta-band h2 { font-size: 22px; }
}

/* ===== PRINT ===== */
@media print {
    .topbar, .site-header, .site-footer, .float-actions { display: none !important; }
    .section { padding: 20px 0; }
}
