/* ============================================================
   CFest — Public Site Stylesheet
   ============================================================ */

/* --- Custom Properties --- */
:root {
    --canal:      #1a3a3a;
    --ink:        #142d2d;
    --brick:      #a65e4e;
    --sage:       #7d8c71;
    --stone:      #fcfaf7;
    --stone-dark: #f4f1ea;
    --clay:       #d4c5b9;
    --ochre:      #d99e32;
    --white:      #ffffff;
    --font-serif: 'Libre Baskerville', Georgia, serif;
    --font-sans:  'Inter', system-ui, sans-serif;
    --radius:     4px;
    --transition: 0.3s ease;
    --shadow:     0 4px 24px rgba(20,45,45,0.12);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; font-size: 16px; }

body {
    font-family: var(--font-sans);
    background: var(--stone);
    color: var(--ink);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a  { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.2;
    color: var(--ink);
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--stone-dark); }
::-webkit-scrollbar-thumb { background: var(--sage); border-radius: 3px; }

/* --- Utilities --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brick);
    margin-bottom: 1rem;
}

.section-tag svg { color: var(--brick); }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background: var(--ochre);
    color: var(--ink);
    border-color: var(--ochre);
}
.btn-primary:hover { background: #c08a28; border-color: #c08a28; }

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.6);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

.btn-outline-dark {
    background: transparent;
    color: var(--canal);
    border-color: var(--canal);
}
.btn-outline-dark:hover { background: var(--canal); color: var(--white); }

/* --- Reveal Animation --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: none;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* --- Header / Navigation --- */
#site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 1.25rem 0;
    transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

#site-header.scrolled {
    background: rgba(252,250,247,0.96);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 0 rgba(20,45,45,0.08);
    padding: 0.75rem 0;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    transition: color var(--transition);
    text-decoration: none;
}

/* Logo swap on scroll */
.logo-dark  { display: none; }
#site-header.scrolled .logo-white { display: none; }
#site-header.scrolled .logo-dark  { display: block; }
.nav-logo .logo-icon {
    width: 32px; height: 32px;
    background: var(--ochre);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--ink);
    flex-shrink: 0;
}
#site-header.scrolled .nav-logo { color: var(--ink); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    transition: color var(--transition);
    position: relative;
    padding-bottom: 2px;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0; right: 0;
    height: 1px;
    background: var(--ochre);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); }

#site-header.scrolled .nav-links a { color: var(--canal); }
#site-header.scrolled .nav-links a:hover { color: var(--ink); }

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

.btn-nav {
    padding: 0.5rem 1.25rem;
    font-size: 0.8rem;
    background: var(--ochre);
    color: var(--ink);
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
    text-decoration: none;
}
.btn-nav:hover { background: #c08a28; }

/* Hamburger */
.nav-hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 0.25rem;
}
#site-header.scrolled .nav-hamburger { color: var(--ink); }

/* Mobile overlay menu */
#mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: var(--ink);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}
#mobile-menu.open { display: flex; opacity: 1; }

#mobile-menu a {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--white);
    transition: color var(--transition);
}
#mobile-menu a:hover { color: var(--ochre); }

#mobile-close {
    position: absolute;
    top: 1.5rem; right: 1.5rem;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
}

/* --- Hero Section --- */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    animation: slowZoom 80s ease-in-out infinite alternate;
}

@keyframes slowZoom {
    from { transform: scale(1); }
    to   { transform: scale(1.08); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(20,45,45,0.85) 0%,
        rgba(26,58,58,0.65) 30%,
        rgba(26,58,58,0.1) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 680px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 999px;
    padding: 0.4rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9);
    margin-bottom: 1.5rem;
}

.hero-badge svg { color: var(--ochre); }

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--white);
    margin-bottom: 1.25rem;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.8);
    max-width: 540px;
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    flex-wrap: wrap;
}

.hero-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.15rem;
    color: rgba(255,255,255,0.75);
}

.hero-meta-item svg { color: var(--ochre); }

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
    50%  { opacity: 1; transform: scaleY(1); }
    100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

/* --- About Section --- */
#about {
    padding: 7rem 0;
    background: var(--stone);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-images {
    position: relative;
    height: 520px;
}

