/* ===================================
   Canal Cask - Premium Rum Investment
   Matching Figma Design Exactly
   =================================== */

/* CSS Custom Properties */
:root {
    --bg-cream: #F2ECE4;
    --bg-primary: #0d0a06;
    --bg-secondary: #1a1208;
    --bg-dark: #0b0906;
    --bg-darker: #080604;
    --bg-card-1: #E0D2B3;
    --bg-card-2: #C2A36B;
    --bg-card-3: #2a1a0a;
    --bg-card-4: #1e1408;

    --gold: #b08548;
    --gold-hover: #c49a50;
    --gold-active: #9a7040;

    --text-cream: #e8dcc8;
    --text-dark: #2A221C;
    --text-muted: #6a5030;
    --text-white: #f2e6d0;

    --border-gold: rgba(176, 133, 72, 0.35);
    --border-light: rgba(255, 255, 255, 0.06);
    --border-dark: #1a1208;

    --font-heading: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
    --font-body: 'Source Sans 3', 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif;

    --container-max: 1440px;
    --container-inner: 1280px;
    --section-padding: 120px 0;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    background-color: var(--bg-primary);
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-dark);
    line-height: 1.4;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 400;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 40px;
    text-transform: uppercase;
}

/* ===== HEADER / NAV ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    transition: background-color 0.4s ease, padding 0.4s ease;
}

.header--scrolled {
    background-color: rgba(11, 9, 6, 0.95);
    backdrop-filter: blur(10px);
    padding: 14px 0;
    border-bottom: 1px solid var(--border-dark);
}

.nav {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    display: flex;
    align-items: center;
}

.nav__logo-img {
    height: 40px;
    width: auto;
}

.nav__logo-text {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--text-cream);
    text-transform: uppercase;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav__link {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--text-cream);
    text-transform: uppercase;
    position: relative;
    padding: 4px 0;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav__link:hover,
.nav__link.active {
    color: var(--text-white);
}

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

.nav__link--cta {
    background: var(--gold);
    color: var(--text-dark) !important;
    padding: 12px 32px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 2px;
}

.nav__link--cta::after {
    display: none;
}

.nav__link--cta:hover {
    background: var(--gold-hover);
}

.nav__link--cta:active {
    background: var(--gold-active);
}

/* Language Switcher */
.nav__lang {
    display: flex;
    align-items: center;
}
.nav__lang-select {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--text-cream);
    background: transparent;
    border: 1px solid var(--border-gold);
    padding: 5px 24px 5px 10px;
    border-radius: 2px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23b08548' fill='none' stroke-width='1.2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 10px;
}
.nav__lang-select:hover {
    border-color: var(--gold);
    color: #fff;
}
.nav__lang-select option {
    background: var(--bg-primary);
    color: var(--text-cream);
}

/* i18n FOUC prevention */
[data-i18n], [data-i18n-html] {
    transition: opacity 0.12s ease;
}

.nav__hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.nav__hamburger span {
    width: 26px;
    height: 2px;
    background: var(--text-cream);
    transition: var(--transition);
}

.nav__hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.nav__hamburger.active span:nth-child(2) {
    opacity: 0;
}

.nav__hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__bg-img {
    width: 100%;
    height: 100%;
    background: url('../images/hero-bg.jpg') center/cover no-repeat;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.4) 40%,
        rgba(0, 0, 0, 0.65) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 20px;
}

.hero__overline {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 4px;
    color: #c8b898;
    margin-bottom: 24px;
    text-transform: uppercase;
    text-shadow: 0 2px 12px rgba(0,0,0,.8);
}

.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(56px, 8vw, 140px);
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--text-cream);
    line-height: 1;
    margin-bottom: 24px;
    text-shadow: 0 3px 20px rgba(0,0,0,.6);
}

.hero__subtitle {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 4px;
    color: #c8b898;
    text-transform: uppercase;
    text-shadow: 0 2px 12px rgba(0,0,0,.8);
}

.hero__scroll-indicator {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.hero__scroll-text {
    font-family: var(--font-body);
    font-size: 14px;
    letter-spacing: 1px;
    color: #a89878;
    text-shadow: 0 2px 8px rgba(0,0,0,.7);
}

.hero__scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 1px solid var(--text-cream);
    border-bottom: 1px solid var(--text-cream);
    transform: rotate(45deg);
    animation: scrollArrow 2s ease-in-out infinite;
}

