/* ========================================
   Robins Marin – Maritime Modern
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300;1,400&display=swap');

:root {
    /* Maritime palette */
    --navy: #0c2340;
    --navy-light: #153a5c;
    --ocean: #197b8b;
    --ocean-light: #23b4cc;
    --ocean-soft: rgba(26, 127, 144, 0.08);
    --sand: #e4a96d;
    --sand-light: #f0c896;

    /* Greys */
    --grey-900: #1a1d23;
    --grey-800: #2d3139;
    --grey-700: #3f444e;
    --grey-500: #6b7280;
    --grey-400: #9ca3af;
    --grey-300: #d1d5db;
    --grey-200: #e5e7eb;
    --grey-100: #f3f4f6;
    --grey-50: #f8f9fb;
    --white: #ffffff;

    /* Functional */
    --font-heading: 'Sora', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --container-max: 1200px;
    --header-height: 76px;
    --radius: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --radius-pill: 100px;
    --shadow-sm: 0 1px 3px rgba(12,35,64,0.04), 0 4px 12px rgba(12,35,64,0.03);
    --shadow: 0 4px 6px rgba(12,35,64,0.04), 0 12px 32px rgba(12,35,64,0.07);
    --shadow-lg: 0 8px 16px rgba(12,35,64,0.06), 0 24px 48px rgba(12,35,64,0.1);
    --shadow-ocean: 0 4px 16px rgba(26,127,144,0.2);
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--grey-700);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 32px;
}

/* Skip link — offscreen until keyboard-focused */
.skip-link {
    position: absolute;
    top: -120px;
    left: 16px;
    z-index: 1100;
    background: var(--navy);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    transition: top var(--transition);
}

.skip-link:focus {
    top: 12px;
}

/* ========================================
   Scroll Animations
   ======================================== */
/* Content renders visible by default, so it survives JS failing or being blocked.
   The hidden pre-animation state is only applied once JS confirms it is running. */
.js .fade-in {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.js .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Header
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1000;
    transition: box-shadow var(--transition);
    background: var(--white);
    border-bottom: 1px solid rgba(12, 35, 64, 0.06);
}

.header--scrolled {
    box-shadow: var(--shadow-sm);
}


.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

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

.nav {
    display: flex;
    gap: 32px;
}

.nav__link {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--grey-500);
    padding: 4px 0;
    position: relative;
    transition: color var(--transition);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--ocean);
    transition: width var(--transition);
}

.nav__link:hover {
    color: var(--navy);
}

.nav__link:hover::after,
.nav__link--active::after {
    width: 100%;
}

.nav__link--active {
    color: var(--navy);
}

.header__right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    background: var(--grey-50);
    border-radius: var(--radius-pill);
    padding: 3px;
    gap: 2px;
}

.lang-btn {
    border: none;
    background: transparent;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    color: var(--grey-500);
    transition: all var(--transition);
    letter-spacing: 0.02em;
    position: relative;
}

/* Extends the tap target to 44px tall without enlarging the visual pill */
.lang-btn::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 44px;
    transform: translateY(-50%);
}

.lang-btn.active {
    background: var(--ocean);
    color: var(--white);
    box-shadow: var(--shadow-ocean);
}

.lang-btn:hover:not(.active) {
    color: var(--navy);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 14px 12px;
    margin-right: -8px;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}

.menu-toggle:hover {
    background: var(--grey-50);
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ========================================
   Hero
   ======================================== */
.hero {
    position: relative;
    min-height: 94vh;
    display: flex;
    align-items: center;
    margin-top: var(--header-height);
    overflow: hidden;
    background: var(--navy);
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.5;
    transition: opacity 1s ease;
}

.hero__overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(12,35,64,0.85) 0%, rgba(12,35,64,0.4) 50%, rgba(27,138,158,0.15) 100%),
        linear-gradient(to top, rgba(12,35,64,0.6) 0%, transparent 40%);
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: var(--container-max);
    width: 100%;
    margin: 0 auto;
    padding: 0 32px;
}

