/* ==========================================================================
   Val Cichero Stylesheet
   ========================================================================== */

/* Design Tokens & Custom Properties */
:root {
    --primary: #1b4332;         /* Deep Forest Green */
    --primary-light: #2d6a4f;   /* Medium Forest Green */
    --primary-dark: #081c15;    /* Dark Charcoal Green */
    --secondary: #8c7853;       /* Warm Earthy Clay */
    --secondary-light: #b5a484; /* Soft Sand */
    --accent: #d4a373;          /* Warm Ochre / Sunset Gold */
    --accent-light: #fefae0;    /* Warm Cream */
    
    --bg-light: #faf9f6;        /* Alabaster Off-white */
    --bg-white: #ffffff;
    --text-dark: #1f2421;       /* Charcoal Text */
    --text-muted: #5e6661;      /* Slate Gray Text */
    
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(27, 67, 50, 0.08);
    
    --font-heading: 'Outfit', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-round: 50px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 10px 20px rgba(27, 67, 50, 0.05);
    --shadow-lg: 0 20px 40px rgba(27, 67, 50, 0.1);
}

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

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

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

.lead {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--primary-dark);
    line-height: 1.7;
}

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

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

/* Common Layout Elements */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    margin-bottom: 60px;
    max-width: 700px;
}

.section-header.text-center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-kicker {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 8px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.accent-line {
    width: 60px;
    height: 4px;
    background-color: var(--accent);
    margin-top: 15px;
    border-radius: var(--radius-sm);
}

.accent-line.center {
    margin-left: auto;
    margin-right: auto;
}

/* Grids */
.grid {
    display: grid;
    gap: 32px;
}

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

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

.align-center {
    align-items: center;
}

.gap-4 {
    gap: 64px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-round);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    gap: 10px;
}

.btn-primary {
    background-color: var(--primary-light);
    color: var(--bg-white);
    box-shadow: 0 4px 14px rgba(45, 106, 79, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 106, 79, 0.4);
    color: var(--bg-white);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--bg-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background-color: var(--bg-white);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-light);
    color: var(--primary-light);
}

.btn-outline:hover {
    background-color: var(--primary-light);
    color: var(--bg-white);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-block {
    display: width;
    width: 100%;
}

/* Header & Floating Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 24px 0;
    background-color: transparent;
}

.main-header.scrolled {
    padding: 14px 0;
    background-color: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 1.8rem;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--bg-white);
    letter-spacing: -0.5px;
    transition: var(--transition);
}

.scrolled .logo-text {
    color: var(--primary-dark);
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    padding: 6px 0;
}

.nav-link:hover {
    color: var(--bg-white);
}

.scrolled .nav-link {
    color: var(--text-dark);
}

.scrolled .nav-link:hover {
    color: var(--primary-light);
}

/* Nav Underline Animation */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--bg-white);
    transition: var(--transition);
}

.scrolled .nav-link::after {
    background-color: var(--accent);
}

.nav-link:hover::after {
    width: 100%;
}

.btn-contact {
    background-color: var(--accent);
    color: var(--primary-dark) !important;
    padding: 10px 20px !important;
    border-radius: var(--radius-round);
}

.btn-contact::after {
    display: none;
}

.btn-contact:hover {
    background-color: var(--bg-white) !important;
    color: var(--primary) !important;
    box-shadow: var(--shadow-sm);
}

.scrolled .btn-contact {
    background-color: var(--primary-light);
    color: var(--bg-white) !important;
}

.scrolled .btn-contact:hover {
    background-color: var(--accent);
    color: var(--primary-dark) !important;
}

/* Mobile Hamburger */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-menu .bar {
    width: 100%;
    height: 2px;
    background-color: var(--bg-white);
    transition: var(--transition);
}

.scrolled .hamburger-menu .bar {
    background-color: var(--primary-dark);
}

.hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    min-height: 600px;
    position: relative;
    background-image: url('assets/hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    text-align: center;
}

