/* Custom Properties (Variables) */
:root {
    /* Colors */
    --primary: #81001c;
    --primary-container: #a6192e;
    --on-primary: #ffffff;
    
    --secondary: #515f7a;
    
    --surface: #fcf9f6;
    --surface-low: #f6f3f0;
    --surface-lowest: #ffffff;
    
    --on-surface: #1c1c1a;
    --on-surface-variant: #594040;
    --outline-variant: #e1bebe;

    /* Typography */
    --font-headline: 'Noto Serif', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --nav-height: 9vh;
}

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

body {
    background-color: var(--surface);
    color: var(--on-surface);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
img { max-width: 100%; display: block; }

/* Layout Container */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding { padding: 8rem 0; }

/* Shadows */
.shadow-large { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08); }
.shadow-glow { box-shadow: 0 8px 24px rgba(129, 0, 28, 0.15); }

/* Typography Utilities */
h1, h2, h3, h4 { font-family: var(--font-headline); }
.text-primary { color: var(--primary); }
.section-title { font-size: 2.5rem; color: var(--primary); margin-bottom: 1.5rem; }

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}
.icon-fill { font-variation-settings: 'FILL' 1; }

/* Navigation (Consistent Style) */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: rgba(252, 249, 246, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(225, 190, 190, 0.2);
    height: var(--nav-height);
    display: flex;
    align-items: center;
}

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

.logo {
    font-family: var(--font-headline);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.025em;
}

.nav-links {
    display: none;
    gap: 2.5rem;
}

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

.nav-links a {
    color: var(--secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

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

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

.mobile-menu-btn {
    display: block;
    color: var(--primary);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    font-weight: 700;
    transition: var(--transition);
    border: none;
}

.btn:active { transform: scale(0.95); }

.btn-primary { background-color: var(--primary); color: white; }
.btn-primary:hover { background-color: var(--primary-container); }

.btn-large { padding: 1rem 2.5rem; font-size: 1.1rem; }
.btn-full { width: 100%; }

.btn-light { background-color: white; color: var(--primary); }
.btn-outline-white { border: 2px solid white; color: white; }
.btn-outline-white:hover { background-color: rgba(255, 255, 255, 0.1); }

/* Hero Section */
.hero-contact {
    position: relative;
    height: 409px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: var(--nav-height);
    overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; z-index: 1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { 
    position: absolute; 
    inset: 0; 
    background: linear-gradient(rgba(28, 28, 26, 0.6), rgba(28, 28, 26, 0.4));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
}

.hero-content h1 { font-size: 4rem; margin-bottom: 1rem; }
.hero-content p { font-size: 1.25rem; font-weight: 300; max-width: 800px; margin: 0 auto; opacity: 0.9; }

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

@media (min-width: 1024px) {
    .contact-grid { grid-template-columns: 5fr 7fr; }
}

.details-list { display: flex; flex-direction: column; gap: 2.5rem; }

.detail-item { display: flex; gap: 1.5rem; align-items: flex-start; }

.detail-item .material-symbols-outlined {
    font-size: 1.75rem;
    color: var(--primary);
    margin-top: 4px;
}

.detail-item h4 { font-size: 1.1rem; color: var(--secondary); margin-bottom: 0.25rem; }
.detail-item p { color: var(--on-surface-variant); font-size: 0.95rem; }

.hours-card {
    background-color: var(--surface-low);
    padding: 2.5rem;
    border-radius: 1.5rem;
    margin-top: 3rem;
}

.hours-card h3 { font-size: 1.5rem; margin-bottom: 1.5rem; color: var(--secondary); }

.hours-list { list-style: none; }
.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.hours-list li:last-child { border-bottom: none; }

.map-container {
    height: 320px;
    border-radius: 1.5rem;
    overflow: hidden;
    position: relative;
    margin-top: 3rem;
}

.map-img { width: 100%; height: 100%; object-fit: cover; filter: sepia(20%); }

.map-tag {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    background-color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Form Styling */
.form-wrapper {
    background-color: var(--surface-lowest);
    padding: 3rem;
    border-radius: 2rem;
    border: 1px solid rgba(225, 190, 190, 0.3);
}

.form-intro { color: var(--on-surface-variant); margin-bottom: 3rem; }

.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

.form-group { display: flex; flex-direction: column; gap: 0.5rem; }

.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--secondary); margin-left: 4px; }

.form-group input, 
.form-group select, 
.form-group textarea {
    background-color: var(--surface-low);
    border: 2px solid transparent;
    border-radius: 0.75rem;
    padding: 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: white;
}

.social-connect { margin-top: 4rem; text-align: center; border-top: 1px solid rgba(0,0,0,0.05); padding-top: 3rem; }
.social-connect p { font-weight: 700; color: var(--secondary); margin-bottom: 1.5rem; }

.social-icons { display: flex; justify-content: center; gap: 1.5rem; }

.social-circle {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background-color: var(--surface-low);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: var(--transition);
}

.social-circle:hover { background-color: var(--primary); color: white; transform: translateY(-3px); }

/* Visit Banner */
.visit-banner {
    background-color: var(--primary);
    padding: 5rem 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.banner-flex {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    position: relative;
    z-index: 10;
}

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

.banner-text { max-width: 600px; }
.banner-text h2 { font-size: 2.5rem; margin-bottom: 1rem; }

.banner-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.banner-decor {
    position: absolute;
    right: -10rem;
    top: -10rem;
    width: 30rem;
    height: 30rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    filter: blur(80px);
}

/* Footer */
.footer {
    background-color: var(--surface-low);
    padding: 5rem 0 2rem;
    margin-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

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

.footer-logo {
    font-family: var(--font-headline);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--on-background);
    margin-bottom: 1.5rem;
}

.footer-contact {
    color: var(--secondary);
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1);
}

.footer-links h4 {
    font-weight: 700;
    color: var(--on-surface);
    margin-bottom: 1.5rem;
    font-family: var(--font-body);
}

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

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

.footer-links a {
    color: var(--secondary);
    font-size: 0.875rem;
    transition: color 0.3s, text-decoration-color 0.3s;
}

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

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(225, 190, 190, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--secondary);
}

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

.footer-badges {
    display: flex;
    gap: 2rem;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .form-row { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
    .form-wrapper { padding: 1.5rem; }
}