/* ============================================
   HEALED BY FARM - Master Stylesheet
   ============================================ */

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

:root {
    --color-cream: #f8f6f2;
    --color-sage: #7a8b6e;
    --color-sage-dark: #5d6b54;
    --color-text: #3a3a3a;
    --color-text-light: #666;
    --color-white: #fff;
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Nunito Sans', -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.7;
    background: var(--color-cream);
}

a {
    color: var(--font-body);
}

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

/* ============================================
   Age Gate
   ============================================ */
#age-gate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

#age-gate.hidden { display: none; }

.age-gate-modal {
    background: var(--color-white);
    padding: 50px 60px;
    border-radius: 4px;
    text-align: center;
    max-width: 420px;
    width: 90%;
}

.age-gate-modal h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--color-text);
}

.age-gate-modal p {
    color: var(--color-text-light);
    margin-bottom: 30px;
    font-size: 15px;
}

.age-gate-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.age-gate-buttons button {
    padding: 14px 32px;
    font-size: 14px;
    font-family: var(--font-body);
    font-weight: 600;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-yes { background: var(--color-sage); color: var(--color-white); }
.btn-yes:hover { background: var(--color-sage-dark); }
.btn-no { background: #e5e5e5; color: var(--color-text); }
.btn-no:hover { background: #d5d5d5; }

/* ============================================
   Header & Navigation
   ============================================ */
header {
    background: var(--color-white);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

nav { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.logo {
    font-family: Georgia;
    font-size: 40px;
    font-weight: bold;
    color: var(--color-sage);
    text-decoration: none;
}

.nav-links { 
    display: flex; 
    gap: 35px; 
    list-style: none; 
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text);
    font-size: 14px;
    font-weight: 400;
    transition: color 0.3s ease;
    letter-spacing: 0.3px;
}

.nav-links a:hover { color: var(--color-sage); }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--color-text);
}

/* ============================================
   Hero Section (Homepage)
   ============================================ */
.hero {
    height: 600px;
    max-height: 600px;
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), 
                url('images/hero-bg.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 30px;
}

.hero-content {
    max-width: 800px;
    background: var(--color-white);
    padding: 50px 60px;
    border-radius: 8px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 500;
    margin-bottom: 15px;
    line-height: 1.2;
    color: var(--color-text);
}

.hero p {
    font-size: 16px;
    margin-bottom: 30px;
    color: var(--color-text-light);
}

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

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-block;
    padding: 16px 45px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--color-sage);
    color: var(--color-white);
    border: 2px solid var(--color-sage);
}

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

.btn-secondary {
    background: var(--color-white);
    color: var(--color-text);
    border: 2px solid var(--color-text);
}

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

.btn-buy {
    display: inline-block;
    width: 100%;
    max-width: 350px;
    padding: 18px 40px;
    font-size: 15px;
    font-family: var(--font-body);
    font-weight: 600;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--color-sage);
    color: var(--color-white);
    text-align: center;
    border: none;
    cursor: pointer;
}

.btn-buy:hover {
    background: var(--color-sage-dark);
    transform: translateY(-2px);
}

/* ============================================
   Content Sections
   ============================================ */
.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--color-white);
}

.split-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.split-content.reverse {
    direction: rtl;
}

.split-content.reverse > * {
    direction: ltr;
}

.split-image img {
    width: 100%;
    max-width: 480px;
    height: auto;
    border-radius: 4px;
}

.split-text h2 {
    font-family: var(--font-heading);
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 500;
    margin-bottom: 25px;
    color: var(--color-text);
    line-height: 1.3;
}

.split-text p {
    color: var(--color-text-light);
    margin-bottom: 20px;
    font-size: 15px;
}

.split-text .btn {
    margin-top: 15px;
}

/* ============================================
   Page Header (Interior Pages)
   ============================================ */
.page-header {
    background: var(--color-white);
    padding: 80px 0;
    text-align: center;
}

.page-header h1 {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 500;
    margin-bottom: 15px;
}

.page-header p {
    color: var(--color-text-light);
    font-size: 17px;
}

/* ============================================
   Breadcrumb
   ============================================ */
.breadcrumb {
    padding: 20px 0;
    font-size: 13px;
    color: var(--color-text-light);
}

.breadcrumb a {
    color: var(--color-text-light);
    text-decoration: none;
}

.breadcrumb a:hover { color: var(--color-sage); }
.breadcrumb span { margin: 0 10px; }

/* ============================================
   Product Page
   ============================================ */
