/*
 * Theme Variables and Design System
 */
:root {
    --primary-color: #0b1a30;
    /* Deep Navy Blue */
    --secondary-color: #c99c33;
    /* Gold/Ochre */
    --secondary-hover: #b0872a;
    --text-primary: #333333;
    --text-secondary: #555555;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --error-color: #dc3545;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--bg-light);
    font-size: 16px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 0.5em;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-hover);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 
 * Buttons 
 */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-hover);
    color: white;
}

.btn-outline {
    background-color: transparent;
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.btn-outline:hover {
    background-color: var(--secondary-color);
    color: white;
}

.btn-large {
    padding: 14px 32px;
    font-size: 1.1rem;
}

.btn-small {
    padding: 6px 16px;
    font-size: 0.9rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* 
 * Header
 */
.site-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-title {
    margin: 0;
    font-size: 24px;
}

.site-title a {
    color: white;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.main-navigation a {
    color: white;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.main-navigation a:hover {
    color: var(--secondary-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/*
 * Footer
 */
.site-footer {
    background-color: #060e1a;
    color: #adb5bd;
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-widgets .footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    margin-bottom: 40px;
}

.footer-title {
    color: white;
    font-size: 20px;
    margin-bottom: 15px;
}

.footer-heading {
    color: white;
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #adb5bd;
}

.footer-column a:hover {
    color: var(--secondary-color);
}

.site-info {
    border-top: 1px solid #1a2639;
    padding-top: 20px;
}

.site-info .footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    font-size: 14px;
}

.legal-links a {
    color: #adb5bd;
    margin: 0 5px;
}

.legal-links a:hover {
    color: white;
}

/*
 * Front Page
 */
.hero-section {
    background-color: var(--primary-color);
    /* In a real theme you'd add a background image with overlay here */
    background-image: linear-gradient(135deg, rgba(11, 26, 48, 0.95), rgba(11, 26, 48, 0.8)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 0;
    text-align: center;
    position: relative;
}

.hero-title {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #e0e0e0;
    font-family: var(--font-body);
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.trust-section {
    background-color: white;
    padding: 60px 0;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 10;
    margin-top: -30px;
    border-radius: 8px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.trust-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.trust-item p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.trust-icon {
    font-size: 30px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

/*
 * Document Viewer Page
 */
.document-viewer-layout {
    display: flex;
    height: calc(100vh - 180px);
    /* Fill most of screen minus header/footer approximations */
    min-height: 600px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    margin: 40px auto;
    max-width: 1400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.document-sidebar {
    width: 320px;
    background-color: #f4f6f9;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 20px;
    background-color: var(--primary-color);
    color: white;
}

.sidebar-header h2 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.sidebar-header p {
    font-size: 0.85rem;
    color: #cbd5e1;
    margin: 0;
}

.document-list {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    flex-grow: 1;
}

.document-item {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.2s;
}

.document-item:hover {
    background-color: rgba(201, 156, 51, 0.1);
}

.document-item.active {
    background-color: white;
    border-left: 4px solid var(--secondary-color);
}

.doc-icon {
    font-size: 24px;
}

.doc-info h4 {
    margin: 0 0 5px 0;
    font-size: 0.95rem;
    font-family: var(--font-body);
}

.doc-date {
    font-size: 0.75rem;
    color: #888;
}

.document-main-area {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: white;
}

.viewer-header {
    padding: 15px 30px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
}

.viewer-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.viewer-container {
    flex-grow: 1;
    position: relative;
    background-color: #525659;
    /* PDF viewer typical bg */
}

.document-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.viewer-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border-left-color: var(--secondary-color);
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/*
 * Contact Page
 */
.page-header-simple {
    background-color: #1a2639;
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-header-simple .page-title {
    color: white;
}

.page-header-simple .page-subtitle {
    color: #cbd5e1;
    max-width: 700px;
    margin: 0 auto;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    padding: 60px 20px;
}

.contact-information h2 {
    margin-bottom: 20px;
}

.contact-details {
    margin-top: 30px;
}

.detail-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.detail-icon {
    font-size: 24px;
    color: var(--secondary-color);
}

.detail-text strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.detail-text a,
.detail-text span {
    color: var(--text-secondary);
}

.contact-trust-badge {
    background-color: rgba(201, 156, 51, 0.1);
    border-left: 4px solid var(--secondary-color);
    padding: 15px;
    border-radius: 4px;
    margin-top: 40px;
}

.form-wrapper {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    border-top: 5px solid var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group.half {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 16px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(201, 156, 51, 0.2);
}

.checkbox-label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: normal !important;
    cursor: pointer;
}

.checkbox-label input {
    margin-top: 4px;
}

.alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 25px;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 
 * Responsive 
 */
@media (max-width: 991px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .document-viewer-layout {
        flex-direction: column;
        height: auto;
        min-height: auto;
    }

    .document-sidebar {
        width: 100%;
        max-height: 300px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .document-iframe {
        height: 60vh;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .trust-grid {
        grid-template-columns: 1fr;
    }

    .main-navigation ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary-color);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    }

    .main-navigation.toggled ul {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .header-contact-btn {
        display: none;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .site-info .footer-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}