@keyframes scrollArrow {
    0%, 100% { opacity: 0.5; transform: rotate(45deg) translateY(0); }
    50% { opacity: 1; transform: rotate(45deg) translateY(5px); }
}

/* ===== ABOUT ===== */
.about {
    background: var(--bg-dark);
    overflow: hidden;
}

/* Accent bar at top of about section */
.about__accent-bar {
    height: 80px;
    background: var(--bg-primary);
}

.about__container {
    max-width: 100%;
    margin: 0;
    display: flex;
    align-items: stretch;
    min-height: 550px;
}

.about__image-wrapper {
    flex: 0 0 57%;
    position: relative;
    overflow: hidden;
}

.about__image {
    width: 100%;
    height: 100%;
    min-height: 550px;
    background: url('../images/about.jpg') center/cover no-repeat;
}

.about__image {
    transition: transform 0.6s ease;
}

.about__image-wrapper:hover .about__image {
    transform: scale(1.02);
}

.about__content {
    flex: 1;
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--bg-secondary);
}

.about__title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--text-cream);
    line-height: 1.15;
    margin-bottom: 32px;
    text-transform: uppercase;
}

.about__text {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* About Gallery - 4 images in a row */
.about__gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.about__gallery-img {
    height: 0;
    padding-bottom: 75%;
    background: #3D2E22 center/cover no-repeat;
    background-size: cover;
}

.about__gallery-img--1 { background: url('../images/about-gallery-1.jpg') center/cover no-repeat; }
.about__gallery-img--2 { background: url('../images/about-gallery-2.jpg') center/cover no-repeat; }
.about__gallery-img--3 { background: url('../images/about-gallery-3.jpg') center/cover no-repeat; }
.about__gallery-img--4 { background: url('../images/about-gallery-4.jpg') center/cover no-repeat; }

/* ===== WHAT WE DO ===== */
.what-we-do {
    padding: var(--section-padding);
    background: var(--bg-cream);
}

.what-we-do__container {
    max-width: var(--container-inner);
    margin: 0 auto;
    padding: 0 60px;
}

.what-we-do .section-title {
    color: var(--text-dark);
    margin-bottom: 20px;
}

.what-we-do__intro {
    text-align: center;
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.8;
    color: rgba(42, 34, 28, 0.75);
    max-width: 700px;
    margin: 0 auto 60px;
}

.what-we-do__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.what-we-do__card {
    padding: 56px 44px 48px;
    border-radius: 0;
    position: relative;
    overflow: hidden;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.what-we-do__card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
}

.what-we-do__card--1 {
    background: var(--bg-secondary);
}

.what-we-do__card--2 {
    background: var(--bg-primary);
}

/* Gold accent line at top of card — removed for cleaner look */
.what-we-do__card-accent {
    display: none;
}

.what-we-do__card-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 400;
    color: rgba(194, 163, 107, 0.12);
    line-height: 1;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.what-we-do__card-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-cream);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.what-we-do__card-text {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.75;
    color: #9a8568;
    margin-bottom: 0;
}

.what-we-do__card-divider {
    width: 40px;
    height: 1px;
    background: var(--gold);
    margin: 28px 0;
    opacity: 0.5;
}

.what-we-do__card-list {
    list-style: none;
    padding: 0;
}

.what-we-do__card-list li {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 400;
    color: rgba(242, 236, 228, 0.8);
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    padding-left: 22px;
    letter-spacing: 0.3px;
}

.what-we-do__card-list li:last-child {
    border-bottom: none;
}

.what-we-do__card-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 8px;
    height: 1px;
    background: var(--gold);
    transform: translateY(-50%);
}

/* ===== HOW IT WORKS — REDESIGNED ===== */
.how-it-works {
    padding: var(--section-padding);
    background: var(--bg-dark);
    overflow: hidden;
}

.how-it-works__container {
    max-width: var(--container-inner);
    margin: 0 auto;
    padding: 0 60px;
}

.how-it-works__header {
    margin-bottom: 60px;
}

