/* ==================================================
   RESET & BASE
================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
    background: #f5f7fa;
}

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

a {
    color: inherit;
}


/* ==================================================
   GENERAL PAGE CONTENT
================================================== */

main {
    width: min(1200px, 92%);
    margin: 40px auto;
}


/* ==================================================
   HEADER
================================================== */

.site-header {
    position: relative;
    z-index: 20;
    background: #ffffff;
    border-bottom: 1px solid #dfe5eb;
}

.header-inner {
    width: min(1200px, 92%);
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    color: #17324d;
    text-decoration: none;
}

.site-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.main-nav a {
    color: #33475b;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    color: #0f6f8f;
}

.main-nav a:focus-visible,
.site-brand:focus-visible {
    outline: 3px solid rgba(15, 111, 143, 0.3);
    outline-offset: 5px;
}


/* ==================================================
   HERO
================================================== */

.hero {
    position: relative;
    min-height: 580px;
    display: flex;
    align-items: flex-start;
    background-image: url("/images/hero-channel.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(8, 28, 46, 0.52) 0%,
            rgba(8, 28, 46, 0.22) 38%,
            rgba(8, 28, 46, 0.04) 70%
        );
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(1200px, 92%);
    margin: 0 auto;
    padding: 66px 0 0;
    color: #ffffff;
}

.hero-kicker {
    margin-bottom: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 620px;
    margin-bottom: 10px;
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    line-height: 1.08;
}

.hero-text {
    max-width: 650px;
    font-size: 1.1rem;
    line-height: 1.6;
}


/* ==================================================
   ESSENTIAL PORT INFORMATION
================================================== */

.port-notices {
    position: relative;
    z-index: 5;
    background: #ffffff;
    border-bottom: 1px solid #dce4eb;
}

