/*
Theme Name: Mary J Apothecary
Theme URI: https://maryjapothecary.com
Author: Mary J Apothecary
Author URI: https://maryjapothecary.com
Description: A premium botanical research laboratory theme featuring vintage apothecary aesthetics.
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mja-theme
*/

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
    --mja-gold: #C9A227;
    --mja-gold-light: #D4B84A;
    --mja-gold-dark: #A68A1F;
    --mja-cream: #F5F0E6;
    --mja-cream-dark: #E8E0D0;
    --mja-green-dark: #1A3A2A;
    --mja-green-forest: #2D5A3D;
    --mja-green-sage: #5A7D6A;
    --mja-black: #1A1A1A;
    --mja-white: #FFFFFF;
    --mja-gray: #6B6B6B;
    --mja-gray-light: #9A9A9A;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    line-height: 1.7;
    color: var(--mja-black);
    background-color: var(--mja-cream);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.3;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   Header - Dark Green Style (Matching Mockup)
   ========================================================================== */
.site-header {
    background-color: var(--mja-green-dark) !important;
    padding: 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.admin-bar .site-header {
    top: 32px;
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
}

.site-logo img,
.custom-logo {
    height: 70px;
    width: auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

.main-nav a {
    color: var(--mja-cream) !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.main-nav a:hover {
    color: var(--mja-gold) !important;
}

.header-cta .btn {
    background-color: var(--mja-gold);
    color: var(--mja-green-dark);
    padding: 12px 25px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
}

.header-cta .btn:hover {
    background-color: var(--mja-gold-light);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    height: 100vh;
    min-height: 700px;
    background-size: cover !important;
    background-position: center !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--mja-cream);
    padding-top: 100px;
    position: relative;
    margin-top: 0;
}

.admin-bar .hero {
    padding-top: 132px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(26, 58, 42, 0.85), rgba(26, 58, 42, 0.9));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 40px;
}

.hero-badge {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--mja-gold);
    margin-bottom: 20px;
    display: block;
}

.hero h1 {
    font-size: 72px;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.1;
    color: var(--mja-cream);
}

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

.hero-tagline {
    font-size: 20px;
    font-weight: 300;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
    color: var(--mja-cream);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 18px 45px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--mja-gold);
    color: var(--mja-green-dark);
}

.btn-primary:hover {
    background-color: var(--mja-gold-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(201, 162, 39, 0.3);
    color: var(--mja-green-dark);
}

.btn-outline,
.btn-secondary {
    border-color: var(--mja-cream);
    color: var(--mja-cream);
    background: transparent;
}

.btn-outline:hover,
.btn-secondary:hover {
    background-color: var(--mja-cream);
    color: var(--mja-green-dark);
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features-section {
    background-color: var(--mja-green-dark);
    padding: 80px 40px;
}

.features-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.feature-item {
    text-align: center;
    color: var(--mja-cream);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background-color: rgba(201, 162, 39, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 24px;
    color: var(--mja-gold);
}

.feature-item h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--mja-gold);
}

.feature-item p {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.6;
}

/* ==========================================================================
   Section Styles
   ========================================================================== */
.section {
    padding: 120px 40px;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--mja-gold);
    margin-bottom: 15px;
}

.section-title {
    font-size: 48px;
    color: var(--mja-green-dark);
}

.section-description {
    font-size: 18px;
    color: var(--mja-gray);
    max-width: 600px;
    margin: 20px auto 0;
}

/* ==========================================================================
   Categories Grid
   ========================================================================== */
.categories-section {
    background-color: var(--mja-cream);
}

.categories-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.category-card {
    position: relative;
    height: 350px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(26, 58, 42, 0.95));
    color: var(--mja-cream);
}

.category-overlay h3 {
    font-size: 22px;
    margin-bottom: 5px;
    color: var(--mja-cream);
}

.category-overlay p {
    font-size: 14px;
    opacity: 0.8;
}

/* ==========================================================================
   Products Grid
   ========================================================================== */
.products-section {
    background-color: var(--mja-white);
}

.products-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-card {
    background-color: var(--mja-cream);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.product-image {
    position: relative;
    height: 280px;
    background-color: var(--mja-cream-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-image img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--mja-gold);
    color: var(--mja-green-dark);
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.product-content {
    padding: 25px;
}

.product-category {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--mja-gold-dark);
    margin-bottom: 8px;
}

.product-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--mja-green-dark);
}

.product-title a {
    color: var(--mja-green-dark);
}

.product-title a:hover {
    color: var(--mja-gold);
}

.product-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--mja-green-dark);
    margin-bottom: 15px;
}

.product-card .btn {
    width: 100%;
    text-align: center;
    padding: 15px;
    font-size: 12px;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-section {
    background-color: var(--mja-cream);
}

.about-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-content h2 {
    font-size: 42px;
    margin-bottom: 30px;
    color: var(--mja-green-dark);
}

.about-content p {
    font-size: 18px;
    color: var(--mja-gray);
    margin-bottom: 30px;
    line-height: 1.8;
}

.about-features {
    list-style: none;
    margin-bottom: 40px;
}

.about-features li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 16px;
}

.about-features li i {
    color: var(--mja-gold);
    margin-right: 15px;
    font-size: 18px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: var(--mja-black);
    color: var(--mja-cream);
    padding: 80px 40px 40px;
}

.footer-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand img {
    height: 80px;
    margin-bottom: 20px;
}

.footer-brand p {
    font-size: 14px;
    opacity: 0.7;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mja-cream);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: var(--mja-gold);
    color: var(--mja-black);
}

.footer-column h4 {
    font-size: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--mja-gold);
    margin-bottom: 25px;
}

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

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: var(--mja-cream);
    opacity: 0.7;
    font-size: 14px;
}

.footer-column a:hover {
    opacity: 1;
    color: var(--mja-gold);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    opacity: 0.7;
}

.footer-bottom a {
    color: var(--mja-cream);
    margin-left: 30px;
}

.footer-bottom a:hover {
    color: var(--mja-gold);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1200px) {
    .categories-grid,
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 48px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .header-inner {
        padding: 15px 20px;
    }
    
    .main-nav {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero-tagline {
        font-size: 16px;
    }
    
    .section {
        padding: 80px 20px;
    }
    
    .categories-grid,
    .products-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* ==========================================================================
   WordPress Specific
   ========================================================================== */
.wp-block-image img {
    max-width: 100%;
    height: auto;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignleft {
    float: left;
    margin-right: 20px;
}

.alignright {
    float: right;
    margin-left: 20px;
}

/* Screen Reader Text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* Admin Bar Adjustment */
.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}