.how-it-works__title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 400;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--text-cream);
    margin-bottom: 24px;
    text-align: left;
}

.how-it-works__intro {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 550px;
    text-align: left;
}

.how-it-works__process {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.how-it-works__hero-image {
    width: 100%;
    min-height: 560px;
    background: url('../images/how-it-works-1.jpg') center/cover no-repeat;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.how-it-works__hero-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(11, 9, 6, 0.4) 100%);
}

.how-it-works__steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.how-it-works__step-row {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    padding: 32px 0;
    border-bottom: 1px solid rgba(194, 163, 107, 0.12);
    position: relative;
    transition: transform 0.3s ease;
}

.how-it-works__step-row:first-child {
    border-top: 1px solid rgba(194, 163, 107, 0.12);
}

.how-it-works__step-row:hover {
    transform: translateX(8px);
}

.how-it-works__step-number {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(194, 163, 107, 0.3);
    border-radius: 50%;
    transition: all 0.4s ease;
}

.how-it-works__step-row:hover .how-it-works__step-number {
    background: var(--gold);
    border-color: var(--gold);
}

.how-it-works__step-number span {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 400;
    color: var(--gold);
    transition: color 0.4s ease;
}

.how-it-works__step-row:hover .how-it-works__step-number span {
    color: var(--text-dark);
}

.how-it-works__step-content {
    flex: 1;
    padding-top: 4px;
}

.how-it-works__step-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-cream);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.how-it-works__step-desc {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-muted);
}

/* ===== INVESTING ===== */
.investing {
    padding: var(--section-padding);
    background: var(--bg-dark);
}

.investing__container {
    max-width: var(--container-inner);
    margin: 0 auto;
    padding: 0 60px;
}

.investing .section-title {
    color: var(--text-cream);
}

.investing__intro {
    text-align: center;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 750px;
    margin: 0 auto 60px;
}

/* Timeline with dots and line */
.investing__timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    position: relative;
    margin-bottom: 40px;
    text-align: center;
}

/* Connecting horizontal line — fades in from left, solid through middle, fades out right */
.investing__timeline::before {
    content: '';
    position: absolute;
    top: 38px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent 0%,
        var(--gold) 10%,
        var(--gold) 90%,
        transparent 100%
    );
    opacity: 0.5;
}

.investing__timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
}

.investing__card-title {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--gold);
    text-transform: uppercase;
}

.investing__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gold);
    position: relative;
    z-index: 1;
    box-shadow: 0 0 0 4px rgba(194, 163, 107, 0.2), 0 0 12px rgba(194, 163, 107, 0.15);
}

.investing__card-text {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 300;
    color: var(--text-muted);
}

.investing__images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    overflow: hidden;
}

.investing__card-img {
    height: 300px;
    background: #3D2E22 center/cover no-repeat;
}

.investing__card-img--1 { background: url('../images/invest-1.jpg') center/cover no-repeat; }
.investing__card-img--2 { background: url('../images/invest-2.jpg') center/cover no-repeat; }
.investing__card-img--3 { background: url('../images/invest-3.jpg') center/cover no-repeat; }

/* ===== PANAMA ===== */
.panama {
    background: var(--bg-dark);
}

.panama__hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    background: url('../images/how-it-works-2.jpg') center/cover no-repeat;
    overflow: hidden;
}

.panama__hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(11, 9, 6, 0.92) 0%,
        rgba(11, 9, 6, 0.75) 50%,
        rgba(11, 9, 6, 0.5) 100%
    );
}

.panama__hero-content {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    padding: 80px 40px 80px min(10vw, 140px);
}

.panama__overline {
    display: block;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 20px;
    text-shadow: 0 2px 8px rgba(0,0,0,.7);
}

.panama__heading {
    font-family: var(--font-heading);
    font-size: clamp(36px, 4.5vw, 62px);
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--text-cream);
    text-transform: uppercase;
    line-height: 1.05;
    margin-bottom: 28px;
    text-shadow: 0 3px 16px rgba(0,0,0,.7);
}

.panama__lead {
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.75;
    color: #b8a888;
    max-width: 480px;
    text-shadow: 0 2px 10px rgba(0,0,0,.7);
}

.panama__stats-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 48px 60px;
    background: var(--bg-secondary);
    border-top: 1px solid rgba(194, 163, 107, 0.1);
}