.product-section {
    padding: 40px 0 100px;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.product-image {
    background: var(--color-white);
    border-radius: 4px;
    padding: 40px;
    text-align: center;
}

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

.product-details h1 {
    font-family: var(--font-heading);
    font-size: clamp(32px, 4vw, 42px);
    font-weight: 500;
    margin-bottom: 15px;
    line-height: 1.2;
}

.product-price {
    font-family: var(--font-heading);
    font-size: 32px;
    color: var(--color-sage);
    margin-bottom: 25px;
}

.product-description {
    color: var(--color-text-light);
    font-size: 15px;
    margin-bottom: 30px;
}

.product-description p {
    margin-bottom: 15px;
}

.product-meta {
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    padding: 25px 0;
    margin-bottom: 30px;
}

.product-meta-item {
    display: flex;
    margin-bottom: 12px;
}

.product-meta-item:last-child { margin-bottom: 0; }

.product-meta-label {
    font-weight: 600;
    min-width: 140px;
    font-size: 14px;
}

.product-meta-value {
    color: var(--color-text-light);
    font-size: 14px;
}

.product-fda {
    margin-top: 30px;
    padding: 20px;
    background: #f0ede7;
    border-radius: 4px;
    font-size: 12px;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* ============================================
   Testimonials
   ============================================ */
.testimonials-section {
    padding: 80px 0 100px;
}

.testimonial {
    background: var(--color-white);
    padding: 40px 45px;
    border-radius: 4px;
    margin: 0 auto 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    width: 800px;
}

.testimonial:last-child { margin-bottom: 0; }

.testimonial-text {
    font-size: 16px;
    color: var(--color-text-light);
    line-height: 1.9;
    margin-bottom: 25px;
}

.testimonial-author {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text);
}

.testimonial-location {
    font-size: 14px;
    color: var(--color-text-light);
    margin-top: 4px;
}

/* ============================================
   Contact Form
   ============================================ */
.contact-section {
    padding: 80px 0;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-content > p {
    color: var(--color-text-light);
    margin-bottom: 30px;
    font-size: 15px;
    text-align: center;
}

.contact-form {
    background: var(--color-white);
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    font-family: var(--font-body);
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-sage);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.btn-submit {
    width: 100%;
    padding: 16px 40px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--color-sage);
    color: var(--color-white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-submit:hover {
    background: var(--color-sage-dark);
}

.form-message {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 25px;
    text-align: center;
    font-size: 15px;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ============================================
   Blog
   ============================================ */
.blog-container { 
    max-width: 800px; 
    margin: 0 auto; 
    padding: 0 30px; 
}

.blog-section,
.blog-list {
    padding: 60px 0 100px;
}

.blog-grid {
    display: grid;
    gap: 30px;
}

.blog-card {
    background: var(--color-white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.blog-card-content {
    padding: 30px;
}

.blog-card h2 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 12px;
    line-height: 1.3;
}

.blog-card h2 a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card h2 a:hover { color: var(--color-sage); }

.blog-card-excerpt {
    color: var(--color-text-light);
    font-size: 15px;
    margin-bottom: 15px;
    line-height: 1.7;
}

.blog-card-link {
    color: var(--color-sage);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.blog-card-link:hover { text-decoration: underline; }

/* Blog Post List (index page) */
.blog-post {
    background: var(--color-white);
    padding: 25px 30px;
    border-radius: 4px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 800px;
    margin: 0 auto 15px;
}

.blog-post:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.blog-post a {
    text-decoration: none;
}

.blog-post h2 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 500;
    color: var(--color-text);
    transition: color 0.3s ease;
    margin: 0;
}

.blog-post:hover h2 {
    color: var(--color-sage);
}

/* Blog Post Article */
article {
    background: var(--color-white);
    padding: 60px;
    border-radius: 4px;
    margin-bottom: 60px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

article h1 {
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 500;
    margin-bottom: 30px;
    line-height: 1.3;
}

.post-content {
    font-size: 16px;
    color: var(--color-text-light);
    line-height: 1.8;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 500;
    margin: 35px 0 20px;
    color: var(--color-text);
}

.post-content h3, 
.post-content h4 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 500;
    margin: 25px 0 15px;
    color: var(--color-text);
}

.post-content ul, 
.post-content ol {
    margin: 0 0 20px 25px;
}

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

.post-content a {
    color: var(--color-sage);
}

.post-content blockquote {
    border-left: 3px solid var(--color-sage);
    padding-left: 20px;
    margin: 25px 0;
    font-style: italic;
}

.post-content strong {
    color: var(--color-text);
    font-weight: 600;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 30px 0;
    border-radius: 4px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.post-signature {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    font-family: var(--font-heading);
    font-size: 22px;
    font-style: italic;
    color: var(--color-sage);
}

/* ============================================
   About Page
   ============================================ */
.about-section {
    padding: 80px 0 100px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: start;
}

.about-image img {
    width: 100%;
    max-width: 350px;
    border-radius: 4px;
}

.about-text h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 25px;
    color: var(--color-text);
}

.about-text p {
    color: var(--color-text-light);
    margin-bottom: 20px;
    font-size: 15px;
}

/* Story Section (About John page) */
.story-section {
    padding: 80px 0 100px;
}

.story-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    align-items: start;
}

.story-sidebar {
    position: sticky;
    top: 100px;
}

.john-photo img {
    width: 100%;
    border-radius: 4px;
    margin-bottom: 25px;
}

.john-photo-placeholder {
    width: 100%;
    height: 300px;
    background: var(--color-white);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-text-light);
    font-size: 14px;
    margin-bottom: 25px;
}

.sidebar-quote {
    background: var(--color-white);
    padding: 25px;
    border-radius: 4px;
    border-left: 3px solid var(--color-sage);
}

.sidebar-quote p {
    font-family: var(--font-heading);
    font-size: 18px;
    font-style: italic;
    color: var(--color-text);
    line-height: 1.6;
}

.story-content h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 500;
    margin: 40px 0 20px;
    color: var(--color-text);
}

.story-content h2:first-child {
    margin-top: 0;
}

.story-content p {
    color: var(--color-text-light);
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.8;
}

.story-highlight {
    background: var(--color-white);
    padding: 30px;
    border-radius: 4px;
    margin: 30px 0;
    border-left: 3px solid var(--color-sage);
}

.story-highlight p {
    margin-bottom: 0;
    font-size: 16px;
    color: var(--color-text);
}

/* ============================================
   Contact Box (Sticky Top Bar)
   ============================================ */
.contact-box {
    background: var(--color-sage);
    padding: 12px 0;
    text-align: center;
}

.contact-box p {
    font-size: 14px;
    color: var(--color-white);
    margin: 0;
}

.contact-box a {
    color: var(--color-white);
    font-weight: 600;
    text-decoration: underline;
}

.contact-box a:hover {
    text-decoration: none;
}

/* ============================================
   FDA Disclaimer
   ============================================ */
.fda-section {
    background: #f0ede7;
    padding: 60px 0;
}

.fda-section h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--color-text);
}

