/* Sweet Pea & Poppy Cookie Co. - Main Stylesheet */
/* Inspired by Kaitlyn Casso design aesthetics */

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

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

:root {
    /* Color Palette - KC Inspired with SPP Brand Colors (Pink-leaning) */
    --primary-rose: #E4B5C7;        /* More pink-leaning dusty rose */
    --secondary-coral: #F4C2C2;     /* Your soft coral */
    --accent-gold: #D4AF37;         /* Your gold accent */
    --deep-rose: #D4A5A5;           /* Original dusty rose as deeper tone */
    --warm-neutral: #FDF9F8;        /* Warmer, pinker background */
    --soft-neutral: #F9F4F3;        /* Softer pink-neutral variant */
    --text-dark: #2C2C2C;           /* Softer black */
    --text-medium: #666666;         /* Medium gray */
    --text-light: #999999;          /* Light gray */
    --white: #FFFFFF;
    
    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing Scale */
    --space-xs: 0.5rem;    /* 8px */
    --space-sm: 1rem;      /* 16px */
    --space-md: 1.5rem;    /* 24px */
    --space-lg: 2rem;      /* 32px */
    --space-xl: 3rem;      /* 48px */
    --space-2xl: 4rem;     /* 64px */
    --space-3xl: 6rem;     /* 96px */
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-soft: 0 2px 20px rgba(0, 0, 0, 0.04);
    --shadow-medium: 0 4px 30px rgba(0, 0, 0, 0.08);
    --shadow-strong: 0 8px 40px rgba(0, 0, 0, 0.12);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Base Typography */
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: var(--space-md);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 400; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

/* Paragraphs */
p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-medium);
    margin-bottom: var(--space-md);
}

.text-large {
    font-size: 1.125rem;
    line-height: 1.6;
}

.text-small {
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Links */
a {
    color: var(--deep-rose);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--primary-rose);
}

/* Layout Components */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section {
    padding: var(--space-3xl) 0;
}

.section-sm {
    padding: var(--space-2xl) 0;
}

.section-lg {
    padding: calc(var(--space-3xl) * 1.5) 0;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 165, 165, 0.1);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) 0;
}

.logo {
    height: 90px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-xl);
    align-items: center;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-dark);
    transition: var(--transition-smooth);
    position: relative;
}

.nav-link:hover {
    color: var(--deep-rose);
}

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.btn-primary {
    background: var(--deep-rose);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-rose);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: transparent;
    color: var(--deep-rose);
    border: 2px solid var(--deep-rose);
}

.btn-secondary:hover {
    background: var(--deep-rose);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft);
}

.btn-light {
    background: var(--white);
    color: var(--deep-rose);
    box-shadow: var(--shadow-soft);
}

.btn-light:hover {
    background: var(--warm-neutral);
    color: var(--deep-rose);
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

.btn-lg {
    padding: var(--space-md) var(--space-xl);
    font-size: 1rem;
}

/* Special button variations - override inline styles on hover */
.btn[style*="rgba(255,255,255,0.2)"]:hover,
.btn[style*="background: rgba(255,255,255,0.2)"]:hover {
    background: rgba(255,255,255,0.4) !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft);
}

.btn[style*="background: white"]:hover {
    background: var(--warm-neutral) !important;
    color: var(--deep-rose) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--warm-neutral) 0%, var(--soft-neutral) 100%);
    padding-top: calc(80px + var(--space-3xl));
    padding-bottom: var(--space-3xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23D4A5A5" opacity="0.03"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: var(--space-md);
    font-style: italic;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    color: var(--text-medium);
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: var(--space-lg);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.card-image {
    aspect-ratio: 4/3;
    background: var(--warm-neutral);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.875rem;
    position: relative;
    overflow: hidden;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.card-text {
    margin-bottom: var(--space-lg);
}

/* Service Blocks (KC Style) */
.service-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    min-height: 500px;
    height: auto;
}

.service-content {
    padding: var(--space-3xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 500px;
    height: 100%;
}

.service-content.primary {
    background: var(--deep-rose);
    color: var(--white);
}

.service-content.secondary {
    background: var(--warm-neutral);
}

.service-content.accent {
    background: linear-gradient(135deg, var(--primary-rose), var(--deep-rose));
    color: var(--white);
}

.service-image {
    background: var(--soft-neutral);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 500px;
    border-radius: 0;
}

.service-image img {
    border-radius: 0;
}

.service-block:nth-child(even) .service-content {
    order: 2;
}

.service-block:nth-child(even) .service-image {
    order: 1;
}

/* Forms (KC Inspired) */
.form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.form-label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 500;
    color: var(--text-dark);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--space-md);
    border: 2px solid rgba(212, 165, 165, 0.2);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--white);
    transition: var(--transition-smooth);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-rose);
    box-shadow: 0 0 0 3px rgba(212, 165, 165, 0.1);
}

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

/* Contact Section Special Styling */
.contact-section {
    background: var(--deep-rose);
    color: var(--white);
}

.contact-section .form-input,
.contact-section .form-textarea,
.contact-section .form-select {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
    backdrop-filter: blur(10px);
}

.contact-section .form-input::placeholder,
.contact-section .form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.contact-section .form-input:focus,
.contact-section .form-textarea:focus {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    text-align: center;
    padding: var(--space-2xl) 0;
}

.footer-content {
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --space-lg: 1.5rem;
        --space-xl: 2rem;
        --space-2xl: 3rem;
        --space-3xl: 4rem;
    }
    
    .container,
    .container-wide {
        padding: 0 var(--space-md);
    }
    
    .nav {
        flex-direction: column;
        gap: var(--space-sm);
        padding: var(--space-sm) 0;
    }
    
    .logo {
        height: 60px; /* Reduce logo size on mobile */
    }
    
    .nav-menu {
        gap: var(--space-sm); /* Reduce gap from md to sm for more items */
        flex-wrap: wrap;
        justify-content: center;
        font-size: 0.85rem; /* Smaller text */
    }
    
    /* Mobile-specific seasonal navigation styling */
    .seasonal-nav-link .seasonal-link {
        font-size: 0.8rem !important; /* Smaller seasonal link on mobile */
        font-weight: 400 !important; /* Reduce weight on mobile */
        padding: 0 !important; /* Remove any extra padding */
    }
    
    .btn {
        padding: var(--space-xs) var(--space-md);
        font-size: 0.85rem;
    }
    
    .hero {
        padding-top: calc(180px + var(--space-lg));
        padding-bottom: calc(var(--space-2xl) + var(--space-lg));
        min-height: 100vh;
        min-height: 100dvh; /* Dynamic viewport height for mobile browsers */
        display: flex;
        align-items: center;
        text-align: center;
    }
    
    .hero-content {
        width: 100%;
    }
    
    /* Mobile-specific hero background adjustments */
    .hero[style*="background-image"] {
        background-size: 120% !important;
        background-position: center 40% !important;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .service-block {
        grid-template-columns: 1fr;
        max-height: none;
        min-height: auto;
    }
    
    .service-block:nth-child(even) .service-content,
    .service-block:nth-child(even) .service-image {
        order: initial;
    }
    
    .service-content {
        padding: var(--space-2xl) var(--space-lg);
        min-height: auto;
        height: auto;
    }
    
    .service-image {
        min-height: 300px;
        height: auto;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        gap: var(--space-md);
    }
    
    .service-content {
        padding: var(--space-xl) var(--space-md);
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-90 { opacity: 0.9; }