.panama__stat {
    flex: 1;
    text-align: center;
    padding: 12px 24px;
}

.panama__stat-value {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 400;
    color: var(--gold);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.panama__stat-label {
    display: block;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    color: #9a8568;
    line-height: 1.5;
    letter-spacing: 0.3px;
}

.panama__stat-divider {
    width: 1px;
    height: 48px;
    background: rgba(194, 163, 107, 0.2);
    flex-shrink: 0;
}

/* ===== OUR RUM ===== */
.our-rum {
    padding: var(--section-padding);
    background: var(--bg-dark);
}

.our-rum__container {
    max-width: var(--container-inner);
    margin: 0 auto;
    padding: 0 60px;
}

.our-rum .section-title {
    color: var(--text-cream);
}

.our-rum__carousel-wrapper {
    overflow: hidden;
    margin-top: 40px;
}

.our-rum__carousel {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 20px;
}

.our-rum__carousel::-webkit-scrollbar {
    display: none;
}

.our-rum__card {
    flex: 0 0 calc(25% - 18px);
    min-width: 260px;
    scroll-snap-align: start;
}

.our-rum__card-image {
    width: 100%;
    height: 360px;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 16px;
    /* PLACEHOLDER: white/light - replace with images/rum-1.jpg through rum-4.jpg */
    background: #FFFFFF center/cover no-repeat;
}

.our-rum__card-image--1 { background-color: #FFFFFF; }
.our-rum__card-image--2 { background-color: #FFFFFF; }
.our-rum__card-image--3 { background-color: #FFFFFF; }
.our-rum__card-image--4 { background-color: #FFFFFF; }

.our-rum__card-name {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 400;
    color: var(--gold);
    margin-bottom: 6px;
    text-transform: uppercase;
}

.our-rum__card-desc {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 300;
    color: var(--text-muted);
}

/* ===== MARKET OVERVIEW ===== */
.market {
    padding: 0;
    background: var(--bg-cream);
}

.market__container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

.market .section-title {
    color: var(--text-dark);
    padding: 80px 60px 0;
}

/* CAGR Chart */
.market__cagr {
    max-width: var(--container-inner);
    margin: 0 auto 0;
    padding: 0 60px 60px;
}

.market__cagr-header {
    margin-bottom: 40px;
    text-align: center;
}

.market__cagr-title {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.market__cagr-subtitle {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    color: rgba(42, 34, 28, 0.6);
}

.market__cagr-chart {
    position: relative;
}

.market__cagr-bars {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 200px;
    padding: 0 0 40px;
    border-bottom: 1px solid rgba(42, 34, 28, 0.12);
}

.market__cagr-bar-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    height: 100%;
    justify-content: flex-end;
}

.market__cagr-bar {
    width: 100%;
    max-width: 80px;
    background: linear-gradient(to top, #2a2218, #3a2e22);
    border-radius: 3px 3px 0 0;
    position: relative;
    height: 0;
    transition: height 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    min-height: 0;
}

.market__cagr-bar--highlight {
    background: linear-gradient(to top, var(--gold), var(--gold-hover));
}

.market__cagr-bar--projected {
    background: linear-gradient(to top, rgba(42, 34, 28, 0.15), rgba(42, 34, 28, 0.32));
}

.market__cagr-value {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    color: #2a2218;
    white-space: nowrap;
}

.market__cagr-bar--highlight .market__cagr-value {
    color: var(--gold);
}

.market__cagr-year {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    color: rgba(42, 34, 28, 0.55);
    position: absolute;
    bottom: 12px;
}

.market__cagr-year sup {
    font-size: 9px;
    color: var(--gold);
}

.market__cagr-note {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    color: rgba(42, 34, 28, 0.5);
    margin-top: 0;
    margin-bottom: 12px;
    text-align: center;
    font-style: italic;
}

.market__circles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 100%;
    margin: 0;
    padding: 60px 60px;
    text-align: center;
    background: var(--bg-secondary);
    border-radius: 0;
}

.market__circle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.market__circle {
    position: relative;
    width: 200px;
    height: 200px;
    margin-bottom: 20px;
}

.market__circle svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.market__circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.15);
    stroke-width: 6;
}

.market__circle-progress {
    fill: none;
    stroke: var(--gold);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 339.292;
    stroke-dashoffset: 339.292;
    transition: stroke-dashoffset 1.5s ease;
}

.market__circle-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 400;
    color: var(--text-cream);
}

.market__circle-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.market__circle-value {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 400;
    color: var(--text-cream);
}

.market__circle-desc {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 300;
    color: var(--text-muted);
    margin-top: 12px;
    text-align: center;
    line-height: 1.6;
}

.market__circle-text {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    color: var(--text-cream);
    margin-bottom: 4px;
}

.market__circle-subtext {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    color: #9a8568;
}

.market__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    overflow: hidden;
}

.market__stat-box {
    padding: 48px 40px;
    text-align: center;
}

.market__stat-box--1 {
    background: var(--bg-card-3);
}

.market__stat-box--2 {
    background: var(--bg-card-4);
}

.market__stat-number {
    font-family: var(--font-heading);
    font-size: clamp(36px, 4vw, 52px);
    font-weight: 400;
    color: var(--text-cream);
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.market__stat-label {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== CONTACT ===== */
.contact {
    padding: var(--section-padding);
    background: var(--bg-primary);
}

.contact__container {
    max-width: var(--container-inner);
    margin: 0 auto;
    padding: 0 60px;
}

.contact .section-title {
    color: var(--text-cream);
}

.contact__field {
    margin-bottom: 28px;
}

.contact__label {
    display: block;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    color: #9a8568;
    text-transform: capitalize;
    margin-bottom: 8px;
}

.contact__input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(232, 220, 200, 0.15);
    padding: 12px 0;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-cream);
    outline: none;
    transition: border-color 0.3s ease;
}

.contact__input:focus {
    border-bottom-color: var(--gold);
}

.contact__input::placeholder {
    color: rgba(232, 220, 200, 0.3);
}

.contact__submit {
    width: 100%;
    padding: 16px 40px;
    background: var(--gold);
    border: none;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-dark);
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 12px;
    border-radius: 2px;
}

