/* Site-wide UI layer. Loads after style.css; keep overrides here rather than editing the theme file. */
:root {
    --brand: #b51d29;
    --brand-dark: #8a1420;
    --brand-soft: #fbeeef;
    --gold: #f6af04;
    --ink: #1f2430;
    --muted: #667085;
    --line: #e9e4dd;
    --surface: #ffffff;
    --page: #fbf7f1;
    --radius: 12px;
    --shadow: 0 1px 2px rgba(31, 36, 48, .05), 0 6px 20px rgba(31, 36, 48, .06);
    /* theme variables that drive every CTA */
    --cta-pink1: #b51d29;
    --cta-pink1h: #8a1420;
}

html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { overflow-x: clip; color: var(--ink); }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.fa { font-family: FontAwesome !important; }

/* Devanagari text needs room to breathe */
:lang(mr), p, li { line-height: 1.65; }

/* ---- Buttons ---- */
.btn, .cta-dark, .cta-3 a { min-height: 44px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 10px; font-weight: 600; }
.btn-sm { min-height: 36px; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover, .btn-primary:focus, .btn-primary:active,
.btn-primary:not(:disabled):not(.disabled):active { background: var(--brand-dark) !important; border-color: var(--brand-dark) !important; color: #fff !important; }
.btn-outline-primary { background: transparent; border: 1px solid var(--brand); color: var(--brand); }
.btn-outline-primary:hover { background: var(--brand); color: #fff; }

/* ---- Forms ---- */
.form-control, .form-select {
    min-height: 46px; font-size: 16px; color: var(--ink); /* 16px stops iOS zooming into inputs */
    border: 1px solid #d8d2c9; border-radius: 10px;
}
textarea.form-control { min-height: 110px; }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(181, 29, 41, .14); }
.pw-wrap { position: relative; display: block; }
.pw-wrap .form-control { padding-right: 48px; }
.pw-toggle { position: absolute; top: 1px; right: 1px; width: 44px; height: 44px; background: none; border: 0; color: var(--muted); cursor: pointer; }
.pw-toggle:hover { color: var(--brand); }

/* ---- Top navigation ---- */
.nav-soon { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); cursor: default; }
.nav-soon small { padding: 1px 6px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 10px; font-weight: 600; line-height: 1.5; }
.hom-top .bl .nav-signin {
    display: inline-flex; align-items: center; min-height: 38px; padding: 6px 18px;
    border-radius: 999px; background: var(--brand); color: #fff !important; font-weight: 600;
}
.hom-top .bl .nav-signin:hover { background: var(--brand-dark); }

.hom-nav .bl ul { display: flex; align-items: center; flex-wrap: nowrap; gap: 4px 18px; }
.hom-nav .bl li { padding: 0; margin: 0; white-space: nowrap; }
.hom-nav .bl li a, .hom-nav .bl li .smenu { color: var(--ink); font-size: 14px; font-weight: 500; text-transform: none; }
.hom-nav .bl li a:hover, .hom-nav .bl li .smenu:hover { color: var(--brand); }
.hom-nav .bl .nav-soon { font-size: 14px; }
.hom-nav .bl .smenu-open ul { display: block; }

/* ---- Hero ---- */
.hero-left > .btn { margin-left: 0 !important; margin-right: 0 !important; }

/* ---- Mobile menu ---- */
.mob-menu .mobile-menu { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; cursor: pointer; }
.mob-me-all .mob-me-clo { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: none; }
.sidebar-menu ul { list-style: none; margin: 0; padding: 0; }
.sidebar-menu li > a, .sidebar-menu li > .nav-soon {
    display: flex; align-items: center; justify-content: space-between; min-height: 46px; padding: 10px 4px;
    border-bottom: 1px solid var(--line); color: var(--ink); font-size: 15px; font-weight: 500; text-decoration: none;
}
.sidebar-menu li > .nav-soon { color: var(--muted); padding-left: 0; }
.sidebar-menu h4 { margin: 22px 0 4px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sidebar-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.sidebar-cta .btn { width: 100%; margin: 0; }

/* ---- Cards and surfaces ---- */
.db-nav, .pri-box, .all-pro-box, .db-int-pro-1 { border-radius: var(--radius); }

/* ---- Footer ---- */
.wed-hom-footer a { overflow-wrap: anywhere; }
.foot-reg { color: var(--brand); }
.foot-supp h2 { font-size: clamp(15px, 2.4vw, 20px); line-height: 1.6; overflow-wrap: anywhere; }
.wed-foot-link .nav-soon { font-size: inherit; }
.footer-socials a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }

/* ---- Member area ---- */
.db-nav-pro img[src$="../../"], .db-nav-pro img:not([src]) { display: none; }
.db-nav-list a { min-height: 44px; display: flex; align-items: center; }

/* ---- Tables never push the page wide ---- */
.table-responsive { -webkit-overflow-scrolling: touch; }

@media (max-width: 767.98px) {
    /* iOS zooms the page when focusing anything under 16px */
    input, select, textarea, .chosen-search input { font-size: 16px !important; }
    .row > ul { width: 100%; max-width: 100%; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
    .row > ul > li { width: 100%; max-width: 100%; margin-left: 0; margin-right: 0; }
    .mz-contact { max-width: 100%; overflow-wrap: anywhere; white-space: normal; }
    /* Member side menu: scrollable tab row instead of a full screen of links */
    .db-nav { padding: 6px; margin-bottom: 16px; }
    .db-nav-pro { display: none; }
    .db-nav-list ul { display: flex; gap: 4px; margin: 0; padding: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .db-nav-list ul::-webkit-scrollbar { display: none; }
    .db-nav-list ul li { flex: none; margin: 0; padding: 0; list-style: none; }
    .db-nav-list ul li a { padding: 8px 14px; border-radius: 999px; font-size: 14px; white-space: nowrap; background: none; }
    .db-nav-list ul li a:before { display: none; }
    .db-nav-list ul li a i { width: auto; margin-right: 6px; }
    .db-nav-list ul li a.act { background: var(--brand-soft); color: var(--brand); }
    .hero-left > .btn { width: 100%; }
    .container, .container-fluid { padding-left: 16px; padding-right: 16px; }
    .head-top { display: none; }
    .foot-count .btn { display: flex; width: 100%; margin-top: 12px; }
    h1 { overflow-wrap: anywhere; }
}

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