/* ==========================================================================
   AVIAL Maritime Consultancy Services — Base Stylesheet
   Brand colors sampled from AVIAL Picture PNG.png:
   Deep Navy #2C5DA0 (wordmark / diamond frame) · Sky Blue #50ADE6 (anchor)
   ========================================================================== */

:root {
    --navy: #2C5DA0;
    --navy-dark: #1F4373;
    --sky: #50ADE6;
    --sky-light: #EAF5FC;
    --white: #FFFFFF;
    --text: #24374F;
    --border: #D6E2F0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', 'Segoe UI', Arial, sans-serif;
    background-color: var(--white);
    color: var(--text);
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--white);
    border-bottom: 3px solid var(--navy);
    box-shadow: 0 2px 10px rgba(44, 93, 160, 0.08);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
}

.brand img {
    height: 64px;
    width: auto;
}

.brand-name {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.brand-name .brand-title {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--navy);
}

.brand-name .brand-subtitle {
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    color: var(--sky);
    font-weight: 600;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 0.5rem;
}

.main-nav a {
    display: block;
    padding: 0.55rem 1.1rem;
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 4px;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.main-nav a:hover,
.main-nav a:focus {
    background-color: var(--sky);
    color: var(--white);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    min-height: 62vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--navy);
    background-size: cover;
    background-position: center;
    padding: 4rem 1.5rem;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(31, 67, 115, 0.82),
        rgba(44, 93, 160, 0.55) 55%,
        rgba(31, 67, 115, 0.85)
    );
}

.hero-content {
    position: relative;
    max-width: 860px;
}

.hero h1 {
    color: var(--white);
    font-size: clamp(1.9rem, 4.5vw, 3.1rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
    margin-bottom: 1rem;
}

.hero .hero-tag {
    display: inline-block;
    color: var(--white);
    background-color: rgba(80, 173, 230, 0.85);
    padding: 0.4rem 1.2rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
    padding: 4.5rem 1.5rem;
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.section-alt {
    background-color: var(--sky-light);
}

.section h2 {
    color: var(--navy);
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    margin-bottom: 0.5rem;
    text-align: center;
}

.section .section-lead {
    color: var(--sky);
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 2.2rem;
}

.section .divider {
    width: 64px;
    height: 4px;
    background-color: var(--sky);
    border-radius: 2px;
    margin: 0 auto 2.2rem;
}

.intro-text p {
    max-width: 820px;
    margin: 0 auto 1.4rem;
    font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   Services grid
   -------------------------------------------------------------------------- */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.service-card {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-top: 4px solid var(--navy);
    border-radius: 6px;
    padding: 1.8rem 1.5rem;
    transition: border-top-color 0.25s ease, transform 0.25s ease,
        box-shadow 0.25s ease;
}

.service-card:hover {
    border-top-color: var(--sky);
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(44, 93, 160, 0.14);
}

.service-card h3 {
    color: var(--sky);
    font-size: 1.08rem;
    margin-bottom: 0.7rem;
}

.service-card p {
    font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
    background-color: var(--navy-dark);
    color: var(--white);
    text-align: center;
    padding: 2rem 1.5rem;
}

.site-footer .footer-brand {
    font-weight: 700;
    letter-spacing: 0.12em;
    margin-bottom: 0.3rem;
}

.site-footer p {
    font-size: 0.88rem;
    opacity: 0.85;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        padding-bottom: 0.6rem;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .brand img {
        height: 52px;
    }

    .hero {
        min-height: 48vh;
        padding: 3rem 1.25rem;
    }

    .section {
        padding: 3rem 1.25rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}