@media (min-width: 1024px) {
    .hero-section {
        background-attachment: fixed;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(8, 28, 21, 0.7) 0%, rgba(8, 28, 21, 0.4) 60%, rgba(8, 28, 21, 0.8) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 24px;
    margin-top: 60px;
}

.hero-subtitle {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--accent);
    margin-bottom: 16px;
    animation: fadeInDown 0.8s ease;
}

.hero-title {
    font-size: 5rem;
    font-weight: 900;
    color: var(--bg-white);
    letter-spacing: -1.5px;
    margin-bottom: 16px;
    line-height: 1.1;
    animation: fadeInUp 0.8s ease;
}

.hero-tagline {
    font-size: 1.5rem;
    color: var(--accent-light);
    margin-bottom: 40px;
    font-weight: 300;
    animation: fadeInUp 1s ease;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    animation: fadeInUp 1.2s ease;
}

.icon-play {
    width: 18px;
    height: 18px;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.mouse-icon {
    display: block;
    width: 28px;
    height: 44px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 14px;
    position: relative;
}

.mouse-icon .wheel {
    display: block;
    width: 4px;
    height: 8px;
    background-color: var(--bg-white);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
}

/* Cards style */
.card {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(27, 67, 50, 0.04);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(27, 67, 50, 0.08);
}

/* Il Territorio Section */
.territory-section {
    background-color: var(--bg-light);
}

.stats-row {
    display: flex;
    gap: 32px;
    margin-top: 40px;
    border-top: 1px solid rgba(27, 67, 50, 0.1);
    padding-top: 32px;
}

.stat-item {
    flex: 1;
}

.stat-num {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-light);
    line-height: 1.1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.territory-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: visible;
}

.premium-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    display: block;
    box-shadow: var(--shadow-lg);
}

.image-overlay-card {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background-color: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 24px;
    border-radius: var(--radius-md);
    max-width: 280px;
    box-shadow: var(--shadow-lg);
    z-index: 10;
}

.image-overlay-card h4 {
    color: var(--primary-dark);
    margin-bottom: 8px;
    font-size: 1.15rem;
}

.image-overlay-card p {
    font-size: 0.88rem;
    margin-bottom: 0;
}

/* Trekking & Sentieri Section */
.trekking-section {
    background-color: var(--bg-white);
}

