/* ===== Base Styles & Variables ===== */
:root {
    --primary-color: #996550;
    --secondary-color: #5d4037;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --brown-dark: #5d4037;
    --brown-light: #A0522D;
    --beige: #f5f5dc;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* ===== Typography ===== */
@font-face {
    font-family: 'Lato';
    src: local('Lato'), local('Lato-Regular');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Lato';
    src: local('Lato Light'), local('Lato-Light');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Lato';
    src: local('Lato Bold'), local('Lato-Bold');
    font-weight: 700;
    font-style: normal;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    font-weight: 400;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Futura', 'Titillium Web', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ===== Utility Classes ===== */
.section-title {
    color: var(--brown-dark);
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 2rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
    text-align: center;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.h1-lg { 
    font-size: 2.5rem; 
}

.object-cover {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* ===== Navigation ===== */
.navbar {
    padding: 0;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem 0.75rem;
    margin: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.15rem rgba(255, 255, 255, 0.25);
}

.navbar-nav {
    align-items: center;
}

.nav-link {
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
    margin: 0.25rem 0;
}

.nav-link:hover,
.nav-link:focus {
    background-color: rgba(255, 255, 255, 0.1);
}

.bg-brown-grad {
    background: linear-gradient(135deg, var(--primary-color), var(--brown-light)) !important;
    color: var(--white) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: var(--box-shadow);
}

.bg-brown-grad h4,
.bg-brown-grad p,
.bg-brown-grad a,
.nav a {
    color: var(--white) !important;
    text-decoration: none;
}

/* ===== Hero Section ===== */
.hero-section {
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    padding: 3rem 0 6rem;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.banner-box {
    max-width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    backdrop-filter: blur(4px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 1.5rem;
    margin: 0 1rem;
}

.banner-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.banner-img {
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.banner-img:hover {
    transform: scale(1.03);
}

/* ===== Featured Section ===== */
.featured-section {
    position: relative;
    overflow: hidden;
    background-image: url('../img/sweet-crumbs/texture-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 80px 0;
}

.feature-img-container {
    height: 200px;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-img-container img {
    transition: transform 0.5s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-img-container:hover img {
    transform: scale(1.05);
}

@media (min-width: 776px) {
    .feature-card {
        min-height: 410px;
    }
}

.feature-card {
    background-color: var(--beige);
    border-radius: 8px;
    padding: 1.5rem;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* ===== Awards Section ===== */
.awards-section {
    position: relative;
    overflow: hidden;
    background-color: var(--primary-color);
    padding: 60px 0;
}

.award-icon {
    min-width: 100px;
    text-align: center;
    margin-bottom: 1rem;
}

.award-img {
    max-height: 125px;
}

.award-box {
    background-color: var(--beige);
    border-radius: 8px;
    padding: 1.5rem;
    height: 100%;
    box-shadow: none;
}

.award-box h4 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

/* ===== Cookie Cards ===== */
.cookie-card {
    background-color: var(--beige);
    border-radius: 8px;
    padding: 1.5rem;
    height: 100%;
    text-align: center;
}

.cookie-card h4 {
    color: var(--brown-dark);
    margin: 1rem 0 0.75rem;
}

.cookie-card p {
    color: var(--brown-dark);
    margin-bottom: 0;
}

.cookie-img-container {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
}

.cookie-img-container img {
    max-height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* ===== Buttons ===== */
.btn {
    background-color: #8B4513;
    color: white;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    transition: var(--transition);
}

.btn:hover,
.btn-primary:hover {
    background-color: var(--brown-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    cursor: pointer;
}

.btn:active,
.btn-primary:active {
    transform: translateY(0);
}

/* ===== Footer ===== */
.footer {
    background: url('../img/sweet-crumbs/footer-bg.jpg') no-repeat center center;
    background-size: cover;
    color: var(--white);
    padding: 3rem 0;
}

.footer h3 {
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer p {
    margin-bottom: 0.5rem;
}

.footer-logo {
    max-height: 250px;
    width: auto;
    margin-bottom: 2rem;
}

/* ===== Responsive Adjustments ===== */
/* Large desktops */
@media (min-width: 1200px) {
    .cookie-sticky {
        margin-right: -20%;
    }
}

/* Desktops */
@media (max-width: 1399.98px) {
    html {
        font-size: 15px;
    }
}

/* Laptops */
@media (max-width: 1199.98px) {
    .hero-section {
        min-height: auto;
        padding: 5rem 0 8rem;
    }
}

/* Tablets */
@media (max-width: 991.98px) {
    html {
        font-size: 14.5px;
    }
    
    .h1-lg { 
        font-size: 2.25rem; 
    }
    
    .baker-img, 
    .cookie-sticky {
        max-height: 350px;
        margin: 0 auto 2rem;
    }
    
    .navbar-collapse {
        background-color: var(--primary-color);
        margin-top: 0.5rem;
        border-radius: 0.25rem;
        padding: 0.5rem;
    }
    
    .feature-img-container {
        height: 180px;
    }
}

/* Mobile */
@media (max-width: 767.98px) {
    html {
        font-size: 14px;
    }
    
    .h1-lg { 
        font-size: 2rem; 
    }
    
    .section-title { 
        font-size: 1.75rem; 
    }
    
    .hero-section {
        padding: 5rem 0;
        background-attachment: scroll;
    }
    
    .feature-img-container {
        height: 160px;
    }
}

.footer-logo {
    margin-bottom: 0.5rem;
    max-height: 250px;
    width: auto;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .footer-logo {
        margin-bottom: 2rem;
    }
    
    .hero-section {
        min-height: auto;
        padding: 4rem 0;
    }
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    background-color: #A0522D !important;
    cursor: pointer;
}
.btn-primary:active {
    transform: translateY(0);
}