/**
 * Intermarine N.V. – Main styles
 * Colors: marineblauw #003399, lichtblauw #00AEEF, white
 * Breakpoints: 500px mobile, 800px tablet
 */

:root {
    --marine: #003399;
    --licht: #00AEEF;
    --white: #ffffff;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-700: #374151;
    --gray-900: #111827;
    --marine-tint: rgba(0, 51, 153, 0.04);
    --max-width: 1100px;
    --header-h: 70px;
    --radius: 6px;
    --radius-lg: 10px;
    --space-1: 0.5rem;
    --space-2: 1rem;
    --space-3: 1.5rem;
    --space-4: 2rem;
    --space-5: 2.5rem;
    --space-6: 3rem;
    --transition: 0.2s ease;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 51, 153, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--gray-900);
    background: var(--white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--marine);
    text-decoration: none;
}

a:hover {
    color: var(--licht);
    text-decoration: underline;
}

a:focus-visible {
    outline: 2px solid var(--licht);
    outline-offset: 2px;
    text-decoration: none;
}

/* Skip link: visible on focus for keyboard users */
.skip-link {
    position: absolute;
    top: -3rem;
    left: var(--space-2);
    z-index: 200;
    padding: var(--space-1) var(--space-2);
    background: var(--marine);
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius);
    transition: top var(--transition);
}

.skip-link:focus {
    top: var(--space-2);
    outline: 2px solid var(--licht);
    outline-offset: 2px;
}

/* ----- Header sticky ----- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 2px solid var(--marine);
    box-shadow: 0 2px 8px rgba(0, 51, 153, 0.08);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.25rem;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 44px;
    width: auto;
}

/* Nav desktop */
.nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    padding: 0.25rem 0.375rem;
    font-weight: 500;
    color: var(--marine);
    text-decoration: none;
    border-radius: var(--radius);
}

.nav-link:hover {
    background: rgba(0, 51, 153, 0.08);
    color: var(--marine);
    text-decoration: none;
}

.nav-link.active {
    color: var(--licht);
    text-decoration: none;
}

.nav-link:focus-visible {
    outline: 2px solid var(--licht);
    outline-offset: 2px;
}

/* Hide Home in desktop nav; show in hamburger menu */
.nav .nav-link:first-child {
    display: none;
}

/* Hamburger: hidden on desktop */
.nav-toggle {
    display: none;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    min-width: 44px;
    height: 44px;
    padding: 0 0.75rem;
    border: 1px solid var(--marine);
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    color: var(--marine);
    font-family: inherit;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-toggle-text {
    display: none;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    width: 24px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
}

.hamburger {
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    top: 7px;
}

.nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Tablet: 800px */
@media (max-width: 800px) {
    .nav .nav-link:first-child {
        display: block;
    }
    .nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.3s ease, opacity 0.2s ease;
        text-align: right;
        align-items: stretch;
    }

    .nav.is-open {
        max-height: 80vh;
        overflow-y: auto;
        opacity: 1;
    }

    .nav-link {
        display: block;
        padding: 0.375rem 2rem 0.375rem 0.5rem;
        width: 100%;
        border-bottom: 1px solid var(--gray-200);
        text-align: right;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle-text {
        display: inline;
    }
}

/* Mobile: 500px */
@media (max-width: 500px) {
    .header-inner {
        padding: 0 1rem;
    }

    .logo img {
        height: 36px;
    }
}

/* ----- Main ----- */
.main {
    position: relative;
    min-height: calc(100vh - var(--header-h) - 200px);
    padding-top: 0;
    padding-bottom: var(--space-6);
}

.main-decoration {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: -1;
    opacity: 0.3;
    pointer-events: none;
    line-height: 0;
}

.main-decoration img {
    max-width: min(500px, 62.5vw);
    height: auto;
    display: block;
}

.main > .hero + .section {
    padding-top: var(--space-3);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.25rem;
}

@media (max-width: 500px) {
    .container {
        padding: 0 1rem;
    }
}

/* ----- Hero / sections ----- */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--marine) 0%, #002266 100%);
    color: var(--white);
    padding: var(--space-6) 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero .container,
.boat-hero .container {
    position: relative;
    z-index: 1;
}

.hero-decoration--left {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 0;
    opacity: 0.1;
    pointer-events: none;
    line-height: 0;
}

.hero-decoration--left img {
    max-width: min(500px, 62.5vw);
    height: auto;
    display: block;
}

.hero-with-img .hero-decoration--left {
    top: 16px;
    transform: none;
}