.hero__tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--white);
    letter-spacing: 0.04em;
    margin-bottom: 28px;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Keeps the ocean accent the tag text used to carry, while the text itself
   stays white — so contrast no longer depends on the photo behind the glass. */
.hero__tag::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ocean-light);
    flex-shrink: 0;
}


.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2.6rem, 5.5vw, 4.2rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.08;
    letter-spacing: -0.04em;
    margin-bottom: 20px;
    max-width: 620px;
}

.hero__title span {
    color: var(--ocean-light);
}

.hero__subtitle {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: rgba(255, 255, 255, 0.82);
    font-weight: 400;
    margin-bottom: 40px;
    line-height: 1.7;
    max-width: 480px;
}

/* ========================================
   Page Hero (subpages)
   ======================================== */
.page-hero {
    margin-top: var(--header-height);
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: var(--navy);
    min-height: 280px;
    display: flex;
    align-items: center;
}

.page-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.5;
}

.page-hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(12,35,64,0.85) 0%, rgba(12,35,64,0.4) 50%, rgba(27,138,158,0.15) 100%),
        linear-gradient(to top, rgba(12,35,64,0.6) 0%, transparent 40%);
}

.page-hero .container {
    position: relative;
    z-index: 1;
    width: 100%;
}

.page-hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.04em;
}

.page-hero__subtitle {
    color: rgba(255, 255, 255, 0.82);
    margin-top: 12px;
    font-size: 1rem;
    font-weight: 400;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 15px 32px;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    gap: 8px;
    letter-spacing: -0.01em;
}

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

.btn--primary:hover {
    background: var(--ocean-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-ocean);
}

.hero .btn--primary {
    background: var(--white);
    color: var(--navy);
}

.hero .btn--primary:hover {
    background: var(--ocean-light);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.btn--outline {
    background: transparent;
    color: var(--navy);
    border: 1.5px solid var(--grey-200);
}

.btn--outline:hover {
    border-color: var(--ocean);
    color: var(--ocean);
    transform: translateY(-2px);
}

/* ========================================
   Sections
   ======================================== */
.section {
    padding: 110px 0;
    position: relative;
}

.section--alt {
    background: var(--grey-50);
}

.section__title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--navy);
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: -0.04em;
}

.section__title--left {
    text-align: left;
}

.section__subtitle {
    text-align: center;
    color: var(--grey-500);
    max-width: 460px;
    margin: 0 auto 64px;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.65;
}

/* "See all …" link sitting under a section's grid */
.section__all-wrap {
    text-align: center;
    margin-top: 34px;
}

.section__all-wrap--left {
    text-align: left;
    margin-top: 0;
}

.section__all-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 4px; /* lifts the tap target from 24px to 44px */
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ocean);
    transition: gap var(--transition);
}

/* Arrow always rendered; only the spacing animates (no hover-only affordance) */
.section__all-link::after {
    content: '\2192';
}

.section__all-link:hover {
    gap: 12px;
}

/* Contact column on the homepage is a flex column — stop the CTA stretching full width */
.contact__info .btn {
    align-self: flex-start;
    margin-top: 4px;
}

/* ========================================
   Highlight Cards (homepage)
   ======================================== */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.highlights-grid--4 {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.highlight-card {
    display: block;
    overflow: hidden;
    border-radius: var(--radius);
    transition: all var(--transition);
    background: var(--white);
    border: 1px solid var(--grey-200);
    position: relative;
}

.highlight-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-4px);
    border-color: transparent;
}

.highlight-card__img {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.highlight-card__img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(12,35,64,0.06), transparent);
    pointer-events: none;
}

.highlight-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.highlight-card:hover .highlight-card__img img {
    transform: scale(1.05);
}

.highlight-card__body {
    padding: 22px 24px;
}

.highlight-card__title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.highlight-card__text {
    color: var(--grey-500);
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 14px;
}

.highlight-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ocean);
    transition: gap var(--transition);
}

.highlight-card:hover .highlight-card__link {
    gap: 10px;
}