.contact__submit:hover {
    background: var(--gold-hover);
}

.contact__submit:active {
    background: var(--gold-active);
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
    align-items: stretch;
}

.contact__info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 48px 40px;
    background: var(--bg-secondary);
    border-radius: 0;
}

.contact__brand {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--text-cream);
    margin-bottom: 0;
    text-transform: uppercase;
}

.contact__info-spacer {
    flex: 1;
}

.contact__quote-attr {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    color: #9a8568;
    font-style: italic;
}

/* ===== FOOTER ===== */
.footer {
    padding: 80px 0 40px;
    background: var(--bg-dark);
}

.footer__container {
    max-width: var(--container-inner);
    margin: 0 auto;
    padding: 0 60px;
}

.footer__main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
}

.footer__brand {
    flex: 0 0 auto;
}

.footer__logo {
    font-family: var(--font-heading);
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 400;
    letter-spacing: 4px;
    color: var(--text-cream);
    margin-bottom: 12px;
}

.footer__tagline {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 300;
    color: #b0a090;
    line-height: 1.6;
}

.footer__nav {
    display: flex;
    gap: 40px;
}

.footer__nav-col h4 {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-cream);
    text-transform: uppercase;
    margin-bottom: 16px;
}

.footer__nav-heading {
    display: block;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: 16px;
}

.footer__nav-col a {
    display: block;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 300;
    color: #b0a090;
    margin-bottom: 8px;
}

.footer__nav-col a:hover {
    color: var(--text-cream);
}