.hero h1 {
    margin: 0 0 var(--space-1);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero .subtitle {
    font-size: 1.125rem;
    opacity: 0.95;
    max-width: 38em;
    margin: 0 auto;
    line-height: 1.5;
}

/* Hero with background image (placeholder) */
.hero-with-img {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    min-height: 240px;
    padding: var(--space-5) 0;
}

.hero-with-img .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 51, 153, 0.85) 0%, rgba(0, 34, 102, 0.9) 100%);
}

.hero-with-img .container {
    position: relative;
    z-index: 1;
}

.hero-with-img h1 {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.hero-placeholder-img {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-placeholder-img img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* Section figures (placeholder boat images) */
.section-figure {
    margin: 0 auto 1.5rem;
    max-width: 800px;
}

.section-figure img {
    width: 100%;
    max-width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.section-figure figcaption {
    font-size: 0.9rem;
    color: var(--gray-700);
    margin-top: 0.5rem;
}

.boat-figure {
    margin-bottom: 1.5rem;
}

.boat-figure img {
    max-width: 100%;
}

.section {
    padding: var(--space-5) 0;
}

.section:nth-child(even) {
    background: var(--marine-tint);
}

.section-title {
    margin: 0 0 var(--space-2);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--marine);
    line-height: 1.3;
}

.section-intro {
    margin: 0 auto var(--space-3);
    max-width: 65ch;
    line-height: 1.6;
}

/* Cards / blocks */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: var(--space-4);
}

.card {
    display: flex;
    flex-direction: column;
    background: #f6f7f9;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-3);
    box-shadow: 0 3px 16px rgba(0, 0, 0, 0.1);
    transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}

.card .card-image {
    margin: calc(-1 * var(--space-3)) calc(-1 * var(--space-3)) var(--space-2);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
    height: 200px;
}

.card .card-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: bottom;
}

.card .card-action {
    margin-top: auto;
    margin-bottom: 0;
}

.card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 51, 153, 0.2);
}

.card h3 {
    margin: 0 0 0.25rem;
    color: var(--marine);
    font-size: 1.125rem;
    font-weight: 600;
}

.card h3 + p {
    margin-top: 0;
}

/* Lists */
ul.bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

ul.bullets li {
    padding: 0.1rem 0 0.1rem 1.5rem;
    position: relative;
}

ul.bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 6px;
    height: 6px;
    background: var(--licht);
    border-radius: 50%;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    font-weight: 600;
    color: var(--white);
    background: var(--marine);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn:hover {
    background: var(--licht);
    color: var(--white);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

.btn-licht {
    background: var(--licht);
}

.btn-licht:hover {
    background: var(--marine);
}

.btn-small {
    padding: 0.4rem 0.9rem;
    font-size: 0.9rem;
}

/* Canoe model cards (8m, 9m, 10m) */
.canoe-model-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    align-items: start;
    margin-bottom: 2.5rem;
    padding: var(--space-4);
    padding-left: var(--space-4);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--marine);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.canoe-model-card:last-of-type {
    margin-bottom: 1rem;
}

.canoe-model-image {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--gray-100);
}

.canoe-model-image img {
    width: 100%;
    height: auto;
    display: block;
}

.canoe-model-info h3 {
    margin: 0 0 0.5rem;
    color: var(--marine);
    font-size: 1.25rem;
}

.canoe-model-desc {
    font-size: 0.95rem;
    color: var(--gray-700);
    margin: 0 0 1rem;
}

.spec-table {
    width: 100%;
    max-width: 320px;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.spec-table th,
.spec-table td {
    padding: 0.35rem 0.5rem 0.35rem 0;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.95rem;
}

.spec-table th {
    color: var(--gray-700);
    font-weight: 500;
    width: 45%;
}

.table-wrap {
    overflow-x: auto;
    margin-bottom: var(--space-4);
}

.accessoires-table {
    max-width: none;
    min-width: 480px;
}

.accessoires-table th,
.accessoires-table td {
    padding: 0.5rem 0.4rem;
    vertical-align: top;
}

@media (max-width: 500px) {
    .accessoires-table th,
    .accessoires-table td {
        padding: 0.4rem 0.25rem;
    }
    .accessoires-table {
        min-width: 320px;
    }
}

.accessoires-table th {
    width: auto;
    background: var(--marine-tint);
    color: var(--marine);
    font-weight: 600;
}

.accessoires-table tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.02);
}

.accessoires-table td:nth-child(2),
.accessoires-table th:nth-child(2) {
    white-space: nowrap;
}

