/* ==========================================================================
   Carrascal Landing Page - Style Sheet
   Visual Identity: Historical Nobility Meets Modern Premium Tech
   ========================================================================== */

/* --- Custom Properties & Design Tokens --- */
:root {
    /* Color Palette */
    --color-bg-primary: #050b07;     /* Deep charcoal green-black */
    --color-bg-secondary: #0b140f;   /* Dark forest shadow */
    --color-bg-tertiary: #122119;    /* Forest slate */
    
    --color-primary: #d4af37;        /* Historical Gold */
    --color-primary-light: #f3e09d;  /* Champagne Gold */
    --color-primary-dark: #aa841c;   /* Bronze Gold */
    
    --color-text-primary: #f8fafc;   /* Crystal White */
    --color-text-secondary: #cbd5e1; /* Silver Gray */
    --color-text-muted: #64748b;     /* Slate Gray */
    
    --color-accent-green: #1f6b3e;   /* Sinople Green */
    --color-accent-green-glow: rgba(31, 107, 62, 0.15);
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-bg-hover: rgba(255, 255, 255, 0.05);
    --glass-border-hover: rgba(212, 175, 55, 0.25);
    
    /* Typography */
    --font-serif: 'Cinzel', serif;
    --font-sans: 'Inter', sans-serif;
    
    /* Transitions & Physics */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* Layout */
    --max-width: 1200px;
    --header-height: 80px;
}

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

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

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- Typography Styles --- */
h1, h2, h3, h4, h5, h6, .logo-text {
    font-family: var(--font-serif);
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--color-text-primary);
}

p {
    color: var(--color-text-secondary);
    font-weight: 300;
}

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

ul {
    list-style: none;
}

/* --- Layout Utility Containers --- */
.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

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

.text-gold {
    color: var(--color-primary) !important;
}

/* --- Premium Glow Background Objects --- */
.glow-bg {
    position: absolute;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.35;
    mix-blend-mode: screen;
}

.glow-1 {
    top: -20vw;
    right: -10vw;
    background: radial-gradient(circle, rgba(31, 107, 62, 0.4) 0%, rgba(5, 11, 7, 0) 70%);
}

.glow-2 {
    top: 40vh;
    left: -20vw;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, rgba(5, 11, 7, 0) 70%);
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--color-bg-tertiary);
    border: 2px solid var(--color-bg-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-dark);
}

