/* ============================================
   IV Flooring Inc — Editorial Bold Style
   Burgundy + Blush Palette
   ============================================ */

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

:root {
    --burgundy: #6B1B2A;
    --burgundy-dark: #4A1220;
    --burgundy-light: #8B2E40;
    --blush: #F5E6D3;
    --blush-light: #FBF5EE;
    --blush-dark: #E8D5C0;
    --cream: #FFFDF9;
    --charcoal: #1A1A1A;
    --warm-gray: #3D3D3D;
    --medium-gray: #6B6B6B;
    --light-gray: #9A9A9A;
    --off-white: #F8F4EF;
    
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --nav-height: 80px;
    --container-max: 1280px;
    --section-padding: clamp(80px, 12vw, 140px);
    
    --shadow-sm: 0 2px 8px rgba(107, 27, 42, 0.06);
    --shadow-md: 0 8px 30px rgba(107, 27, 42, 0.1);
    --shadow-lg: 0 20px 60px rgba(107, 27, 42, 0.12);
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-sans);
    color: var(--charcoal);
    background: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 48px);
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--burgundy);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    color: var(--charcoal);
    margin-bottom: 24px;
}

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

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--burgundy);
    color: #fff;
    border-color: var(--burgundy);
}

.btn-primary:hover {
    background: var(--burgundy-dark);
    border-color: var(--burgundy-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

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

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

.btn-outline:hover {
    background: var(--burgundy);
    color: #fff;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    transition: var(--transition);
}

.nav.scrolled {
    background: rgba(255, 253, 249, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
}

.nav-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 48px);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
}

.nav-logo-mark {
    font-family: var(--font-serif);
    font-weight: 900;
    font-size: 1.4rem;
    color: #fff;
    transition: var(--transition);
}

.nav.scrolled .nav-logo-mark {
    color: var(--burgundy);
}

.nav-logo-text {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.04em;
    transition: var(--transition);
}

.nav.scrolled .nav-logo-text {
    color: var(--charcoal);
}

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

.nav-links a {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.03em;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--blush);
    transition: var(--transition);
}

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

.nav.scrolled .nav-links a {
    color: var(--warm-gray);
}

.nav.scrolled .nav-links a::after {
    background: var(--burgundy);
}

.nav-links a:hover {
    color: #fff;
}

.nav.scrolled .nav-links a:hover {
    color: var(--burgundy);
}

.nav-cta {
    background: var(--blush) !important;
    color: var(--burgundy) !important;
    padding: 10px 22px !important;
    border-radius: 6px;
    font-weight: 600 !important;
}

.nav-cta:hover {
    background: var(--blush-dark) !important;
    transform: translateY(-1px);
}

.nav-cta::after {
    display: none !important;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle-bar {
    width: 24px;
    height: 2px;
    background: #fff;
    transition: var(--transition);
    border-radius: 2px;
}

.nav.scrolled .nav-toggle-bar {
    background: var(--charcoal);
}

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

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

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

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--cream);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-link {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--charcoal);
}

.mobile-menu-link:hover {
    color: var(--burgundy);
}

.mobile-menu-cta {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--burgundy);
    padding: 14px 32px;
    background: var(--blush);
    border-radius: 6px;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.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(74, 18, 32, 0.88) 0%,
        rgba(107, 27, 42, 0.82) 50%,
        rgba(40, 10, 18, 0.90) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 860px;
    padding: 0 24px;
    padding-top: var(--nav-height);
}

.hero-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--blush);
    margin-bottom: 24px;
}

.hero-headline {
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.05;
    margin-bottom: 28px;
}

.hero-accent {
    color: var(--blush);
    font-style: italic;
    font-weight: 400;
}

.hero-sub {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    color: rgba(255, 255, 255, 0.75);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: float 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

/* --- Services Section --- */
.services {
    padding: var(--section-padding) 0;
    background: var(--cream);
}

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

.services .section-desc {
    margin: 0 auto;
}

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

.service-card {
    background: var(--off-white);
    border-radius: 12px;
    padding: 40px 32px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--blush-dark);
    background: #fff;
}

