/* ========================================
   Factory Direct Furniture & Mattress
   Custom Styles
======================================== */

/* CSS Custom Properties */
:root {
    --color-emerald-50: #ecfdf5;
    --color-emerald-100: #d1fae5;
    --color-emerald-200: #a7f3d0;
    --color-emerald-300: #6ee7b7;
    --color-emerald-400: #34d399;
    --color-emerald-500: #10b981;
    --color-emerald-600: #059669;
    --color-emerald-700: #047857;
    --color-emerald-800: #065f46;
    --color-emerald-900: #064e3b;
    --color-emerald-950: #022c22;

    --color-cream-50: #fefce8;
    --color-cream-100: #fef9c3;
    --color-cream-200: #fef08a;
    --color-cream-300: #fde047;
    --color-cream-400: #facc15;
    --color-cream-500: #eab308;
    --color-cream-600: #ca8a04;
    --color-cream-700: #a16207;
    --color-cream-800: #854d0e;
    --color-cream-900: #713f12;

    --color-white: #ffffff;
    --color-black: #0a0a0a;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

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

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

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

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

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

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

ul {
    list-style: none;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-gray-900);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--color-emerald-600);
    color: var(--color-white);
    border-color: var(--color-emerald-600);
}

.btn-primary:hover {
    background-color: var(--color-emerald-700);
    border-color: var(--color-emerald-700);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-light {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-outline-light:hover {
    background-color: var(--color-white);
    color: var(--color-emerald-800);
    transform: translateY(-2px);
}

.btn-light {
    background-color: var(--color-white);
    color: var(--color-emerald-700);
    border-color: var(--color-white);
}

.btn-light:hover {
    background-color: var(--color-emerald-50);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Section Styles */
.section {
    padding: 6rem 0;
}

.section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-emerald-600);
    background: var(--color-emerald-50);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    color: var(--color-gray-900);
}

.text-accent {
    color: var(--color-emerald-600);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-gray-600);
    max-width: 600px;
    line-height: 1.7;
}

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

/* ========================================
   Navigation
======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-gray-100);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-emerald-800);
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--color-emerald-600);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-gray-700);
}

.nav-links a:hover {
    color: var(--color-emerald-600);
}

.nav-links .btn {
    padding: 0.6rem 1.25rem;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-gray-700);
    transition: var(--transition);
    border-radius: 2px;
}

/* ========================================
   Hero Section
======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--color-emerald-900);
    overflow: hidden;
    padding-top: 72px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(2, 44, 34, 0.92) 0%,
        rgba(4, 120, 87, 0.85) 50%,
        rgba(5, 150, 105, 0.75) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 4rem 0;
    max-width: 720px;
}

.hero-badge {
    display: inline-block;
    background: var(--color-cream-400);
    color: var(--color-emerald-950);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--color-white);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-title .text-accent {
    color: var(--color-cream-300);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 560px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
}

.trust-item svg {
    color: var(--color-cream-400);
}

/* Geometric Shapes */
.geo-shape {
    position: absolute;
    z-index: 1;
    opacity: 0.15;
    pointer-events: none;
}

.geo-circle-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: var(--color-cream-400);
    top: -100px;
    right: -100px;
}

.geo-circle-2 {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: var(--color-emerald-400);
    bottom: 10%;
    right: 15%;
}

.geo-square {
    width: 150px;
    height: 150px;
    background: var(--color-cream-300);
    bottom: 15%;
    left: 5%;
    transform: rotate(45deg);
}

/* ========================================
   About Section
======================================== */
.about {
    background: var(--color-cream-50);
}

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

.about-images {
    position: relative;
}

.about-img-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-img-main img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.about-img-secondary {
    position: absolute;
    bottom: -40px;
    right: -30px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 4px solid var(--color-cream-50);
}

.about-img-secondary img {
    width: 220px;
    height: 280px;
    object-fit: cover;
}

.about-badge {
    position: absolute;
    top: -20px;
    right: 40px;
    background: var(--color-emerald-600);
    color: var(--color-white);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.about-badge .badge-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    line-height: 1;
}

.about-badge .badge-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

.about-content .section-title {
    margin-top: 0.5rem;
}

.about-text {
    color: var(--color-gray-600);
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--color-emerald-100);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-emerald-700);
}

.feature-item h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--color-gray-500);
    line-height: 1.6;
}

/* ========================================
   Collection Section
======================================== */
.collection {
    background: var(--color-white);
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.collection-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: block;
    min-height: 420px;
}

.card-bg {
    position: absolute;
    inset: 0;
}

.card-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.collection-card:hover .card-bg img {
    transform: scale(1.08);
}

.card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
}

.card-tag {
    display: inline-block;
    background: var(--color-emerald-500);
    color: var(--color-white);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    margin-bottom: 0.75rem;
    width: fit-content;
}

