/* ===================================
   FLOUR BOWL LLC - Custom Styles
   =================================== */

/* CSS Variables - Warm Bakery Color Palette */
:root {
    --primary-brown: #8B4513;
    --warm-brown: #A0522D;
    --light-brown: #D2691E;
    --cream: #FFF8DC;
    --soft-cream: #FFFAEF;
    --peach: #FFE5CC;
    --soft-red: #C85A54;
    --coral: #E57368;
    --pastel-pink: #F5E6E8;
    --warm-gray: #6B5D5D;
    --dark-brown: #5C3317;
    --white: #FFFFFF;
    --off-white: #FAF9F6;
    --shadow: rgba(139, 69, 19, 0.1);
    --shadow-hover: rgba(139, 69, 19, 0.2);

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--warm-gray);
    line-height: 1.6;
    background-color: var(--off-white);
    overflow-x: hidden;
}

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

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--dark-brown);
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 24px;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 16px;
}

p {
    margin-bottom: 16px;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ===================================
   NAVIGATION
   =================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--white) 0%, var(--cream) 100%);
    box-shadow: 0 2px 20px var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: var(--white);
    box-shadow: 0 4px 30px var(--shadow);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    gap: 8px;
}

.logo-flour {
    color: var(--primary-brown);
}

.logo-bowl {
    color: var(--soft-red);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--warm-gray);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--soft-red);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--soft-red);
}

.nav-link-cta {
    background: linear-gradient(135deg, var(--soft-red) 0%, var(--coral) 100%);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(200, 90, 84, 0.3);
}

.nav-link-cta::after {
    display: none;
}

.nav-link-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 90, 84, 0.4);
    color: var(--white);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.nav-toggle span {
    width: 28px;
    height: 3px;
    background: var(--primary-brown);
    border-radius: 3px;
    transition: var(--transition);
}

/* ===================================
   FLASH MESSAGES
   =================================== */

.flash-container {
    position: fixed;
    top: 90px;
    right: 24px;
    z-index: 9999;
    max-width: 400px;
}

.flash-message {
    padding: 16px 48px 16px 20px;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 4px 20px var(--shadow);
    animation: slideIn 0.3s ease-out;
    position: relative;
    font-weight: 500;
}

.flash-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: var(--white);
}

.flash-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: var(--white);
}

.flash-close {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: inherit;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.8;
    transition: var(--transition);
}

.flash-close:hover {
    opacity: 1;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ===================================
   BUTTONS
   =================================== */

.btn {
    display: inline-block;
    padding: 16px 40px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.05rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--soft-red) 0%, var(--coral) 100%);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(200, 90, 84, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(200, 90, 84, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--primary-brown) 0%, var(--warm-brown) 100%);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(139, 69, 19, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary-brown);
    border: 2px solid var(--primary-brown);
}

.btn-outline:hover {
    background: var(--primary-brown);
    color: var(--white);
    transform: translateY(-3px);
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--cream) 0%, var(--peach) 100%);
    padding-top: 80px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    animation: fadeInLeft 0.8s ease-out;
}

.hero-subtitle {
    color: var(--soft-red);
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-title {
    color: var(--dark-brown);
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--warm-gray);
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    animation: fadeInRight 0.8s ease-out;
}

.hero-image img {
    border-radius: 30px;
    box-shadow: 0 20px 60px var(--shadow-hover);
    width: 100%;
    object-fit: cover;
}

.hero-decoration {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--peach) 0%, var(--pastel-pink) 100%);
    z-index: -1;
    opacity: 0.5;
    filter: blur(80px);
}

.hero-decoration-1 {
    top: 10%;
    right: -100px;
}

.hero-decoration-2 {
    bottom: 10%;
    left: -100px;
}

/* ===================================
   SECTIONS
   =================================== */

section {
    padding: 100px 0;
}

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

.section-subtitle {
    color: var(--soft-red);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.section-title {
    color: var(--dark-brown);
    margin-bottom: 20px;
}

.section-description {
    font-size: 1.15rem;
    color: var(--warm-gray);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ===================================
   CARDS
   =================================== */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px var(--shadow-hover);
}

.card-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--soft-red) 0%, var(--coral) 100%);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.card-content {
    padding: 32px;
}

.card-title {
    color: var(--dark-brown);
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.card-text {
    color: var(--warm-gray);
    margin-bottom: 24px;
    line-height: 1.7;
}

.card-link {
    color: var(--soft-red);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.card-link:hover {
    gap: 12px;
}

/* ===================================
   FEATURES
   =================================== */

.features {
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.feature-item {
    text-align: center;
    padding: 40px 24px;
    background: var(--soft-cream);
    border-radius: 20px;
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-8px);
    background: linear-gradient(135deg, var(--cream) 0%, var(--peach) 100%);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--soft-red) 0%, var(--coral) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--white);
    box-shadow: 0 10px 30px rgba(200, 90, 84, 0.3);
}

.feature-title {
    color: var(--dark-brown);
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.feature-text {
    color: var(--warm-gray);
    line-height: 1.7;
}

/* ===================================
   FORMS
   =================================== */

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-brown);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--cream);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--soft-red);
    box-shadow: 0 0 0 4px rgba(200, 90, 84, 0.1);
}

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

/* ===================================
   FAQ ACCORDION
   =================================== */

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: 16px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow);
}

.faq-question {
    width: 100%;
    padding: 24px 28px;
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-brown);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--soft-red);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-content {
    padding: 0 28px 24px 28px;
    color: var(--warm-gray);
    line-height: 1.8;
}

/* ===================================
   FOOTER
   =================================== */

.footer {
    background: linear-gradient(135deg, var(--dark-brown) 0%, var(--primary-brown) 100%);
    color: var(--cream);
    padding: 80px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.footer-logo .logo-flour {
    color: var(--cream);
}

.footer-logo .logo-bowl {
    color: var(--coral);
}

.footer-description {
    color: var(--cream);
    opacity: 0.9;
    line-height: 1.7;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--soft-red);
    transform: translateY(-4px);
}

.footer-title {
    color: var(--cream);
    font-size: 1.2rem;
    margin-bottom: 24px;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: var(--cream);
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--coral);
    padding-left: 8px;
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--cream);
    opacity: 0.9;
}

.footer-contact svg {
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 32px 0;
    text-align: center;
    color: var(--cream);
    opacity: 0.8;
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: 0 10px 30px var(--shadow);
        padding: 40px 0;
        gap: 24px;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-image {
        order: -1;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    .hero {
        padding-top: 100px;
        min-height: auto;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .btn {
        padding: 14px 32px;
        font-size: 1rem;
    }

    .container {
        padding: 0 16px;
    }
}