.about-img-main {
    position: absolute;
    top: 0; left: 0;
    width: 75%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.about-img-secondary {
    position: absolute;
    bottom: 0; right: 0;
    width: 55%;
    height: 280px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 4px solid var(--stone);
    box-shadow: var(--shadow);
}

.about-text h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    color: var(--ink);
}

.about-text p {
    color: #4a5e5e;
    margin-bottom: 1.5rem;
    font-size: 1.0625rem;
}

.about-quote {
    border-left: 3px solid var(--ochre);
    padding-left: 1.25rem;
    margin: 2rem 0;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.0625rem;
    color: var(--canal);
    line-height: 1.6;
}

/* --- Heritage Section --- */
#heritage {
    padding: 7rem 0;
    background: var(--stone-dark);
}

.heritage-header {
    text-align: center;
    margin-bottom: 4rem;
}

.heritage-icon {
    width: 56px; height: 56px;
    background: rgba(26,58,58,0.08);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--canal);
    margin: 0 auto 1.25rem;
}

.heritage-header h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 0.75rem;
}

.heritage-header p {
    font-size: 1.0625rem;
    color: #4a5e5e;
    max-width: 560px;
    margin: 0 auto;
}

.heritage-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.heritage-col {
    background: var(--white);
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: 0 2px 16px rgba(20,45,45,0.06);
}

.heritage-col-icon {
    width: 44px; height: 44px;
    background: var(--canal);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--white);
    margin-bottom: 1.25rem;
}

.heritage-col h3 {
    font-size: 1.375rem;
    margin-bottom: 1rem;
    color: var(--ink);
}

.heritage-col p { color: #4a5e5e; font-size: 0.9375rem; }

.heritage-col-img-top {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 1.25rem;
}

/* --- Programme Section --- */
#programme {
    padding: 7rem 0;
    background: var(--stone);
}

.section-header {
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 0.75rem;
}

.section-header p {
    font-size: 1.0625rem;
    color: #4a5e5e;
    max-width: 600px;
}

.programme-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.event-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(20,45,45,0.06);
    transition: transform var(--transition), box-shadow var(--transition);
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(20,45,45,0.14);
}

.event-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-card:hover .event-img { transform: scale(1.04); }

.event-img-wrap { overflow: hidden; }

.event-body { padding: 1.75rem; }

.event-icon {
    width: 40px; height: 40px;
    background: rgba(26,58,58,0.07);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--canal);
    margin-bottom: 1rem;
}

.event-body h3 {
    font-size: 1.25rem;
    margin-bottom: 0.625rem;
}

.event-body p {
    font-size: 0.9rem;
    color: #5a6e6e;
    margin-bottom: 1rem;
}

.event-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: #7a8e8e;
}

.event-meta span { display: flex; align-items: center; gap: 0.35rem; }

/* --- Features Section --- */
#features {
    padding: 7rem 0;
    background: var(--ink);
    color: var(--white);
}

#features .section-header h2 { color: var(--white); }
#features .section-header p  { color: rgba(255,255,255,0.6); }
#features .section-tag        { color: var(--ochre); }
#features .section-tag svg    { color: var(--ochre); }

/* Tab bar */
.features-tabs {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    margin-bottom: 2.5rem;
}

.features-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: color var(--transition), border-color var(--transition);
    white-space: nowrap;
}

.features-tab:hover {
    color: rgba(255,255,255,0.85);
}

.features-tab.active {
    color: var(--ochre);
    border-bottom-color: var(--ochre);
}

.features-tab svg { flex-shrink: 0; }

/* Tab panels */
.features-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.features-panel.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}

.features-panel-header {
    margin-bottom: 2rem;
}

.features-panel-header h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--white);
    margin-bottom: 0.75rem;
}

.features-intro {
    font-size: 1rem;
    color: rgba(255,255,255,0.65);
    max-width: 700px;
    line-height: 1.7;
}

/* Feature cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    overflow: hidden;
    transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.feature-card:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.18);
    transform: translateY(-3px);
}

.feature-card-img-wrap { overflow: hidden; }

.feature-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.feature-card:hover .feature-card-img { transform: scale(1.04); }

.feature-card-body {
    padding: 1.25rem;
}

.feature-card-body h4 {
    font-size: 1.0625rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.feature-card-body p {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
}

/* Empty state */
.features-empty {
    padding: 3rem 2rem;
    text-align: center;
    border: 1px dashed rgba(255,255,255,0.15);
    border-radius: 8px;
}