/* ========================================
   Services Grid
   ======================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.card {
    display: block; /* service cards are <a> elements, not divs */
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: var(--radius);
    transition: all var(--transition);
    overflow: hidden;
    position: relative;
}

.card--image {
    padding: 0;
}

.card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-4px);
    border-color: transparent;
}

.card__img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.card:hover .card__img img {
    transform: scale(1.05);
}

.card__body {
    padding: 22px 24px;
}

.card__title {
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.card__text {
    color: var(--grey-500);
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.6;
}

/* CTA inside a service card. It is a <span>, not an <a>, because the whole
   card is already the link — nesting anchors would be invalid. */
.card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ocean);
    transition: gap var(--transition);
}

/* Arrow is always rendered; only the spacing animates. Touch devices never
   fire :hover, so the affordance must not depend on it. */
.card__link::after {
    content: '\2192';
}

.card:hover .card__link {
    gap: 10px;
}

/* ========================================
   Services Note
   ======================================== */
.services-note {
    text-align: center;
    color: var(--grey-400);
    font-size: 0.88rem;
    font-style: italic;
    margin-top: 40px;
}

/* ========================================
   Boats
   ======================================== */
.boats-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    align-items: start;
}

.boats-grid__image {
    border-radius: var(--radius);
}

.boats-grid__image img {
    width: 100%;
    display: block;
    border-radius: var(--radius);
}

.boats-intro {
    margin-top: 28px;
    color: var(--grey-500);
    font-size: 0.95rem;
    line-height: 1.75;
}

.boats-intro p {
    margin-bottom: 16px;
}

.boats-intro p:last-child {
    margin-bottom: 0;
}

.boats-grid__listing {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.boat-category {
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: var(--radius);
    padding: 32px;
    transition: all var(--transition);
}

.boat-category:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--ocean-soft);
}

.boat-category__title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}

.boat-category__desc {
    color: var(--grey-500);
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 18px;
}

.boat-category .btn {
    margin-top: 20px;
}

.boat-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.boat-list li {
    color: var(--grey-700);
    font-size: 0.9rem;
    font-weight: 400;
    border-radius: var(--radius-sm);
    background: var(--grey-50);
    transition: all var(--transition);
}

.boat-list li:hover {
    background: var(--ocean-soft);
    color: var(--navy);
}

/* Padding lives on the child, so the whole chip is tappable rather than
   just the 24px text line. Keeps the hit area and the visual box identical. */
.boat-list li > a,
.boat-list li > span {
    display: block;
    padding: 10px 16px;
}

.boat-list li > a {
    color: inherit;
    transition: all var(--transition);
}

.boat-list li:hover > a {
    color: var(--navy);
}

/* Arrow stays visible: touch devices never fire :hover, so a hover-only
   affordance leaves links indistinguishable from plain text. */
.boat-list li > a::after {
    content: ' \2192';
    display: inline-block;
    color: var(--ocean);
    opacity: 0.55;
    transition: opacity var(--transition), transform var(--transition);
}

.boat-list li:hover > a::after,
.boat-list li > a:focus-visible::after {
    opacity: 1;
    transform: translateX(3px);
}

/* Non-link entries ("Tulossa pian") must not read as tappable */
.boat-list li > span {
    color: var(--grey-500);
    font-style: italic;
}

/* ========================================
   Boat Detail
   ======================================== */
.boat-detail {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 64px;
    align-items: start;
}

.boat-detail__image {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 32px;
}

.boat-detail__image img {
    width: 100%;
    display: block;
    border-radius: var(--radius);
}

.boat-detail__specs {
    position: sticky;
    top: calc(var(--header-height) + 32px);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--grey-50);
    border-radius: var(--radius);
    overflow: hidden;
}

.specs-table tr {
    border-bottom: 1px solid var(--grey-200);
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table th,
.specs-table td {
    padding: 14px 20px;
    font-size: 0.88rem;
    text-align: left;
}

.specs-table th {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--navy);
    width: 45%;
    background: var(--grey-50);
}

.specs-table td {
    color: var(--grey-700);
    font-weight: 400;
}

.boat-detail__info {
    padding-top: 4px;
}

