/* SDN Marine Pty Ltd — base styles */

:root {
    --primary: #0b3d5e;
    --primary-dark: #072a42;
    --accent: #00a3a3;
    --accent-light: #4dd6d6;
    --bg: #f4f8fb;
    --surface: #ffffff;
    --text-dark: #1a2b3c;
    --text-light: #5a6e7f;
    --border: #cddfe8;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg);
}

img,
svg {
    display: block;
    max-width: 100%;
}

.container {
    width: min(90%, 1200px);
    margin-inline: auto;
    padding-block: 1.5rem;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
}

/* Navbar */
.navbar {
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 0.75rem;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links ul {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

.nav-cta {
    margin-left: 1rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2.5px;
    background-color: var(--primary);
    transition: background-color 0.2s;
}

/* Hero */
.hero {
    background: linear-gradient(rgba(11, 61, 94, 0.85), rgba(11, 61, 94, 0.9)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='600' viewBox='0 0 1200 600'%3E%3Crect width='1200' height='600' fill='%230b3d5e'/%3E%3Cpath d='M200 550c150-100 300-200 500-200s350 100 600 0v150H200z' fill='%2300a3a3' fill-opacity='0.15'/%3E%3Cpath d='M0 580c120-80 240-160 400-160s280 80 500 0h300v160H0z' fill='%23ffffff' fill-opacity='0.04'/%3E%3C/svg%3E") center/cover no-repeat;
    color: var(--surface);
    text-align: center;
    padding-block: 4rem 3rem;
}

.hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin-bottom: 1rem;
}

.hero-sub {
    font-size: 1.1rem;
    max-width: 42rem;
    margin-inline: auto;
    margin-bottom: 2rem;
    color: #e6eef3;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.7rem 1.6rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--accent-light);
}

.btn-outline {
    background-color: transparent;
    color: var(--surface);
    border-color: var(--surface);
}

.btn-outline:hover {
    background-color: var(--surface);
    color: var(--primary);
}

/* Trust strip */
.trust-strip {
    background-color: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.trust-strip .container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1rem;
    padding-block: 1rem;
}

.trust-item {
    text-align: center;
    min-width: 120px;
}

.trust-item strong {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.trust-item span {
    font-weight: 600;
    color: var(--text-dark);
}

/* Services preview */
.services-preview {
    padding-block: 3rem 2rem;
    text-align: center;
}

.services-preview h2 {
    font-size: clamp(1.6rem, 3vw, 2rem);
    margin-bottom: 0.5rem;
}

.section-sub {
    color: var(--text-light);
    max-width: 36rem;
    margin-inline: auto;
    margin-bottom: 2rem;
}

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

.service-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.service-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.service-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background-color: var(--primary-dark);
    color: var(--surface);
    margin-top: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    padding-block: 2.5rem;
}

.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--accent-light);
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-col a {
    color: #cbd8e1;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--accent-light);
}

.footer-creds {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #9fb0c0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    padding-block: 1rem;
    font-size: 0.85rem;
    color: #9fb0c0;
}

/* Mobile */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        right: 0;
        background-color: var(--surface);
        flex-direction: column;
        width: 240px;
        border: 1px solid var(--border);
        border-radius: 6px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        padding: 1rem;
        gap: 1rem;
        margin-top: 0.5rem;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    }

    .nav-links.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links ul {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }

    .nav-cta {
        margin-left: 0;
        width: 100%;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        padding-block: 3rem 2rem;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }

    .trust-strip .container {
        flex-direction: column;
        gap: 1rem;
    }
}
