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

html {
    scroll-behavior: smooth;
}

:root {
    --primary-color: #795548;    /* Warm brown */
    --secondary-color: #8D6E63;  /* Light brown */
    --accent-color: #FFAB91;     /* Soft coral */
    --text-color: #333;          /* Dark blue-grey */
    --light-bg: #FFF3E0;        /* Cream */
    --white: #ffffff;
    --max-width: 1200px;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
}

h1 {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

h2:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--accent-color);
    margin: 20px auto 0;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
    padding: 0.5rem 0;
    z-index: 1001;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.logo:hover::after {
    width: 100%;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

.hamburger.active span:first-child {
    transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    height: auto;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                url('../images/bread-8503298_1280.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 120px 20px 60px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, 
                rgba(0, 0, 0, 0.2) 0%,
                rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    animation: fadeIn 1s ease-out;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--white);
}

.hero p {
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
    line-height: 1.4;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    animation: slideUp 1s ease-out 0.4s;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* Buttons */
.cta-button {
    display: inline-block;
    padding: 1.2rem 2.8rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-primary {
    background: var(--accent-color);
    color: var(--text-color);
    border: 2px solid var(--accent-color);
}

.cta-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cta-primary:hover {
    background: var(--white);
    border-color: var(--white);
}

.cta-secondary:hover {
    background: var(--white);
    color: var(--text-color);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: var(--text-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* Media Queries */
@media (max-width: 992px) {
    .container {
        padding: 0 15px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .contact-info {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    /* Prevent horizontal scroll */
    html, body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }

    /* Navigation fixes */
    .navbar {
        padding: 0.8rem 1rem;
        width: 100%;
    }

    .hamburger {
        display: flex;
        margin-right: 0;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        padding: 80px 2rem;
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        font-size: 1.4rem;
        padding: 1rem;
        color: var(--primary-color);
        width: 100%;
    }

    .logo {
        font-size: 1.8rem;
    }

    .hero {
        padding-top: 80px;
        background-attachment: scroll;
    }

    .hero-content {
        padding: 1.5rem;
    }

    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-button {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .footer {
        padding: 2rem 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 0 1rem;
    }

    .footer-info,
    .footer-links,
    .image-credits {
        width: 100%;
        padding: 0;
        margin-bottom: 2rem;
    }

    .footer-info h3,
    .footer-links h3,
    .image-credits h3 {
        margin-bottom: 1.5rem;
        text-align: center;
    }

    .footer-links ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    .footer-links a {
        display: inline-block;
        padding: 0.5rem 0;
        color: var(--text-color);
        text-decoration: none;
    }

    .credit-list {
        text-align: center;
        margin-top: 1rem;
    }

    .credit-list ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    .credit-list li {
        text-align: center;
        margin-bottom: 0.5rem;
    }

    .footer-bottom {
        text-align: center;
        padding: 1rem;
    }

    .footer-credits {
        text-align: center;
    }

    .footer-credits p {
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
    }

    /* Container padding fix for mobile */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
        width: 100%;
        overflow: hidden;
    }

    /* Ensure all sections don't cause horizontal scroll */
    .hero,
    .about,
    .products,
    .classes,
    .contact {
        width: 100%;
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.8rem 0;
    }

    .logo {
        font-size: 1.8rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-content {
        padding: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-button {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .about,
    .products,
    .classes,
    .contact {
        padding: 3rem 0;
    }

    .contact-item {
        padding: 1.5rem;
    }

    .footer {
        padding: 2rem 1rem;
    }

    .footer-content {
        gap: 1.5rem;
    }

    .footer-info h3,
    .footer-links h3,
    .image-credits h3 {
        font-size: 1.3rem;
    }

    .footer-info p,
    .footer-links a,
    .credit-list li {
        font-size: 0.9rem;
    }

    .footer-bottom {
        margin-top: 2rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .about-content {
        gap: 1.5rem;
    }

    .about-image {
        margin-bottom: 0.5rem;
    }

    .about-text {
        padding: 0;
    }
}

/* Focus Styles */
a:focus,
button:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* About Section */
.about {
    padding: 5rem 0;
    background: var(--light-bg);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
}

.about-image {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-text {
    width: 100%;
    text-align: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .about {
        padding: 3rem 0;
    }

    .about-content {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        width: 100%;
    }

    .about-image {
        width: 100%;
        max-width: none;
        margin: 0;
        order: -1; /* Ensures image is always at the top */
    }

    .about-text {
        width: 100%;
        padding: 0 1rem;
        text-align: left;
    }

    .about-text p {
        font-size: 1rem;
        margin-bottom: 1rem;
        text-align: left;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .about-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 4rem;
    }

    .about-image {
        flex: 0 0 45%;
        max-width: 45%;
        order: 0; /* Reset order for desktop */
    }

    .about-text {
        flex: 0 0 45%;
        text-align: left;
        padding: 0;
    }
}

/* Products Section */
.products {
    padding: 6rem 0;
    background: var(--white);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.product-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-image {
    height: 250px;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-info {
    padding: 1.5rem;
    text-align: center;
}

.product-card h3 {
    margin-bottom: 0.5rem;
}

.product-card p {
    color: var(--text-color);
    font-size: 1rem;
}

/* CTA Containers */
.product-cta,
.class-cta,
.contact-cta {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem 0;
}

.product-cta {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
}

.class-cta {
    margin-top: 3rem;
}

.contact-cta {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

/* Classes Section */
.classes {
    padding: 6rem 0;
    background: var(--light-bg);
}

.class-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.class-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.class-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.class-info h3 {
    margin-bottom: 1.5rem;
}

.class-features {
    list-style: none;
    margin: 2rem 0;
}

.class-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

.class-features i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-item i {
    font-size: 1.5em;
    color: #795548;
}

.contact-item h4 {
    margin: 0 0 5px 0;
    color: #795548;
}

.contact-item p {
    margin: 0;
    line-height: 1.5;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    width: 100%;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.contact-form button {
    background-color: #795548;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    background-color: #8D6E63;
    transform: translateY(-2px);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    color: #795548;
    font-size: 1.5em;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #8D6E63;
}

/* Footer */
.footer {
    background-color: #795548;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-info h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2em;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-links h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2em;
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: #FFAB91;
    transform: translateX(5px);
}

.footer-links i {
    font-size: 0.9em;
    color: #FFAB91;
}

.footer-contact h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2em;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    color: #FFAB91;
    font-size: 1.1em;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-credits {
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.footer-credits a {
    color: #FFAB91;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-credits a:hover {
    color: white;
}

.image-credits {
    font-size: 0.85em;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

.image-credits h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2em;
}

.credit-list p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
}

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

.credit-list li {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
    line-height: 1.6;
}

.credit-list a {
    color: #FFAB91;
    text-decoration: none;
    transition: color 0.3s ease;
}

.credit-list a:hover {
    color: white;
}

.additional-credits {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.additional-credits strong {
    color: white;
}

.additional-credits a {
    color: #FFAB91;
    text-decoration: none;
    transition: color 0.3s ease;
}

.additional-credits a:hover {
    color: white;
}

.pixabay-credit {
    margin-top: 15px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px;
    z-index: 100;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

.noscript-warning {
    background: #795548;
    color: white;
    text-align: center;
    padding: 10px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* WhatsApp Button */
.whatsapp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #25D366;
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin: 15px 0;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.whatsapp-button:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
}

.whatsapp-button i {
    font-size: 1.3rem;
}

.whatsapp-button.outline {
    background-color: transparent;
    border: 2px solid #25D366;
    color: #25D366;
}

.whatsapp-button.outline:hover {
    background-color: #25D366;
    color: white;
}

.whatsapp-button.small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.whatsapp-button.small i {
    font-size: 1.1rem;
} 