﻿/* ==========================================================================
   Hollydays at Sea
   Built to be easy on older eyes: big readable text, strong contrast,
   large buttons, visible labels, obvious focus. Colors come from the logo.
   ========================================================================== */

:root {
    /* Logo palette */
    --cream: #EDE9E0;
    --paper: #FBF9F4;
    --navy: #15292E;
    --teal: #36827C;
    --coral: #DC6A50;
    --gold: #D99D3D;
    --pink: #E6B2A6;

    /* Darker shades that keep text readable (all checked against WCAG AA) */
    --teal-deep: #24605B;      /* white text on this: ~7:1 */
    --coral-deep: #B03E26;     /* white text on this: ~5.9:1 */
    --sand: #E2DACA;

    --bg: var(--cream);
    --surface: var(--paper);
    --text: var(--navy);
    --text-soft: #34484D;      /* ~9:1 on cream */
    --link: #1D5A8A;
    --border: #C9BFAA;
    --focus: #0B3D91;

    --radius: 18px;
    --shadow: 0 2px 0 rgba(21, 41, 46, .08), 0 8px 24px rgba(21, 41, 46, .08);

    --font-body: "Atkinson Hyperlegible", "Segoe UI", Verdana, Arial, sans-serif;
    --font-head: "Fraunces", Georgia, "Times New Roman", serif;
}

html { font-size: 125%; }                 /* 20px: already larger than most sites */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; }

h1, h2, h3 {
    font-family: var(--font-head);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 .6em;
    letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 5.5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
h3 { font-size: 1.3rem; }
h1:focus, main:focus { outline: none; }  /* focus is moved here on page change; the visible cue is the new page */

p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--text-soft); }
.hint, .field-hint { font-size: .9rem; color: var(--text-soft); }
.center { text-align: center; }
.narrow { max-width: 38rem; }
.narrow-block { max-width: 46rem; }

a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: .1em; }
a:hover { text-decoration-thickness: .17em; }

.wrap { width: min(72rem, 100% - 2.5rem); margin-inline: auto; }

/* ----- Keyboard focus: always obvious ----- */
:focus-visible {
    outline: 4px solid var(--focus);
    outline-offset: 3px;
    border-radius: 6px;
}

