/* ============================================
   A R De Tile Carpet & Vinyl Co — Stylesheet
   Palette: Midnight Blue (#0B1D3A) + Mint (#4ADEB0)
   ============================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --midnight: #0B1D3A;
    --midnight-light: #132B50;
    --midnight-lighter: #1A3660;
    --mint: #4ADEB0;
    --mint-dark: #34B890;
    --mint-light: #A8F0D0;
    --mint-pale: #E8FBF3;
    --white: #FFFFFF;
    --off-white: #F7FAF9;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --shadow-sm: 0 1px 3px rgba(11,29,58,0.08);
    --shadow-md: 0 4px 16px rgba(11,29,58,0.10);
    --shadow-lg: 0 8px 32px rgba(11,29,58,0.12);
    --shadow-xl: 0 16px 48px rgba(11,29,58,0.14);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
    --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-700);
    background-color: var(--white);
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

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

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

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--midnight);
    color: var(--white);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    z-index: 1000;
    font-weight: 600;
}
.skip-link:focus {
    top: 16px;
}

/* ---- NAVBAR ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(11,29,58,0.06);
    transition: box-shadow var(--transition);
}
.navbar.scrolled {
    box-shadow: var(--shadow-md);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    color: var(--midnight);
}
.logo-icon {
    color: var(--midnight);
    flex-shrink: 0;
}
.logo-text {
    display: none;
}
.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 110;
}
.nav-toggle-line {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--midnight);
    border-radius: 2px;
    transition: var(--transition);
    transform-origin: center;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}
#nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    background: var(--white);
    flex-direction: column;
    padding: 100px 32px 40px;
    box-shadow: var(--shadow-xl);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}
#nav-menu.open {
    transform: translateX(0);
}
#nav-menu a {
    color: var(--gray-700);
    font-weight: 600;
    font-size: 15px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    width: 100%;
}
#nav-menu a:hover {
    color: var(--midnight);
    background: var(--mint-pale);
}
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11,29,58,0.4);
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}
.nav-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}
.btn-mint {
    background: var(--mint);
    color: var(--midnight);
    border-color: var(--mint);
}
.btn-mint:hover {
    background: var(--mint-dark);
    border-color: var(--mint-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(74,222,176,0.35);
}
.btn-outline-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}
.btn-outline-light:hover {
    background: var(--white);
    color: var(--midnight);
    border-color: var(--white);
    transform: translateY(-2px);
}
.btn-outline-dark {
    background: transparent;
    color: var(--midnight);
    border-color: var(--midnight);
}
.btn-outline-dark:hover {
    background: var(--midnight);
    color: var(--white);
    transform: translateY(-2px);
}
.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}
.btn-full {
    width: 100%;
}
.btn-nav-call {
    margin-top: 8px;
    background: var(--mint);
    color: var(--midnight);
    border-color: var(--mint);
    text-align: center;
}
.btn-nav-call:hover {
    background: var(--mint-dark);
    border-color: var(--mint-dark);
}

/* ---- HERO ---- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--midnight);
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
}
.hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(11,29,58,0.92) 0%,
        rgba(11,29,58,0.75) 50%,
        rgba(11,29,58,0.60) 100%
    );
}
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 120px 24px 80px;
    max-width: 800px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(74,222,176,0.15);
    border: 1px solid rgba(74,222,176,0.3);
    color: var(--mint);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    margin-bottom: 24px;
}
.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    color: var(--white);
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.15;
}
.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255,255,255,0.8);
    margin-bottom: 36px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-bottom: 48px;
}
.hero-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
}
.hero-trust .trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    font-weight: 600;
}
.hero-trust .trust-item svg {
    color: var(--mint);
}
.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: rgba(255,255,255,0.5);
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ---- SECTIONS ---- */
.section {
    padding: 96px 0;
}
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}
.section-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mint-dark);
    background: var(--mint-pale);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
}
.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 16px;
}
.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-500);
    line-height: 1.7;
}
.text-mint {
    color: var(--mint-dark);
}

/* ---- PRODUCTS ---- */
.products {
    background: var(--off-white);
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}
.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.product-img {
    position: relative;
    height: 240px;
    overflow: hidden;
}
.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.product-card:hover .product-img img {
    transform: scale(1.05);
}
.product-img-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--mint);
    color: var(--midnight);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
}
.product-body {
    padding: 28px;
}
.product-icon-wrap {
    width: 52px;
    height: 52px;
    background: var(--mint-pale);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mint-dark);
    margin-bottom: 16px;
}
.product-name {
    font-size: 1.3rem;
    margin-bottom: 10px;
}
.product-desc {
    color: var(--gray-500);
    font-size: 0.95rem;
    margin-bottom: 16px;
    line-height: 1.7;
}
.product-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.product-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--gray-600);
}
.product-features li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--mint);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ---- WHY US ---- */
.why-us {
    background: var(--white);
    overflow: hidden;
}
.why-us-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.why-us-images {
    position: relative;
    min-height: 500px;
}
.why-img-main {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.why-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 450px;
}
.why-img-float {
    position: absolute;
    bottom: -32px;
    right: -24px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 4px solid var(--white);
}
.why-img-float img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.why-stat-card {
    position: absolute;
    top: -20px;
    left: -20px;
    background: var(--midnight);
    color: var(--white);
    padding: 20px 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.why-stat-number {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--mint);
    line-height: 1;
}
.why-stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    margin-top: 4px;
}
.why-us-content .section-intro {
    font-size: 1.05rem;
    color: var(--gray-500);
    margin-bottom: 32px;
    line-height: 1.8;
}
.features-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.feature-check {
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: var(--mint-pale);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mint-dark);
    margin-top: 2px;
}
.feature-title {
    font-size: 1.05rem;
    margin-bottom: 4px;
}
.feature-desc {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ---- ABOUT ---- */
.about {
    background: var(--mint-pale);
}
.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.about-body {
    color: var(--gray-600);
    font-size: 1.02rem;
    line-height: 1.8;
    margin-bottom: 16px;
}
.about-stats {
    display: flex;
    gap: 24px;
    margin-top: 32px;
    flex-wrap: wrap;
}
.about-stat {
    background: var(--white);
    padding: 20px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    flex: 1;
    min-width: 140px;
}
.about-stat-num {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 4px;
}
.about-stat-label {
    font-size: 0.82rem;
    color: var(--gray-500);
    line-height: 1.4;
}
.about-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 400px;
}