.fda-section p {
    font-size: 13px;
    color: var(--color-text-light);
    line-height: 1.8;
    max-width: 900px;
}

/* ============================================
   Privacy Policy
   ============================================ */
.privacy-section {
    padding: 60px 0 100px;
}

.privacy-content {
    background: var(--color-white);
    padding: 50px;
    border-radius: 4px;
    max-width: 800px;
    margin: 0 auto;
}

.privacy-content h2 {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 500;
    margin: 35px 0 15px;
    color: var(--color-text);
}

.privacy-content h2:first-child {
    margin-top: 0;
}

.privacy-content p {
    color: var(--color-text-light);
    margin-bottom: 15px;
    font-size: 15px;
}

.privacy-content ul {
    margin: 0 0 20px 25px;
    color: var(--color-text-light);
}

.privacy-content li {
    margin-bottom: 8px;
    font-size: 15px;
}

/* ============================================
   Footer
   ============================================ */
footer {
    background: var(--color-text);
    color: var(--color-white);
    padding: 50px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 500;
}

.footer-links {
    display: flex;
    gap: 30px;
    list-style: none;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover { color: var(--color-white); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 25px;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
}

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

/* ============================================
   Responsive - Tablet
   ============================================ */
@media (max-width: 900px) {
    .split-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .split-content.reverse {
        direction: ltr;
    }

    .split-image img {
        max-width: 400px;
        margin: 0 auto;
        display: block;
    }

    .section {
        padding: 70px 0;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-image { padding: 30px; }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .about-image img {
        margin: 0 auto;
    }

    .story-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .story-sidebar {
        position: static;
        max-width: 300px;
        margin: 0 auto;
        text-align: center;
    }
}

/* ============================================
   Responsive - Mobile
   ============================================ */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        padding: 20px 30px;
        gap: 15px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    .nav-links.active { display: flex; }
    .mobile-menu-btn { display: block; }

    .hero {
        height: 500px;
        max-height: 500px;
    }

    .hero-content {
        padding: 35px 30px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .age-gate-modal {
        padding: 40px 30px;
    }

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

    .btn-buy { max-width: 100%; }

    .testimonial { padding: 30px; }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 30px 25px;
    }

    article {
        padding: 35px 25px;
    }

    article h1 {
        font-size: 28px;
    }

    .privacy-content {
        padding: 35px 25px;
    }
}

/* ============================================
   Responsive - Small Mobile
   ============================================ */
@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
