/* ========================================
   JQ Kitchen Cabinet - Custom Styles
   ======================================== */

/* CSS Custom Properties */
:root {
    --plum-50: #faf5fa;
    --plum-100: #f3e8f3;
    --plum-200: #e8d0e8;
    --plum-300: #d4a8d4;
    --plum-400: #c07ec0;
    --plum-500: #a855a8;
    --plum-600: #7B2D8B;
    --plum-700: #6b2476;
    --plum-800: #5a1d63;
    --plum-900: #4a1650;
    
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-300: #fcd34d;
    --amber-400: #fbbf24;
    --amber-500: #f59E0B;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --amber-800: #92400e;
    --amber-900: #78350f;
    
    --neutral-50: #fafafa;
    --neutral-100: #f5f5f5;
    --neutral-200: #e5e5e5;
    --neutral-300: #d4d4d4;
    --neutral-400: #a3a3a3;
    --neutral-500: #737373;
    --neutral-600: #525252;
    --neutral-700: #404040;
    --neutral-800: #262626;
    --neutral-900: #171717;
    
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Nunito', 'Segoe UI', sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    
    --shadow-sm: 0 1px 3px rgba(123, 45, 139, 0.08);
    --shadow-md: 0 4px 16px rgba(123, 45, 139, 0.10);
    --shadow-lg: 0 8px 32px rgba(123, 45, 139, 0.12);
    --shadow-xl: 0 16px 48px rgba(123, 45, 139, 0.15);
}

/* 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(--neutral-800);
    background: var(--neutral-50);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--plum-600);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--plum-700);
}

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

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--plum-100);
    transition: box-shadow 0.3s ease;
}

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

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--plum-600);
    text-decoration: none;
}

.nav-logo:hover {
    color: var(--plum-700);
}

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

.nav-links a {
    color: var(--neutral-700);
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    text-decoration: none;
}

.nav-links a:hover {
    color: var(--plum-600);
    background: var(--plum-50);
}

.nav-cta {
    background: var(--plum-600) !important;
    color: white !important;
    border-radius: var(--radius-lg) !important;
    padding: 10px 20px !important;
    margin-left: 8px;
}

.nav-cta:hover {
    background: var(--plum-700) !important;
    color: white !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--plum-600);
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

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

/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, var(--plum-900) 0%, var(--plum-700) 50%, var(--plum-600) 100%);
    padding: 72px 24px 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    color: white;
}

.hero-badge {
    display: inline-block;
    background: rgba(245, 158, 11, 0.2);
    color: var(--amber-300);
    font-weight: 700;
    font-size: 0.875rem;
    padding: 6px 16px;
    border-radius: 50px;
    border: 1px solid rgba(245, 158, 11, 0.3);
    margin-bottom: 24px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 24px;
    color: white;
}

.hero p {
    font-size: 1.1875rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 36px;
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

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

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

.hero-image {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    width: 42%;
    max-width: 600px;
}

.hero-image img {
    width: 100%;
    height: 70vh;
    object-fit: cover;
    border-radius: var(--radius-xl) var(--radius-sm) var(--sm) var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 28px;
    border-radius: var(--radius-lg);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    line-height: 1;
}

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

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

.btn-secondary {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--plum-600);
    border-color: var(--plum-600);
}

.btn-outline:hover {
    background: var(--plum-600);
    color: white;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.0625rem;
}

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

/* ========================================
   Section Styles
   ======================================== */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 0.8125rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--plum-600);
    background: var(--plum-100);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-header p {
    font-size: 1.0625rem;
    color: var(--neutral-600);
    line-height: 1.7;
}

/* ========================================
   Services Section
   ======================================== */
.services {
    padding: 100px 24px;
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--neutral-50);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: all 0.3s ease;
    border: 1px solid var(--neutral-200);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--plum-200);
    background: white;
}

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--plum-600);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 20px;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.9375rem;
    color: var(--neutral-600);
    line-height: 1.7;
}

/* ========================================
   About Section
   ======================================== */
.about {
    padding: 100px 24px;
    background: var(--plum-50);
}

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

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.about-stats {
    position: absolute;
    bottom: -24px;
    right: -24px;
    display: flex;
    gap: 16px;
}

.stat {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px 28px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--plum-600);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--neutral-500);
    font-weight: 600;
}

.about-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 24px;
    line-height: 1.2;
}

.about-content p {
    font-size: 1.0625rem;
    color: var(--neutral-600);
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--neutral-700);
    font-size: 0.9375rem;
}