.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--burgundy);
    border-radius: 12px;
    margin-bottom: 24px;
    color: var(--blush);
}

.service-card h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--medium-gray);
    line-height: 1.7;
}

/* --- About Section --- */
.about {
    padding: var(--section-padding) 0;
    background: var(--off-white);
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}

.about-image {
    position: relative;
}

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

.about-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    background: var(--burgundy);
    border-radius: 16px;
    z-index: -1;
    opacity: 0.15;
}

.about-content {
    max-width: 520px;
}

.about-content .section-desc {
    margin-bottom: 20px;
}

.about-content p {
    font-size: 1rem;
    color: var(--medium-gray);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin: 36px 0;
    padding: 28px 0;
    border-top: 1px solid var(--blush-dark);
    border-bottom: 1px solid var(--blush-dark);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--burgundy);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--light-gray);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.about-content .btn {
    margin-top: 8px;
}

/* --- Gallery Section --- */
.gallery {
    padding: var(--section-padding) 0;
    background: var(--cream);
}

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

.gallery .section-desc {
    margin: 0 auto;
}

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

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}

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

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

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(74, 18, 32, 0.75) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-overlay span {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
}

/* --- CTA Section --- */
.cta {
    padding: var(--section-padding) 0;
    background: var(--burgundy);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 230, 211, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.cta .section-eyebrow {
    color: var(--blush);
}

.cta .section-title {
    color: #fff;
    margin-bottom: 20px;
}

.cta-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.cta .btn-outline {
    border-color: var(--blush);
    color: var(--blush);
}

.cta .btn-outline:hover {
    background: var(--blush);
    color: var(--burgundy);
}

/* --- Contact Section --- */
.contact {
    padding: var(--section-padding) 0;
    background: var(--off-white);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: start;
}

.contact-info .section-title {
    margin-bottom: 40px;
}

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

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

.contact-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--burgundy);
    border-radius: 10px;
    color: var(--blush);
}

.contact-item div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--light-gray);
}

.contact-item a,
.contact-item span {
    font-size: 1rem;
    color: var(--warm-gray);
}

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

.contact-map {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

/* Contact Form */
.contact-form-wrapper {
    background: #fff;
    border-radius: 16px;
    padding: clamp(32px, 4vw, 48px);
    box-shadow: var(--shadow-md);
}

.contact-form-wrapper h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 28px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--medium-gray);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 16px;
    border: 1.5px solid var(--blush-dark);
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--charcoal);
    background: var(--cream);
    transition: var(--transition);
    outline: none;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--burgundy);
    box-shadow: 0 0 0 3px rgba(107, 27, 42, 0.1);
    background: #fff;
}

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

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

.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 24px;
    gap: 16px;
}

.form-success.active {
    display: flex;
}

.form-success svg {
    color: var(--burgundy);
}

.form-success h4 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--charcoal);
}

.form-success p {
    font-size: 0.95rem;
    color: var(--medium-gray);
    line-height: 1.6;
}

/* --- Footer --- */
.footer {
    background: var(--charcoal);
    padding: 64px 0 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-logo-mark {
    font-family: var(--font-serif);
    font-weight: 900;
    font-size: 1.6rem;
    color: var(--blush);
}

.footer-logo-text {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.04em;
}

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

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
}

.footer-nav a:hover {
    color: var(--blush);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-phone,
.footer-email {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
}

.footer-phone:hover,
.footer-email:hover {
    color: var(--blush);
}

.footer-address {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.35);
    line-height: 1.6;
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* --- Responsive --- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 70px;
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-headline {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-layout {
        grid-template-columns: 1fr;
    }
    
    .about-image img {
        height: 360px;
    }
    
    .about-stats {
        gap: 24px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-actions .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .about-stats {
        flex-direction: column;
        gap: 20px;
    }
}