.card-content h3 {
    color: var(--color-white);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.card-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.card-arrow {
    display: inline-flex;
    width: 40px;
    height: 40px;
    background: var(--color-emerald-500);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    transition: var(--transition);
}

.collection-card:hover .card-arrow {
    background: var(--color-cream-400);
    color: var(--color-emerald-950);
    transform: translateX(4px);
}

/* ========================================
   Why Us Section
======================================== */
.why-us {
    background: var(--color-emerald-900);
    position: relative;
    overflow: hidden;
}

.why-us::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: var(--color-emerald-800);
    top: -200px;
    right: -200px;
    opacity: 0.5;
}

.why-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

.why-us-content .section-label {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-cream-300);
}

.why-us-content .section-title {
    color: var(--color-white);
}

.why-us-content .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.why-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.why-feature {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.why-feature-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--color-emerald-600);
    line-height: 1;
    min-width: 60px;
}

.why-feature-content h3 {
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 0.4rem;
}

.why-feature-content p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ========================================
   CTA Section
======================================== */
.cta-section {
    background: var(--color-cream-100);
}

.cta-box {
    position: relative;
    background: var(--color-emerald-600);
    border-radius: var(--radius-xl);
    padding: 4rem;
    overflow: hidden;
}

.cta-shape-1 {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--color-emerald-500);
    top: -100px;
    left: -100px;
    opacity: 0.5;
}

.cta-shape-2 {
    position: absolute;
    width: 200px;
    height: 200px;
    background: var(--color-cream-400);
    bottom: -60px;
    right: -60px;
    border-radius: 50%;
    opacity: 0.3;
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: var(--color-white);
    margin-bottom: 1rem;
}

.cta-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.cta-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ========================================
   Contact Section
======================================== */
.contact {
    background: var(--color-gray-50);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-text {
    color: var(--color-gray-600);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

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

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    background: var(--color-emerald-100);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-emerald-700);
}

.contact-item h4 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-gray-500);
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: var(--color-gray-800);
    font-size: 1rem;
    line-height: 1.6;
}

.contact-item a {
    color: var(--color-emerald-700);
    font-weight: 500;
}

.contact-item a:hover {
    color: var(--color-emerald-500);
    text-decoration: underline;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.form-note {
    color: var(--color-gray-500);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-gray-700);
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--color-gray-200);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-gray-800);
    transition: var(--transition);
    background: var(--color-gray-50);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-emerald-500);
    background: var(--color-white);
    box-shadow: 0 0 0 3px var(--color-emerald-100);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-gray-400);
}

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

.form-success {
    display: none;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--color-emerald-50);
    border: 2px solid var(--color-emerald-200);
    border-radius: var(--radius-sm);
    color: var(--color-emerald-800);
    font-weight: 500;
    margin-top: 1rem;
}

.form-success svg {
    color: var(--color-emerald-600);
    min-width: 24px;
}

/* ========================================
   Map Section
======================================== */
.map-section {
    background: var(--color-gray-200);
}

.map-section iframe {
    display: block;
    width: 100%;
}

/* ========================================
   Footer
======================================== */
.footer {
    background: var(--color-gray-900);
    color: var(--color-gray-400);
    padding: 4rem 0 2rem;
}

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

.logo-light {
    color: var(--color-white);
    margin-bottom: 1rem;
}

.footer-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-white);
    margin-bottom: 1rem;
}

.footer-links ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-links a,
.footer-contact a {
    color: var(--color-gray-400);
    font-size: 0.95rem;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--color-emerald-400);
}

.footer-bottom {
    border-top: 1px solid var(--color-gray-800);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--color-gray-500);
}

/* ========================================
   Mobile Menu
======================================== */
.nav-links {
    display: flex;
}

.mobile-menu-btn {
    display: none;
}

/* ========================================
   Responsive
======================================== */
@media (max-width: 1024px) {
    .about-grid,
    .why-us-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-img-secondary {
        right: 0;
    }

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

    .collection-card:last-child {
        grid-column: span 2;
        min-height: 300px;
    }
}

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

    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--color-gray-100);
        box-shadow: var(--shadow-lg);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 999;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        min-height: auto;
        padding: 8rem 0 4rem;
    }

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

    .hero-actions .btn {
        justify-content: center;
    }

    .hero-trust {
        flex-direction: column;
        gap: 0.75rem;
    }

    .geo-circle-1,
    .geo-circle-2,
    .geo-square {
        display: none;
    }

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

    .collection-card {
        min-height: 320px;
    }

    .collection-card:last-child {
        grid-column: span 1;
    }

    .why-feature-number {
        font-size: 1.75rem;
    }

    .cta-box {
        padding: 2.5rem 1.5rem;
    }

    .cta-actions {
        flex-direction: column;
    }

    .cta-actions .btn {
        justify-content: center;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-img-secondary {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 1rem;
    }

    .about-img-main img {
        height: 300px;
    }
}

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

    .hero-title {
        font-size: 2.25rem;
    }

    .section-title {
        font-size: 1.75rem;
    }
}
