/*
Theme Name: Heyday Milk
Theme URI: https://heydaymilk.com
Author: FaraTejarat Khalij Fars
Author URI: https://faraatejarat.com
Description: Industrial milk powder exporter one-page WordPress theme for Heyday Milk. Converted from the original static HTML/CSS/JS template with all design, layout, responsiveness, texts and code preserved as-is.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: heyday-milk
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght=400;700;900&display=swap');

:root {
    --black: #000000;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--white);
    color: var(--black); 
    line-height: 1.6;
    overflow-x: hidden;
}

/* === Spot Overlay Container === */
.spot-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1; /* Layer 1 */
}

.content-wrapper {
    position: relative;
    z-index: 1;
}

/* --- Typography --- */
h1 { font-size: 3.5rem; font-weight: 900; line-height: 1.2; margin-bottom: 20px;}
h2 { font-size: 2.5rem; margin-bottom: 40px; text-align: center; font-weight: 900;}
h3 { font-size: 1.3rem; margin-bottom: 10px; font-weight: 900;}
p { font-size: 1.1rem; margin-bottom: 20px; color: #111;} 

/* === Organic Buttons === */
.cow-btn {
    display: inline-block;
    background-color: var(--white);
    color: var(--black); 
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 900;
    text-decoration: none;
    border: 4px solid var(--white);
    border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
    transition: all 0.3s ease;
    cursor: pointer;
    margin: 10px; 
    position: relative;
    z-index: 3; /* Layer 3 */
}
.cow-btn:hover {
    background-color: var(--black);
    color: var(--white);
    transform: translate(-3px, -3px);
    box-shadow: 8px 8px 0px var(--white);
}

.cow-btn svg {
    fill: currentColor;
    color: inherit;
    transition: fill 0.3s ease, color 0.3s ease;
}

.cow-btn-dark {
    background-color: var(--black); 
    color: var(--white); 
    border-color: var(--black);
}
.cow-btn-dark:hover {
    background-color: var(--white); 
    color: var(--black);
    border-color: var(--black);
    box-shadow: 8px 8px 0px var(--black);
}

/* === Seamless Header & Hero Section === */
.hero-wrapper {
    background-color: var(--black);
    position: relative;
    padding-bottom: 120px; 
    z-index: 10; 
    overflow: visible;
}

/* Shadow for text readability over floating white spots */
.hero-content {
    position: relative;
    z-index: 3;
}
.hero-wrapper h1 {
    color: var(--white);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.95), 0 2px 4px rgba(0, 0, 0, 0.95);
}
.hero-wrapper p {
    color: var(--white);
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.95), 0 2px 4px rgba(0, 0, 0, 0.95);
}

header {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 30px 5%; 
    background: transparent; 
    position: relative;
    z-index: 100;
}

.logo { display: flex; align-items: center; text-decoration: none;}
.css-logo-icon { 
    width: 35px; height: 35px; background: var(--white); 
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; 
    margin-right: 15px;
    animation: rotate-logo 2s linear infinite; 
}
.logo-text { font-size: 2rem; font-weight: 900; letter-spacing: -1.5px; color: var(--white); }

@keyframes rotate-logo {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.nav-links { 
    display: flex; 
    gap: 30px; 
    list-style: none; 
    align-items: center;
}
.nav-links a { 
    text-decoration: none; 
    font-weight: 900; 
    font-size: 1.1rem; 
    color: var(--white); 
    transition: border-bottom 0.2s ease;
    padding-bottom: 5px;
}
.nav-links a:hover { border-bottom: 3px solid var(--white); }
.hamburger { 
    display: none; 
    font-size: 2.2rem; 
    cursor: pointer; 
    color: var(--white); 
    user-select: none;
    z-index: 101;
} 

.hero {
    display: flex; align-items: center; justify-content: center;
    padding: 60px 5% 40px 5%; text-align: center; max-width: 900px; margin: 0 auto;
    position: relative;
    z-index: 3;
}

/* Seamless Wave Transition */
.hero-transition {
    position: absolute; bottom: -1px; left: 0; width: 100%; height: 80px;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V120H0V95.8C59.71,118.08,130.83,113.4,192.27,96.4Z' fill='%23ffffff'/%3E%3C/svg%3E");
    background-size: 100% 100%; background-repeat: no-repeat;
    z-index: 10; 
}

/* === Products Section === */
.products { 
    padding: 100px 5%; text-align: center; position: relative;
    background-color: var(--white); 
    z-index: 2; 
    margin-top: -1px; 
}

.title-box {
    background: var(--white); display: inline-block; padding: 15px 40px;
    border: 6px solid var(--black); border-radius: 50px;
    box-shadow: 8px 8px 0 var(--black); margin-bottom: 60px;
    z-index: 3; position: relative; 
}

.product-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 40px; 
    text-align: left;
    position: relative;
    z-index: 3;
}