.trail-card {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.trail-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    padding: 6px 12px;
    border-radius: var(--radius-round);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.diff-e {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.diff-ee {
    background-color: #ffe0b2;
    color: #ef6c00;
}

.trail-card .card-content {
    padding: 40px 32px 32px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.trail-card h3 {
    margin-top: 10px;
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.trail-meta {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 20px;
}

.trail-meta span {
    white-space: nowrap;
}

.trail-text {
    font-size: 0.95rem;
    flex-grow: 1;
    margin-bottom: 24px;
}

.trail-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-top: 1px solid rgba(27, 67, 50, 0.08);
    padding-top: 20px;
}

.trail-tag {
    font-size: 0.75rem;
    font-weight: 600;
    background-color: var(--bg-light);
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

.hiking-tips-box {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background-color: var(--accent-light);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-sm);
    padding: 24px 32px;
    margin-top: 50px;
    box-shadow: var(--shadow-sm);
}

.tips-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.tips-text h4 {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.tips-text p {
    font-size: 0.95rem;
    margin-bottom: 0;
    color: var(--text-dark);
}

/* Mangiare & Dormire Directory */
.directory-section {
    background-color: var(--bg-light);
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
}

.tab-btn {
    background-color: var(--bg-white);
    color: var(--text-muted);
    border: 1px solid rgba(27, 67, 50, 0.1);
    padding: 10px 24px;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: var(--radius-round);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.tab-btn:hover {
    color: var(--primary-light);
    border-color: var(--primary-light);
}

.tab-btn.active {
    background-color: var(--primary-light);
    color: var(--bg-white);
    border-color: var(--primary-light);
    box-shadow: 0 4px 12px rgba(45, 106, 79, 0.2);
}

.directory-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-img-placeholder {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.card-badge {
    position: absolute;
    bottom: 16px;
    left: 16px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--bg-white);
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bg-eat {
    background-color: #8c7853;
}

.bg-sleep {
    background-color: #2d6a4f;
}

.bg-rental {
    background-color: #b85a3d;
}

.directory-card .card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.directory-card h3 {
    font-size: 1.35rem;
    margin-bottom: 6px;
}

.loc {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 14px;
}

.directory-card .desc {
    font-size: 0.92rem;
    flex-grow: 1;
    margin-bottom: 24px;
}

.card-action {
    border-top: 1px solid rgba(27, 67, 50, 0.06);
    padding-top: 16px;
}

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

.loc a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.card-action.flex-buttons {
    display: flex;
    gap: 8px;
}

.card-action.flex-buttons .btn {
    flex: 1;
    padding: 8px 10px;
    font-size: 0.85rem;
}

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

.history-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    height: 480px;
    background-image: url('assets/casone.jpg'); /* placeholder backdrop */
    filter: sepia(0.2) contrast(1.1);
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-lg);
}

.history-map-badge {
    position: absolute;
    bottom: 40px;
    left: 40px;
    right: 40px;
    background-color: var(--primary-dark);
    color: var(--bg-white);
    padding: 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.year-badge {
    display: inline-block;
    background-color: var(--accent);
    color: var(--primary-dark);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.9rem;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
}

.history-map-badge h3 {
    color: var(--bg-white);
    font-size: 1.5rem;
    margin-bottom: 0;
}

.history-text-box {
    padding-left: 32px;
}

.history-text-box h2 {
    margin-bottom: 20px;
}

.history-text-box p {
    margin-bottom: 20px;
    font-size: 1rem;
}

/* FAQ Accordion Section */
.faq-section {
    background-color: var(--bg-light);
}

.faq-accordion-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(27, 67, 50, 0.04);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active {
    box-shadow: var(--shadow-md);
    border-color: rgba(27, 67, 50, 0.08);
}

.faq-trigger {
    width: 100%;
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-dark);
    text-align: left;
    cursor: pointer;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--secondary);
    transition: var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--primary-light);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 24px;
}

.faq-item.active .faq-content {
    max-height: 800px; /* high value for expansion */
    padding-bottom: 24px;
}

.map-iframe-container {
    margin-top: 16px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

/* Contact Section */
.contact-section {
    background-color: var(--bg-white);
}

.contact-info-panel {
    padding-right: 32px;
}

.contact-methods {
    margin-top: 40px;
}

.method-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
}

.method-item .icon {
    font-size: 1.8rem;
    background-color: var(--bg-light);
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.method-item h4 {
    font-size: 1.05rem;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.method-item p, .method-item a {
    font-size: 0.95rem;
    margin-bottom: 0;
}

.contact-form-panel {
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(27, 67, 50, 0.05);
}

.premium-form .form-group {
    margin-bottom: 20px;
}

.premium-form label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-dark);
    margin-bottom: 6px;
}

.premium-form input,
.premium-form select,
.premium-form textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(27, 67, 50, 0.15);
    background-color: var(--bg-white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

.premium-form input:focus,
.premium-form select:focus,
.premium-form textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.12);
}

/* Modals & Video Lightbox */
.video-modal-overlay,
.success-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(8, 28, 21, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.video-modal-overlay.active,
.success-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.video-modal-container {
    width: 90%;
    max-width: 900px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-modal-overlay.active .video-modal-container {
    transform: scale(1);
}

.video-modal-close {
    position: absolute;
    top: -48px;
    right: 0;
    background: transparent;
    border: none;
    color: var(--bg-white);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
}

.video-iframe-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.video-iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.success-modal-card {
    background-color: var(--bg-white);
    padding: 48px 40px;
    border-radius: var(--radius-lg);
    max-width: 480px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.success-modal-overlay.active .success-modal-card {
    transform: scale(1);
}

.success-icon {
    font-size: 3rem;
    display: inline-block;
    margin-bottom: 20px;
}

.success-modal-card h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.success-modal-card p {
    font-size: 0.95rem;
    margin-bottom: 32px;
}

/* Footer Section */
.main-footer {
    background-color: var(--primary-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 40px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 64px;
    margin-bottom: 60px;
}

.footer-brand .logo-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
    display: inline-block;
}

.footer-brand h3 {
    color: var(--bg-white);
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    max-width: 320px;
}

.footer-links h4,
.footer-social h4 {
    color: var(--bg-white);
    font-size: 1.1rem;
    margin-bottom: 24px;
    font-family: var(--font-heading);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

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

.social-icons a {
    color: rgba(255, 255, 255, 0.7);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.08);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--accent);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

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

.footer-bottom p {
    margin-bottom: 0;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.5);
    margin-left: 24px;
}

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ==========================================================================
   Media Queries & Responsiveness
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }
    
    .grid-3-cols {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    h2 {
        font-size: 2rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .grid-2-cols,
    .grid-3-cols {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .gap-4 {
        gap: 32px;
    }
    
    /* Navigation drawer for mobile */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--primary-dark);
        padding: 100px 40px;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
    
    .nav-menu .nav-link,
    .scrolled .nav-menu .nav-link {
        font-size: 1.25rem;
        color: rgba(255, 255, 255, 0.95) !important;
        padding: 8px 0;
        width: 100%;
        display: block;
    }

    .nav-menu .nav-link:hover,
    .scrolled .nav-menu .nav-link:hover {
        color: var(--accent) !important;
    }

    .nav-menu .nav-link::after {
        display: none !important;
    }
    
    .hamburger-menu {
        display: flex;
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-tagline {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .image-overlay-card {
        position: static;
        margin-top: 20px;
        max-width: 100%;
        bottom: 0;
        left: 0;
    }
    
    .history-text-box {
        padding-left: 0;
    }
    
    .history-image-wrapper {
        height: 300px;
    }
    
    .history-map-badge {
        padding: 20px;
        bottom: 20px;
        left: 20px;
        right: 20px;
    }
    
    .contact-info-panel {
        padding-right: 0;
    }
    
    .contact-form-panel {
        padding: 24px;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
    }
    
    .footer-brand {
        grid-column: span 1;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .legal-links a {
        margin: 0 12px;
    }
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: -100px;
    left: 24px;
    right: 24px;
    background-color: var(--primary-dark);
    color: var(--bg-white);
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    opacity: 0;
    max-width: 500px;
}

@media (min-width: 769px) {
    .cookie-banner {
        left: auto;
        right: 40px;
        bottom: -200px;
    }
}

.cookie-banner.show {
    bottom: 24px;
    opacity: 1;
}

@media (min-width: 769px) {
    .cookie-banner.show {
        bottom: 40px;
    }
}

.cookie-banner-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--accent-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-banner-text {
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.85);
}

.cookie-banner-text a {
    color: var(--accent);
    text-decoration: underline;
    transition: var(--transition);
}

.cookie-banner-text a:hover {
    color: var(--accent-light);
}

.cookie-banner-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-banner-btn {
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.cookie-banner-btn-accept {
    background-color: var(--accent);
    color: var(--primary-dark);
}

.cookie-banner-btn-accept:hover {
    background-color: var(--accent-light);
    transform: translateY(-2px);
}

.cookie-banner-btn-decline {
    background-color: transparent;
    color: var(--bg-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-banner-btn-decline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Language Selector */
.lang-selector {
    position: relative;
    display: inline-block;
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--bg-white);
    padding: 8px 14px;
    border-radius: var(--radius-round);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.scrolled .lang-btn {
    border-color: rgba(27, 67, 50, 0.15);
    color: var(--primary-dark);
}

.lang-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--bg-white);
}

.scrolled .lang-btn:hover {
    background-color: rgba(27, 67, 50, 0.05);
    border-color: var(--primary);
}

.lang-btn .arrow {
    font-size: 0.6rem;
    transition: var(--transition);
}

.lang-selector.active .lang-btn .arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background-color: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius-sm);
    padding: 8px 0;
    min-width: 140px;
    display: none;
    z-index: 1001;
    animation: fadeIn 0.2s ease;
}

.lang-selector.active .lang-dropdown {
    display: block;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    color: var(--text-dark) !important;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.lang-option:hover {
    background-color: rgba(27, 67, 50, 0.05);
    color: var(--primary) !important;
}

.lang-option.active {
    background-color: rgba(27, 67, 50, 0.08);
    color: var(--primary) !important;
    font-weight: 600;
}

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

@media (max-width: 768px) {
    .lang-selector {
        width: 100%;
        margin-top: 12px;
        margin-bottom: 8px;
    }
    
    .lang-btn {
        width: 100%;
        justify-content: space-between;
        color: rgba(255, 255, 255, 0.95);
        border-color: rgba(255, 255, 255, 0.2);
    }
    
    .lang-dropdown {
        position: static;
        width: 100%;
        box-shadow: none;
        background-color: rgba(255, 255, 255, 0.05);
        border: none;
        margin-top: 4px;
        display: none;
        padding: 4px 0;
    }
    
    .lang-selector.active .lang-dropdown {
        display: block;
    }
    
    .lang-option {
        color: rgba(255, 255, 255, 0.85) !important;
    }
    
    .lang-option:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: var(--accent) !important;
    }
    
    .lang-option.active {
        color: var(--accent) !important;
        background-color: rgba(255, 255, 255, 0.15);
    }
}

/* RTL Support (Arabic) */
body[dir="rtl"] {
    text-align: right;
}

body[dir="rtl"] .logo {
    flex-direction: row-reverse;
}

body[dir="rtl"] .logo-icon {
    margin-right: 0;
    margin-left: 10px;
}

body[dir="rtl"] .lang-dropdown {
    right: auto;
    left: 0;
}

body[dir="rtl"] .btn-play-video {
    flex-direction: row-reverse;
}

body[dir="rtl"] .btn-play-video svg {
    margin-right: 0;
    margin-left: 8px;
    transform: scaleX(-1);
}

body[dir="rtl"] .method-item {
    flex-direction: row-reverse;
    text-align: right;
}

body[dir="rtl"] .faq-trigger {
    flex-direction: row-reverse;
}

body[dir="rtl"] .faq-trigger .faq-icon {
    margin-left: 0;
    margin-right: auto;
}

body[dir="rtl"] .stat-item {
    border-right: none;
    border-left: 1px solid rgba(27, 67, 50, 0.1);
}

body[dir="rtl"] .stat-item:last-child {
    border-left: none;
}

body[dir="rtl"] .nav-menu {
    right: auto;
    left: -100%;
}

body[dir="rtl"] .nav-menu.active {
    left: 0;
    right: auto;
}

body[dir="rtl"] .cookie-banner {
    left: 24px;
    right: 24px;
}

@media (min-width: 769px) {
    body[dir="rtl"] .cookie-banner {
        right: auto;
        left: 40px;
    }
}

/* Video Lightbox Modal */
.video-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(8, 28, 21, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 3000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.video-modal-card {
    position: relative;
    width: 90%;
    max-width: 800px;
    background-color: #000;
    border-radius: var(--radius-md);
    overflow: visible;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.95);
    transition: var(--transition);
}

.video-modal-overlay.active .video-modal-card {
    transform: scale(1);
}

.video-modal-close {
    position: absolute;
    top: -45px;
    right: 0;
    background: transparent;
    border: none;
    color: var(--bg-white);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
    padding: 5px;
}

.video-modal-close:hover {
    color: var(--accent);
}

.video-iframe-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.video-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-md);
}

/* RTL adjustment for close button */
body[dir="rtl"] .video-modal-close {
    right: auto;
    left: 0;
}