.accessoires-images {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: var(--space-2);
    margin-top: var(--space-4);
    margin-bottom: var(--space-5);
}

.accessoires-images img {
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: 0 3px 16px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.spec-alt {
    color: var(--gray-700);
    font-size: 0.9em;
}

.canoe-model-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

@media (max-width: 800px) {
    .canoe-model-card {
        grid-template-columns: 1fr;
    }

    .canoe-model-image {
        max-width: 400px;
    }
}

/* Two-column layout */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 800px) {
    .two-col {
        grid-template-columns: 1fr;
    }
}

/* ----- Footer ----- */
.site-footer {
    background: var(--marine);
    color: var(--white);
    margin-top: var(--space-6);
    padding-top: 1px; /* contains margin of first child */
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-5) 1.25rem;
    display: grid;
    grid-template-columns: 1fr minmax(200px, auto) minmax(120px, auto);
    gap: var(--space-5);
    align-items: start;
}

@media (max-width: 800px) {
    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-4);
    }
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.footer-heading {
    margin: 0 0 var(--space-1);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

.footer-brand img {
    height: 40px;
    width: auto;
    margin-bottom: var(--space-1);
    filter: brightness(0) invert(1);
}

.footer-tagline {
    margin: 0;
    font-size: 0.9375rem;
    opacity: 0.92;
    line-height: 1.5;
}

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

.footer-links a,
.footer-links span {
    color: var(--white);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--licht);
    text-decoration: underline;
}

.footer-links a:focus-visible {
    outline-color: var(--licht);
}

.footer-links i {
    margin-right: var(--space-1);
    width: 1em;
}

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

.footer-legal a {
    color: var(--white);
}

.footer-legal a:hover {
    color: var(--licht);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: var(--space-3) 1.25rem;
    text-align: center;
    font-size: 0.875rem;
    opacity: 0.92;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom .footer-tagline-bottom {
    margin-top: 0.35rem;
    font-size: 0.85rem;
    opacity: 0.9;
}

/* ----- News list ----- */
.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.news-item {
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), border-color var(--transition);
}

.news-item:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 51, 153, 0.15);
}

.news-item img {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin-bottom: var(--space-2);
    border-radius: var(--radius);
}

.news-item h2 {
    margin: 0 0 var(--space-1);
    font-size: 1.25rem;
    font-weight: 600;
}

.news-item h2 a {
    text-decoration: none;
}

.news-item h2 a:hover {
    color: var(--licht);
}

.news-item .meta {
    font-size: 0.875rem;
    color: var(--gray-700);
    margin-bottom: var(--space-1);
}

.news-item .excerpt {
    margin: 0 0 var(--space-2);
    line-height: 1.55;
}

.news-item > a:last-of-type {
    font-weight: 500;
}

/* ----- Contact ----- */
.contact-block {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-top: var(--space-3);
}

.contact-block a,
.contact-block span {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-lg);
    background: var(--marine-tint);
    border: 1px solid rgba(0, 51, 153, 0.1);
    color: var(--gray-900);
    text-decoration: none;
    transition: background var(--transition), border-color var(--transition);
}

.contact-block a:hover {
    background: rgba(0, 51, 153, 0.08);
    border-color: rgba(0, 51, 153, 0.2);
    color: var(--marine);
}

.contact-block span {
    cursor: default;
}

/* ----- Error page ----- */
.error-page {
    text-align: center;
    padding: var(--space-6) var(--space-2);
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-page .container {
    max-width: 28rem;
}

.error-page .error-icon {
    font-size: 4rem;
    color: var(--marine);
    opacity: 0.9;
    margin-bottom: var(--space-2);
}

.error-page h1 {
    color: var(--marine);
    margin: 0 0 var(--space-1);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
}

.error-page p {
    color: var(--gray-700);
    margin: 0 0 var(--space-4);
    font-size: 1.125rem;
}

.error-page .links {
    margin-top: var(--space-4);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    justify-content: center;
}

.error-page .links a {
    margin: 0;
}

/* ----- Boat detail ----- */
.boat-hero {
    position: relative;
    background: linear-gradient(135deg, var(--licht) 0%, var(--marine) 100%);
    color: var(--white);
    padding: var(--space-5) 0;
}

.boat-hero h1 {
    margin: 0 0 var(--space-1);
    font-weight: 700;
    line-height: 1.2;
}

.boat-hero .subtitle {
    margin: 0;
    opacity: 0.95;
}

.boat-content .section-title {
    margin-top: 1.5rem;
}

/* ----- Utility ----- */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-2 { margin-bottom: 1rem; }