.product-card {
    background: var(--white);
    padding: 40px 30px;
    border: 6px solid var(--black);
    border-radius: 20px;
    box-shadow: 12px 12px 0 var(--black);
    display: flex; flex-direction: column;
    transition: 0.3s;
    z-index: 3; position: relative; 
}
.product-card:hover { transform: translateY(-10px); box-shadow: 18px 18px 0 var(--black); }

.svg-icon-wrapper {
    width: 90px; height: 90px; margin: 0 auto 20px auto; 
    background: var(--black);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    display: flex; align-items: center; justify-content: center;
}
.svg-icon-wrapper svg { width: 45px; height: 45px; fill: var(--white); } 

.product-card p { font-weight: bold; margin-bottom: 20px; color: #111;}

.specs { list-style: none; margin-top: auto; border-top: 4px solid var(--black); padding-top: 15px;}
.specs li { padding: 8px 0; font-size: 0.95rem; font-weight: 900; border-bottom: 2px dashed var(--black); display: flex; justify-content: space-between;}
.specs li span { color: #555; }

/* === Brands & Packaging Section === */
.brands-section {
    background-color: var(--white);
    padding: 80px 5%;
    border-top: 8px solid var(--black);
    position: relative;
    z-index: 3;
}
.brands-container {
    max-width: 1200px;
    margin: 0 auto;
}
.brands-title-box {
    text-align: center;
    margin-bottom: 50px;
}
.brands-title-box h2 {
    margin-bottom: 15px;
}
.brands-title-box p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    font-weight: bold;
}
.brands-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}
.brands-info-card {
    border: 6px solid var(--black);
    border-radius: 20px;
    padding: 40px 30px;
    background: #fcfcfc;
    box-shadow: 12px 12px 0 var(--black);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.packaging-badge {
    align-self: flex-start;
    background: #00e1ff; /* vibrant cyan */
    color: var(--black);
    border: 3px solid var(--black);
    border-radius: 5px;
    padding: 5px 12px;
    font-weight: 900;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    box-shadow: 3px 3px 0 var(--black);
}
.brands-info-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}
.packaging-features {
    list-style: none;
    margin-top: 20px;
}
.packaging-features li {
    padding: 10px 0;
    font-size: 1rem;
    border-bottom: 2px dashed var(--black);
    position: relative;
    padding-left: 20px;
}
.packaging-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--black);
    font-weight: 900;
}
.brands-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.brand-image-wrapper {
    border: 6px solid var(--black);
    border-radius: 15px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 8px 8px 0 var(--black);
    display: flex;
    flex-direction: column;
}
.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    border-bottom: 6px solid var(--black);
}
.img-label {
    padding: 10px;
    text-align: center;
    font-weight: 900;
    font-size: 0.9rem;
    background: var(--white);
    display: block;
}

/* === Credentials Section === */
.credentials-section {
    background-color: var(--white);
    padding: 80px 5%;
    border-top: 8px solid var(--black);
    position: relative;
    z-index: 3;
}
.credentials-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: start;
}
.credentials-text {
    text-align: left;
}
.badge {
    display: inline-block;
    background: var(--black);
    color: var(--white);
    padding: 8px 16px;
    font-weight: 900;
    font-size: 0.85rem;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 15px;
}
.credentials-text h2 {
    text-align: left;
    margin-bottom: 20px;
    font-size: 2.8rem;
}
.company-intro {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 25px;
}
.registration-box {
    border: 4px solid var(--black);
    padding: 20px;
    border-radius: 12px;
    background: #fdfdfd;
    box-shadow: 6px 6px 0 var(--black);
    margin-bottom: 30px;
}
.address-text {
    font-size: 1rem;
    margin-top: 5px;
    margin-bottom: 15px;
    color: #444;
}
.verify-btn {
    display: inline-block;
    color: var(--black);
    font-weight: 900;
    text-decoration: underline;
    font-size: 1rem;
    transition: transform 0.2s;
}
.verify-btn:hover {
    transform: translateX(3px);
}
.lang-links-container {
    margin-top: 20px;
}
.lang-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.lang-btn {
    display: block;
    text-align: center;
    border: 3px solid var(--black);
    background: var(--white);
    color: var(--black);
    padding: 10px 5px;
    font-weight: 900;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 8px;
    box-shadow: 4px 4px 0 var(--black);
    transition: all 0.2s;
}
.lang-btn:hover {
    background: var(--black);
    color: var(--white);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--black);
}

