/*
Theme Name: Jital BSFL
Theme URI: https://jitalbsfl.com
Description: Custom child theme for Jital BSFL - Sustainable farming and BSFL products with premium, eco-friendly design
Author: Jital Team
Author URI: https://jitalbsfl.com
Template: rishi
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jital-bsfl
Tags: sustainable, farming, bsfl, eco-friendly, premium
*/

/* ========================================
   JITAL BSFL BRAND GUIDELINES
   ======================================== */

/* 
   COLOR PALETTE
   Primary: #0B6E3E (Dark Green)
   Secondary: #1FAF62 (Medium Green)
   Highlight: #A8F7C0 (Light Green)
   Background: White / Light Green only
*/

:root {
    --jital-primary: #0B6E3E;
    --jital-secondary: #1FAF62;
    --jital-highlight: #A8F7C0;
    --jital-white: #FFFFFF;
    --jital-light-bg: #F5FFF9;
    --jital-text-dark: #1A1A1A;
    --jital-text-light: #4A4A4A;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', 'Poppins', sans-serif;
    color: var(--jital-text-dark);
    background-color: var(--jital-white);
    line-height: 1.6;
}

/* Headings - ALL CAPS with Bebas Neue */
h1, h2, h3, h4, h5, h6,
.site-title,
.entry-title,
.page-title,
.widget-title {
    font-family: 'Bebas Neue', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--jital-primary);
    font-weight: 700;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.8rem; }
h3 { font-size: 2.2rem; }
h4 { font-size: 1.8rem; }
h5 { font-size: 1.4rem; }
h6 { font-size: 1.2rem; }

/* Body text */
p, li, span, a {
    font-family: 'Inter', sans-serif;
}

/* ========================================
   LOGO STYLING
   ======================================== */

.site-logo,
.custom-logo-link {
    display: inline-block;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.site-logo:hover,
.custom-logo-link:hover {
    opacity: 0.8;
}

/* Logo on white background - full color */
.site-header {
    background-color: var(--jital-white);
}

/* Logo on dark green background - white version */
.site-header.dark-bg .custom-logo {
    filter: brightness(0) invert(1);
}

/* Logo positioning - top right */
.site-branding {
    position: relative;
}

.site-branding a {
    display: inline-block;
    cursor: pointer;
}

.custom-logo {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   COLOR SYSTEM
   ======================================== */

/* Primary color applications */
.btn-primary,
.button-primary,
.wp-block-button__link,
input[type="submit"],
button[type="submit"] {
    background-color: var(--jital-primary);
    color: var(--jital-white);
    border: none;
    border-radius: 50px;
    padding: 12px 32px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-primary:hover,
.button-primary:hover,
.wp-block-button__link:hover {
    background-color: var(--jital-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(11, 110, 62, 0.3);
}

/* Secondary color */
.btn-secondary,
.button-secondary {
    background-color: var(--jital-secondary);
    color: var(--jital-white);
    border-radius: 50px;
    padding: 12px 32px;
}

/* Highlight color for accents */
.highlight,
.featured-badge,
.new-badge {
    background-color: var(--jital-highlight);
    color: var(--jital-primary);
}

/* Links */
a {
    color: var(--jital-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--jital-secondary);
}

/* ========================================
   LAYOUT SYSTEM
   ======================================== */

/* Standard layout: Left heading, Right image */
.content-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 60px 20px;
    position: relative;
}

.content-left {
    order: 1;
}

.content-right {
    order: 2;
}

/* Green shapes background */
.section-bg-shapes {
    position: relative;
    overflow: hidden;
}

.section-bg-shapes::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--jital-highlight);
    border-radius: 50%;
    opacity: 0.3;
    top: -100px;
    right: -100px;
    z-index: -1;
}

.section-bg-shapes::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: var(--jital-secondary);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    opacity: 0.2;
    bottom: -50px;
    left: -50px;
    z-index: -1;
}

/* ========================================
   CTA BUTTONS
   ======================================== */

.cta-button,
.shop-now-btn,
.know-more-btn {
    display: inline-block;
    background-color: var(--jital-primary);
    color: var(--jital-white);
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid var(--jital-primary);
}