.footer__contact-email {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 300;
    color: #b0a090;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

.footer__copyright {
    font-family: var(--font-body);
    font-size: 13px;
    color: #b0a090;
}

.footer__links {
    display: flex;
    gap: 24px;
}

.footer__link {
    font-family: var(--font-body);
    font-size: 13px;
    color: #b0a090;
    letter-spacing: 0.5px;
}

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

/* ===== COOKIE BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-gold);
    padding: 20px 40px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-banner.active {
    transform: translateY(0);
}

.cookie-banner.hidden {
    transform: translateY(100%);
}

.cookie-banner__content {
    max-width: var(--container-inner);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.cookie-banner__text {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    color: #9a8568;
    line-height: 1.6;
    flex: 1;
}

.cookie-banner__text a {
    color: var(--gold);
    text-decoration: underline;
}

.cookie-banner__actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-banner__btn {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 10px 24px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    transition: var(--transition);
    border-radius: 2px;
}

.cookie-banner__btn--accept {
    background: var(--gold);
    color: var(--text-dark);
}

.cookie-banner__btn--accept:hover {
    background: var(--gold-hover);
}

.cookie-banner__btn--decline {
    background: transparent;
    color: #9a8568;
    border: 1px solid var(--border-gold);
}

.cookie-banner__btn--decline:hover {
    color: var(--text-cream);
    border-color: var(--text-cream);
}

@media (max-width: 768px) {
    .cookie-banner {
        padding: 16px 20px;
    }

    .cookie-banner__content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .cookie-banner__actions {
        width: 100%;
        justify-content: center;
    }
}

/* ===== ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Shimmer line decoration for section titles */
@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

/* Pulse animation for dots */
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(194, 163, 107, 0.2), 0 0 12px rgba(194, 163, 107, 0.15); }
    50% { box-shadow: 0 0 0 8px rgba(194, 163, 107, 0.1), 0 0 20px rgba(194, 163, 107, 0.25); }
}

.investing__dot {
    animation: pulse 3s ease-in-out infinite;
}

/* Float animation for panama facts */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* Gold line decoration */
.section-title--decorated {
    position: relative;
    padding-bottom: 20px;
}

.section-title--decorated::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--gold);
}

/* ===== RESPONSIVE ===== */

/* Large Desktop */
@media (min-width: 1500px) {
    :root {
        --container-inner: 1400px;
    }
}

/* Laptop / Small Desktop */
@media (max-width: 1200px) {
    .nav {
        padding: 0 40px;
    }

    .about__content {
        padding: 60px 40px;
    }

    .how-it-works__container,
    .investing__container,
    .our-rum__container,
    .contact__container,
    .footer__container,
    .what-we-do__container,
    .panama__container {
        padding: 0 40px;
    }

    .market .section-title {
        padding: 80px 40px 0;
    }

    .market__circles {
        padding: 60px 40px;
    }

    .market__cagr {
        padding: 0 40px 60px;
    }
}

