/* ====================================
   Dashi Historical Center - Global Styles
   Museum/Historical Heritage Design
   ==================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:wght@400;600;700&family=Lora:wght@400;500;600;700&family=Cormorant+Garamond:wght@300;400;500;600;700&display=swap');

/* CSS Variables */
:root {
    --parchment: #fdf5e6;
    --cream: #f5f0e8;
    --ink-black: #1a1311;
    --soft-black: #2c2420;
    --heritage-red: #8b3a3a;
    --heritage-brown: #6b4423;
    --gold-accent: #c9a961;
    --border-gray: #d4c4b0;
    --shadow-color: rgba(26, 19, 17, 0.15);
}

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

body {
    font-family: 'Crimson Text', 'Georgia', serif;
    background-color: var(--parchment);
    color: var(--ink-black);
    line-height: 1.7;
    font-size: 18px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Header */
header {
    background-color: var(--soft-black);
    border-bottom: 4px solid var(--heritage-red);
    box-shadow: 0 4px 12px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

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

.logo-section img {
    height: 55px;
    width: auto;
    border-radius: 6px;
    border: 2px solid var(--gold-accent);
}

.site-title {
    color: var(--parchment);
}

.site-title h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
    white-space: nowrap;
}

.site-title p {
    font-size: 12px;
    color: var(--gold-accent);
    font-style: italic;
    white-space: nowrap;
}

/* Navigation */
nav ul {
    list-style: none;
    display: flex;
    gap: 5px;
    flex-wrap: nowrap;
}

nav ul li a {
    display: block;
    padding: 10px 16px;
    color: var(--parchment);
    text-decoration: none;
    font-family: 'Lora', serif;
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: var(--heritage-red);
    color: #fff;
    transform: translateY(-2px);
}

/* Hero/Banner Section */
.hero-banner {
    position: relative;
    height: 500px;
    overflow: hidden;
    border-bottom: 6px solid var(--heritage-brown);
}

.hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(26, 19, 17, 0.4), rgba(139, 58, 58, 0.6));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
}

.hero-overlay h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 56px;
    font-weight: 700;
    color: #fff;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.7);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.hero-overlay p {
    font-size: 24px;
    color: var(--parchment);
    max-width: 800px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
    font-style: italic;
}

/* Main Content */
main {
    padding: 60px 0;
    min-height: 500px;
}

/* Page Title */
.page-title {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--heritage-red);
}

.page-title h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--heritage-red);
    margin-bottom: 15px;
}

.page-title p {
    font-size: 20px;
    color: var(--soft-black);
    font-style: italic;
}

/* Content Sections */
.content-section {
    margin-bottom: 50px;
    background-color: var(--cream);
    padding: 40px;
    border-radius: 8px;
    border: 2px solid var(--border-gray);
    box-shadow: 0 6px 20px var(--shadow-color);
}

.content-section h2 {
    font-family: 'Lora', serif;
    font-size: 36px;
    font-weight: 600;
    color: var(--heritage-brown);
    margin-bottom: 25px;
    border-left: 6px solid var(--heritage-red);
    padding-left: 20px;
}

.content-section h3 {
    font-family: 'Lora', serif;
    font-size: 28px;
    font-weight: 500;
    color: var(--heritage-brown);
    margin-top: 30px;
    margin-bottom: 15px;
}

.content-section p {
    margin-bottom: 20px;
    text-align: justify;
    line-height: 1.8;
}

.content-section ul {
    margin-left: 40px;
    margin-bottom: 20px;
}

.content-section ul li {
    margin-bottom: 10px;
}

/* Two Column Layout */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.column-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 4px solid var(--heritage-brown);
    box-shadow: 0 8px 20px var(--shadow-color);
    transition: transform 0.3s ease;
}

.column-image img:hover {
    transform: scale(1.03);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    border: 4px solid var(--heritage-brown);
    box-shadow: 0 6px 20px var(--shadow-color);
    transition: all 0.3s ease;
    background-color: var(--soft-black);
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px var(--shadow-color);
}

.gallery-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    transition: all 0.3s ease;
}

.gallery-item:hover img {
    opacity: 0.85;
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(26, 19, 17, 0.95), transparent);
    color: var(--parchment);
    padding: 20px;
    font-size: 16px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* Contact Form */
.contact-form {
    background-color: var(--cream);
    padding: 40px;
    border-radius: 8px;
    border: 2px solid var(--border-gray);
    box-shadow: 0 6px 20px var(--shadow-color);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-family: 'Lora', serif;
    font-weight: 600;
    font-size: 18px;
    color: var(--heritage-brown);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    font-family: 'Crimson Text', serif;
    font-size: 16px;
    border: 2px solid var(--border-gray);
    border-radius: 4px;
    background-color: var(--parchment);
    color: var(--ink-black);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--heritage-red);
    background-color: #fff;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    background-color: var(--heritage-red);
    color: #fff;
    padding: 16px 40px;
    font-family: 'Lora', serif;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px var(--shadow-color);
}

.submit-btn:hover {
    background-color: var(--heritage-brown);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--shadow-color);
}

/* Contact Info Box */
.contact-info-box {
    background-color: var(--cream);
    padding: 30px;
    border-radius: 8px;
    border: 2px solid var(--border-gray);
    box-shadow: 0 6px 20px var(--shadow-color);
    margin-bottom: 30px;
}

.contact-info-box h3 {
    font-family: 'Lora', serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--heritage-brown);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--heritage-red);
    padding-bottom: 10px;
}

.contact-info-box p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info-box strong {
    color: var(--heritage-red);
    min-width: 100px;
}

/* Map Container */
.map-container {
    margin: 40px 0;
    border-radius: 8px;
    overflow: hidden;
    border: 4px solid var(--heritage-brown);
    box-shadow: 0 6px 20px var(--shadow-color);
    height: 400px;
    background-color: var(--border-gray);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Footer */
footer {
    background-color: var(--soft-black);
    color: var(--parchment);
    padding: 30px 0 20px;
    border-top: 4px solid var(--heritage-red);
    margin-top: 80px;
}

/* Footer Quick Links - Horizontal at Top */
.footer-quick-links {
    text-align: center;
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--heritage-brown);
}

.footer-quick-links nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-quick-links a {
    color: var(--parchment);
    text-decoration: none;
    font-family: 'Lora', serif;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 5px 10px;
}

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

.footer-quick-links .separator {
    color: var(--heritage-brown);
    font-size: 14px;
}

/* Footer Content - 2 Column Grid */
.footer-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-family: 'Lora', serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--gold-accent);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--heritage-red);
    padding-bottom: 8px;
}

.footer-section p {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 10px;
}

.footer-section strong {
    color: var(--gold-accent);
    font-weight: 600;
}

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

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--parchment);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Footer Registry ID - Centered at Bottom */
.footer-registry {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid var(--heritage-brown);
    margin-top: 20px;
}

.footer-registry p {
    font-family: 'Lora', serif;
    font-size: 15px;
    color: var(--gold-accent);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
    }

    nav ul li a {
        text-align: center;
    }

    .hero-overlay h2 {
        font-size: 36px;
    }

    .hero-overlay p {
        font-size: 18px;
    }

    .two-column {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .page-title h1 {
        font-size: 36px;
    }

    .content-section {
        padding: 25px;
    }

    /* Footer responsive */
    .footer-quick-links nav {
        flex-direction: column;
        gap: 10px;
    }

    .footer-quick-links .separator {
        display: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}