@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Outfit:wght@300;400;500;600&display=swap');

:root {
    /* Color Palette - Artisanal Bakery Theme */
    --primary: #8d6e63;
    --primary-dark: #5f4339;
    --accent: #d4a373;
    --accent-light: #faedcd;
    --text-main: #2d241e;
    --text-muted: #6d5d54;
    --bg-light: #fdfaf6;
    --bg-white: #ffffff;
    --bg-section: #faf7f2;
    --border-color: #eaddd3;
    
    /* Spacing & Sizing */
    --container-width: 1200px;
    --header-height: 90px;
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow-soft: 0 10px 30px rgba(141, 110, 99, 0.08);
    --shadow-hover: 0 20px 40px rgba(141, 110, 99, 0.15);
}

/* Base Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

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

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

.section-padding {
    padding: 8rem 0;
}

/* Typography Helpers */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary);
    color: var(--bg-white);
    font-weight: 600;
    border-radius: 4px;
    border: 2px solid var(--primary);
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--bg-white);
}

/* Header & Nav */
header {
    height: var(--header-height);
    background: rgba(253, 250, 246, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

nav.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary-dark);
    letter-spacing: -0.5px;
}

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

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
    position: relative;
}

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

.nav-links a:hover {
    color: var(--text-main);
}

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

/* Hero Section */
.hero {
    height: calc(100vh - var(--header-height));
    min-height: 700px;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('assets/hero.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    color: var(--bg-white);
    text-align: center;
}

.hero-content {
    max-width: 850px;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.hero-btns .btn-outline {
    border-color: var(--bg-white);
    color: var(--bg-white);
}

.hero-btns .btn-outline:hover {
    background: var(--bg-white);
    color: var(--primary-dark);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: var(--bg-white);
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition-smooth);
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Detail Section */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.detail-image img {
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.detail-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.detail-content p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.detail-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
}

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

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: 12px;
    height: 400px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-image img {
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

/* Process Section */
.process-section {
    background-color: var(--primary-dark);
    color: var(--bg-white);
}

.process-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.process-image img {
    border-radius: 20px;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.step {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.step-num {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent);
    opacity: 0.5;
    line-height: 1;
}

.step-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: rgba(255,255,255,0.7);
}

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

.testimonial-card {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    position: relative;
}

.testimonial-card i.fa-quote-left {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2rem;
    color: var(--accent-light);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    font-weight: 700;
    color: var(--primary);
    font-family: 'Playfair Display', serif;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.contact-info > p {
    margin-bottom: 3rem;
    color: var(--text-muted);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: var(--accent-light);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-item h4 {
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.contact-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.contact-form {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--bg-light);
    transition: var(--transition-smooth);
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-white);
    box-shadow: 0 0 0 4px rgba(212, 163, 115, 0.1);
}

.contact-form .btn {
    width: 100%;
}

/* Footer */
footer {
    background: var(--primary-dark);
    color: var(--bg-white);
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand h2 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.footer-brand p {
    color: rgba(255,255,255,0.6);
    line-height: 1.8;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
}

/* Reveal Animation */
.reveal {
    opacity: 1; /* Ensure visible initially */
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .section-header h2 { font-size: 2.5rem; }
    .hero h1 { font-size: 4rem; }
    .detail-grid, .about-grid, .process-grid, .contact-grid {
        gap: 3rem;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    .nav-links {
        display: none; /* In a real project, add a hamburger menu */
    }
    
    .section-padding { padding: 5rem 0; }
    
    .hero h1 { font-size: 3rem; }
    
    .detail-grid, .about-grid, .process-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-image, .about-image, .process-image {
        order: -1;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item { height: 300px; }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links ul {
        align-items: center;
    }
    
    .footer-links ul[style*="display: flex"] {
        justify-content: center;
    }
    
    .contact-form { padding: 2rem; }
}

/* Custom Micro-interactions */
.btn:active {
    transform: translateY(-1px);
}

::selection {
    background: var(--accent);
    color: var(--bg-white);
}
