/*
Theme Name: Curious Carolina Hub
Theme URI: https://curiouscarolina.com
Author: Curious Carolina
Description: Modular Hub theme with Customizer-controlled sections.
Version: 4.0
*/

/* --- CSS VARIABLES --- */
:root {
    --font-heading: 'Holtwood One SC', serif;
    --font-subheading: 'Rye', serif;
    --font-body: 'IM Fell English', serif;
    /* Colors via PHP */
}

* { box-sizing: border-box; }
body {
    margin: 0; padding: 0;
    background-color: #1a1510;
    font-family: var(--font-body);
    color: var(--text-dark);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.1'/%3E%3C/svg%3E");
}

.poster-container {
    max-width: 1000px;
    margin: 20px auto;
    background-color: var(--bg-mustard);
    border: 8px solid var(--text-dark);
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    overflow: hidden;
    position: relative;
    background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* --- HEADER --- */
header.site-header {
    background-color: var(--accent-rust);
    text-align: center;
    padding: 20px 10px;
    border-bottom: 6px solid var(--text-dark);
}
.site-logo img { max-height: 120px; width: auto; display: block; margin: 0 auto; }
h1.site-title { font-family: var(--font-heading); font-size: 4rem; margin: 0; line-height: 1; }
h1.site-title a { color: var(--text-gold); text-shadow: 4px 4px 0px var(--text-dark); text-decoration: none; text-transform: uppercase; letter-spacing: 2px; }
p.site-subtitle { font-family: var(--font-subheading); color: #dcbfa6; font-size: 1.5rem; margin-top: 5px; text-shadow: 2px 2px 0px #000; }

/* --- SECTIONS (NEW) --- */
.home-section {
    padding: 30px 20px;
    border-bottom: 4px dashed var(--text-dark);
}
.home-section:last-child { border-bottom: none; }

.section-title {
    text-align: center;
    font-family: var(--font-heading);
    color: var(--accent-rust);
    font-size: 2rem;
    margin: 0 0 30px 0;
    position: relative;
}
/* Fancy line behind title */
.section-title span {
    background-color: var(--bg-mustard); /* Matches background to hide line */
    padding: 0 15px;
    position: relative;
    z-index: 1;
}
.section-title::before {
    content: "";
    position: absolute;
    top: 50%; left: 0; right: 0;
    height: 2px;
    background: var(--text-dark);
    z-index: 0;
}

/* --- GRID & CARDS --- */
.legends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}
.card {
    background-color: var(--card-bg);
    border: 3px solid var(--text-dark);
    padding: 15px;
    text-align: center;
    transition: transform 0.2s;
    display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: 5px 5px 0px var(--text-dark); }
.card a { text-decoration: none; color: inherit; }
.card-img-container {
    width: 100%; height: 180px;
    background-color: rgba(0,0,0,0.1);
    border: 2px solid var(--text-dark);
    margin-bottom: 15px;
    overflow: hidden;
}
.card-img-container img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.card:hover .card-img-container img { transform: scale(1.05); }

.card h2 { font-family: var(--font-subheading); color: var(--accent-rust); font-size: 1.5rem; margin: 0 0 10px 0; text-transform: uppercase; }
.price-tag { font-family: var(--font-heading); font-size: 1.2rem; color: var(--text-dark); margin-top: auto; }

/* --- HERO MAP --- */
.map-section { padding: 20px; border-bottom: 4px dashed var(--text-dark); text-align: center; }
.hero-map { max-width: 100%; height: auto; border: 5px solid var(--text-dark); transform: rotate(-1deg); }