.boat-detail__heading {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.boat-detail__text {
    color: var(--grey-500);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 32px;
}

.boat-detail__subheading {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.boat-detail__list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.boat-detail__list li {
    background: var(--grey-50);
    color: var(--grey-700);
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--grey-200);
}

.boat-detail__info .btn {
    margin-top: 8px;
}

.boats-section {
    margin-bottom: 0;
}

.section-divider {
    border: none;
    border-top: 1px solid var(--grey-200);
    margin: 72px auto;
    max-width: 80px;
}

.brokerage {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    align-items: center;
}

.brokerage__content {
    text-align: left;
}

.brokerage__image {
    border-radius: var(--radius);
    overflow: hidden;
}

.brokerage__image img {
    width: 100%;
    display: block;
    border-radius: var(--radius);
}

.brokerage__text {
    color: var(--grey-500);
    line-height: 1.8;
    margin-bottom: 32px;
    font-size: 1rem;
    font-weight: 400;
}

/* ========================================
   About
   ======================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}

/* Two text columns of unequal height — top-align so the headings line up */
.about-grid--top {
    align-items: start;
}

.about-grid--top .contact__info {
    padding-top: 0;
}

.about__image {
    position: relative;
}

.about__image img {
    width: 100%;
    border-radius: var(--radius);
    object-fit: cover;
    aspect-ratio: 4/3;
}


.about__text {
    color: var(--grey-500);
    margin-bottom: 32px;
    line-height: 1.8;
    font-weight: 400;
    font-size: 1rem;
}

/* ========================================
   Contact
   ======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 8px;
}

.contact__header {
    display: flex;
    align-items: center;
    gap: 30px;
}

.contact__logo {
    height: 48px;
    width: auto;
    display: block;
}

.contact__heading {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.03em;
    margin: 0;
}

.contact__intro {
    color: var(--grey-500);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0 0 12px 0;
}

.contact__item {
    padding: 0;
    background: transparent;
}

.contact__item strong {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--grey-500);
    margin-bottom: 4px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.contact__item p {
    color: var(--navy);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

/* The global `a` rule strips colour and underline, so a mailto link would be
   indistinguishable from the plain text around it. Same no-hover-only-affordance
   rule as the boat list: it has to read as a link before you touch it. */
.contact__item a {
    color: var(--ocean);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.contact__item a:hover {
    color: var(--navy);
}

.contact__address-alt {
    font-size: 0.85rem;
    opacity: 0.6;
}

.contact__form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form__group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form__group[hidden] {
    display: none;
}

.form__label {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--grey-500);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.form__required {
    color: var(--ocean);
    margin-left: 2px;
}

.form__input {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 400;
    padding: 14px 18px;
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-sm);
    background: var(--grey-50);
    color: var(--grey-900);
    transition: all var(--transition);
    outline: none;
    width: 100%;
}

.form__input::placeholder {
    color: var(--grey-400);
}

.form__input:focus {
    border-color: var(--ocean);
    background: var(--white);
    box-shadow: 0 0 0 4px var(--ocean-soft);
}

.form__select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23197b8b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    cursor: pointer;
}

.form__select optgroup {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--navy);
}

.form__select option {
    color: var(--grey-900);
    font-weight: 400;
}

.form__textarea {
    resize: vertical;
    min-height: 160px;
    line-height: 1.6;
}

.form__consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--grey-500);
    line-height: 1.5;
    cursor: pointer;
    padding: 4px 0;
}

.form__consent input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--ocean);
    cursor: pointer;
}

.form__consent-link {
    margin-top: -8px;
    padding-left: 30px; /* line up under the consent text, past the checkbox */
    font-size: 0.85rem;
}

