/*
Theme Name: Agora Pro
Theme URI: https://agora-milk.ru/
Author: Web Studio Vesta / Antigravity
Author URI: https://webvesta.ru/
Description: Custom premium theme for Agora Milk Replacers, optimized for WooCommerce and high performance.
Version: 1.0.0
Text Domain: agora-pro
*/

:root {
  /* Core Brand Colors */
  --color-navy: #004b87;
  --color-white: #FFFFFF;
  --color-light: #F8F9FA;
  
  /* Product Line Colors */
  --color-immuno-pink: #e6007e;
  --color-wild-orange: #f38220;
  --color-wild-red: #e30613;
  --color-hypo-green: #8dc63f;
  --color-hypo-blue: #40b4e5;
  --color-vet-cyan: #00f0ff;
  --color-agro-blue: #005da4;
  
  /* Highlights & Effects */
  --color-accent-red: #e30613;
  --color-highlight-blue: #40b4e5;
  --color-highlight-green: #8dc63f;
  --color-highlight-pink: #e6007e;
  
  --font-primary: 'Montserrat', sans-serif;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-primary);
  background-color: var(--color-white);
  color: var(--color-navy);
}

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

/* Header Styles */
.agora-header {
  background-color: var(--color-white);
  box-shadow: 0 4px 12px rgba(11, 43, 115, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 15px 0;
}

.agora-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.agora-logo img {
  max-height: 60px;
}

.agora-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 30px;
}

.agora-nav a {
  text-decoration: none;
  color: var(--color-navy);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.5px;
  transition: color 0.3s;
}

.agora-nav a:hover {
  color: var(--color-accent-red);
}

/* Base Utility Classes */
.bg-navy { background-color: var(--color-navy); color: var(--color-white); }
.bg-light { background-color: #F8F9FA; }

/* Glassmorphism & Effects */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
    padding: 2rem;
}

.hover-lift {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(31, 38, 135, 0.15);
}

.glow-effect {
    position: relative;
}

.glow-effect::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(45deg, var(--color-highlight-blue), var(--color-highlight-green), var(--color-highlight-pink));
    z-index: -1;
    border-radius: inherit;
    filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glow-effect:hover::before {
    opacity: 0.6;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* Header Menu & Actions */
.agora-header-actions {
    display: flex;
    align-items: center;
}

/* Main Menu Styles */
.agora-main-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
    align-items: center;
}

.agora-main-menu li {
    position: relative;
}

.agora-main-menu a {
    text-decoration: none;
    color: var(--color-navy);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.agora-main-menu a:hover {
    color: var(--color-wild-orange);
}

.header-tools input {
    background: transparent;
    transition: border-color 0.3s ease;
}
.header-tools input:focus {
    border-bottom: 1px solid var(--color-wild-orange) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(162,217,206,0.2) 0%, rgba(255,255,255,0) 60%);
    animation: rotate 20s linear infinite;
    z-index: 0;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-glass {
    max-width: 600px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-navy);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 2rem;
}

.btn-primary {
    display: inline-block;
    background-color: var(--color-navy);
    color: #fff;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #1a252f;
    color: #fff;
}

/* Features Grid */
.features-section {
    padding: 5rem 0;
    background-color: var(--color-light);
    position: relative;
    margin-top: -50px;
    z-index: 2;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Categories */
.categories-section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.category-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    display: block;
    text-decoration: none;
    height: 300px;
}

.category-image {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

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

.category-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    text-align: center;
    padding: 1rem;
}

.category-info h3 {
    margin: 0;
    color: var(--color-navy);
    font-weight: 700;
}

/* ==========================================================================
   MOBILE ADAPTATION (Smartphones & Tablets)
   ========================================================================== */
@media (max-width: 768px) {
    /* Global fixes for horizontal scroll and background */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    body {
        /* Shift the background to show the milk splash on the left */
        background-position: left center !important;
    }
    .agora-container {
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Header Top Bar */
    .header-top-bar {
        flex-direction: column !important;
        gap: 15px !important;
        padding: 15px !important;
        text-align: center !important;
    }
    .header-top-bar > div:first-child {
        flex-direction: column !important;
        gap: 15px !important;
    }
    .header-top-bar .header-social-link,
    .header-top-bar span {
        justify-content: center !important;
    }
    
    /* Header Main Section */
    .agora-logo {
        margin: 15px 0 !important;
    }
    .header-contact-block {
        flex-direction: column !important;
        gap: 15px !important;
    }
    .header-contact-info {
        text-align: center !important;
    }
    .header-contact-info a {
        justify-content: center !important;
    }
    .agora-header__inner {
        flex-direction: column !important;
        gap: 15px !important;
    }
    .header-tools {
        width: 100% !important;
        justify-content: center !important;
        padding: 0 15px !important;
        margin-top: 15px !important;
    }
    
    /* Hide Fixed Logo to save space */
    .agora-fixed-logo {
        display: none !important;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
        text-align: center !important;
    }
    .footer-widget {
        align-items: center !important;
    }
    .footer-widget ul {
        align-items: center !important;
    }
    .footer-widget li {
        justify-content: center !important;
    }
    .footer-bottom {
        flex-direction: column !important;
        text-align: center !important;
        gap: 15px !important;
    }
    .footer-legal {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    /* Global Typography & Content blocks */
    h1 {
        font-size: 2.2rem !important;
        line-height: 1.2 !important;
    }
    h2 {
        font-size: 1.8rem !important;
        line-height: 1.3 !important;
    }
    h3 {
        font-size: 1.4rem !important;
    }
    p {
        font-size: 1rem !important;
    }
    .agora-container {
        padding: 20px 10px !important;
        margin: 20px auto !important;
    }
    .category-card {
        height: 220px !important;
    }
    .about-grid, .features-grid, .products-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .hero-buttons {
        flex-direction: column !important;
        width: 100% !important;
        gap: 10px !important;
    }
    .hero-buttons a {
        width: 100% !important;
        text-align: center !important;
    }
}