.credentials-assets {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.image-frame {
    border: 6px solid var(--black);
    border-radius: 16px;
    padding: 15px;
    background: var(--white);
    box-shadow: 12px 12px 0 var(--black);
    display: flex;
    flex-direction: column;
}
.strategic-img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    border: 3px solid var(--black);
}
.img-caption {
    text-align: center;
    font-weight: 900;
    font-size: 0.95rem;
    margin-top: 10px;
    display: block;
}

/* === Footer === */
footer { 
    background: var(--white); 
    border-top: 8px solid var(--black); padding: 60px 5%; text-align: center;
    z-index: 3; position: relative; 
}
footer h2, footer p { color: var(--black); } 

.contact-buttons {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center;
    margin-top: 30px;
    gap: 20px; 
    position: relative;
    z-index: 4;
}
.contact-buttons .cow-btn {
    border-color: var(--black); 
}

/* === Guaranteed Organic SVG Spots === */
.moving-spot {
    position: absolute;
    pointer-events: none;
    z-index: 1; 
    transform-origin: center;
    animation: spot-drift 60s ease-in-out infinite alternate;
}

@keyframes spot-drift {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    33% { transform: translate(6vw, -5vh) rotate(8deg) scale(1.06); }
    66% { transform: translate(-5vw, 6vh) rotate(-8deg) scale(0.94); }
    100% { transform: translate(0, 0) rotate(0deg) scale(1); }
}

/* === Product Icon Animations === */
@keyframes pulse-smp {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.8; } 
    100% { transform: scale(1); opacity: 1; }
}
.icon-smp { animation: pulse-smp 1.5s ease-in-out infinite; } 

@keyframes sway-wmp {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); } 
    50% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
    100% { transform: rotate(0deg); }
}
.icon-wmp { animation: sway-wmp 2s ease-in-out infinite; transform-origin: top center; } 

@keyframes flow-whey {
    0% { transform: translateY(0); }
    50% { transform: translateY(-8px); } 
    100% { transform: translateY(0); }
}
.icon-whey { animation: flow-whey 2s ease-in-out infinite; } 

@keyframes rotate-wpc {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}
.icon-wpc { animation: rotate-wpc 2.5s linear infinite; } 

@keyframes float-mpc {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(15deg); } 
    100% { transform: translateY(0) rotate(0deg); }
}
.icon-mpc path, .icon-mpc circle { transform-origin: center; animation: float-mpc 2s ease-in-out infinite; } 

@keyframes glow-permeate {
    0% { fill: var(--white); }
    50% { fill: #aaaaaa; } 
    100% { fill: var(--white); }
}
.icon-permeate path { animation: glow-permeate 2s ease-in-out infinite; } 

/* Responsive Styles */
@media (max-width: 1024px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2rem; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .brands-grid { grid-template-columns: 1fr; }
    .credentials-container { grid-template-columns: 1fr; gap: 40px; }
    .credentials-text h2 { font-size: 2.2rem; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .product-grid { grid-template-columns: 1fr; }
    
    .hamburger { display: block; }
    
    .nav-links { 
        display: none; 
        position: absolute; 
        top: 100%; 
        left: 0; 
        width: 100%; 
        background: var(--black); 
        padding: 30px 20px; 
        flex-direction: column; 
        text-align: center; 
        border-bottom: 6px solid var(--white); 
        border-top: 2px solid rgba(255, 255, 255, 0.1);
        z-index: 1000;
        box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    }
    .nav-links.active { 
        display: flex; 
        animation: slideDown 0.3s ease-out forwards;
    }
    
    .nav-links li {
        width: 100%;
        margin: 10px 0;
    }
    .nav-links a {
        display: block;
        padding: 12px;
        font-size: 1.3rem;
        border-bottom: none;
    }
    .nav-links a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
    }
    
    .logo-text { font-size: 1.5rem; }
    .brands-gallery { grid-template-columns: 1fr; }
    .gallery-img { height: 200px; }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
    .hero-wrapper header { padding: 20px 3%; }
    .hero { padding: 40px 3% 20px 3%; }
    .cow-btn { padding: 12px 25px; font-size: 1rem; margin: 5px;}
    .contact-buttons { flex-direction: column; align-items: center; gap: 10px;}
    .css-logo-icon { width: 30px; height: 30px; margin-right: 10px;}
    .logo-text { font-size: 1.3rem; }
    .svg-icon-wrapper { width: 70px; height: 70px; } 
    .svg-icon-wrapper svg { width: 35px; height: 35px; }
    .lang-grid { grid-template-columns: repeat(2, 1fr); }
}