/* ========================================
   Gallery Section
   ======================================== */
.gallery {
    padding: 100px 24px;
    background: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:nth-child(2),
.gallery-item:nth-child(5) {
    grid-row: span 2;
}

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

/* ========================================
   Testimonials Section
   ======================================== */
.testimonials {
    padding: 100px 24px;
    background: var(--plum-600);
}

.testimonials .section-tag {
    background: rgba(255, 255, 255, 0.15);
    color: var(--amber-300);
}

.testimonials .section-header h2 {
    color: white;
}

.testimonials .section-header p {
    color: rgba(255, 255, 255, 0.8);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
}

.testimonial-quote {
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    background: var(--amber-500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.125rem;
    color: white;
}

.author-name {
    font-weight: 700;
    color: white;
    font-size: 0.9375rem;
}

.author-location {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   CTA Section
   ======================================== */
.cta {
    padding: 100px 24px;
    background: linear-gradient(135deg, var(--amber-500) 0%, var(--amber-600) 100%);
    text-align: center;
}

.cta-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 36px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

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

.cta .btn-primary:hover {
    background: var(--plum-50);
    border-color: var(--plum-50);
    color: var(--plum-700);
}

.cta .btn-outline {
    border-color: white;
    color: white;
}

.cta .btn-outline:hover {
    background: white;
    color: var(--plum-600);
}

/* ========================================
   Contact Section
   ======================================== */
.contact {
    padding: 100px 24px;
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.contact-info h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 16px;
    line-height: 1.2;
}

.contact-info > p {
    font-size: 1.0625rem;
    color: var(--neutral-600);
    margin-bottom: 40px;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}

.contact-item {
    display: flex;
    gap: 16px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--plum-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--plum-600);
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--neutral-500);
    margin-bottom: 4px;
}

.contact-item p,
.contact-item a {
    font-size: 1rem;
    color: var(--neutral-800);
    font-weight: 600;
    margin: 0;
}

.contact-item a:hover {
    color: var(--plum-600);
}

.contact-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.contact-form-wrapper {
    background: var(--neutral-50);
    border-radius: var(--radius-xl);
    padding: 40px;
    border: 1px solid var(--neutral-200);
}

.contact-form-wrapper h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 24px;
}

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

.form-group label {
    display: block;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--neutral-700);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--neutral-800);
    background: white;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--plum-400);
    box-shadow: 0 0 0 3px rgba(123, 45, 139, 0.1);
}

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

.form-success {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.form-success svg {
    margin: 0 auto 16px;
}

.form-success h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--plum-600);
    margin-bottom: 8px;
}

.form-success p {
    color: var(--neutral-600);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--neutral-900);
    padding: 64px 24px 32px;
    color: rgba(255, 255, 255, 0.7);
}

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

.footer-brand p {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.1rem;
    color: white;
    text-decoration: none;
}

.footer-logo:hover {
    color: white;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-heading);
    font-size: 1.0625rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a,
.footer-contact a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9375rem;
    transition: color 0.2s ease;
    text-decoration: none;
}

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

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

/* ========================================
   Scroll Reveal Animations
   ======================================== */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal {
    transform: translateY(24px);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .hero-image {
        width: 38%;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid .testimonial-card:last-child {
        grid-column: span 2;
        max-width: 50%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 24px;
        gap: 8px;
        border-bottom: 1px solid var(--plum-100);
        box-shadow: var(--shadow-md);
        transform: translateY(-120%);
        transition: transform 0.3s ease;
        z-index: 999;
    }
    
    .nav-links.active {
        transform: translateY(0);
    }
    
    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 12px 16px;
    }
    
    .nav-cta {
        margin-left: 0 !important;
        margin-top: 8px;
    }
    
    .hero {
        flex-direction: column;
        padding: 100px 24px 60px;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-trust {
        justify-content: center;
    }
    
    .hero-image {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 100%;
        max-width: 400px;
        margin-top: 40px;
    }
    
    .hero-image img {
        height: 400px;
        border-radius: var(--radius-xl);
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image img {
        height: 400px;
    }
    
    .about-stats {
        position: relative;
        bottom: auto;
        right: auto;
        justify-content: center;
        margin-top: 24px;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .gallery-item:nth-child(2),
    .gallery-item:nth-child(5) {
        grid-row: span 1;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid .testimonial-card:last-child {
        grid-column: span 1;
        max-width: 100%;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .contact-form-wrapper {
        padding: 24px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
