/* Global Variables */
:root {
    --primary: #1A6B5A;
    --primary-dark: #0F4A3E;
    --secondary: #B8963E;
    --accent: #F2EBD9;
    --bg-main: #FAFAF7;
    --bg-alt: #EDF2EE;
    --text-primary: #252525;
    --text-secondary: #5F6368;
    --white: #FFFFFF;
    --accent-hover: #238B76;

    --font-heading: 'Libre Baskerville', serif;
    --font-body: 'Source Sans 3', sans-serif;
    
    --nav-height: 80px;
}

@media (max-width: 480px) {
    :root {
        --nav-height: 60px;
    }
}

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

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--text-primary);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
    margin-bottom: 20px;
}

h1 { font-size: 48px; }
h2 { font-size: 34px; }
h3 { font-size: 22px; font-weight: 400; }
p { font-size: 16px; margin-bottom: 1.5rem; color: var(--text-secondary); }
p.small { font-size: 14px; font-weight: 300; }
a { text-decoration: none; color: inherit; transition: color 0.3s ease; }

.text-white { color: var(--white); }
.text-cream { color: var(--accent); }
.text-center { text-align: center; }

/* Responsive Typography overrides */
@media (max-width: 480px) {
    h1 { font-size: 36px; }
    h2 { font-size: 28px; }
    h3 { font-size: 20px; }
    p { font-size: 15px; }
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.bg-alt { background-color: var(--bg-alt); }
.bg-teal { background-color: var(--primary); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    border: 1.5px solid transparent;
}
.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}
.btn-primary:hover { background-color: var(--accent-hover); }

.btn-secondary {
    background-color: var(--secondary);
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
}
.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}
.btn-shop {
    background-color: var(--secondary);
    color: #000;
    padding: 8px 16px;
    font-size: 13px;
}
.btn-shop:hover { background-color: #a38234; }

/* Generic Form Styles */
.form-group { margin-bottom: 20px; text-align: left; }
.form-label {
    display: block;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 15px;
    background-color: var(--white);
    color: var(--text-primary);
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(26,107,90,0.2);
}
.form-control.is-invalid {
    border-color: #D32F2F;
    background-color: #FFEBEE;
}

/* Navigation */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: var(--white);
    border-bottom: 1px solid var(--bg-alt);
    z-index: 1000;
    display: flex;
    align-items: center;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}
.logo-area a {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}
.main-nav {
    display: flex;
    gap: 25px;
}
.main-nav a {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
    padding: 10px 0;
    position: relative;
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.main-nav a:hover::after,
.main-nav a.active::after {
    transform: scaleX(1);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}
.nav-toggle span {
    width: 100%;
    height: 2.5px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

@media (max-width: 1024px) {
    .nav-toggle { display: flex; }
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--primary);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }
    .main-nav.open { max-height: 100vh; }
    .main-nav a {
        margin: 15px 0;
        color: var(--accent);
        font-size: 18px;
    }
    .nav-toggle.open span { background-color: var(--accent); }
    .nav-toggle.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .nav-toggle.open span:nth-child(2) { opacity: 0; }
    .nav-toggle.open span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }
}

/* Footer layout */
.site-footer {
    background-color: var(--primary-dark);
    color: var(--accent);
    padding: 70px 0 30px;
    font-size: 15px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}
.site-footer h4 {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    margin-bottom: 25px;
}
.site-footer p { color: var(--accent); opacity: 0.9; margin-bottom: 12px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--accent); opacity: 0.9; }
.footer-links a:hover { opacity: 1; color: var(--secondary); text-decoration: underline; }

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}
.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    background-color: rgba(242,235,217,0.1);
    color: var(--accent);
    transition: all 0.3s ease;
}
.social-icons a:hover { background-color: var(--secondary); }
.social-icons svg { width: 18px; height: 18px; fill: currentColor; }

.newsletter-form { display: flex; gap: 10px; margin-top: 15px; }
.newsletter-form input { flex-grow:1; padding: 10px; border-radius: 4px; border: none; }
.newsletter-form button { flex-shrink:0; padding: 10px 15px; background: var(--secondary); color: white; border: none; border-radius: 4px; font-weight: bold; cursor: pointer; }

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(242,235,217,0.15);
    font-size: 13px;
    opacity: 0.7;
}

@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .social-icons { justify-content: center; }
    .newsletter-form { justify-content: center; }
}

main { padding-top: var(--nav-height); }
