/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
    background: #1b2a4a;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.78rem;
    padding: 7px 0;
}

.top-bar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: flex-end;
}

.top-bar-info {
    display: flex;
    gap: 28px;
    align-items: center;
}

.top-bar-info i {
    color: rgba(255, 255, 255, 0.5);
    margin-right: 6px;
    font-size: 0.72rem;
}

/* ============================================================
   HEADER
   ============================================================ */
header {
    background: #fff;
    border-bottom: 3px solid #1b2a4a;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo-img {
    height: 55px;
    width: auto;
    display: block;
}

/* Navigation */
.main-nav {
    display: flex;
    gap: 8px;
    align-items: center;
}

.main-nav a {
    color: #1b2a4a;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    padding: 8px 14px;
    position: relative;
    transition: all 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: #fff;
    background: #1b2a4a;
}

/* ============================================================
   HERO BANNER (home page)
   ============================================================ */
#hero {
    width: 100%;
    position: relative;
    overflow: hidden;
    line-height: 0;
    background: #1b2a4a;
}

.hero-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center 40%;
    display: block;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(27, 42, 74, 0.9) 0%,
        rgba(27, 42, 74, 0.55) 50%,
        rgba(27, 42, 74, 0.25) 100%
    );
    pointer-events: none;
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
    line-height: 1.4;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.6rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
}

.hero-content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 520px;
    margin-bottom: 24px;
    font-weight: 300;
    line-height: 1.7;
}

.hero-btn {
    display: inline-block;
    padding: 11px 32px;
    background: #c0392b;
    color: #fff;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    transition: background 0.2s ease;
    align-self: flex-start;
}

.hero-btn:hover {
    background: #a93226;
}

/* ============================================================
   PAGE BANNER (subpages)
   ============================================================ */
.page-banner {
    width: 100%;
    position: relative;
    overflow: hidden;
    line-height: 0;
    background: #1b2a4a;
}

.page-banner-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.page-banner-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    line-height: 1.4;
}

.page-banner-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.page-banner-content p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
}

/* ============================================================
   MAIN TWO-COLUMN LAYOUT
   ============================================================ */
.main-wrapper {
    background: #fff;
    padding: 50px 0 70px;
}

.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 50px;
    align-items: start;
}

/* Content + sidebar layout for subpages */
.content-with-sidebar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 50px;
    align-items: start;
}

/* ============================================================
   LEFT COLUMN / MAIN CONTENT
   ============================================================ */
.main-left section {
    margin-bottom: 45px;
}

.main-left h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #1b2a4a;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #1b2a4a;
    text-align: left;
}

.main-left p {
    font-size: 0.9rem;
    line-height: 1.85;
    color: #444;
    margin-bottom: 14px;
}

.main-left p a {
    color: #1b2a4a;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid #1b2a4a;
    transition: opacity 0.2s ease;
}

.main-left p a:hover {
    opacity: 0.7;
}

/* Contact list */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 0.9rem;
    color: #333;
    padding: 12px 16px;
    background: #f5f6f8;
    border-left: 3px solid #1b2a4a;
}

.contact-row i {
    color: #1b2a4a;
    width: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 0.9rem;
}

.contact-row a {
    color: #1b2a4a;
    text-decoration: none;
    font-weight: 500;
}

.contact-row a:hover {
    text-decoration: underline;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-section {
    background: #f5f6f8;
    border: 1px solid #e2e4e8;
    padding: 0;
}

.sidebar-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: #1b2a4a;
    padding: 14px 18px;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list li {
    border-bottom: 1px solid #e2e4e8;
}

.sidebar-list li:last-child {
    border-bottom: none;
}

.sidebar-list li a {
    display: block;
    padding: 11px 18px;
    color: #333;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.15s ease;
}

.sidebar-list li a:hover,
.sidebar-list li a.active {
    background: #1b2a4a;
    color: #fff;
    padding-left: 22px;
}

/* Sidebar emergency contact */
.sidebar-emergency {
    font-size: 0.82rem;
    color: #666;
    padding: 14px 18px 4px;
    line-height: 1.5;
}

.sidebar-phone,
.sidebar-email {
    font-size: 0.88rem;
    padding: 4px 18px;
    color: #1b2a4a;
    font-weight: 600;
}

.sidebar-phone {
    padding-top: 10px;
}

.sidebar-email {
    padding-bottom: 16px;
}

.sidebar-email a {
    color: #1b2a4a;
    text-decoration: none;
}

.sidebar-email a:hover {
    text-decoration: underline;
}

.sidebar-phone i {
    margin-right: 6px;
    font-size: 0.8rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background: #1b2a4a;
    color: rgba(255, 255, 255, 0.75);
}

.footer-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 45px 20px 35px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 40px;
}

.footer-col h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col p {
    font-size: 0.82rem;
    line-height: 1.7;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.65);
}

.footer-col p i {
    margin-right: 8px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.82rem;
    transition: color 0.2s ease;
}

.footer-col ul li a:hover {
    color: #fff;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.footer-social a:hover {
    background: #fff;
    color: #1b2a4a;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================================
   TERMS, PRIVACY & ADMIRALTY PAGES
   ============================================================ */
#terms, #privacy, #admiralty {
    max-width: 860px;
    margin: 0 auto;
    padding: 0;
}

/* When inside content-with-sidebar, remove max-width constraint */
.content-with-sidebar #admiralty {
    max-width: none;
}

#terms h2, #privacy h2, #admiralty h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #1b2a4a;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #1b2a4a;
}

#terms h3, #privacy h3 {
    font-size: 1.02rem;
    font-weight: 600;
    margin: 28px 0 10px;
    color: #1b2a4a;
}

#terms p, #privacy p, #admiralty p {
    line-height: 1.85;
    margin-bottom: 14px;
    color: #444;
    font-size: 0.9rem;
}

#terms p a, #privacy p a, #admiralty p a {
    color: #1b2a4a;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid #1b2a4a;
}

#terms p a:hover, #privacy p a:hover, #admiralty p a:hover {
    opacity: 0.7;
}

#terms ul, #privacy ul, #privacy ol {
    margin: 14px 0 14px 28px;
}

#terms li, #privacy li {
    margin-bottom: 10px;
    color: #444;
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 768px) {
    .top-bar-info {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
        font-size: 0.72rem;
    }

    .header-container {
        flex-direction: column;
        gap: 12px;
    }

    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
    }

    .main-nav a {
        font-size: 0.75rem;
        padding: 6px 10px;
    }

    .main-container,
    .content-with-sidebar {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: -1;
    }

    .hero-img {
        height: 260px;
    }

    .hero-content h1 {
        font-size: 1.7rem;
    }

    .hero-content p {
        font-size: 0.88rem;
    }

    .page-banner-img {
        height: 180px;
    }

    .page-banner-content h1 {
        font-size: 1.5rem;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}
