/* Casa Velloni - Custom Premium Stylesheet */

/* --- 1. Variables & Root --- */
:root {
    /* Color Tokens (Dark Olive Green Theme) */
    --bg-dark: #0D120C;
    --bg-body: #131A12;
    --bg-card: rgba(25, 34, 24, 0.78);
    --bg-card-hover: rgba(33, 45, 31, 0.92);
    
    --gold-primary: #C5A880;
    --gold-dark: #A68D68;
    --gold-light: #E3D4C0;
    --gold-glow: rgba(197, 168, 128, 0.35);
    
    --text-white: #FAF8F5;
    --text-light: #D6D1C9;
    --text-muted: #8E877E;
    
    --border-gold: rgba(197, 168, 128, 0.2);
    --border-gold-focus: rgba(197, 168, 128, 0.5);
    --border-light: rgba(250, 248, 245, 0.08);
    
    /* Fonts */
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Inter', sans-serif;
    
    /* System & Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-fast: all 0.2s ease;
    --container-width: 1200px;
    --header-height: 90px;
}

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

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

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

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold-primary);
}

/* Common Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    color: var(--text-white);
    font-weight: 500;
    letter-spacing: 0.03em;
}

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

ul {
    list-style: none;
}

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

/* --- 3. Utilities & Grid --- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.container-fluid {
    width: 100%;
    padding: 0;
}

.section-padding {
    padding: 120px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 80px 0;
    }
}

.grid {
    display: grid;
    gap: 40px;
}

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

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

@media (max-width: 992px) {
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

.text-center { text-align: center; }
.text-white { color: var(--text-white); }
.text-light { color: var(--text-light); }
.font-bold { font-weight: 600; }
.max-w-600 { max-width: 600px; margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 0;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-gold {
    background-color: var(--gold-primary);
    color: var(--bg-dark);
    border: 1px solid var(--gold-primary);
}

.btn-gold:hover {
    background-color: transparent;
    color: var(--gold-light);
    box-shadow: 0 0 20px var(--gold-glow);
    border-color: var(--gold-light);
    transform: translateY(-2px);
}

.btn-outline-white {
    background-color: transparent;
    color: var(--text-white);
    border: 1px solid rgba(250, 248, 245, 0.4);
}

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

.btn-block {
    width: 100%;
}

.btn-xs {
    padding: 8px 16px;
    font-size: 0.75rem;
}

/* Sections Common Header */
.section-tag {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold-primary);
    margin-bottom: 12px;
    font-weight: 500;
}

.section-title {
    font-size: 2.85rem;
    line-height: 1.2;
    margin-bottom: 24px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 20px;
    font-weight: 300;
}

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

/* --- 4. Header & Navigation --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: var(--transition-smooth);
    border-bottom: 1px solid rgba(250, 248, 245, 0.05);
}

.header.scrolled {
    height: 75px;
    background-color: rgba(18, 16, 15, 0.88);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(197, 168, 128, 0.1);
}

.nav-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 16px;
    line-height: 1;
}

.logo-icon {
    height: 52px;
    width: auto;
    transition: var(--transition-smooth);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.logo:hover .logo-icon {
    transform: scale(1.05) translateY(-2px);
    filter: drop-shadow(0 4px 12px var(--gold-glow));
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-sub {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    color: var(--gold-primary);
    margin-bottom: 4px;
}

.logo-main {
    font-family: var(--font-serif);
    font-size: 1.85rem;
    color: var(--text-white);
    letter-spacing: 0.02em;
}

.header.scrolled .logo-icon {
    height: 42px;
}

.nav-list {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 400;
    color: var(--text-light);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--gold-primary);
    transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
    color: var(--gold-primary);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
}

.burger-line {
    width: 100%;
    height: 1.5px;
    background-color: var(--text-white);
    transition: var(--transition-smooth);
}

/* Responsive Navigation */
@media (max-width: 992px) {
    .btn-nav {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        height: 100vh;
        background-color: var(--bg-dark);
        border-left: 1px solid var(--border-gold);
        padding: 100px 48px;
        z-index: 999;
        transition: var(--transition-smooth);
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 32px;
    }

    .nav-link {
        font-size: 1.15rem;
    }
    
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(5px);
        opacity: 0;
        visibility: hidden;
        z-index: 998;
        transition: var(--transition-smooth);
    }
    
    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Burger animation to X */
    .nav-toggle.open .burger-line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .nav-toggle.open .burger-line:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.open .burger-line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* --- 5. Hero Section --- */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding-top: calc(var(--header-height) + 30px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-crest {
    height: 130px;
    width: auto;
    margin-bottom: 24px;
    animation: fadeInDown 1.2s ease-out;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5));
    transition: var(--transition-smooth);
}

.hero-crest:hover {
    transform: scale(1.04) translateY(-3px);
    filter: drop-shadow(0 12px 30px var(--gold-glow));
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--gold-primary);
    margin-bottom: 24px;
    animation: fadeInDown 1s ease-out;
}