.features-empty p {
    color: rgba(255,255,255,0.4);
    font-style: italic;
    font-size: 0.9375rem;
}

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

@media (max-width: 768px) {
    .features-tabs { gap: 0; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 0; }
    .features-tab  { padding: 0.75rem 1rem; font-size: 0.8rem; }
    .features-grid { grid-template-columns: 1fr; }
}

/* --- Boat Trips Section --- */
#boat-trips {
    padding: 7rem 0;
    background: var(--clay);
    color: var(--ink);
}

.boat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.boat-img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}

.boat-text .section-tag { color: var(--ochre); }
.boat-text .section-tag svg { color: var(--ochre); }

.boat-text h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: var(--white);
    margin-bottom: 1.25rem;
}

.boat-text p {
    color: rgba(0,0,0,0.75);
    font-size: 1.0625rem;
    margin-bottom: 2rem;
}

.boat-details {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.boat-details li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: rgba(0,0,0,0.85);
}

.boat-detail-dot {
    width: 8px; height: 8px;
    background: var(--ochre);
    border-radius: 50%;
    flex-shrink: 0;
}

/* --- Team Section --- */
#team {
    padding: 7rem 0;
    background: var(--stone-dark);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.team-card { text-align: center; }

.team-img-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    aspect-ratio: 3/4;
}

.team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter var(--transition), transform 0.5s ease;
}

.team-card:hover .team-img { filter: grayscale(0%); transform: scale(1.04); }

.team-card h3 { font-size: 1.125rem; margin-bottom: 0.25rem; }
.team-card .team-role { font-size: 0.85rem; color: var(--brick); font-weight: 600; margin-bottom: 0.75rem; }
.team-card p { font-size: 0.875rem; color: #5a6e6e; }

/* --- Gallery Section --- */
#gallery {
    padding: 7rem 0;
    background: var(--stone);
}

.gallery-grid {
    columns: 4;
    column-gap: 1rem;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 1rem;
    overflow: hidden;
    border-radius: var(--radius);
    position: relative;
}

.gallery-item img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(20,45,45,0.8), transparent);
    color: var(--white);
    font-size: 0.8rem;
    padding: 1.5rem 0.75rem 0.75rem;
    opacity: 0;
    transition: opacity var(--transition);
}

.gallery-item:hover .gallery-caption { opacity: 1; }

/* --- Testimonial Carousel --- */
#testimonial {
    padding: 7rem 0;
    background: var(--stone-dark);
    text-align: center;
}

.testimonial-quote {
    color: var(--clay);
    margin: 0 auto 2rem;
    width: 48px; height: 48px;
}

/* Carousel container */
.carousel {
    position: relative;
    overflow: hidden;
    max-width: 820px;
    margin: 0 auto;
}

.carousel-track {
    display: flex;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.carousel-slide {
    min-width: 100%;
    padding: 0 0.5rem;
}

.testimonial-text {
    font-family: var(--font-serif);
    font-size: clamp(1.125rem, 2.5vw, 1.75rem);
    font-style: italic;
    max-width: 760px;
    margin: 0 auto 2rem;
    color: var(--ink);
    line-height: 1.55;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: #5a6e6e;
    font-weight: 500;
}

.testimonial-avatar {
    width: 40px; height: 40px;
    background: var(--clay);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--canal);
    flex-shrink: 0;
}

.testimonial-author > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
}

.testimonial-attribution {
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
    color: #8a9e9e;
}

/* Carousel controls */
.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.carousel-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid var(--clay);
    background: var(--white);
    color: var(--canal);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
    flex-shrink: 0;
}

.carousel-btn:hover {
    background: var(--canal);
    border-color: var(--canal);
    color: var(--white);
}

.carousel-dots {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.carousel-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--clay);
    cursor: pointer;
    padding: 0;
    transition: background var(--transition), transform var(--transition);
}

.carousel-dot.active {
    background: var(--canal);
    transform: scale(1.35);
}

/* --- Partners Section --- */
#partners {
    padding: 4rem 0;
    background: var(--white);
    border-top: 1px solid var(--clay);
    border-bottom: 1px solid var(--clay);
}

.partners-label {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8a9e9e;
    margin-bottom: 2rem;
}

