/* =====================================================================
   DOMEM GROUP — Master Stylesheet
   Restored + extended from the original homepage. Single source of truth.
   ===================================================================== */

:root {
    --brand-red: #C8102E;
    --brand-red-hover: #A00C22;
    --brand-red-dim: rgba(200, 16, 46, 0.08);
    --as-text: #102436;
    --as-muted: #607486;
    --as-line: rgba(200, 16, 46, 0.12);
    --dark: #0F141C;
    --glass: rgba(15, 20, 28, 0.75);
    --muted: rgba(255, 255, 255, 0.58);
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', Arial, sans-serif;
    background-color: #ffffff;
    padding-top: 76px !important;
    color: var(--as-text);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', Arial, sans-serif;
    letter-spacing: 0;
}

a { color: var(--brand-red); text-decoration: none; }
a:hover { color: var(--brand-red-hover); }

/* ============================================================
   HEADER NAVIGATION
   ============================================================ */
#header {
    position: fixed !important;
    top: 0; left: 0 !important; right: 0 !important;
    z-index: 9999;
    width: 100%;
    min-height: 76px;
    background: #ffffff !important;
    border-bottom: 1px solid var(--as-line);
    box-shadow: 0 10px 24px rgba(200, 16, 46, 0.05);
    display: flex !important;
    align-items: center;
}
#header .as-header-shell {
    display: grid !important;
    grid-template-columns: minmax(150px, 240px) 1fr minmax(100px, 160px);
    align-items: center;
    gap: 18px;
    width: min(100% - 32px, 1320px) !important;
    max-width: 1320px !important;
    margin: 0 auto !important;
}
#header .navbar {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: relative;
    background: transparent !important;
}
#header .navbar > ul {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 6px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
#header .navbar a {
    min-height: 52px;
    padding: 7px 12px;
    color: var(--as-text) !important;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none !important;
    border-radius: 8px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    line-height: 1.1;
    position: relative;
    transition: all 0.2s ease;
}
#header .nav-icon {
    width: 28px; height: 28px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    color: var(--brand-red);
    background: var(--brand-red-dim);
    font-size: 13px;
    transition: all 0.2s ease;
}
#header .navbar a:hover,
#header .navbar .active {
    color: var(--brand-red) !important;
    background: var(--brand-red-dim);
}
#header .navbar a:hover .nav-icon,
#header .navbar .active .nav-icon {
    color: #ffffff;
    background: var(--brand-red);
}
#header .navbar .dropdown { position: relative; }
#header .navbar .dropdown ul {
    display: block !important;
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(10px);
    min-width: 240px;
    padding: 8px;
    margin: 0 !important;
    border: 1px solid var(--as-line);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(200, 16, 46, 0.12);
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    z-index: 10000;
    list-style: none !important;
}
#header .navbar .dropdown::after {
    content: '';
    position: absolute;
    top: 80%; left: 0; width: 100%; height: 20px;
    background: transparent;
}
#header .navbar .dropdown:hover > ul {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateX(-50%) translateY(0) !important;
}
#header .navbar .dropdown ul a {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 9px 12px;
    font-size: 13px;
    min-height: auto;
    text-align: left;
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--dark);
    padding: 60px 0 !important;
}
.hero-bg {
    position: absolute; inset: 0; z-index: 0;
    background: url('https://images.unsplash.com/photo-1591604129939-f1efa4d9f7fa?w=1800&q=80') center 30% / cover no-repeat;
    filter: brightness(0.32) saturate(1.2);
    animation: bgZoom 26s ease-in-out infinite alternate;
}
@keyframes bgZoom {
    0%   { transform: scale(1); }
    100% { transform: scale(1.06); }
}
.hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: radial-gradient(ellipse 65% 100% at 0% 50%, rgba(15, 20, 28, 0.95) 0%, transparent 70%);
}
.hero-inner {
    position: relative; z-index: 3;
    width: 100%; max-width: 1280px;
    margin: 0 auto; padding: 40px 24px;
    display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px;
    align-items: center;
}
.brand-pill {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--brand-red-dim);
    border: 1px solid rgba(200, 16, 46, 0.2);
    border-radius: 100px; padding: 6px 14px; width: fit-content;
}
.brand-pill .live-dot {
    width: 8px; height: 8px; background: var(--brand-red);
    border-radius: 50%; animation: pulse 2s ease infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.4; transform: scale(1.4); }
}
.brand-pill span { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: #fff; font-weight: 600; }

.hero-title { font-size: clamp(2.2rem, 3.8vw, 3.5rem); font-weight: 300; line-height: 1.15; color: #fff; margin-top: 18px; }
.hero-title em {
    display: block; font-weight: 700; font-style: normal;
    background: linear-gradient(125deg, #ffffff 40%, var(--brand-red) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub { font-size: 14px; color: var(--muted); line-height: 1.7; padding-left: 14px; border-left: 3px solid var(--brand-red); margin-top: 20px; }
.section-eyebrow { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: #fff; font-weight: 600; margin-bottom: 12px; }
.consultants-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.c-card {
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px; padding: 12px; transition: all 0.2s;
}
.c-card:hover { background: rgba(200, 16, 46, 0.12); border-color: rgba(200, 16, 46, 0.3); transform: translateY(-2px); }
.c-card .cn { font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 4px; text-transform: uppercase; margin-bottom: 0; }
.c-card .cp { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #fff; font-family: monospace; margin-top: 4px; }
.c-card .cp i { color: var(--brand-red); }

/* ============================================================
   LOGIN CARD
   ============================================================ */
.login-card {
    background: var(--glass); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(200, 16, 46, 0.25); border-radius: 20px; padding: 36px 32px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}
.lc-eyebrow { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--brand-red); font-weight: 700; margin-bottom: 6px; }
.lc-title { font-size: 1.8rem; font-weight: 700; color: #fff; }
.lc-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.lc-divider { width: 40px; height: 3px; background: var(--brand-red); margin: 16px 0 24px; }

.field { position: relative; margin-bottom: 14px; }
.field-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,0.4); }
.field input {
    width: 100%; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px; padding: 12px 15px 12px 42px; font-size: 14px; color: #fff; outline: none; transition: all 0.2s;
}
.field input:focus { border-color: var(--brand-red); background: rgba(255,255,255,0.09); box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.2); }

.login-btn {
    width: 100%; padding: 13px; border: none; border-radius: 100px;
    background: var(--brand-red); color: #fff; font-size: 13px; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; transition: all 0.2s;
}
.login-btn:hover { background: var(--brand-red-hover); transform: translateY(-1px); }

/* ============================================================
   SECTION TITLES / FEATURE CARDS
   ============================================================ */
.section-title h2 { font-size: 28px; font-weight: 700; color: var(--as-text); margin-bottom: 8px; text-transform: uppercase; }
.section-title p  { color: var(--brand-red) !important; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 8px; }
.section-title.text-center p { margin-bottom: 30px; }

.item-card {
    background: #ffffff; border: 1px solid #eef2f5; border-radius: 12px;
    padding: 24px; text-align: center; transition: all 0.25s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02); height: 100%;
}
.item-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(200,16,46,0.06); border-color: rgba(200,16,46,0.15); }
.item-card .icon-box-wrapper {
    width: 64px; height: 64px; background: var(--brand-red-dim); color: var(--brand-red);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 24px; margin: 0 auto 18px; transition: all 0.2s ease;
}
.item-card:hover .icon-box-wrapper { background: var(--brand-red); color: #ffffff; }
.item-card h3 { font-size: 18px; font-weight: 700; color: var(--as-text); margin-bottom: 10px; }
.item-card p  { font-size: 13px; color: var(--as-muted); line-height: 1.6; margin-bottom: 20px; }

.btn-view-product {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 24px; border-radius: 100px; border: 1px solid var(--brand-red);
    color: var(--brand-red); font-size: 12px; font-weight: 700; text-decoration: none;
    text-transform: uppercase; transition: all 0.2s;
    background: transparent;
}
.btn-view-product:hover { background: var(--brand-red); color: #ffffff !important; }

/* ============================================================
   CONTACT BLOCK
   ============================================================ */
.contact .info-item { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 26px; }
.contact .info-item i {
    width: 44px; height: 44px; background: var(--brand-red-dim); color: var(--brand-red);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 16px; flex-shrink: 0; transition: all 0.2s;
}
.contact .info-item:hover i { background: var(--brand-red); color: #ffffff; }
.contact .info-item h4 { font-size: 16px; font-weight: 700; color: var(--as-text); margin-bottom: 4px; }
.contact .info-item p  { font-size: 13px; color: var(--as-muted); margin-bottom: 0; line-height: 1.5; }

/* ============================================================
   FOOTER
   ============================================================ */
#footer { background: #0F141C; color: #ffffff; padding-top: 60px; font-size: 13px; border-top: 4px solid var(--brand-red); }
#footer h4 { font-size: 14px; font-weight: 700; text-transform: uppercase; color: #ffffff; margin-bottom: 20px; position: relative; padding-bottom: 8px; }
#footer h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 30px; height: 2px; background: var(--brand-red); }
#footer .footer-links ul { list-style: none; padding: 0; margin: 0; }
#footer .footer-links ul li { padding: 8px 0; display: flex; align-items: center; gap: 8px; }
#footer .footer-links ul a { color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.2s; }
#footer .footer-links ul a:hover { color: var(--brand-red); }
#footer .credits { background: #090D12; padding: 24px 0; color: rgba(255,255,255,0.5); font-size: 12px; }

/* ============================================================
   PAGE-SPECIFIC: dashboard, tables, calculator
   ============================================================ */
.page-header {
    background: linear-gradient(135deg, var(--dark) 0%, #1a2330 100%);
    color: #fff;
    padding: 48px 0;
    border-bottom: 3px solid var(--brand-red);
}
.page-header h1 { font-size: 32px; font-weight: 700; margin: 0 0 8px; }
.page-header p  { color: var(--muted); font-size: 14px; margin: 0; }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: -40px; position: relative; z-index: 5; }
.kpi-card {
    background: #fff; border-radius: 12px; padding: 22px;
    box-shadow: 0 12px 32px rgba(15, 20, 28, 0.08);
    border: 1px solid #eef2f5;
    display: flex; align-items: center; gap: 16px;
}
.kpi-card .kpi-icon {
    width: 52px; height: 52px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; background: var(--brand-red-dim); color: var(--brand-red);
    flex-shrink: 0;
}
.kpi-card .kpi-label { font-size: 11px; color: var(--as-muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.kpi-card .kpi-value { font-size: 24px; font-weight: 700; color: var(--as-text); margin-top: 4px; }

.dmg-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.dmg-table thead th {
    background: #f7f9fb; color: var(--as-text); font-weight: 700;
    text-transform: uppercase; font-size: 11px; letter-spacing: 0.06em;
    padding: 12px 14px; text-align: left; border-bottom: 1px solid #eef2f5;
}
.dmg-table tbody td { padding: 12px 14px; border-bottom: 1px solid #eef2f5; vertical-align: middle; }
.dmg-table tbody tr:hover { background: #fafbfc; }
.status-pill {
    display: inline-block; padding: 3px 10px; border-radius: 100px;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
}
.status-pill.pending   { background: #fff3cd; color: #856404; }
.status-pill.confirmed { background: #d4edda; color: #155724; }
.status-pill.cancelled { background: #f8d7da; color: #721c24; }
.status-pill.completed { background: #d1ecf1; color: #0c5460; }
.status-pill.open      { background: #d4edda; color: #155724; }
.status-pill.sold_out  { background: #fff3cd; color: #856404; }
.status-pill.closed    { background: #e2e3e5; color: #383d41; }
.status-pill.active    { background: #d4edda; color: #155724; }
.status-pill.inactive  { background: #e2e3e5; color: #383d41; }
.status-pill.suspended { background: #f8d7da; color: #721c24; }
.status-pill.new       { background: #cfe2ff; color: #084298; }
.status-pill.read      { background: #e2e3e5; color: #383d41; }
.status-pill.replied   { background: #d4edda; color: #155724; }
.status-pill.archived  { background: #e2e3e5; color: #383d41; }

.hotel-card {
    background: #fff; border: 1px solid #eef2f5; border-radius: 12px;
    overflow: hidden; transition: all 0.2s;
    box-shadow: 0 8px 24px rgba(0,0,0,0.03);
}
.hotel-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(200,16,46,0.08); border-color: rgba(200,16,46,0.2); }
.hotel-card .img-wrap { position: relative; padding-top: 60%; background: #f0f3f7; overflow: hidden; }
.hotel-card .img-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hotel-card .img-wrap .badge-city {
    position: absolute; top: 12px; left: 12px;
    background: rgba(15, 20, 28, 0.85); color: #fff;
    padding: 4px 10px; border-radius: 100px; font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em;
}
.hotel-card .img-wrap .badge-stars {
    position: absolute; top: 12px; right: 12px;
    background: rgba(200, 16, 46, 0.95); color: #fff;
    padding: 4px 10px; border-radius: 100px; font-size: 11px; font-weight: 700;
}
.hotel-card .body { padding: 18px 20px 20px; }
.hotel-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; color: var(--as-text); }
.hotel-card .meta { color: var(--as-muted); font-size: 12px; margin-bottom: 12px; }
.hotel-card .amenities { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.hotel-card .amenities span {
    background: #f0f3f7; color: var(--as-text);
    padding: 3px 8px; border-radius: 4px; font-size: 10px; font-weight: 600;
}

.calculator-form { background: #fff; border: 1px solid #eef2f5; border-radius: 12px; padding: 28px; box-shadow: 0 8px 24px rgba(0,0,0,0.03); }
.quote-box {
    background: linear-gradient(135deg, var(--dark) 0%, #1a2330 100%);
    color: #fff; border-radius: 12px; padding: 28px;
    border: 1px solid rgba(200, 16, 46, 0.3);
    box-shadow: 0 20px 50px rgba(15, 20, 28, 0.2);
}
.quote-box .quote-total { font-size: 32px; font-weight: 700; color: #fff; margin: 8px 0 0; }
.quote-box .quote-total small { font-size: 12px; color: var(--muted); font-weight: 500; display: block; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.1em; }
.quote-line { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 13px; }
.quote-line:last-child { border-bottom: none; }
.quote-line .lbl { color: var(--muted); }
.quote-line .val { color: #fff; font-weight: 600; font-family: monospace; }

/* Form controls */
.form-control, .form-select {
    border-radius: 8px; border-color: #e2e8ee; font-size: 14px; padding: 10px 12px;
}
.form-control:focus, .form-select:focus {
    border-color: var(--brand-red); box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.15);
}
.form-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--as-text); margin-bottom: 6px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1199px) {
    .hero-inner { grid-template-columns: 1fr; gap: 36px; text-align: center; }
    .hero-sub { border-left: none; padding-left: 0; max-width: 100%; }
    .brand-pill { margin: 0 auto; }
    .consultants-grid { max-width: 650px; margin: 0 auto; }
    .login-card { max-width: 480px; margin: 0 auto; }
}
@media (max-width: 767px) {
    #header .as-header-shell { grid-template-columns: 1fr; justify-items: center; gap: 8px; padding: 8px 0; }
    body { padding-top: 130px !important; }
    .consultants-grid { grid-template-columns: 1fr; }
    #header .navbar > ul { overflow-x: auto; max-width: 100vw; padding: 4px 12px !important; }
    .kpi-grid { grid-template-columns: 1fr; }
}