.hero-title {
    font-size: 4.85rem;
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 28px;
    animation: fadeInUp 1s ease-out;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 40px;
    font-weight: 300;
    line-height: 1.7;
    animation: fadeInUp 1s ease-out 0.2s;
    animation-fill-mode: both;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    animation: fadeInUp 1s ease-out 0.4s;
    animation-fill-mode: both;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }
}

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

.mouse-icon {
    width: 24px;
    height: 40px;
    border: 1px solid rgba(250, 248, 245, 0.3);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background-color: var(--gold-primary);
    border-radius: 2px;
    animation: scrollMouse 1.8s infinite ease-in-out;
}

/* --- 6. Story Section --- */
.story-section {
    background-color: var(--bg-dark);
}

.story-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.story-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 32px;
}

.feature-item {
    border-left: 2px solid var(--gold-primary);
    padding-left: 20px;
}

.feature-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    color: var(--text-white);
    margin-bottom: 4px;
    display: block;
}

.feature-text {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.story-img-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
    padding-bottom: 20px;
}

.story-img {
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: 1px solid var(--border-gold);
    width: 100%;
    height: 520px;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

.img-decor {
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--gold-primary);
    z-index: 1;
    transition: var(--transition-smooth);
}

.img-wrapper:hover .img-decor {
    bottom: -8px;
    right: -8px;
}

@media (max-width: 992px) {
    .story-img {
        height: 400px;
    }
}

/* --- 7. Menu Section --- */
.menu-section {
    background-color: var(--bg-body);
    border-top: 1px solid rgba(250, 248, 245, 0.03);
}

.menu-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.tab-btn {
    background: none;
    border: 1px solid rgba(250, 248, 245, 0.08);
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 10px 24px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.tab-btn:hover, .tab-btn.active {
    border-color: var(--gold-primary);
    color: var(--text-white);
    background-color: rgba(197, 168, 128, 0.05);
}

.menu-grid {
    transition: var(--transition-smooth);
}

.menu-item-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-gold);
    padding: 36px;
    position: relative;
    transition: var(--transition-smooth);
}

.menu-item-card:hover {
    background-color: var(--bg-card-hover);
    border-color: var(--gold-primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transform: translateY(-4px);
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
}

.menu-item-name {
    font-size: 1.5rem;
    font-weight: 400;
}

.menu-item-price {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    color: var(--gold-primary);
    font-weight: 500;
}

.menu-item-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 18px;
}

.menu-item-tags {
    display: flex;
    gap: 8px;
}

.menu-item-tags span {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    font-weight: 500;
}

.tag-veg {
    background-color: rgba(95, 111, 82, 0.15);
    color: #92A385;
    border: 1px solid rgba(95, 111, 82, 0.25);
}

.tag-gf {
    background-color: rgba(200, 107, 73, 0.15);
    color: #DA8765;
    border: 1px solid rgba(200, 107, 73, 0.25);
}

.tag-signature {
    background-color: rgba(197, 168, 128, 0.15);
    color: var(--gold-primary);
    border: 1px solid var(--border-gold);
}

/* --- 8. Ambiance Section --- */
.ambiance-section {
    background-color: var(--bg-dark);
    padding-bottom: 0;
}

.gallery-grid {
    display: flex;
    margin-top: 60px;
    width: 100%;
}

.gallery-item {
    position: relative;
    flex: 1;
    height: 550px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(15%) brightness(85%);
    transition: var(--transition-smooth);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(to top, rgba(18, 16, 15, 0.95), transparent);
    color: var(--text-white);
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-smooth);
    z-index: 2;
}

.gallery-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 8px;
    display: block;
}

.gallery-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 300;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(197, 168, 128, 0.1);
    z-index: 1;
    opacity: 0;
    transition: var(--transition-smooth);
}