/* --- Header & Navigation Bar --- */
.main-header {
    height: var(--header-height);
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    background: rgba(5, 11, 7, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    height: 70px;
    background: rgba(5, 11, 7, 0.9);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-brand {
    display: flex;
    align-items: baseline;
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 0.05em;
}

.logo-text {
    background: linear-gradient(135deg, var(--color-text-primary) 30%, var(--color-text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-dot {
    color: var(--color-primary);
    font-size: 2.2rem;
    line-height: 0;
    margin-left: 2px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Language Selector Pill */
.lang-switch-container {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 4px 8px;
    border-radius: 30px;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 4px 10px;
    cursor: pointer;
    border-radius: 20px;
    transition: var(--transition-smooth);
}

.lang-btn.active {
    color: var(--color-primary);
    background: rgba(212, 175, 55, 0.1);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.lang-btn:hover:not(.active) {
    color: var(--color-text-secondary);
}

.lang-separator {
    color: rgba(255, 255, 255, 0.1);
    margin: 0 2px;
    font-size: 0.8rem;
    pointer-events: none;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.75rem 1.6rem;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition-smooth);
}

.btn-nav {
    padding: 0.5rem 1.1rem;
    font-size: 0.85rem;
    background: rgba(212, 175, 55, 0.05);
    color: var(--color-primary);
    border-color: rgba(212, 175, 55, 0.25);
}

.btn-nav:hover {
    background: var(--color-primary);
    color: var(--color-bg-primary);
    border-color: var(--color-primary);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #111;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--color-text-primary);
    border-color: var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--glass-bg-hover);
    border-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.05);
}

.btn-large {
    padding: 1rem 2.2rem;
    font-size: 1.05rem;
    border-radius: 8px;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    min-height: 100vh;
    padding-top: calc(var(--header-height) + 40px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 2;
}

.hero-badge {
    background: rgba(31, 107, 62, 0.15);
    border: 1px solid rgba(31, 107, 62, 0.3);
    color: #4ade80;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 1.8rem;
    box-shadow: 0 4px 15px rgba(31, 107, 62, 0.1);
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--color-text-primary) 30%, #a7f3d0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    margin-bottom: 2.5rem;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

/* Hero Heraldic Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.hero-shield-wrapper {
    position: relative;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 4/5;
}

.heraldic-shield {
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.7));
    transition: var(--transition-smooth);
    animation: floatShield 6s ease-in-out infinite;
}

.hero-shield-wrapper:hover .heraldic-shield {
    transform: scale(1.03) rotate(1deg);
}

/* Subtle Glowing Orb behind shield */
.shield-gold-glow {
    position: absolute;
    top: 20%;
    left: 20%;
    width: 60%;
    height: 60%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, rgba(5, 11, 7, 0) 70%);
    z-index: -1;
    pointer-events: none;
    filter: blur(25px);
}

@keyframes floatShield {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* Scroll Down Indicator Mouse */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    opacity: 0.6;
    transition: var(--transition-smooth);
}

.scroll-indicator:hover {
    opacity: 1;
}

.mouse-icon {
    display: block;
    width: 26px;
    height: 42px;
    border: 2px solid var(--color-text-muted);
    border-radius: 20px;
    position: relative;
}

.mouse-wheel {
    display: block;
    width: 4px;
    height: 8px;
    background-color: var(--color-primary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.6s ease-in-out infinite;
}

@keyframes scrollWheel {
    0% { top: 8px; opacity: 1; }
    50% { top: 18px; opacity: 0.4; }
    100% { top: 8px; opacity: 1; }
}

/* --- Section Formatting --- */
.info-section, .geography-section, .heraldry-section, .email-section {
    padding: 8rem 0;
    position: relative;
}

.info-section {
    background-color: var(--color-bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

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

.section-subtitle {
    font-size: 0.85rem;
    color: var(--color-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    display: block;
    margin-bottom: 0.8rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
}

.accent-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    margin: 1.2rem auto 0;
}

/* --- Info Cards Grid --- */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.info-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 3rem 2.2rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary-dark), var(--color-primary));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-smooth);
}

.info-card:hover {
    transform: translateY(-8px);
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.info-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    font-size: 2.2rem;
    color: var(--color-primary);
    margin-bottom: 1.8rem;
    display: inline-block;
    transition: var(--transition-bounce);
}

.info-card:hover .card-icon {
    transform: scale(1.15) rotate(5deg);
    color: var(--color-primary-light);
}

.card-title {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.card-text {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* --- Geography Section --- */
.geography-section {
    background-color: var(--color-bg-primary);
}

.geography-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: center;
}

.geo-intro {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: 2.5rem;
}

.region-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.region-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.region-list {
    margin-top: 0.8rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
}

.region-list li {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.region-list li::before {
    content: '•';
    color: var(--color-primary);
    font-weight: bold;
}

.region-list li span {
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

.flags-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin-top: 1rem;
}

.flag-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

.flag-icon {
    font-size: 1.3rem;
}

/* Map SVG Styling */
.geography-visual {
    display: flex;
    justify-content: center;
}

.map-illustration-wrapper {
    width: 100%;
    max-width: 460px;
    background: rgba(11, 20, 15, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.map-svg {
    width: 100%;
    height: auto;
}

.map-land {
    transition: var(--transition-smooth);
}

.map-land:hover {
    fill-opacity: 0.8;
}

.map-point {
    filter: drop-shadow(0 0 8px var(--color-primary));
}

.map-point-spain {
    animation: highlightPoint 3s infinite;
}

@keyframes highlightPoint {
    0%, 100% { r: 6; fill: var(--color-primary-light); }
    50% { r: 8; fill: var(--color-primary); }
}

.map-pulse {
    animation: rippleEffect 2.5s infinite ease-out;
    transform-origin: center;
}

@keyframes rippleEffect {
    0% { r: 5; opacity: 1; }
    100% { r: 25; opacity: 0; }
}

.map-route {
    stroke-dashoffset: 100;
    animation: drawLine 6s linear infinite;
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

/* --- Heraldry Section --- */
.heraldry-section {
    background-color: var(--color-bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.heraldry-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: stretch;
}

.heraldry-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 3.5rem 3rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.heraldry-heading {
    font-size: 1.75rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
}

.heraldry-text {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.heraldry-elements-grid {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.element-item {
    display: grid;
    grid-template-columns: 45px 1fr;
    gap: 1.2rem;
    align-items: flex-start;
}

.element-color {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.1);
}

.element-color.silver {
    background: radial-gradient(circle at 30% 30%, #ffffff, #c8cbcf);
}

.element-color.green {
    background: linear-gradient(135deg, #2d8a4e, #0b3117);
}

.element-color.slate {
    background: linear-gradient(135deg, #475569, #1e293b);
}

.element-item strong {
    font-size: 1rem;
    display: block;
    margin-bottom: 0.3rem;
    color: var(--color-text-primary);
}

.element-item p {
    font-size: 0.88rem;
    line-height: 1.5;
}

/* Quote/Explanation side */
.heraldry-detail {
    display: flex;
    align-items: center;
    justify-content: center;
}

.heraldry-explanation {
    background: rgba(5, 11, 7, 0.4);
    border-left: 4px solid var(--color-primary);
    padding: 3rem;
    border-radius: 0 12px 12px 0;
    position: relative;
}

.quote-icon {
    font-size: 2.5rem;
    color: rgba(212, 175, 55, 0.15);
    position: absolute;
    top: 1.5rem;
    left: 2rem;
}

.quote-text {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
    position: relative;
    z-index: 2;
    margin-bottom: 1.8rem;
    font-style: italic;
}

.quote-author {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
    color: var(--color-primary);
    display: block;
}

/* --- Email Community Portal Section --- */
.email-section {
    background: var(--color-bg-primary);
    overflow: hidden;
}

.email-card {
    background: linear-gradient(135deg, rgba(11, 20, 15, 0.8) 0%, rgba(5, 11, 7, 0.9) 100%);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 20px;
    padding: 5rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    max-width: 900px;
    margin: 0 auto;
}

/* Special golden animated glow */
.email-card-glow {
    position: absolute;
    bottom: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 50%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, rgba(5, 11, 7, 0) 80%);
    z-index: 1;
    pointer-events: none;
    filter: blur(40px);
}

.email-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--color-primary);
    margin-bottom: 2rem;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.1);
    animation: heartbeat 2.5s infinite ease-in-out;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.email-title {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
    background: linear-gradient(135deg, var(--color-text-primary) 30%, var(--color-primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.email-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    max-width: 620px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.email-features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.btn-email {
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

.email-note {
    display: block;
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* --- Footer --- */
.main-footer {
    background: #030604;
    border-top: 1px solid var(--glass-border);
    padding: 5rem 0 3rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-brand .logo-text {
    font-size: 1.5rem;
}

.footer-brand p {
    margin-top: 1rem;
    font-size: 0.9rem;
    max-width: 320px;
    color: var(--color-text-muted);
}

.footer-links h5 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    color: var(--color-text-primary);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.footer-bottom {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* --- JavaScript Scroll-Linked Animations & Language Switching Transitions --- */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-animate.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Language Swapping Transition Fade */
.lang-fade-exit {
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.lang-fade-enter {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

/* Animated Initial Hero Loadings */
.animate-fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title.animate-fade-in { animation-delay: 0.2s; }
.hero-subtitle.animate-fade-in { animation-delay: 0.4s; }
.hero-actions.animate-fade-in { animation-delay: 0.6s; }
.hero-visual.animate-fade-in { animation-delay: 0.8s; }

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive Adjustments & Media Queries --- */
@media (max-width: 1024px) {
    .hero-container {
        gap: 2rem;
    }
    .hero-title {
        font-size: 3rem;
    }
    .grid-cards {
        gap: 1.5rem;
    }
    .geography-grid, .heraldry-grid {
        gap: 3rem;
    }
}

@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    .hero-content {
        align-items: center;
    }
    .hero-title {
        font-size: 2.8rem;
    }
    .hero-visual {
        order: -1; /* Place shield above titles on tablet/mobile */
        margin-bottom: 1rem;
    }
    .hero-shield-wrapper {
        max-width: 260px;
    }
    .grid-cards {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    .geography-grid, .heraldry-grid {
        grid-template-columns: 1fr;
    }
    .geography-visual {
        margin-top: 2rem;
    }
    .heraldry-explanation {
        border-left: none;
        border-top: 4px solid var(--color-primary);
        border-radius: 0 0 12px 12px;
        padding: 2.5rem;
    }
    .email-card {
        padding: 4rem 2rem;
    }
    .email-features {
        gap: 1.5rem;
    }
}

@media (max-width: 600px) {
    :root {
        --header-height: 70px;
    }
    .main-header {
        height: var(--header-height);
    }
    .main-header.scrolled {
        height: 60px;
    }
    .logo-brand {
        font-size: 1.5rem;
    }
    .btn-nav {
        display: none; /* Hide nav email button on small mobile to save space */
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .info-card, .heraldry-card {
        padding: 2.2rem 1.8rem;
    }
    .region-list, .flags-grid {
        grid-template-columns: 1fr;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    .footer-brand {
        align-items: center;
    }
    .footer-bottom {
        justify-content: center;
        text-align: center;
    }
}