.cta-button:hover,
.shop-now-btn:hover,
.know-more-btn:hover {
    background-color: var(--jital-secondary);
    border-color: var(--jital-secondary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(11, 110, 62, 0.4);
}

.know-more-btn {
    background-color: transparent;
    color: var(--jital-primary);
}

.know-more-btn:hover {
    background-color: var(--jital-primary);
    color: var(--jital-white);
}

/* ========================================
   ICONS STYLING
   ======================================== */

.icon-leaf,
.icon-larva,
.icon-protein {
    width: 48px;
    height: 48px;
    stroke: var(--jital-primary);
    fill: none;
    stroke-width: 2;
    transition: all 0.3s ease;
}

.icon-leaf:hover,
.icon-larva:hover,
.icon-protein:hover {
    stroke: var(--jital-secondary);
    transform: scale(1.1);
}

/* Simple outline style - no 3D */
.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border: 2px solid var(--jital-primary);
    border-radius: 50%;
    margin-bottom: 20px;
}

/* ========================================
   IMAGE STYLING
   ======================================== */

/* Bright, clean images */
img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.pet-image,
.dog-image {
    filter: brightness(1.05) contrast(1.05);
}

.bsfl-image,
.lab-image {
    border: 1px solid var(--jital-highlight);
    padding: 8px;
    background: var(--jital-white);
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

.site-header {
    background-color: var(--jital-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px 0;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.site-branding {
    flex-shrink: 0;
    z-index: 100;
}

.main-navigation {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
}

.main-navigation a {
    color: var(--jital-primary);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.main-navigation a:hover {
    color: var(--jital-secondary);
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
    background-color: var(--jital-primary);
    color: var(--jital-white);
    padding: 60px 20px 20px;
}

.site-footer a {
    color: var(--jital-highlight);
}

.site-footer a:hover {
    color: var(--jital-white);
}

.footer-website-link {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
}

/* ========================================
   CONTENT SECTIONS
   ======================================== */

/* Scientific, premium tone */
.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    text-transform: uppercase;
    color: var(--jital-primary);
    margin-bottom: 30px;
}

.section-description {
    font-family: 'Inter', sans-serif;
    color: var(--jital-text-light);
    line-height: 1.8;
}

/* ========================================
   BLOG / SOCIAL CONTENT
   ======================================== */

.blog-post,
.article-card {
    background: var(--jital-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.blog-post:hover,
.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(11, 110, 62, 0.15);
}

.post-category {
    background-color: var(--jital-highlight);
    color: var(--jital-primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .content-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .content-left,
    .content-right {
        order: initial;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.6rem; }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.bg-white { background-color: var(--jital-white); }
.bg-light-green { background-color: var(--jital-light-bg); }
.bg-primary { background-color: var(--jital-primary); }
.bg-secondary { background-color: var(--jital-secondary); }

.text-primary { color: var(--jital-primary); }
.text-secondary { color: var(--jital-secondary); }
.text-white { color: var(--jital-white); }

.rounded { border-radius: 12px; }
.rounded-full { border-radius: 50px; }

.shadow-sm { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); }
.shadow-md { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12); }
.shadow-lg { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.16); }

/* Clean & minimal spacing */
.section-padding { padding: 80px 20px; }
.container-max { max-width: 1200px; margin: 0 auto; }

/* ========================================
   BRAND PROTECTION
   ======================================== */

/* Avoid these colors */
.avoid-red { background-color: transparent !important; }
.avoid-blue { background-color: transparent !important; }
.avoid-neon { background-color: transparent !important; }

/* No shadows on logo */
.custom-logo,
.site-logo img {
    box-shadow: none !important;
    filter: none;
}

/* No rotation or stretch */
.custom-logo,
.site-logo img {
    transform: none !important;
}


/* ========================================
   DROPDOWN MENU STYLES
   ======================================== */

.main-navigation .menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.main-navigation .menu-item {
    position: relative;
}

.main-navigation .menu-item > a {
    display: block;
    padding: 10px 0;
}

/* Dropdown */
.main-navigation .menu-item-has-children {
    position: relative;
}

.main-navigation .menu-item-has-children > a::after {
    content: ' ▼';
    font-size: 10px;
    margin-left: 5px;
}

.main-navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--jital-white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    min-width: 200px;
    padding: 10px 0;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.main-navigation .menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation .sub-menu li {
    margin: 0;
}

.main-navigation .sub-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--jital-primary);
    font-size: 14px;
    transition: all 0.3s ease;
}

.main-navigation .sub-menu a:hover {
    background: var(--jital-light-bg);
    color: var(--jital-secondary);
    padding-left: 25px;
}