/* Tablet Landscape */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px 0;
    }

    .nav__links {
        gap: 24px;
    }

    .nav__link {
        font-size: 14px;
    }

    .about__container {
        flex-direction: column;
    }

    .about__image-wrapper {
        flex: none;
        height: 400px;
    }

    .about__image {
        min-height: 400px;
    }

    .about__content {
        padding: 60px 40px;
    }

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

    .about__gallery-img {
        height: 180px;
    }

    .how-it-works__process {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .how-it-works__hero-image {
        min-height: 350px;
    }

    .panama__stats-bar {
        flex-wrap: wrap;
        gap: 20px;
        padding: 40px 40px;
    }

    .panama__stat-divider {
        display: none;
    }

    .panama__stat {
        flex: 0 0 calc(50% - 10px);
    }

    .investing__images {
        gap: 0;
    }

    .our-rum__card {
        flex: 0 0 calc(33.333% - 16px);
    }

    .footer__main {
        flex-direction: column;
        gap: 40px;
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }

    .nav {
        padding: 0 24px;
    }

    .nav__hamburger {
        display: flex;
    }

    .nav__links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 28px;
        transition: right 0.4s ease;
        border-left: 1px solid var(--border-light);
    }

    .nav__links.active {
        right: 0;
    }

    .nav__link {
        font-size: 16px;
        color: var(--text-cream);
    }

    .hero__title {
        letter-spacing: 4px;
    }

    .hero__overline,
    .hero__subtitle {
        font-size: 13px;
        letter-spacing: 3px;
    }

    .about__container {
        flex-direction: column;
    }

    .about__image-wrapper {
        height: 350px;
    }

    .about__image {
        min-height: 350px;
    }

    .about__content {
        padding: 48px 32px;
    }

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

    .about__gallery-img {
        height: 160px;
    }

    .what-we-do__cards {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .what-we-do__card {
        padding: 36px 28px;
    }

    .panama__hero {
        min-height: 400px;
    }

    .panama__hero-content {
        padding: 48px 24px;
        max-width: 100%;
    }

    .panama__hero-overlay {
        background: linear-gradient(
            to right,
            rgba(11, 9, 6, 0.95) 0%,
            rgba(11, 9, 6, 0.8) 100%
        );
    }

    .panama__stats-bar {
        flex-direction: column;
        gap: 0;
        padding: 0;
    }

    .panama__stat {
        flex: none;
        width: 100%;
        padding: 24px;
        border-bottom: 1px solid rgba(194, 163, 107, 0.08);
    }

    .panama__stat-divider {
        display: none;
    }

    .how-it-works__process {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .how-it-works__hero-image {
        min-height: 280px;
    }

    .how-it-works__step-row {
        padding: 24px 0;
    }

    .investing__timeline {
        gap: 20px;
    }

    .investing__timeline::before {
        left: 10%;
        right: 10%;
    }

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

    .investing__card-img {
        height: 220px;
    }

    .our-rum__card {
        flex: 0 0 calc(50% - 12px);
    }

    .market__cagr {
        padding: 0 24px 40px;
    }

    .market__cagr-bars {
        height: 160px;
        gap: 6px;
    }

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

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

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

    .footer__main {
        flex-direction: column;
        gap: 40px;
        text-align: center;
        align-items: center;
    }

    .footer__brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer__nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 32px 40px;
        width: 100%;
        text-align: center;
    }

    .footer__nav-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer__nav-col:last-child {
        grid-column: 1 / -1;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer__links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .how-it-works__container,
    .investing__container,
    .our-rum__container,
    .contact__container,
    .footer__container,
    .what-we-do__container,
    .panama__container {
        padding: 0 24px;
    }

    .market .section-title {
        padding: 60px 24px 0;
    }

    .market__circles {
        padding: 40px 24px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    :root {
        --section-padding: 48px 0;
    }

    .nav {
        padding: 0 16px;
    }

    .hero {
        min-height: 600px;
    }

    .hero__overline,
    .hero__subtitle {
        font-size: 13px;
        letter-spacing: 2px;
    }

    .hero__scroll-indicator {
        bottom: 30px;
    }

    .about__image-wrapper {
        height: 280px;
    }

    .about__image {
        min-height: 280px;
    }

    .about__content {
        padding: 36px 20px;
    }

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

    .about__gallery-img {
        height: 130px;
    }

    .section-title {
        letter-spacing: 0;
        margin-bottom: 24px;
    }

    .our-rum__card {
        flex: 0 0 calc(80% - 12px);
    }

    .our-rum__card-image {
        height: 280px;
    }

    .market__circle {
        width: 160px;
        height: 160px;
    }

    .contact__info {
        padding: 28px 20px;
    }

    .market__stat-box {
        padding: 32px 20px;
    }

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

    .investing__timeline::before {
        display: none;
    }

    .market .section-title {
        margin-bottom: 8px;
    }

    .market__cagr {
        padding: 0 16px 40px;
    }

    .market__cagr-header {
        margin-bottom: 28px;
    }

    .market__cagr-title {
        font-size: 12px;
        letter-spacing: 2px;
    }

    .market__cagr-subtitle {
        font-size: 14px;
    }

    .market__cagr-bars {
        height: 160px;
        gap: 6px;
        padding-bottom: 32px;
    }

    .market__cagr-value {
        font-size: 10px;
        top: -20px;
    }

    .market__cagr-year {
        font-size: 11px;
        bottom: 8px;
    }

    .market__cagr-bar {
        max-width: 60px;
    }

    .how-it-works__container,
    .investing__container,
    .our-rum__container,
    .contact__container,
    .footer__container,
    .what-we-do__container,
    .panama__container {
        padding: 0 16px;
    }

    .market .section-title {
        padding: 48px 16px 0;
    }

    .market__circles {
        padding: 40px 16px;
    }
}

/* iPad specific */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .about__container {
        flex-direction: column;
    }

    .about__image-wrapper {
        height: 400px;
    }

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

    .investing__images {
        grid-template-columns: repeat(3, 1fr);
    }

    .market__circles {
        grid-template-columns: repeat(3, 1fr);
    }

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