.notice-grid {
    width: min(1140px, 92%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.notice-card {
    position: relative;
    display: block;
    min-height: 170px;
    padding: 38px 30px 32px;
    color: inherit;
    text-decoration: none;
    background: #ffffff;
    border-right: 1px solid #dce4eb;
    transition: background-color 0.2s ease;
}

.notice-card:first-child {
    border-left: 1px solid #dce4eb;
}

.notice-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 30px;
    width: 38px;
    height: 4px;
    background: #17324d;
}

.notice-card h2 {
    margin: 0 0 12px;
    color: #17324d;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.notice-card p {
    margin: 0;
    color: #53687a;
    font-size: 0.94rem;
    line-height: 1.6;
}

.notice-card:hover {
    background: #f5f8fa;
}

.notice-card:focus-visible {
    z-index: 2;
    outline: 3px solid rgba(15, 111, 143, 0.35);
    outline-offset: -3px;
}


/* Notice category accents */

.notice-danger::before {
    background: #c63d3d;
}

.notice-berthing::before {
    background: #2876aa;
}

.notice-environment::before {
    background: #38805f;
}

.notice-contact::before {
    background: #b0781f;
}


/* ==================================================
   TABLET
================================================== */

@media (max-width: 900px) {

    .header-inner {
        gap: 22px;
    }

    .main-nav {
        gap: 18px;
    }

    .notice-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .notice-card:nth-child(-n + 2) {
        border-bottom: 1px solid #dce4eb;
    }

    .notice-card:nth-child(odd) {
        border-left: 1px solid #dce4eb;
    }
}


/* ==================================================
   MOBILE HEADER & HERO
================================================== */

@media (max-width: 820px) {

    .header-inner {
        min-height: auto;
        padding: 16px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .main-nav {
        width: 100%;
        display: flex;
        gap: 10px 20px;
        flex-wrap: wrap;
    }
}

@media (max-width: 700px) {

    .hero {
        min-height: 440px;
        background-position: 54% center;
    }

    .hero-overlay {
        background:
            linear-gradient(
                90deg,
                rgba(8, 28, 46, 0.64) 0%,
                rgba(8, 28, 46, 0.30) 65%,
                rgba(8, 28, 46, 0.08) 100%
            );
    }

    .hero-content {
        padding: 42px 0 0;
    }

    .hero h1 {
        font-size: clamp(2.15rem, 10vw, 3rem);
    }

    .hero-text {
        max-width: 460px;
        font-size: 1rem;
    }
}


/* ==================================================
   SMALL MOBILE
================================================== */

@media (max-width: 560px) {

    main {
        width: 88%;
        margin: 32px auto;
    }

    .site-title {
        font-size: 1.1rem;
    }

    .main-nav {
        gap: 8px 16px;
    }

    .main-nav a {
        font-size: 0.94rem;
    }

    .hero {
        min-height: 420px;
        background-position: 58% center;
    }

    .hero-content {
        width: 88%;
        padding-top: 38px;
    }

    .hero-kicker {
        font-size: 0.74rem;
    }

    .hero-text br {
        display: none;
    }

    .notice-grid {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .notice-card,
    .notice-card:first-child,
    .notice-card:nth-child(odd) {
        min-height: auto;
        padding: 28px 6%;
        border-left: 0;
        border-right: 0;
        border-bottom: 1px solid #dce4eb;
    }

    .notice-card::before {
        left: 6%;
    }
}




/* ==================================================
   HOME SECTIONS
================================================== */

.home-section {
    padding: 80px 0;
    background: #ffffff;
}

.section-inner {
    width: min(1140px, 92%);
    margin: 0 auto;
}

.section-split {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 64px;
}

.section-kicker {
    display: block;
    margin-bottom: 10px;
    color: #2876aa;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.section-inner > .section-kicker {
    margin-top: 55px;
}

.section-inner > .section-kicker:first-child {
    margin-top: 0;
}
.section-copy h2 {
    max-width: 560px;
    margin-bottom: 22px;
    color: #17324d;
    font-size: clamp(2rem, 3.4vw, 3rem);
    line-height: 1.15;
}

.section-copy p {
    max-width: 590px;
    margin-bottom: 16px;
    color: #53687a;
    font-size: 1rem;
    line-height: 1.75;
}

.text-link {
    display: inline-block;
    margin-top: 10px;
    color: #17324d;
    text-decoration: none;
    font-weight: 700;
}

.text-link:hover {
    color: #2876aa;
}

.section-image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

@media (max-width: 820px) {
    .home-section {
        padding: 58px 0;
    }

    .section-split {
        grid-template-columns: 1fr;
        gap: 34px;
    }
}



/* ==================================================
   INTERNAL PAGES
================================================== */

.page-content {
    width: 100%;
    margin: 0;
}

.page-header {
    width: min(1140px, 92%);
    margin: 0 auto;
    padding: 70px 0 54px;
}

.page-kicker,
.section-kicker {
    margin-bottom: 10px;
    color: #2876aa;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.page-header h1 {
    margin-bottom: 14px;
    color: #17324d;
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.08;
}

.page-header > p:last-child {
    max-width: 680px;
    color: #53687a;
    font-size: 1.08rem;
}

.guide-section {
    padding: 72px 0;
    background: #ffffff;
}

.section-muted {
    background: #f4f7fa;
}

.section-inner,
.section-split {
    width: min(1140px, 92%);
    margin: 0 auto;
}

.section-split {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 64px;
}

.section-copy h2,
.section-inner h2 {
    margin-bottom: 20px;
    color: #17324d;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.15;
}

.section-copy p,
.section-inner > p {
    max-width: 760px;
    margin-bottom: 16px;
    color: #53687a;
    line-height: 1.75;
}

.section-image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.facility-list {
    margin-top: 34px;
    border-top: 1px solid #dce4eb;
}

.facility-item {
    display: grid;
    grid-template-columns: minmax(170px, 0.35fr) minmax(0, 1fr);
    gap: 40px;
    padding: 28px 0;
    border-bottom: 1px solid #dce4eb;
}

.facility-item h3 {
    color: #17324d;
    font-size: 1.05rem;
}

.facility-item p {
    margin-bottom: 8px;
    color: #53687a;
    line-height: 1.65;
}

.facility-item p:last-child {
    margin-bottom: 0;
}

.facility-item a,
.section-inner a {
    color: #0f6f8f;
    text-decoration: none;
    font-weight: 700;
}

.facility-item a:hover,
.section-inner a:hover {
    text-decoration: underline;
}

@media (max-width: 820px) {
    .page-header {
        padding: 50px 0 38px;
    }

    .guide-section {
        padding: 54px 0;
    }

    .section-split {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .facility-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}


/* ===== GUIDE PHOTOS ===== */

.guide-photo {
    margin: 35px 0;
}

.guide-photo img {
    display: block;
    width: 100%;
    max-width: 760px;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(0,0,0,.12);
}

.guide-photo figcaption {
    margin-top: 10px;
    color: #6b7785;
    font-size: 0.9rem;
    font-style: italic;
}



/* ==================================================
   ANNOUNCEMENTS PAGE
================================================== */

.announcement-list {
    margin-top: 34px;
    border-top: 1px solid #dce4eb;
}

.announcement-item {
    display: grid;
    grid-template-columns: minmax(180px, 0.3fr) minmax(0, 1fr);
    gap: 48px;
    padding: 38px 0;
    border-bottom: 1px solid #dce4eb;
}

.announcement-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    color: #718393;
    font-size: 0.88rem;
    line-height: 1.5;
}

.announcement-type {
    color: #2876aa;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.announcement-content {
    max-width: 760px;
}

.announcement-content h3 {
    margin-bottom: 14px;
    color: #17324d;
    font-size: clamp(1.35rem, 2.2vw, 1.8rem);
    line-height: 1.25;
}

.announcement-content p {
    margin-bottom: 12px;
    color: #53687a;
    line-height: 1.75;
}

.announcement-content p:last-child {
    margin-bottom: 0;
}

.announcement-important {
    position: relative;
}

.announcement-important::before {
    content: "";
    position: absolute;
    top: 38px;
    left: -24px;
    width: 4px;
    height: 46px;
    background: #c63d3d;
}

.announcement-important .announcement-type {
    color: #b33a3a;
}

@media (max-width: 700px) {
    .announcement-item {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 30px 0;
    }

    .announcement-meta {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px 16px;
    }

    .announcement-important::before {
        top: 30px;
        left: -4%;
    }
}


/* ==================================================
   FEATURED ANNOUNCEMENT
================================================== */

.announcement-feature {
    margin: 38px 0;
    background: #ffffff;
    border-bottom: 1px solid #dce4eb;
}

.announcement-feature-image {
    display: block;
    width: 100%;
    height: 460px;
    object-fit: cover;
    object-position: center;
}

.announcement-feature-body {
    display: grid;
    grid-template-columns: minmax(180px, 0.3fr) minmax(0, 1fr);
    gap: 48px;
    padding: 38px 0;
}

@media (max-width: 700px) {
    .announcement-feature-image {
        height: 280px;
    }

    .announcement-feature-body {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 28px 0;
    }
}






/* ==================================================
   CONTACT PAGE
================================================== */

.contact-details {
    margin-top: 0;
}

.contact-map-wrap {
    width: 100%;
}

.port-map {
    display: block;
    width: 100%;
    height: 340px;
    border: 0;
}

.contact-form-wrap {
    max-width: 820px;
}

.contact-form-wrap h2 {
    margin-bottom: 16px;
    color: #17324d;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.15;
}

.form-notice {
    max-width: 680px;
    margin-bottom: 30px;
    color: #53687a;
    line-height: 1.7;
}

.contact-form {
    display: grid;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.form-field {
    display: grid;
    gap: 8px;
}

.form-field label {
    color: #17324d;
    font-weight: 700;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 14px 16px;
    color: #17324d;
    background: #ffffff;
    border: 1px solid #cbd6df;
    font: inherit;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-field textarea {
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #2876aa;
    box-shadow: 0 0 0 3px rgba(40, 118, 170, 0.12);
}

.form-field input:disabled,
.form-field textarea:disabled {
    color: #8795a1;
    background: #eef2f5;
    cursor: not-allowed;
}

.contact-form button {
    width: fit-content;
    padding: 13px 24px;
    color: #ffffff;
    background: #17324d;
    border: 0;
    font: inherit;
    font-weight: 700;
}

.contact-form button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

@media (max-width: 700px) {
    .port-map {
        height: 300px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}