/* ============================================
   CERVEZAS CHILE — Main Stylesheet
   Portal de Cerveza Artesanal & Homebrewing
   ============================================ */

/* --- CSS Variables --- */
:root {
    --color-bg: #faf8f4;
    --color-text: #2c2416;
    --color-accent: #b5651d;
    --color-accent-dark: #8a4c12;
    --color-accent-light: #d4a04a;
    --color-warm: #d4a04a;
    --color-light: #f0e8d8;
    --color-card: #ffffff;
    --color-muted: #7a6e5d;
    --color-border: #e0d5c3;
    --color-green: #5a7247;
    --color-dark: #2c2416;
    --color-dark-mid: #4a3520;
    --font-display: 'Libre Baskerville', Georgia, serif;
    --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
    --max-width: 1100px;
    --radius: 8px;
    --shadow-sm: 0 2px 8px rgba(44, 36, 22, 0.06);
    --shadow-md: 0 8px 25px rgba(44, 36, 22, 0.1);
    --transition: 0.3s ease;
}

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

/* --- Base --- */
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent-dark); }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 30px;
}

/* ===== HEADER ===== */
.site-header {
    background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-mid) 50%, var(--color-dark) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.site-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23b5651d' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Top bar */
.header-top {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px 30px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: #fff;
}

.logo-link img, .logo-link svg {
    width: 48px;
    height: 48px;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5em;
    font-weight: 700;
    color: var(--color-light);
    letter-spacing: 0.5px;
}

.logo-text span {
    color: var(--color-warm);
}

