/*
Theme Name: Kellogg's
Theme URI: https://www.kelloggs.com
Author: Custom Theme Developer
Author URI: https://www.kelloggs.com
Description: A custom WordPress theme for Kellogg's with their branding
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kellogs
*/

:root {
    /* Kellogg's Brand Colors */
    --kellogs-red: #e31937;      /* Kellogg's signature red */
    --kellogs-blue: #0033a0;     /* Kellogg's blue */
    --kellogs-green: #00843d;    /* Kellogg's green */
    --kellogs-yellow: #ffc222;   /* Kellogg's yellow */
    --kellogs-light-gray: #f5f5f5;
    --kellogs-dark-gray: #333333;
    
    /* Fonts */
    --font-primary: 'Montserrat', Arial, sans-serif;
    --font-accent: 'Barley Script', cursive;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--kellogs-dark-gray);
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    line-height: 1.6;
    font-size: 16px;
}

a {
    color: var(--kellogs-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--kellogs-red);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    margin: 0 0 20px;
    color: var(--kellogs-dark-gray);
}

/* Apply Barley Script to specific elements */
.hero-section h1,
.section-title,
.product-info h3,
.cta-section h2 {
    font-family: var(--font-accent);
    font-weight: normal;
    letter-spacing: 0.5px;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

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

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

/* Header Styles */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-branding {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

/* Accessibility */
.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 !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

.skip-link {
    left: -9999rem;
    top: 2.5rem;
    z-index: 999999999;
    text-decoration: underline;
}

.skip-link:focus {
    display: block;
    left: 6px;
    top: 7px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    line-height: normal;
    padding: 15px 23px 14px;
    z-index: 100000;
    right: auto;
}

/* Navigation */
.main-navigation {
    font-family: 'Montserrat', Arial, sans-serif;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-navigation li {
    margin-left: 25px;
    position: relative;
}

.main-navigation a {
    color: var(--kellogs-dark-gray);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
    display: block;
    padding: 5px 0;
}

.main-navigation a:hover {
    color: var(--kellogs-red);
}

.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
    color: var(--kellogs-red);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.menu-icon {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--kellogs-dark-gray);
    position: relative;
    transition: background-color 0.3s ease;
}

.menu-icon:before,
.menu-icon:after {
    content: '';
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--kellogs-dark-gray);
    position: absolute;
    transition: all 0.3s ease;
}

.menu-icon:before {
    top: -8px;
}

.menu-icon:after {
    bottom: -8px;
}

/* Buttons */
.button {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--kellogs-red);
    color: #fff;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    font-size: 14px;
}

.button:hover {
    background-color: #c41630;
    color: #fff;
    transform: translateY(-2px);
}

.button.secondary {
    background-color: var(--kellogs-blue);
}

.button.secondary:hover {
    background-color: #002a80;
}

/* Homepage Styles */
.hero-section {
    background-color: var(--kellogs-light-gray);
    padding: 100px 0;
    text-align: center;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 56px;
    color: var(--kellogs-red);
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Products Section */
.products-section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
    font-size: 42px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--kellogs-red);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-gap: 30px;
}

.product-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.product-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 16/9;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    color: var(--kellogs-blue);
    margin-top: 0;
    font-size: 1.5rem;
}

.product-info p {
    margin-bottom: 20px;
}

/* About Section */
.about-section {
    padding: 80px 0;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

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

/* Nutrition Section */
.nutrition-section {
    padding: 80px 0;
}

.nutrition-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 40px;
    align-items: center;
}

.nutrition-text p {
    margin-bottom: 20px;
}

.nutrition-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* CTA Section */
.cta-section {
    padding: 60px 0;
    text-align: center;
}

.cta-section h2 {
    color: #fff;
    margin-bottom: 20px;
}

.cta-section p {
    max-width: 700px;
    margin: 0 auto 30px;
    color: #fff;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex-grow: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-family: 'Montserrat', Arial, sans-serif;
}

.newsletter-form button {
    border-radius: 0 4px 4px 0;
}

/* Campaigns Section Styles */
.campaigns-section {
    padding: 80px 0;
    background-color: var(--kellogs-light-gray);
}

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

.section-subtitle {
    font-size: 18px;
    color: var(--kellogs-dark-gray);
    max-width: 700px;
    margin: 0 auto;
}

.campaigns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-gap: 30px;
    margin-top: 40px;
}

.campaign-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.campaign-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.campaign-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.campaign-info {
    padding: 20px;
}

.campaign-info h3 {
    color: var(--kellogs-blue);
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.campaign-info p {
    margin-bottom: 20px;
    color: var(--kellogs-dark-gray);
}

.campaign-info .button {
    display: inline-block;
    background-color: var(--kellogs-red);
}

@media (max-width: 768px) {
    .campaigns-grid {
        grid-template-columns: 1fr;
    }
    
    .campaign-image img {
        height: 180px;
    }
}

/* Footer Styles */
.site-footer {
    background-color: var(--kellogs-dark-gray);
    color: #fff;
    padding: 60px 0 20px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-gap: 30px;
    margin-bottom: 40px;
}

.footer-widget h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget li {
    margin-bottom: 10px;
}

.footer-widget a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-widget a:hover {
    color: #fff;
}

.site-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
}

.footer-logo img {
    max-height: 40px;
}

.footer-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-navigation li {
    margin-left: 20px;
}

.footer-navigation a {
    color: #ccc;
    font-size: 14px;
}

.footer-navigation a:hover {
    color: #fff;
}

.copyright {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: #aaa;
}

/* Content Area Styles */
.site-main {
    padding: 40px 0;
}

.entry-header {
    margin-bottom: 30px;
}

.entry-title {
    margin-bottom: 10px;
}

.entry-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.entry-footer {
    margin-top: 30px;
    font-size: 14px;
    color: #666;
}

.cat-links,
.tags-links,
.comments-link {
    margin-right: 15px;
}

/* Widget Area Styles */
.widget-area {
    padding: 30px;
    background-color: var(--kellogs-light-gray);
    border-radius: 8px;
}

.widget {
    margin-bottom: 30px;
}

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

.widget-title {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

/* Blank Template Styles */
.blank-template {
    background-color: #fff;
}

.blank-template #primary {
    width: 100%;
    max-width: 100%;
    padding: 0;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-section {
        padding: 80px 0;
    }
    
    .hero-section h1 {
        font-size: 40px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .site-branding {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .menu-toggle {
        display: block;
        position: absolute;
        right: 15px;
        top: 25px;
    }
    
    .main-navigation ul {
        display: none;
    }
    
    .main-navigation.toggled ul {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    
    .main-navigation li {
        margin: 10px 0;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-section h1 {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .nutrition-content {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: 4px;
        margin-bottom: 10px;
    }
    
    .newsletter-form button {
        border-radius: 4px;
        width: 100%;
    }
    
    .site-info {
        flex-direction: column;
    }
    
    .footer-navigation {
        margin-top: 20px;
    }
    
    .footer-navigation ul {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 50px 0;
    }
    
    .hero-section h1 {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 24px;
    }
}