.partners-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.partner-link {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 700;
    color: var(--clay);
    opacity: 0.6;
    transition: opacity var(--transition), color var(--transition);
    white-space: nowrap;
    text-decoration: none;
}

.partner-link:hover { opacity: 1; color: var(--canal); }

/* --- CTA / Email Signup Section --- */
#signup {
    padding: 7rem 0;
    background: var(--ink);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.signup-deco {
    position: absolute;
    top: -80px; right: -80px;
    width: 400px; height: 400px;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 50%;
    pointer-events: none;
}

.signup-deco-2 {
    position: absolute;
    bottom: -120px; left: -120px;
    width: 500px; height: 500px;
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 50%;
    pointer-events: none;
}

#signup h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--white);
    margin-bottom: 1rem;
    position: relative;
}

#signup p {
    color: rgba(255,255,255,0.65);
    font-size: 1.0625rem;
    max-width: 560px;
    margin: 0 auto 2.5rem;
    position: relative;
}

.signup-form {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    margin-bottom: 1.5rem;
}

.signup-input {
    flex: 1;
    max-width: 360px;
    padding: 0.875rem 1.25rem;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.07);
    color: var(--white);
    font-size: 0.9375rem;
    font-family: var(--font-sans);
    outline: none;
    transition: border-color var(--transition), background var(--transition);
}

.signup-input::placeholder { color: rgba(255,255,255,0.4); }
.signup-input:focus { border-color: var(--ochre); background: rgba(255,255,255,0.1); }

.signup-btn {
    padding: 0.875rem 2rem;
    background: var(--ochre);
    color: var(--ink);
    border: none;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-weight: 700;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: background var(--transition);
    white-space: nowrap;
}
.signup-btn:hover { background: #c08a28; }

#signup-message {
    font-size: 0.9rem;
    min-height: 1.25rem;
    position: relative;
}

.signup-extra {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2.5rem;
    position: relative;
}

/* --- Footer --- */
#footer {
    background: var(--ink);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.55);
    margin-top: 1rem;
    max-width: 280px;
    line-height: 1.7;
}

.footer-socials {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 36px; height: 36px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.55);
    transition: all var(--transition);
}
.social-link:hover { border-color: var(--ochre); color: var(--ochre); }

.footer-col h4 {
    font-family: var(--font-serif);
    font-size: 0.875rem;
    color: var(--white);
    margin-bottom: 1.25rem;
    letter-spacing: 0.02em;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.625rem; }
.footer-col a {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.55);
    transition: color var(--transition);
    text-decoration: none;
}
.footer-col a:hover { color: var(--white); }

.footer-contact p {
    display: flex;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.55);
    margin-bottom: 0.625rem;
    align-items: flex-start;
}
.footer-contact svg { flex-shrink: 0; margin-top: 2px; color: var(--ochre); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.footer-bottom-links a {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
    transition: color var(--transition);
}
.footer-bottom-links a:hover { color: rgba(255,255,255,0.7); }

/* Footer logo */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}
.footer-logo .logo-icon {
    width: 32px; height: 32px;
    background: var(--ochre);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--ink);
    flex-shrink: 0;
}

/* --- Booking Page --- */
.book-page { background: var(--stone); min-height: 100vh; }