/* Navigation */
.main-nav {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.main-nav a {
    color: #c4b69a;
    text-decoration: none;
    padding: 8px 18px;
    border: 1px solid rgba(196, 182, 154, 0.25);
    border-radius: 4px;
    font-size: 0.88em;
    font-weight: 600;
    transition: all var(--transition);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

/* Hero section (home page) */
.hero {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 30px 60px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: 2.6em;
    font-weight: 700;
    color: var(--color-light);
    margin-bottom: 12px;
    line-height: 1.25;
}

.hero h1 span { color: var(--color-warm); }

.hero .subtitle {
    font-size: 1.15em;
    font-weight: 300;
    color: #c4b69a;
    margin-bottom: 30px;
    letter-spacing: 0.3px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: inline-flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 0.95em;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

.btn-primary:hover {
    background: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: #c4b69a;
    border-color: rgba(196, 182, 154, 0.4);
}

.btn-outline:hover {
    background: rgba(196, 182, 154, 0.15);
    color: #fff;
    border-color: rgba(196, 182, 154, 0.7);
}

/* Mobile hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background: #c4b69a;
    margin: 6px 0;
    transition: var(--transition);
}

/* ===== DISCLAIMER BAR ===== */
.disclaimer-bar {
    background: var(--color-green);
    color: #e8f0e4;
    text-align: center;
    padding: 10px 20px;
    font-size: 0.85em;
}

.disclaimer-bar strong {
    font-weight: 700;
}

/* ===== PAGE HEADER (inner pages) ===== */
.page-header {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 30px 30px 40px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: 2.2em;
    color: var(--color-light);
    margin-bottom: 10px;
}

.page-header p {
    color: #c4b69a;
    font-size: 1.05em;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== SECTIONS ===== */
.section {
    padding: 60px 0;
}

.section + .section {
    border-top: 1px solid var(--color-border);
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.9em;
    color: var(--color-accent-dark);
    margin-bottom: 12px;
}

.section-intro {
    color: var(--color-muted);
    font-size: 1.08em;
    margin-bottom: 35px;
    max-width: 750px;
}

/* ===== CARDS ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

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

.card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.card-body {
    padding: 26px 28px 28px;
}

.card-tag {
    display: inline-block;
    background: var(--color-light);
    color: var(--color-accent-dark);
    padding: 3px 12px;
    border-radius: 3px;
    font-size: 0.78em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.card-body h3 {
    font-family: var(--font-display);
    font-size: 1.15em;
    margin-bottom: 10px;
    color: var(--color-text);
    line-height: 1.4;
}

.card-body h3 a {
    color: inherit;
    text-decoration: none;
}

.card-body h3 a:hover {
    color: var(--color-accent);
}

.card-body p {
    color: var(--color-muted);
    font-size: 0.95em;
    line-height: 1.65;
}

.card-meta {
    margin-top: 16px;
    font-size: 0.82em;
    color: var(--color-muted);
    padding-top: 12px;
    border-top: 1px solid var(--color-border);
}

/* ===== BREWERY GRID ===== */
.brewery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 22px;
}

.brewery-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 28px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.brewery-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.brewery-icon {
    width: 64px;
    height: 64px;
    background: var(--color-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 1.7em;
}

.brewery-card h4 {
    font-family: var(--font-display);
    font-size: 1.05em;
    margin-bottom: 4px;
}

.brewery-card .location {
    font-size: 0.85em;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 10px;
}

.brewery-card p {
    font-size: 0.88em;
    color: var(--color-muted);
    line-height: 1.55;
}

/* ===== RECIPE BOX ===== */
.recipe-box {
    background: var(--color-card);
    border: 2px solid var(--color-warm);
    border-radius: 10px;
    padding: 35px;
    margin-bottom: 28px;
}

.recipe-box h3 {
    font-family: var(--font-display);
    color: var(--color-accent-dark);
    font-size: 1.35em;
    margin-bottom: 8px;
}

.recipe-meta {
    color: var(--color-muted);
    font-size: 0.9em;
    margin-bottom: 22px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--color-border);
}

.recipe-columns {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}

.recipe-columns h4 {
    font-family: var(--font-display);
    font-size: 1em;
    color: var(--color-accent-dark);
    margin-bottom: 12px;
}

.recipe-columns ul {
    padding-left: 20px;
    color: var(--color-muted);
}

.recipe-columns li { margin-bottom: 6px; font-size: 0.95em; }

.recipe-columns ol { padding-left: 20px; }

.recipe-columns ol li {
    margin-bottom: 12px;
    font-size: 0.95em;
    color: var(--color-text);
}

/* ===== ABOUT PAGE TWO-COL ===== */
.two-col {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

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

.sidebar-box {
    background: var(--color-light);
    padding: 28px;
    border-radius: var(--radius);
    border-left: 4px solid var(--color-accent);
}

.sidebar-box h3 {
    font-family: var(--font-display);
    color: var(--color-accent-dark);
    margin-bottom: 12px;
    font-size: 1.1em;
}

.sidebar-box ul { list-style: none; }

.sidebar-box li {
    padding: 7px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.95em;
}

.sidebar-box li:last-child { border: none; }
.sidebar-box li::before { content: '✦ '; color: var(--color-accent); }

/* ===== ARTICLE / BLOG POST ===== */
.article-content {
    max-width: 780px;
    margin: 0 auto;
}

.article-content h2 {
    font-family: var(--font-display);
    font-size: 1.5em;
    color: var(--color-accent-dark);
    margin: 35px 0 14px;
}

.article-content p {
    margin-bottom: 18px;
}

.article-content ul, .article-content ol {
    margin-bottom: 18px;
    padding-left: 24px;
}

.article-content li { margin-bottom: 8px; }

.article-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--color-border);
}

.article-header h1 {
    font-family: var(--font-display);
    font-size: 2em;
    color: var(--color-text);
    margin-bottom: 12px;
    line-height: 1.3;
}

.article-header .meta {
    color: var(--color-muted);
    font-size: 0.92em;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 30px;
    font-weight: 600;
    font-size: 0.92em;
}

/* ===== CONTACT FORM ===== */
.contact-box {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 35px;
    max-width: 550px;
}

.contact-box p { margin-bottom: 12px; }

.contact-box .note {
    margin-top: 18px;
    font-size: 0.9em;
    color: var(--color-muted);
    padding-top: 15px;
    border-top: 1px solid var(--color-border);
}

/* ===== FEATURES ROW ===== */
.features-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    text-align: center;
    padding: 20px;
}

.feature-icon {
    font-size: 2.2em;
    margin-bottom: 14px;
}

.feature-item h3 {
    font-family: var(--font-display);
    font-size: 1.1em;
    margin-bottom: 8px;
    color: var(--color-accent-dark);
}

.feature-item p {
    font-size: 0.92em;
    color: var(--color-muted);
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--color-dark);
    color: #c4b69a;
    padding: 45px 30px;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-disclaimer {
    background: rgba(181, 101, 29, 0.12);
    border: 1px solid rgba(181, 101, 29, 0.25);
    border-radius: 6px;
    padding: 18px 25px;
    margin-bottom: 28px;
    font-size: 0.9em;
    line-height: 1.65;
}

.footer-disclaimer strong { color: var(--color-warm); }

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-grid h4 {
    font-family: var(--font-display);
    color: var(--color-light);
    margin-bottom: 14px;
    font-size: 1em;
}

.footer-grid p {
    font-size: 0.9em;
    line-height: 1.6;
}

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

.footer-grid li { margin-bottom: 8px; }

.footer-grid a {
    color: #c4b69a;
    font-size: 0.9em;
}

.footer-grid a:hover { color: var(--color-warm); }

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(196, 182, 154, 0.15);
    font-size: 0.82em;
    color: #8a7d6a;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .cards-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 25px; }
    .features-row { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 768px) {
    .header-top { flex-direction: column; gap: 16px; }
    .main-nav { justify-content: center; }
    .hero h1 { font-size: 2em; }
    .page-header h1 { font-size: 1.7em; }
    .two-col, .two-col-equal { grid-template-columns: 1fr; }
    .recipe-columns { grid-template-columns: 1fr; }
    .cards-grid, .cards-grid-3 { grid-template-columns: 1fr; }
    .section { padding: 40px 0; }
    .section-title { font-size: 1.5em; }
}

@media (max-width: 480px) {
    body { font-size: 16px; }
    .brewery-grid { grid-template-columns: 1fr; }
    .main-nav a { padding: 6px 12px; font-size: 0.8em; }
    .container { padding: 0 18px; }
}
