/* ==========================================================================
   SENTHUR TRADING COMPANY - MASTER STYLESHEET
   ========================================================================== */

/* --- 1. GLOBAL VARIABLES (BRAND GUIDELINES) --- */
:root {
    /* Primary Colors */
    --trust-indigo: #1A365D;
    --clinical-white: #FFFFFF;
    
    /* Secondary / Accent Colors */
    --senthur-crimson: #D9381E;
    --cosmetic-rose: #F4DEE5;

    /* Typography */
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Inter', sans-serif;
    
    /* UI Variables */
    --box-shadow: 0 4px 20px rgba(26, 54, 93, 0.08);
    --border-radius: 6px;
    --transition: all 0.3s ease;
}

/* --- 2. BASE RESET & LAYOUT --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-secondary);
    color: var(--trust-indigo);
    background-color: var(--clinical-white);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

main {
    flex: 1; /* Pushes the footer to the bottom */
}

/* --- 3. TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--trust-indigo);
    line-height: 1.2;
}

h1 { font-size: 2.8rem; margin-bottom: 20px; }
h2 { font-size: 2.2rem; margin-bottom: 15px; }
h3 { font-size: 1.5rem; margin-bottom: 10px; }

p {
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 20px;
}

/* --- 4. UTILITY & LAYOUT CLASSES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.bg-brand-texture {
    background-color: var(--trust-indigo);
    background-image: url('../images/Brand_Pattern_Texture.png');
    background-repeat: repeat;
    color: var(--clinical-white);
}

.bg-brand-texture h1, .bg-brand-texture h2, .bg-brand-texture h3, .bg-brand-texture p {
    color: var(--clinical-white);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: center;
}

/* --- 5. UI COMPONENTS (BUTTONS & CARDS) --- */
.btn-primary {
    display: inline-block;
    background-color: var(--senthur-crimson);
    color: var(--clinical-white) !important;
    font-family: var(--font-secondary);
    font-weight: 500;
    padding: 14px 28px;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary:hover {
    background-color: #b82b15;
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-block;
    background-color: transparent;
    color: var(--trust-indigo);
    border: 2px solid var(--trust-indigo);
    font-family: var(--font-secondary);
    font-weight: 500;
    padding: 12px 26px;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: var(--transition);
}

.btn-outline:hover {
    background-color: var(--trust-indigo);
    color: var(--clinical-white);
}

.card {
    background: var(--clinical-white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border-top: 4px solid var(--trust-indigo);
}

/* --- 6. FORMS & TABLES (FOR CLIENT DASHBOARD) --- */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e0;
    border-radius: var(--border-radius);
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--trust-indigo);
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

table.data-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-secondary);
    text-align: left;
    background: var(--clinical-white);
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
}

table.data-table th {
    background-color: var(--trust-indigo);
    color: var(--clinical-white);
    padding: 15px;
    font-weight: 500;
}

table.data-table td {
    padding: 15px;
    border-bottom: 1px solid #edf2f7;
    color: #4a5568;
}

/* --- 7. SECTION PADDING --- */
.section-padding {
    padding: 80px 0;
}


/* ==========================================================================
   8. RESPONSIVE MEDIA QUERIES (TABLETS & MOBILE)
   ========================================================================== */

/* --- TABLET VIEW (Max Width: 992px) --- */
@media screen and (max-width: 992px) {
    
    /* Navigation Adjustments */
    .site-header .container {
        flex-direction: column !important;
        padding-top: 20px !important;
        padding-bottom: 20px !important;
        gap: 20px !important;
    }

    .main-nav {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 15px !important;
    }

    /* Footer Grid Override */
    .site-footer .grid-2 {
        grid-template-columns: 1fr 1fr !important;
    }

    /* Form Grids Override */
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

/* --- MOBILE VIEW (Max Width: 768px) --- */
@media screen and (max-width: 768px) {
    
    /* Container & Spacing */
    .container {
        padding: 0 20px;
    }
    
    .section-padding {
        padding: 50px 0 !important;
    }

    /* Hero Section Paddings (Overrides the inline 140px/160px) */
    .hero {
        padding: 70px 0 !important;
    }

    /* Typography Scaling */
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.4rem; }
    p { font-size: 1rem; }

    /* Card Padding Reduction */
    .card {
        padding: 25px !important;
    }

    /* Dashboard Sidebar Layout Override */
    .container.grid-2[style*="250px"] {
        grid-template-columns: 1fr !important;
    }

    /* Single Column Grid Force */
    .grid-2 {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    /* Footer Final Stack Override */
    .site-footer .grid-2 {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
        text-align: center;
    }

    /* Center Footer Logo & Links */
    .footer-brand img {
        margin: 0 auto 25px auto !important;
    }
    
    .footer-brand p {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-brand div[style*="display: flex"] {
        justify-content: center !important;
    }

    /* Make buttons full width for easier tapping on mobile */
    .btn-primary, .btn-outline {
        display: block;
        width: 100%;
        margin-top: 10px;
    }

    /* Responsive Data Tables */
    table.data-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        border: 1px solid #edf2f7;
    }
    
    table.data-table th, table.data-table td {
        padding: 12px;
    }
    
    /* Responsive Cookie Banner */
    #cookie-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
        width: auto;
        padding: 15px;
    }
}