.form__consent-link a {
    color: var(--ocean);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.form__consent-link a:hover {
    color: var(--navy);
}

.form__message {
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    line-height: 1.5;
}

.form__message--success {
    background: var(--ocean-soft);
    color: var(--navy);
    border: 1px solid var(--ocean);
}

.form__message--error {
    background: rgba(220, 53, 69, 0.08);
    color: #b02a37;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

/* Honeypot. Moved offscreen rather than display:none — some bots skip fields
   that are outright hidden, and a few screen readers would still announce it,
   which is why the wrapper also carries aria-hidden and tabindex="-1". */
.form__hp {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.contact__form .btn {
    align-self: flex-start;
    margin-top: 4px;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--grey-50);
    padding: 44px 0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--white);
}


.footer__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px 24px;
    flex-wrap: wrap;
}

.footer__link {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--ocean);
    text-decoration: underline;
    text-underline-offset: 3px;
    padding: 6px 2px; /* lifts the tap target clear of the 24px WCAG floor */
}

.footer__link:hover {
    color: var(--navy);
}

/* ========================================
   Prose (privacy policy and similar text pages)
   ======================================== */
.prose {
    max-width: 760px;
    margin: 0 auto;
}

/* Body copy here is --grey-700, not the --grey-500 used for short card text.
   This is a long document people actually have to read: 9.8:1 rather than 4.8:1. */
.prose p,
.prose li {
    color: var(--grey-700);
    line-height: 1.75;
}

.prose__lead {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.prose h2 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--navy);
    letter-spacing: -0.02em;
    margin-top: 40px;
    margin-bottom: 10px;
}

.prose p {
    margin-bottom: 14px;
}

.prose ul {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
}

.prose li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 6px;
}

.prose li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 0.72em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ocean);
}

.prose a {
    color: var(--ocean);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.prose strong {
    color: var(--navy);
}

.prose__meta {
    margin-top: 44px;
    padding-top: 18px;
    border-top: 1px solid var(--grey-200);
    font-size: 0.85rem;
    color: var(--grey-500);
}

.footer__copy {
    color: var(--grey-700);
    font-size: 0.82rem;
    font-family: var(--font-heading);
    font-weight: 400;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .highlights-grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        flex-direction: column;
        padding: 24px 20px;
        gap: 4px;
        border-radius: 0;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.15s ease-out, visibility 0s linear 0.15s;
        will-change: opacity;
    }

    .nav--open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: opacity 0.15s ease-out, visibility 0s linear 0s;
    }

    .nav__link {
        font-size: 1rem;
        padding: 14px 0;
    }

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

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .form__row {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .contact__form .btn {
        align-self: stretch;
    }


    .highlights-grid,
    .highlights-grid--4 {
        grid-template-columns: 1fr;
        gap: 16px;
    }

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

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

    .boat-detail {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .boat-detail__specs {
        position: static;
    }

    .section {
        padding: 72px 0;
    }

    .hero {
        min-height: 88vh;
    }

    .page-hero {
        padding: 72px 0 56px;
        text-align: left;
        min-height: 220px;
    }

    .section__title {
        text-align: left;
    }

    .section__subtitle {
        text-align: left;
        margin-left: 0;
    }

    .highlight-card__img {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 80vh;
    }

    .section {
        padding: 56px 0;
    }

    .highlight-card__img {
        height: 180px;
    }
}

/* ========================================
   Reduced motion
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
    }

    /* Never strand content in its hidden pre-animation state */
    .js .fade-in {
        opacity: 1 !important;
        transform: none !important;
    }

    /* Drop movement-based feedback; colour and shadow cues remain */
    .btn:hover,
    .highlight-card:hover,
    .card:hover,
    .highlight-card:hover .highlight-card__img img,
    .card:hover .card__img img,
    .boat-list li > a::after,
    .boat-list li:hover > a::after {
        transform: none !important;
    }
}

/* ========================================
   404
   ======================================== */
.section--notfound {
    margin-top: var(--header-height);
    min-height: 58vh;
    display: flex;
    align-items: center;
}

.notfound {
    text-align: center;
}

/* Stay centred even at the mobile breakpoint, where section headings go left */
.notfound .section__title,
.notfound .section__subtitle {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.notfound .section__subtitle {
    margin-bottom: 32px;
}

.notfound__code {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 12vw, 7rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--grey-200);
    margin-bottom: 4px;
}
