/**
 * Base styles — Reset, typography, layout primitives
 * Theme Voyage
 */

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
}

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

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

ul, ol {
    list-style: none;
}

/* ─── CSS Custom Properties (defaults, overridden by plugin) ─── */
:root {
    --vd-accent-color: #BEEC61;
    --vd-accent-color-hover: #A8D64E;
    --vd-accent-color-light: #EDF8D4;

    --color-text: #1a1a1a;
    --color-text-light: #666666;
    --color-text-muted: #999999;
    --color-bg: #ffffff;
    --color-bg-light: #f8f8f8;
    --color-bg-dark: #1a1a1a;
    --color-border: #e5e5e5;

    --font-heading: 'Sen', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --container-width: 1200px;
    --container-padding: 24px;
    --section-spacing: 80px;
    --section-spacing-sm: 48px;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);

    --transition: 0.2s ease;
}

/* ─── Typography ─────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-text);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.625rem); }
h4 { font-size: 1.125rem; font-family: var(--font-body); font-weight: 600; }

p {
    margin-bottom: 1em;
    color: var(--color-text);
}

p:last-child {
    margin-bottom: 0;
}

/* ─── Layout ─────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.container--narrow {
    max-width: 680px;
}

.container--medium {
    max-width: 900px;
}

.container--full {
    max-width: 100%;
}

section {
    padding: var(--section-spacing) 0;
}

/* ─── Front Intro Section ────────────────────────────── */
.section--front-intro {
    padding: 40px 0 0;
}

.front-intro__title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 14px;
    line-height: 1.15;
}

.front-intro__text {
    font-size: 1rem;
    color: var(--color-text-light);
    max-width: 640px;
    line-height: 1.65;
    margin-bottom: 0;
}

/* ─── Hub Page — Ocean & Sand ────────────────────────── */
.hub-body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #EDD68A; /* sand fallback */
}

.hub-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Ocean section — deep blue gradient */
.hub-page__ocean {
    background: linear-gradient(180deg, #0A3D62 0%, #0E6BA8 55%, #2196C4 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 72px 24px 0;
    position: relative;
}

.hub-page__header {
    text-align: center;
    margin-bottom: 60px;
}

.hub-page__logo {
    margin-bottom: 20px;
}

/* White version of the logo on dark background */
.hub-page__logo .hub-logo,
.hub-page__logo img {
    height: 90px;
    width: auto;
    display: block;
    margin: 0 auto;
    filter: brightness(0) invert(1);
}

.hub-page__tagline {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.80);
    max-width: 420px;
    line-height: 1.65;
    margin: 0 auto;
    font-weight: 400;
}

/* Destination cards grid */
.hub-page__destinations {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 24px;
    justify-content: center;
    max-width: 780px;
    width: 100%;
    margin-bottom: 72px;
    padding: 0 16px;
}

/* If only 1 destination, center it */
.hub-page__destinations > :only-child {
    grid-column: 1 / -1;
}

/* White floating card for each destination */
.hub-page__dest-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px 36px 24px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    min-width: 240px;
}

.hub-page__dest-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.hub-page__dest-logo img {
    height: 80px;
    width: auto;
    display: block;
}

.hub-page__dest-desc {
    font-size: 0.8125rem;
    color: #777;
    line-height: 1.45;
    margin: 0;
    max-width: 200px;
}

/* SVG sand wave transition */
.hub-page__wave {
    width: 100%;
    line-height: 0;
    margin-top: auto;
}

.hub-page__wave svg {
    display: block;
    width: 100%;
    height: 140px;
}

/* Sand section at the bottom */
.hub-page__sand {
    background: #EDD68A;
    padding: 28px 24px 40px;
    text-align: center;
}

.hub-page__sand-text {
    font-size: 0.875rem;
    color: #8B6914;
    margin: 0;
    letter-spacing: 0.03em;
    font-weight: 500;
}

/* Responsive: single column on small screens */
@media (max-width: 600px) {
    .hub-page__destinations {
        grid-template-columns: 1fr;
    }

    .hub-page__dest-card {
        min-width: 0;
        width: 100%;
    }
}

/* ─── Utility ────────────────────────────────────────── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