.skip-link {
    position: absolute;
    left: .75rem;
    top: -4rem;
    background: var(--navy);
    color: #fff;
    padding: .75rem 1rem;
    border-radius: 8px;
    z-index: 100;
    font-weight: 700;
}
.skip-link:focus { top: .75rem; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.4rem;
    padding: .7rem 1.5rem;
    border-radius: 999px;
    border: 3px solid transparent;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    line-height: 1.25;
    transition: background-color .15s, color .15s, transform .15s;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

.btn-big { font-size: 1.15rem; padding: .85rem 1.8rem; min-height: 3.8rem; }

.btn-primary { background: var(--coral-deep); color: #fff; }
.btn-primary:hover { background: #8F301B; }

.btn-secondary { background: transparent; color: var(--teal-deep); border-color: var(--teal-deep); }
.btn-secondary:hover { background: var(--teal-deep); color: #fff; }

.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--cream); }

.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #EBB255; }

.button-row { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.5rem 0; }
.center-row { justify-content: center; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header { background: var(--bg); border-bottom: 4px solid var(--teal); }

.topbar { background: var(--navy); color: #fff; }
.topbar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem 1.5rem;
    padding-block: .6rem;
}
.topbar-tagline { margin: 0; font-size: .95rem; }
.topbar-phone { margin: 0; font-size: 1.05rem; font-weight: 700; }
.topbar a { color: #fff; }
.topbar-phone a { color: var(--gold); text-decoration: none; font-size: 1.2em; white-space: nowrap; }
.big-link, .btn[href^="tel"] { white-space: nowrap; }
.topbar-phone a:hover { text-decoration: underline; }
.topbar :focus-visible { outline-color: #fff; }

.brand-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem 2rem;
    padding-block: .75rem;
}
.brand img { display: block; width: 6.5rem; height: auto; }

.main-nav { display: flex; flex-wrap: wrap; gap: .5rem; }
.main-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 3rem;
    padding: .35rem 1rem;
    border-radius: 999px;
    color: var(--navy);
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    border: 3px solid transparent;
}
.main-nav a:hover { background: var(--sand); }
.main-nav a.active { border-color: var(--teal-deep); background: #fff; }
.main-nav a.nav-cta { background: var(--coral-deep); color: #fff; }
.main-nav a.nav-cta:hover { background: #8F301B; }
.main-nav a.nav-cta.active { border-color: var(--navy); }


/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section.tight { padding-block: clamp(1.5rem, 4vw, 3rem); }
.section-teal { background: var(--teal-deep); color: #fff; }
.section-teal h2, .section-teal h3, .section-teal p { color: #fff; }
.section-sand { background: var(--sand); }

.page-head { padding-block: clamp(2rem, 5vw, 3.5rem) 0; }
.page-head h1 { margin-bottom: .4em; }

.eyebrow {
    margin: 0 0 .5rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .9rem;
    color: var(--coral-deep);
}

/* ----- Hero ----- */
.hero { padding-block: clamp(1.5rem, 5vw, 3.5rem) clamp(2rem, 5vw, 3rem); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; }
.hero-art img { display: block; margin-inline: auto; width: min(100%, 30rem); }

/* ----- Wave divider (cut from the page color, revealing the section below) ----- */
.wave { line-height: 0; color: var(--bg); }
.wave svg { display: block; width: 100%; height: 3.5rem; }
.wave-teal { background: var(--teal-deep); }
.wave-sand { background: var(--sand); }
.wave-navy { background: var(--navy); }

/* ----- Three steps ----- */
.steps-row { list-style: none; margin: 2rem 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.steps-row li { padding: 0 .25rem; }
.step-num {
    display: inline-grid;
    place-items: center;
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 50%;
    background: var(--gold);
    color: var(--navy);
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: .6rem;
}

/* ----- Reasons ----- */
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 1.5rem; }
.reason {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.5rem 1.5rem 1rem;
    border-top: 10px solid var(--teal);
    box-shadow: var(--shadow);
}
.reason.r-coral { border-top-color: var(--coral); }
.reason.r-gold { border-top-color: var(--gold); }
.reason.r-teal { border-top-color: var(--teal); }

/* ----- Call to action band ----- */
.cta-band { background: var(--navy); color: #fff; text-align: center; padding-block: clamp(2.5rem, 6vw, 4rem); }
.cta-band h2, .cta-band p { color: #fff; }
.cta-band .lead { max-width: 36rem; margin-inline: auto; }

/* ==========================================================================
   Cruise places
   ========================================================================== */
.filters { display: grid; gap: 1.5rem; margin-bottom: 1.5rem; }
.filter-title { font-family: var(--font-body); font-size: 1.15rem; margin-bottom: .6rem; }
.choices { display: flex; flex-wrap: wrap; gap: .6rem; }

.choice {
    font: inherit;
    font-weight: 700;
    min-height: 3.2rem;
    padding: .5rem 1.2rem;
    border-radius: 999px;
    border: 3px solid var(--teal-deep);
    background: var(--surface);
    color: var(--teal-deep);
    cursor: pointer;
    line-height: 1.25;
}
.choice:hover { background: #fff; }
.choice[aria-pressed="true"] { background: var(--teal-deep); color: #fff; }
.choice[aria-pressed="true"]::before { content: "\2713\00a0"; }  /* a check mark, so the choice isn't shown by color alone */

.result-count { font-weight: 700; margin: 1.5rem 0 1rem; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 1.5rem; margin-block: 1.5rem; }

.dest-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.5rem;
    border-top: 10px solid var(--teal);
    box-shadow: var(--shadow);
}
.dest-card.accent-coral { border-top-color: var(--coral); }
.dest-card.accent-gold { border-top-color: var(--gold); }
.dest-card.accent-teal { border-top-color: var(--teal); }

.dest-kind {
    display: inline-block;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--text-soft);
    margin-bottom: .3rem;
}
.dest-card h3 { font-size: 1.6rem; margin-bottom: .4em; }

.dest-facts { margin: 0 0 1rem; display: grid; gap: .5rem; }
.dest-facts div { display: flex; flex-wrap: wrap; gap: .25rem .6rem; }
.dest-facts dt { font-weight: 700; }
.dest-facts dd { margin: 0; }

.dest-highlights { margin: 0 0 1.25rem; padding-left: 1.3rem; flex-grow: 1; }
.dest-highlights li { margin-bottom: .25rem; }
.dest-card .btn { align-self: flex-start; }

.empty { background: var(--surface); border-radius: var(--radius); padding: 1.5rem; border: 3px dashed var(--border); }

/* ==========================================================================
   Guide page
   ========================================================================== */
.big-steps { list-style: none; counter-reset: step; margin: 1.5rem 0; padding: 0; }
.big-steps li {
    counter-increment: step;
    position: relative;
    padding: 0 0 1.5rem 4.5rem;
}
.big-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 3.3rem;
    height: 3.3rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--teal-deep);
    color: #fff;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.5rem;
}
.big-steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 1.55rem;
    top: 3.6rem;
    bottom: .3rem;
    width: 4px;
    background: var(--border);
    border-radius: 2px;
}

.glossary { margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.glossary div { background: var(--surface); border-radius: 14px; padding: 1rem 1.25rem; border-left: 8px solid var(--gold); }
.glossary dt { font-weight: 800; }
.glossary dd { margin: .2rem 0 0; }

.faq { display: grid; gap: .8rem; margin: 1.5rem 0; }
.faq details { background: var(--surface); border: 3px solid var(--border); border-radius: 14px; }
.faq summary {
    cursor: pointer;
    list-style: none;
    padding: 1rem 3.2rem 1rem 1.25rem;
    font-weight: 700;
    position: relative;
    min-height: 3.4rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    position: absolute;
    right: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
    line-height: 1;
    color: var(--teal-deep);
}
.faq details[open] { border-color: var(--teal-deep); }
.faq details[open] summary::after { content: "\2212"; }  /* minus sign */
.faq details p { padding: 0 1.25rem; margin-bottom: 1.1rem; }

/* ==========================================================================
   About + contact
   ========================================================================== */
.about-grid, .contact-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2.5rem; align-items: start; }
.prose { max-width: 40rem; }

.check-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.check-list li { position: relative; padding-left: 2.2rem; margin-bottom: .7rem; }
.check-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: .1rem;
    width: 1.5rem;
    height: 1.5rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--teal-deep);
    color: #fff;
    font-size: .95rem;
    font-weight: 800;
    line-height: 1;
}

.side-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.75rem;
    text-align: center;
    box-shadow: var(--shadow);
    border-top: 10px solid var(--coral);
}
.side-card img { display: block; margin: 0 auto 1rem; max-width: 12rem; }
.big-link { font-size: 1.7rem; font-weight: 800; text-decoration: none; display: inline-block; }
.big-link:hover { text-decoration: underline; }
.small-label { margin: 1.25rem 0 0; font-weight: 700; }

/* ----- Form ----- */
.form-step { font-size: 1.5rem; margin: 2rem 0 1rem; padding-bottom: .4rem; border-bottom: 4px solid var(--gold); }
.form-step:first-of-type { margin-top: 0; }
.optional { font-family: var(--font-body); font-weight: 400; font-size: 1rem; color: var(--text-soft); }

.field { margin: 0 0 1.4rem; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: .4rem; padding: 0; }

/* Blazor's InputText renders with no type attribute, so target every input except radios */
.field input:not([type="radio"]),
.field select,
.field textarea {
    width: 100%;
    font: inherit;
    color: var(--text);
    background: #fff;
    border: 3px solid #5C6B6E;
    border-radius: 12px;
    padding: .7rem .9rem;
    min-height: 3.4rem;
}
.field textarea { resize: vertical; }
.field input::placeholder { color: #5E6D70; opacity: 1; }

.field input:not([type="radio"]):focus, .field select:focus, .field textarea:focus {
    outline: 4px solid var(--focus);
    outline-offset: 2px;
    border-color: var(--focus);
}

/* Blazor adds these classes after a failed check */
.field input.invalid, .field select.invalid, .field textarea.invalid { border-color: #B00020; background: #FFF6F6; }

.validation-message { color: #A0001D; font-weight: 700; margin: .4rem 0 0; }
.validation-message::before { content: "\26A0\00a0"; }  /* warning sign, so it isn't just red text */

.field-hint { margin: .35rem 0 0; }

.field .radio { display: flex; align-items: center; gap: .75rem; font-weight: 400; min-height: 3.2rem; margin: 0; cursor: pointer; }
.field .radio input { width: 1.6rem; height: 1.6rem; accent-color: var(--teal-deep); flex: none; margin: 0; }

.form-alert { background: #FFF1EE; border: 3px solid #B00020; border-radius: 14px; padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.form-alert p { margin-bottom: .5rem; }
.form-alert ul { margin: 0; padding-left: 1.3rem; }
.form-alert .validation-message { color: #A0001D; margin: 0; }
.form-alert .validation-message::before { content: none; }

.submit-btn { width: 100%; }

.success { background: var(--surface); border: 4px solid var(--teal-deep); border-radius: var(--radius); padding: 1.75rem; }
.success h2:focus { outline: none; }

/* Honeypot: off-screen, not display:none (some robots skip display:none fields) */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy); color: #fff; padding-block: 2.5rem 1.5rem; }
.site-footer h2 { font-family: var(--font-body); font-size: 1.15rem; margin-bottom: .5rem; color: var(--gold); }
.site-footer a { color: #fff; }
.site-footer :focus-visible { outline-color: #fff; }
.site-footer img { display: block; width: 7rem; background: var(--cream); border-radius: 50%; padding: .35rem; }
.footer-grid { display: grid; grid-template-columns: auto 1.3fr 1fr 1fr; gap: 2rem; align-items: start; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: .4rem; }
.copyright { margin: 2rem auto 0; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .25); font-size: .9rem; }

/* ==========================================================================
   Loading + error banner (Blazor)
   ========================================================================== */
.boot { min-height: 100vh; display: grid; place-content: center; justify-items: center; text-align: center; font-family: var(--font-body); color: var(--navy); font-size: 1.25rem; }
.boot img { max-width: 60vw; height: auto; }

#blazor-error-ui {
    display: none;
    position: fixed;
    inset: auto 0 0 0;
    z-index: 1000;
    background: #FFF4C2;
    color: #000;
    padding: 1rem 3rem 1rem 1.25rem;
    border-top: 4px solid #000;
    font-size: 1rem;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 1rem; top: .6rem; font-size: 1.6rem; }

/* ==========================================================================
   Ports, cruise lines and ships
   ========================================================================== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.back-link { display: inline-flex; align-items: center; min-height: 2.75rem; margin-bottom: .5rem; font-weight: 700; }

/* Big, tappable links to ports and cruise lines */
.chips { list-style: none; margin: .3rem 0 1.25rem; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.chip {
    display: inline-flex;
    align-items: center;
    min-height: 2.9rem;
    padding: .35rem 1rem;
    border: 3px solid var(--teal-deep);
    border-radius: 999px;
    background: #fff;
    color: var(--teal-deep);
    font-weight: 700;
    text-decoration: none;
    line-height: 1.2;
}
.chip:hover { background: var(--teal-deep); color: #fff; }

.chip-static, .chip-static:hover { background: var(--surface); color: var(--text); border-color: var(--border); font-weight: 600; }
.area-block { margin: 2rem 0; }
.area-block h3 { margin-bottom: .2em; }

.sub-label { font-weight: 700; margin: .9rem 0 .25rem; }
.card-small { margin: 0 0 1rem; }
.card-heading { font-size: 1.6rem; margin-bottom: .4em; }
.card-title-link { color: inherit; text-decoration-color: var(--teal); }
.line-tagline { font-weight: 700; color: var(--teal-deep); }
.card-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.port-card > .btn, .dest-card > .btn { margin-top: auto; }

.wide-facts { margin: 1rem 0; }
.bullets { margin: 0 0 1rem; padding-left: 1.4rem; }
.bullets li { margin-bottom: .35rem; }
.spaced { margin-top: 1.75rem; }

.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1.5rem; margin-top: 1.5rem; }

.note-box { background: var(--surface); border: 3px dashed var(--border); border-radius: 14px; padding: 1rem 1.25rem; margin: 1.5rem 0 0; }

.where-list { display: grid; gap: 1.25rem; margin: 1.5rem 0; }
.where-item {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    border-left: 10px solid var(--teal);
    box-shadow: var(--shadow);
}
.where-item h3 { font-size: 1.5rem; }

/* ==========================================================================
   Smaller screens
   ========================================================================== */
@media (max-width: 62rem) {
    .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .hero-art { order: -1; }
    .hero-art img { width: min(70%, 20rem); }
    .steps-row, .reasons { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .side-card { order: -1; }
    .contact-grid .side-card { order: 2; }
}

@media (max-width: 36rem) {
    .footer-grid { grid-template-columns: 1fr; }
    .btn { width: 100%; }
    .button-row { flex-direction: column; }
    .card-grid { grid-template-columns: 1fr; }
    .brand img { width: 5rem; }
    .main-nav { width: 100%; }
    .main-nav a { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn { transition: none; }
    .btn:hover { transform: none; }
}

@media print {
    .topbar, .skip-link, .main-nav, .wave { display: none; }
}