/* ---- GALLERY ---- */
.gallery {
    background: var(--white);
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    aspect-ratio: 5/4;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-item:hover img {
    transform: scale(1.06);
}
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11,29,58,0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition);
    border-radius: var(--radius-lg);
}
.gallery-item:hover::after {
    opacity: 1;
}

/* ---- CTA ---- */
.cta {
    background: var(--midnight);
    position: relative;
    overflow: hidden;
}
.cta-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
    padding: 80px 24px;
}
.cta-pattern {
    position: absolute;
    top: -40px;
    right: -40px;
    opacity: 0.5;
    pointer-events: none;
}
.cta-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: var(--white);
    margin-bottom: 16px;
}
.cta-text {
    color: rgba(255,255,255,0.75);
    font-size: 1.1rem;
    margin-bottom: 36px;
    line-height: 1.7;
}
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

/* ---- CONTACT ---- */
.contact {
    background: var(--off-white);
}
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
.contact-info .section-intro {
    color: var(--gray-500);
    font-size: 1.02rem;
    margin-bottom: 32px;
    line-height: 1.7;
}
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 28px;
}
.contact-detail {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.contact-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--mint-pale);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mint-dark);
}
.contact-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-400);
    margin-bottom: 2px;
}
.contact-value {
    display: block;
    font-size: 1rem;
    color: var(--midnight);
    font-weight: 600;
}
.contact-value a {
    color: var(--midnight);
    transition: color var(--transition);
}
.contact-value a:hover {
    color: var(--mint-dark);
}
.contact-map {
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.contact-form-wrap {
    width: 100%;
}
.contact-form-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-md);
}
.form-title {
    font-size: 1.4rem;
    margin-bottom: 24px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--midnight);
    margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--gray-700);
    background: var(--gray-50);
    transition: var(--transition);
    outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--mint);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(74,222,176,0.15);
}
.form-group textarea {
    resize: vertical;
    min-height: 100px;
}
.form-success {
    text-align: center;
    padding: 40px 20px;
}
.success-icon {
    width: 72px;
    height: 72px;
    background: var(--mint-pale);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--mint-dark);
}
.form-success h4 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}
.form-success p {
    color: var(--gray-500);
    font-size: 0.95rem;
}

/* ---- FOOTER ---- */
.footer {
    background: var(--midnight);
    color: rgba(255,255,255,0.7);
    padding: 64px 0 0;
}
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}
.logo-light {
    color: var(--white);
}
.logo-light .logo-text {
    color: var(--white);
}
.footer-desc {
    margin-top: 16px;
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 280px;
}
.footer-heading {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--white);
    margin-bottom: 16px;
}
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: color var(--transition);
}
.footer-links a:hover {
    color: var(--mint);
}
.footer-contact p {
    font-size: 0.9rem;
    margin-bottom: 6px;
    line-height: 1.6;
}
.footer-contact a {
    color: rgba(255,255,255,0.6);
    transition: color var(--transition);
}
.footer-contact a:hover {
    color: var(--mint);
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 24px 0;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}

/* ---- REVEAL ANIMATIONS ---- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ---- RESPONSIVE ---- */
@media (min-width: 640px) {
    .logo-text {
        display: block;
    }
}

@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }
    #nav-menu {
        position: static;
        transform: none;
        background: none;
        padding: 0;
        flex-direction: row;
        width: auto;
        gap: 4px;
        box-shadow: none;
    }
    #nav-menu a {
        width: auto;
        padding: 8px 14px;
        font-size: 14px;
    }
    .btn-nav-call {
        margin-top: 0;
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 900px) {
    .why-us-layout,
    .about-inner,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .why-us-images {
        min-height: 360px;
        order: -1;
    }
    .why-img-float {
        right: 16px;
        bottom: -16px;
    }
    .why-stat-card {
        left: 16px;
        top: -16px;
    }
    .about-inner {
        order: 1;
    }
    .about-image {
        order: -1;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 64px 0;
    }
    .section-header {
        margin-bottom: 40px;
    }
    .hero-content {
        padding: 100px 20px 60px;
    }
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
    }
    .hero-trust {
        gap: 16px;
    }
    .products-grid {
        grid-template-columns: 1fr;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .contact-form-card {
        padding: 24px;
    }
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    .cta-actions .btn {
        width: 100%;
        max-width: 280px;
    }
}

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