/* SHRAAB WHISKY PORTFOLIO - BRANDED STYLESHEET (2026)
    Palette: Royal Gold, Deep Maroon, Midnight Navy, Vintage Parchment
*/

:root {
    /* Primary Brand Palette */
    --royal-gold: #C5A059;
    --deep-maroon: #4A0E0E;
    --midnight-navy: #0B1321;
    --vintage-parchment: #F4EBD0;

    /* Secondary Accent Palette */
    --deep-teal: #004D40;
    --aged-silver: #A8A9AD;
    --oak-wood: #6F4E37;
    --velvet-plum: #3B1C32;

    /* Semantic Colors */
    --success: #2ecc71;
    --error: #e74c3c;
}

/* --- Base Reset and General Styling --- */
body {
    font-family: 'Garamond', 'Georgia', serif;
    color: var(--midnight-navy);
    font-size: 0.95em;
    margin: 0;
    padding: 10px;
    background: var(--midnight-navy) url('images/shraab_bw.jpg') no-repeat center center fixed;
    background-size: cover; 
}

@media screen and (min-width: 769px) {
    body { padding: 30px; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: transparent !important;
}

.content-wrapper {
    background-color: rgba(244, 235, 208, 0.97); /* Vintage Parchment */
    padding: 25px;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    border: 1px solid var(--royal-gold);
}

/* --- Typography --- */
h1, h2 {
    color: var(--deep-maroon);
    border-bottom: 2px solid var(--royal-gold);
    padding-bottom: 12px;
    margin-top: 25px;
    font-family: 'Times New Roman', serif;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

a {
    color: var(--deep-teal);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: bold;
}

a:hover {
    color: var(--royal-gold);
    text-decoration: underline;
}

/* --- Valuation Box (The "Dashboard Hero") --- */
.valuation-box {
    display: flex;
    flex-direction: column;
    background-color: var(--midnight-navy);
    color: var(--vintage-parchment);
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 4px;
    gap: 10px;
    border-left: 5px solid var(--royal-gold);
}

@media screen and (min-width: 769px) {
    .valuation-box { flex-direction: row; justify-content: space-between; align-items: center; }
    .valuation-item { border-right: 1px solid var(--oak-wood); padding: 0 15px; }
    .valuation-item:last-child { border-right: none; }
}

.valuation-item {
    text-align: center;
    flex-grow: 1;
}

.valuation-item strong {
    display: block;
    font-size: 1.6em;
    margin-top: 5px;
    color: var(--royal-gold); /* Draw eye to key numbers */
}

/* --- Table Styling --- */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #fff;
    border: 1px solid var(--aged-silver);
}

table th, table td {
    padding: 12px;
    border: 1px solid rgba(168, 169, 173, 0.3);
    text-align: left;
}

table th {
    background-color: var(--deep-maroon);
    color: var(--royal-gold);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8em;
    letter-spacing: 1px;
}

/* --- Zebra Striping & Hover --- */
@media screen and (min-width: 769px) {
    table tbody tr:nth-child(even) {
        background-color: rgba(244, 235, 208, 0.4) !important;
    }
    table tbody tr:hover {
        background-color: rgba(197, 160, 89, 0.1) !important;
    }
}

/* --- Mobile Responsive (Card System) --- */
@media screen and (max-width: 768px) {
    table, thead, tbody, th, td, tr { display: block; }
    thead tr { position: absolute; top: -9999px; left: -9999px; }

    tr {
        margin-bottom: 20px;
        border-radius: 8px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        border: 1px solid var(--royal-gold) !important;
        overflow: hidden;
    }

    td { 
        border: none !important;
        border-bottom: 1px solid rgba(0,0,0,0.05) !important; 
        position: relative;
        padding-left: 50% !important; 
        text-align: right !important;
        min-height: 40px;
        background: var(--vintage-parchment) !important;
    }

    td:before { 
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: 45%; 
        text-align: left;
        font-weight: bold;
        color: var(--deep-maroon);
    }
}

/* --- Forms & Calculator --- */
.form-group { margin-bottom: 20px; }
.form-group label { color: var(--deep-maroon); font-weight: bold; display: block; margin-bottom: 5px; }

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--aged-silver);
    border-radius: 4px;
    background: #fff;
    color: var(--midnight-navy);
    box-sizing: border-box;
}

input:focus {
    outline: none;
    border-color: var(--royal-gold);
    box-shadow: 0 0 5px rgba(197, 160, 89, 0.3);
}

.btn-submit, .btn-sell {
    background-color: var(--deep-teal); /* Modernize traditional heritage */
    color: var(--vintage-parchment);
    padding: 14px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    transition: 0.3s background;
}

.btn-submit:hover, .btn-sell:hover { 
    background-color: var(--royal-gold);
    color: var(--midnight-navy);
}

/* --- Sale Page Calculator Enhancements --- */
.calc-box {
    background: var(--midnight-navy) !important;
    color: var(--vintage-parchment) !important;
    border: 1px solid var(--royal-gold);
}

.calc-row span.calc-val {
    color: var(--royal-gold);
}

.net-result.gain { color: var(--royal-gold) !important; }
.net-result.loss { color: var(--error) !important; }

/* --- Price Indicators --- */
.price-increase { color: var(--deep-teal); font-weight: bold; }
.price-decrease { color: var(--deep-maroon); font-weight: bold; }
.price-neutral { color: var(--aged-silver); }

/* --- Messages --- */
.message { 
    padding: 15px; 
    margin-bottom: 25px; 
    border-radius: 4px; 
    font-weight: bold; 
    border-left: 5px solid;
}
.success { 
    background-color: rgba(46, 204, 113, 0.1); 
    color: var(--deep-teal); 
    border-color: var(--success); 
}
.error { 
    background-color: rgba(231, 76, 60, 0.1); 
    color: var(--deep-maroon); 
    border-color: var(--error); 
}