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

/* ==========================================================================
   CSS VARIABLES
   ========================================================================== */
:root {
    /* Color Palette */
    --bg-primary: #fff8fb;
    --bg-secondary: #fff1f6;
    --bg-card: rgba(255, 255, 255, 0.8);
    --accent-primary: #ff4fa3;
    --accent-secondary: #ff8ac9;
    --accent-third: #7dd87d;
    --text-primary: #2a2a2a;
    --text-secondary: #6b7280;
    
    /* Gradients & Shadows */
    --gradient-primary: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    --shadow-soft: 0 8px 32px rgba(255, 79, 163, 0.08);
    --shadow-hover: 0 15px 40px rgba(255, 79, 163, 0.15);
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    
    /* Layout */
    --container-max-width: 1400px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-pill: 50px;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================================================
   RESET & GLOBAL
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

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

/* ==========================================================================
   LAYOUT STRUCTURE
   ========================================================================== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Dynamic Vertical Spacing */
section {
    padding: 50px 0;
}
.section-header {
    text-align: center;
    margin-bottom: 40px;
}
.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}
.section-header p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    section { padding: 70px 0; }
    .section-header { margin-bottom: 50px; }
    .section-header h2 { font-size: 2.8rem; }
}

@media (min-width: 1024px) {
    section { padding: 100px 0; }
    .section-header { margin-bottom: 60px; }
}

/* Grids */
.grid {
    display: grid;
    gap: 30px;
}
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

@media (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
   COMPONENTS
   ========================================================================== */

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    text-align: center;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: var(--gradient-primary);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 79, 163, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 79, 163, 0.4);
    color: #ffffff;
}

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

.btn-outline:hover {
    background: var(--accent-primary);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 79, 163, 0.2);
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 248, 251, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 79, 163, 0.1);
    box-shadow: 0 4px 20px rgba(255, 79, 163, 0.05);
    padding: 15px 0;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-primary);
    position: relative;
    padding: 5px 0;
}

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

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

.nav-link:hover, .nav-link.active {
    color: var(--accent-primary);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
}
.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--accent-primary);
    border-radius: 3px;
    transition: var(--transition-smooth);
}

@media (max-width: 991px) {
    .menu-toggle {
        display: flex;
    }
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 30px 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: var(--transition-smooth);
        gap: 20px;
    }
    .nav-menu.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
}

/* Hero Section */
.hero {
    position: relative;
    padding: 120px 0 150px;
    background: url('images/photo-1563241527-3004b7be0ffd-hero.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 248, 251, 0.9), rgba(255, 241, 246, 0.7));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

@media (min-width: 768px) {
    .hero h1 { font-size: 4.5rem; }
}

/* Page Banner */
.page-banner {
    background: var(--bg-secondary);
    padding: 80px 0;
    text-align: center;
    border-bottom: 1px solid rgba(255, 79, 163, 0.1);
}
.page-banner h1 {
    font-size: 2.5rem;
    color: var(--accent-primary);
}

/* Product Cards (Featured Flowers) */
.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(8px);
    transition: var(--transition-smooth);
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-secondary);
}

.product-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.product-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.product-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 15px;
    flex-grow: 1;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 79, 163, 0.1);
}

.product-price {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.btn-add {
    background: var(--bg-secondary);
    color: var(--accent-primary);
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.btn-add:hover {
    background: var(--accent-primary);
    color: #fff;
}

/* Category Cards */
.categories-section {
    background: var(--bg-secondary);
}

.category-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 300px;
    display: block;
    box-shadow: var(--shadow-soft);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.category-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 50%);
}

.category-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 20px;
    z-index: 2;
    text-align: center;
}

.category-content h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.category-card:hover img {
    transform: scale(1.08);
}
.category-card:hover {
    box-shadow: 0 0 20px rgba(255, 79, 163, 0.4);
}

/* Why Choose Us (Features) */
.feature-card {
    text-align: center;
    padding: 40px 20px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-secondary);
    color: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

/* Testimonials */
.testimonials-section {
    background: var(--bg-secondary);
}

.testimonial-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    text-align: center;
    position: relative;
}

.stars {
    color: #ffb800;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.quote {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.customer-name {
    font-weight: 600;
    color: var(--text-primary);
}

/* About Section */
.about-grid {
    display: grid;
    gap: 50px;
    align-items: center;
}
@media (min-width: 992px) {
    .about-grid { grid-template-columns: 1fr 1fr; }
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--accent-primary);
}
.about-content p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.about-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}
.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contact Section */
.contact-wrap {
    display: grid;
    gap: 50px;
}
@media (min-width: 992px) {
    .contact-wrap { grid-template-columns: 1fr 1fr; }
}
.contact-info-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}
.contact-info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}
.contact-info-icon {
    color: var(--accent-primary);
    font-size: 1.5rem;
}
.contact-info-text h4 {
    margin-bottom: 5px;
}
.contact-form {
    background: #fff;
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}
.form-group {
    margin-bottom: 20px;
}
.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    background: #fafafa;
    transition: var(--transition-smooth);
}
.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 79, 163, 0.1);
}
textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* Content Pages (Terms, Privacy) */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 50px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}
.legal-content h2 {
    margin: 30px 0 15px;
    color: var(--accent-primary);
}
.legal-content p {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background: #ffffff;
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255, 79, 163, 0.1);
}
.footer-grid {
    display: grid;
    gap: 40px;
    margin-bottom: 50px;
}
@media (min-width: 768px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}
.footer-col p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: var(--text-secondary);
}
.footer-links a:hover {
    color: var(--accent-primary);
    padding-left: 5px;
}
.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #f3f4f6;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* UTILITIES */
.text-center { text-align: center; }