:root {
    --primary: #eebd2b;
    --primary-hover: #d9ab24;
    --secondary: #9a3412;
    --bg-light: #f8f7f6;
    --bg-white: #ffffff;
    --bg-dark: #1b180d;
    --text-main: #1b180d;
    --text-muted: #574f44;

    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;

    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-round: 9999px;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.7s cubic-bezier(0.4, 0, 0.2, 1);

    --nav-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

.italic-text {
    font-style: italic;
    color: var(--secondary);
}

/* Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.bg-white {
    background-color: var(--bg-white);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 4px 6px rgba(238, 189, 43, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(238, 189, 43, 0.3);
}

.btn-large {
    height: 3.5rem;
    padding: 0 2rem;
    font-size: 1rem;
    border-radius: var(--radius-lg);
}

.btn-outline {
    background: transparent;
    border: 1px solid #d1d5db;
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--text-main);
}

.btn-text {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary);
    font-weight: 700;
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 0.25rem;
    transition: all var(--transition-base);
}

.btn-text:hover {
    color: var(--primary);
    border-color: var(--primary);
    gap: 0.75rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-round);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-outline {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 1.5rem;
}

.section-badge {
    display: block;
    color: var(--secondary);
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

/* Typography styles */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3rem;
    }
}

.section-desc {
    color: var(--text-muted);
    max-width: 600px;
    font-size: 1.125rem;
}

.section-desc-large {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.section {
    padding: 6rem 0;
}

/* Header & Glassmorphism */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    background: transparent;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(248, 247, 246, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(231, 225, 207, 0.5);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-main);
}

.logo-icon {
    color: var(--primary);
    font-size: 2rem;
}

.logo h2 {
    font-size: 1.25rem;
    letter-spacing: -0.025em;
}

/* Nav links adapt colour based on scroll state */
.nav-links {
    display: none;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-main);
    transition: color var(--transition-base);
}

.nav-links a:hover {
    color: var(--primary);
}

.navbar:not(.scrolled):not(.menu-open) .logo h2,
.navbar:not(.scrolled):not(.menu-open) .nav-links a,
.navbar:not(.scrolled):not(.menu-open) .mobile-menu-btn {
    color: var(--bg-white);
}

.navbar:not(.scrolled):not(.menu-open) .nav-links a:hover {
    color: var(--primary);
}

/* Mobile Menu Active State */
.navbar.menu-open {
    background: var(--bg-white);
}

.navbar.menu-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    padding: 1.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar.menu-open .nav-links a {
    font-size: 1.125rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-main);
}

.navbar.menu-open .nav-links a:last-child {
    border-bottom: none;
}

.navbar.menu-open .logo h2,
.navbar.menu-open .mobile-menu-btn,
.navbar.menu-open .lang-btn {
    color: var(--text-main);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-btn {
    display: block;
    background: transparent;
    border: none;
    color: var(--text-main);
    cursor: pointer;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.nav-btn {
    display: none;
}

@media (min-width: 768px) {
    .nav-btn {
        display: inline-flex;
    }
}

/* Language selector */
.lang-selector {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.navbar:not(.scrolled):not(.menu-open) .lang-btn {
    color: var(--bg-white);
}

.lang-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.navbar:not(.scrolled):not(.menu-open) .lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    min-width: 120px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
}

.lang-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    padding: 0.75rem 1rem;
    text-align: left;
    background: transparent;
    border: none;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    color: var(--text-main);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.lang-option:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--nav-height);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: zoomIn 20s infinite alternate linear;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.7));
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 1.5rem;
    color: var(--bg-white);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 5rem;
    }
}

.hero-desc {
    font-size: 1.125rem;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Animations */
@keyframes zoomIn {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

/* Reveal Animations Framework */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

.reveal-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.5, 0, 0, 1);
}

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

/* History Section */
.history-section {
    background-color: var(--bg-light);
}

.section-header {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .section-header {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }
}

.timeline {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-left: 1.5rem;
}

@media (min-width: 768px) {
    .timeline {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
        padding-left: 0;
        padding-top: 3rem;
    }
}

.timeline-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background-color: rgba(238, 189, 43, 0.3);
}

@media (min-width: 768px) {
    .timeline-line {
        top: 24px;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: #e5e7eb;
    }
}

.timeline-item {
    position: relative;
}