.gallery-item:hover {
    flex: 1.4;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
    filter: grayscale(0) brightness(100%);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item:hover::before {
    opacity: 1;
}

@media (max-width: 992px) {
    .gallery-grid {
        flex-direction: column;
    }
    
    .gallery-item {
        height: 350px;
    }
    
    .gallery-item:hover {
        flex: 1;
    }
}

/* --- 9. Reservations Section --- */
.reservations-section {
    background-color: var(--bg-body);
}

.reservation-info {
    padding-right: 40px;
}

.info-blocks {
    display: flex;
    flex-direction: column;
    gap: 36px;
    margin-top: 40px;
}

.info-block-item {
    display: flex;
    gap: 20px;
}

.info-icon-wrapper {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border: 1px solid var(--border-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
}

.info-icon {
    width: 22px;
    height: 22px;
}

.info-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    color: var(--text-white);
    margin-bottom: 6px;
    display: block;
}

.info-detail {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* Reservation Form Card */
.reservation-card-wrapper {
    display: flex;
    justify-content: flex-end;
}

.reservation-card {
    background-color: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-gold);
    width: 100%;
    max-width: 540px;
    padding: 48px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.card-title {
    font-size: 2.25rem;
    margin-bottom: 4px;
}

.card-subtitle {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold-primary);
    margin-bottom: 36px;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    background-color: rgba(22, 20, 19, 0.6);
    border: 1px solid var(--border-gold);
    color: var(--text-white);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    padding: 14px 18px;
    border-radius: 0;
    transition: var(--transition-smooth);
}

.form-input::placeholder {
    color: rgba(142, 135, 126, 0.5);
}

.form-input:focus {
    outline: none;
    border-color: var(--gold-primary);
    background-color: rgba(22, 20, 19, 0.9);
    box-shadow: 0 0 10px rgba(197, 168, 128, 0.15);
}

.form-textarea {
    resize: none;
    height: 100px;
}

.form-input.invalid {
    border-color: #DA8765;
}

.error-msg {
    position: absolute;
    bottom: -18px;
    left: 0;
    font-size: 0.7rem;
    color: #DA8765;
    display: none;
}

.form-input.invalid + .error-msg {
    display: block;
}

@media (max-width: 992px) {
    .reservation-info {
        padding-right: 0;
    }
    
    .reservation-card-wrapper {
        justify-content: center;
    }
    
    .reservation-card {
        padding: 32px 24px;
    }
}

/* --- 10. Contact / Map Visual --- */
.contact-section {
    position: relative;
    height: 450px;
    width: 100%;
}

.contact-map-wrapper {
    width: 100%;
    height: 100%;
}

.map-visual-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    background-image: radial-gradient(circle, rgba(197, 168, 128, 0.05) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    position: relative;
}

.map-dark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 30%, rgba(13, 18, 12, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-marker-card {
    background-color: var(--bg-card);
    border: 1px solid var(--gold-primary);
    padding: 32px;
    width: 90%;
    max-width: 380px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    text-align: center;
}

.marker-title {
    font-family: var(--font-serif);
    font-size: 1.85rem;
    color: var(--text-white);
    margin-bottom: 6px;
    display: block;
}

.marker-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

/* --- 11. Footer --- */
.footer-section {
    background-color: #080C07;
    border-top: 1px solid var(--border-gold);
    padding-top: 80px;
    font-family: var(--font-sans);
}

.footer-grid {
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(250, 248, 245, 0.05);
}

.footer-logo {
    margin-bottom: 24px;
}

.footer-about-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 28px;
    max-width: 320px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-icon-link {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(250, 248, 245, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

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

.social-icon-link:hover {
    color: var(--gold-primary);
    border-color: var(--gold-primary);
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1.5rem;
    margin-bottom: 28px;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 1px;
    background-color: var(--gold-primary);
}

.footer-text {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
    font-weight: 300;
}

.footer-text strong {
    color: var(--text-white);
    font-weight: 500;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    color: var(--text-light);
    margin-bottom: 14px;
    font-weight: 300;
}

.hours-list li span:first-child {
    color: var(--text-muted);
}

/* Footer Bottom */
.footer-bottom {
    padding: 30px 0;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.copyright {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-legal {
    display: flex;
    gap: 24px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

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

@media (max-width: 768px) {
    .footer-bottom-flex {
        flex-direction: column;
        text-align: center;
    }
}

/* --- 12. Modal / Reservation Success --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background-color: var(--bg-card);
    border: 1px solid var(--gold-primary);
    width: 90%;
    max-width: 500px;
    padding: 48px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.6);
    transform: scale(0.9);
    transition: var(--transition-smooth);
}

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

.modal-icon-wrapper {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 1px solid var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
    margin: 0 auto 28px;
}

.modal-icon {
    width: 36px;
    height: 36px;
}

.modal-title {
    font-size: 2.25rem;
    margin-bottom: 12px;
}

.modal-text {
    font-size: 1.15rem;
    margin-bottom: 24px;
    color: var(--text-light);
}

.modal-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.btn-modal-close {
    margin-top: 24px;
}

@media (max-width: 576px) {
    .modal-card {
        padding: 32px 20px;
    }
    .modal-title {
        font-size: 1.85rem;
    }
    .logo-icon {
        height: 42px;
    }
    .logo-main {
        font-size: 1.45rem;
    }
    .logo-sub {
        font-size: 0.55rem;
        letter-spacing: 0.25em;
    }
    .hero-crest {
        height: 100px;
    }
}

/* --- 13. Keyframe Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes scrollMouse {
    0% { transform: translateY(0); opacity: 0.1; }
    50% { transform: translateY(6px); opacity: 1; }
    100% { transform: translateY(0); opacity: 0.1; }
}

/* Scroll reveal helper classes */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

.delay-200 { transition-delay: 200ms; }
.delay-400 { transition-delay: 400ms; }