.book-header {
    background: var(--ink);
    padding: 1rem 0;
    position: sticky; top: 0; z-index: 100;
}
.book-header-inner {
    display: flex; align-items: center; justify-content: space-between;
}
.book-header-logo {
    display: flex; align-items: center; gap: 0.6rem;
    text-decoration: none;
}
.book-header-logo .logo-icon {
    width: 30px; height: 30px; background: var(--ochre);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: var(--ink); flex-shrink: 0; font-size: 0.9rem;
}
.book-header-logo span { font-family: var(--font-serif); font-size: 0.95rem; font-weight: 700; color: #fff; }
.book-back-link { font-size: 0.8rem; color: rgba(255,255,255,0.55); text-decoration: none; transition: color var(--transition); }
.book-back-link:hover { color: #fff; }

/* Hero band */
.book-hero {
    background: var(--canal);
    padding: 3rem 0 2.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.book-hero h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); color: #fff; margin-bottom: 0.5rem; }
.book-hero p  { color: rgba(255,255,255,0.65); font-size: 0.9375rem; }
.book-hero-meta {
    display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 1rem;
    font-size: 0.8125rem; color: rgba(255,255,255,0.55);
}
.book-hero-meta span { display: flex; align-items: center; gap: 0.4rem; }
.book-hero-meta svg  { color: var(--ochre); }

/* Date tabs */
.book-body { padding: 2.5rem 0 4rem; }

.date-tabs {
    display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2rem;
}
.date-tab {
    padding: 0.625rem 1.25rem;
    border-radius: 999px;
    border: 1px solid var(--clay);
    background: #fff;
    font-size: 0.875rem; font-weight: 600; font-family: var(--font-sans);
    color: #5a6e6e; cursor: pointer; text-decoration: none;
    transition: all var(--transition);
}
.date-tab:hover  { border-color: var(--canal); color: var(--canal); }
.date-tab.active { background: var(--canal); border-color: var(--canal); color: #fff; }

/* Slot grid */
.slot-section-heading {
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; color: #8a9e9e; margin-bottom: 1rem;
}
.slot-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}
.slot-btn {
    display: flex; flex-direction: column; align-items: flex-start;
    padding: 1rem 1.125rem;
    border-radius: 8px; border: 1px solid var(--clay);
    background: #fff;
    cursor: pointer; text-decoration: none;
    transition: all var(--transition);
    position: relative;
}
.slot-btn:hover:not(.slot-full) {
    border-color: var(--canal);
    box-shadow: 0 2px 12px rgba(26,58,58,0.12);
    transform: translateY(-1px);
}
.slot-btn.slot-selected {
    border-color: var(--canal);
    background: rgba(26,58,58,0.04);
    box-shadow: 0 0 0 2px var(--canal);
}
.slot-btn.slot-full {
    opacity: 0.45; cursor: default; background: var(--stone-dark);
}
.slot-time {
    font-size: 1.25rem; font-weight: 700; font-family: var(--font-serif);
    color: var(--ink); line-height: 1;
}
.slot-duration {
    font-size: 0.7rem; color: #8a9e9e; margin: 0.2rem 0 0.6rem;
}
.slot-avail {
    display: inline-flex; align-items: center;
    font-size: 0.75rem; font-weight: 700;
    padding: 0.2rem 0.6rem; border-radius: 999px;
}
.slot-avail.avail-good    { background: rgba(26,58,58,0.1);  color: var(--canal); }
.slot-avail.avail-limited { background: rgba(217,158,50,0.15); color: #9a6d10; }
.slot-avail.avail-full    { background: rgba(0,0,0,0.08); color: #8a9e9e; }

/* Booking form card */
.booking-form-wrap {
    background: var(--canal);
    border-radius: 12px;
    padding: 2rem 2.5rem;
    margin-top: 0.5rem;
    color: #fff;
}
.booking-form-wrap h2 {
    font-size: 1.375rem; color: #fff; margin-bottom: 0.25rem;
}
.booking-form-wrap .form-sub {
    font-size: 0.875rem; color: rgba(255,255,255,0.6); margin-bottom: 1.75rem;
}
.booking-form-wrap .form-label {
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}
.booking-form-wrap .form-control {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    border-radius: 6px;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    width: 100%;
    height: auto;
    line-height: 1.5;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.booking-form-wrap .form-control::placeholder { color: rgba(255,255,255,0.4); }
.booking-form-wrap .form-control:focus {
    background: rgba(255,255,255,0.15);
    border-color: var(--ochre);
    box-shadow: 0 0 0 3px rgba(217,158,50,0.25);
    color: #fff;
    outline: none;
}
.booking-form-wrap select.form-control {
    appearance: auto;
    cursor: pointer;
}
.booking-form-wrap select.form-control option { background: var(--ink); color: #fff; }
.booking-form-wrap textarea.form-control { resize: vertical; min-height: 90px; }
.book-submit-btn {
    background: var(--ochre); color: var(--ink); border: none;
    padding: 0.875rem 2.5rem; font-size: 1rem; font-weight: 700;
    font-family: var(--font-sans); border-radius: 6px; cursor: pointer;
    transition: background var(--transition);
}
.book-submit-btn:hover { background: #c08a28; }

.booking-errors {
    background: rgba(220,53,69,0.15); border: 1px solid rgba(220,53,69,0.4);
    border-radius: 6px; padding: 1rem 1.25rem; margin-bottom: 1.5rem;
    font-size: 0.875rem; color: #ffb3b3;
}
.booking-errors ul { margin: 0; padding-left: 1.25rem; }

/* Confirmation card */
.booking-confirmed {
    max-width: 600px; margin: 3rem auto; text-align: center;
}
.confirmed-icon {
    width: 72px; height: 72px; background: rgba(26,58,58,0.1);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.5rem; font-size: 2rem;
}
.booking-confirmed h2  { font-size: 2rem; color: var(--ink); margin-bottom: 0.5rem; }
.booking-confirmed > p { color: #5a6e6e; margin-bottom: 2rem; }
.booking-ref-badge {
    display: inline-block;
    background: var(--ink); color: #fff;
    font-family: 'Courier New', monospace; font-size: 1.5rem; font-weight: 700;
    padding: 0.5rem 1.5rem; border-radius: 6px; letter-spacing: 0.1em;
    margin-bottom: 2rem;
}
.booking-summary {
    background: var(--stone-dark); border-radius: 8px;
    padding: 1.5rem 2rem; margin-bottom: 2rem; text-align: left;
}
.booking-summary h3 { font-size: 1rem; margin-bottom: 1rem; color: var(--ink); }
.booking-summary dl {
    display: grid; grid-template-columns: auto 1fr;
    gap: 0.5rem 1.5rem; font-size: 0.875rem;
}
.booking-summary dt { color: #8a9e9e; font-weight: 600; white-space: nowrap; }
.booking-summary dd { color: var(--ink); margin: 0; }
.booking-info {
    background: rgba(217,158,50,0.1); border: 1px solid rgba(217,158,50,0.3);
    border-radius: 8px; padding: 1rem 1.25rem;
    font-size: 0.875rem; color: #6a4d10; text-align: left; margin-bottom: 2rem;
}
.booking-info p { margin: 0.25rem 0; display: flex; align-items: flex-start; gap: 0.5rem; }
.booking-info strong { color: var(--ink); }
.booking-confirmed-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* DB unavailable notice */
.book-unavailable {
    background: #fff3cd; border: 1px solid #ffc107; border-radius: 8px;
    padding: 1.25rem 1.5rem; font-size: 0.9rem; color: #856404;
    margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 900px)  { .slot-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .slot-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  {
    .booking-form-wrap { padding: 1.5rem; }
    .booking-summary dl { grid-template-columns: 1fr; gap: 0.25rem; }
    .booking-summary dt::after { content: ':'; }
}

/* --- Back to Top --- */
#back-to-top {
    position: fixed;
    bottom: 2rem; right: 2rem;
    z-index: 50;
    width: 44px; height: 44px;
    background: var(--canal);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition), background var(--transition);
    box-shadow: 0 4px 16px rgba(20,45,45,0.3);
}
#back-to-top.visible { opacity: 1; pointer-events: auto; }
#back-to-top:hover { background: var(--ochre); color: var(--ink); transform: translateY(-2px); }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .programme-grid { grid-template-columns: 1fr 1fr; }
    .team-grid      { grid-template-columns: repeat(2, 1fr); }
    .footer-grid    { grid-template-columns: 1fr 1fr; }
    .gallery-grid   { columns: 3; }
}

@media (max-width: 768px) {
    .nav-links, .nav-cta { display: none; }
    .nav-hamburger { display: block; }

    .about-grid   { grid-template-columns: 1fr; }
    .about-images { height: 320px; }
    .about-img-main { width: 80%; height: 240px; }
    .about-img-secondary { width: 60%; height: 180px; }

    .heritage-cols  { grid-template-columns: 1fr; }
    .programme-grid { grid-template-columns: 1fr; }
    .boat-grid      { grid-template-columns: 1fr; }
    .boat-img       { height: 280px; }
    .team-grid      { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid   { columns: 2; }
    .footer-grid    { grid-template-columns: 1fr; gap: 2rem; }
    .hero-meta      { gap: 1rem; }
}

@media (max-width: 480px) {
    .programme-grid { grid-template-columns: 1fr; }
    .team-grid      { grid-template-columns: 1fr; }
    .gallery-grid   { columns: 1; }
    .partners-list  { gap: 1.5rem; }
    .signup-form    { flex-direction: column; align-items: stretch; }
    .signup-input   { max-width: 100%; }
}