.timeline-icon {
    position: absolute;
    left: -1.5rem;
    top: 0;
    transform: translateX(-50%);
    background: var(--bg-light);
    border: 2px solid var(--primary);
    color: var(--primary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all var(--transition-base);
}

@media (min-width: 768px) {
    .timeline-icon {
        left: 0;
        top: -3rem;
        transform: none;
        width: 44px;
        height: 44px;
    }
}

.timeline-icon span {
    font-size: 1rem;
}

@media (min-width: 768px) {
    .timeline-icon span {
        font-size: 1.25rem;
    }
}

.timeline-item:hover .timeline-icon {
    background: var(--primary);
    color: var(--bg-white);
    transform: translateX(-50%) scale(1.1);
}

@media (min-width: 768px) {
    .timeline-item:hover .timeline-icon {
        transform: scale(1.1);
    }
}

.timeline-date {
    display: block;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.timeline-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.timeline-text {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Cities Section */
.section-header-center {
    margin-bottom: 4rem;
}

.city-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .city-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .city-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.city-card {
    position: relative;
    height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
}

.city-card-wide {
    grid-column: span 1;
}

@media (min-width: 1024px) {
    .city-card-wide {
        grid-column: span 2;
    }
}

.city-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.city-card:hover img {
    transform: scale(1.1);
}

.city-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2) 60%, transparent);
}

.city-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    color: var(--bg-white);
    text-align: left;
}

.city-content h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.city-content p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    transform: translateY(20px);
    opacity: 0;
    transition: all var(--transition-base);
}

.city-card:hover .city-content p {
    transform: translateY(0);
    opacity: 1;
}

/* Gastronomy Section */
.container-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .container-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.gas-list {
    margin-bottom: 2.5rem;
}

.gas-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.icon-box {
    background: rgba(154, 52, 18, 0.1);
    color: var(--secondary);
    padding: 0.5rem;
    border-radius: var(--radius-md);
    display: flex;
}

.gas-text h4 {
    font-family: var(--font-sans);
    font-size: 1.125rem;
}

.gas-text p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.gas-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    height: 500px;
}

@media (min-width: 1024px) {
    .gas-images {
        height: 600px;
    }
}

.img-box {
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
}

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

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

.img-wide {
    grid-column: span 2;
    height: 250px;
}

@media (min-width: 1024px) {
    .img-wide {
        height: 280px;
    }
}

.img-tall {
    height: 230px;
}

@media (min-width: 1024px) {
    .img-tall {
        height: 300px;
    }
}

.translate-down {
    transform: translateY(-20px);
}

@media (min-width: 1024px) {
    .translate-down {
        transform: translateY(0);
    }
}

/* Culture Section */
.section-header-flex {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .section-header-flex {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }
}

.masonry-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: 300px;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .masonry-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .masonry-item.tall {
        grid-row: span 2;
    }

    .masonry-item.wide {
        grid-column: span 2;
    }
}

.masonry-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.masonry-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow), filter var(--transition-slow);
}

.masonry-item:hover img {
    transform: scale(1.1);
}

.masonry-item.tall img {
    filter: grayscale(100%);
}

.masonry-item.tall:hover img {
    filter: grayscale(0%);
}

.masonry-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
}

.masonry-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    color: var(--bg-white);
}

.masonry-badge {
    display: block;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.masonry-content h3 {
    font-size: 1.5rem;
}

/* Footer Section */
.footer {
    background-color: var(--bg-dark);
    color: var(--bg-white);
    padding: 5rem 0 2.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-brand {
    grid-column: span 1;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-logo .logo-icon {
    font-size: 2rem;
    color: var(--primary);
}

.footer-logo h2 {
    font-size: 1.25rem;
    font-family: var(--font-serif);
}

.footer-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-title {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: var(--bg-white);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    transition: color var(--transition-base);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-newsletter p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.5rem 1rem;
    color: var(--bg-white);
    font-size: 0.875rem;
    font-family: var(--font-sans);
}

.newsletter-form input:focus {
    outline: 1px solid var(--primary);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form button {
    background: var(--primary);
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition-base);
    color: var(--bg-dark);
}

.newsletter-form button:hover {
    background: var(--primary-hover);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
    }
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-bottom-links a {
    transition: color var(--transition-base);
}

.footer-bottom-links a:hover {
    color: var(--bg-white);
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-left: 1.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-social a {
    font-weight: 700;
    font-size: 0.75rem;
    transition: color var(--transition-base);
}

.footer-social a:hover {
    color: var(--primary);
}