/* ========================================
   MASTER INDUSTRIAL SEWING MACHINE SUPPLIES
   Classic & Elegant — Teal + Slate Palette
   ======================================== */

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

:root {
    --teal-50: #F0FDFA;
    --teal-100: #CCFBF1;
    --teal-200: #99F6E4;
    --teal-300: #5EEAD4;
    --teal-400: #2DD4BF;
    --teal-500: #14B8A6;
    --teal-600: #0D9488;
    --teal-700: #0F766E;
    --teal-800: #115E59;
    --teal-900: #134E4A;

    --slate-50: #F8FAFC;
    --slate-100: #F1F5F9;
    --slate-200: #E2E8F0;
    --slate-300: #CBD5E1;
    --slate-400: #94A3B8;
    --slate-500: #64748B;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1E293B;
    --slate-900: #0F172A;
    --slate-950: #080E1A;

    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Lato', system-ui, -apple-system, sans-serif;

    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.10);
    --shadow-lg: 0 8px 32px rgba(15, 23, 42, 0.12);
    --shadow-xl: 0 16px 48px rgba(15, 23, 42, 0.14);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --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(--slate-800);
    background-color: var(--slate-50);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

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

/* ---------- HEADER ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(248, 250, 252, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--slate-200);
    transition: box-shadow var(--transition);
}

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

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

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--slate-900);
}

.site-logo:hover {
    color: var(--slate-900);
}

.site-logo-text {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

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

.main-nav a {
    color: var(--slate-600);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.main-nav a:hover {
    color: var(--teal-700);
    background: var(--teal-50);
}

.nav-cta {
    background: var(--teal-600) !important;
    color: white !important;
    border-radius: var(--radius-sm) !important;
    padding: 10px 18px !important;
    font-weight: 600 !important;
}

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

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

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--slate-700);
    border-radius: 2px;
    transition: all var(--transition);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- HERO ---------- */
.hero {
    padding-top: 76px;
    min-height: 100vh;
    min-height: 100dvh;
    background: linear-gradient(135deg, var(--slate-50) 0%, var(--teal-50) 50%, var(--slate-100) 100%);
    display: flex;
    align-items: center;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 60px 0;
}

.hero-eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal-700);
    margin-bottom: 20px;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--slate-900);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--slate-600);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 520px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-sans);
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--teal-600);
    color: white;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.btn-primary:hover {
    background: var(--teal-700);
    color: white;
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.4);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--slate-700);
    border: 2px solid var(--slate-300);
}

.btn-secondary:hover {
    border-color: var(--teal-600);
    color: var(--teal-700);
    background: var(--teal-50);
}

.btn-full {
    width: 100%;
}

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

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--slate-600);
}

.hero-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 640 / 720;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.hero-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    background: var(--teal-200);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.5;
}

/* ---------- SECTION COMMON ---------- */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}

.section-eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--teal-600);
    margin-bottom: 14px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--slate-900);
    line-height: 1.2;
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--slate-500);
    line-height: 1.7;
}

/* ---------- SERVICES ---------- */
.services {
    padding: 100px 0;
    background: white;
}

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

.service-card {
    padding: 36px 28px;
    border-radius: var(--radius-md);
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    transition: all var(--transition);
}

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

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--teal-50);
    border: 1px solid var(--teal-100);
    border-radius: var(--radius-sm);
    color: var(--teal-700);
    margin-bottom: 22px;
    transition: all var(--transition);
}

.service-card:hover .service-icon {
    background: var(--teal-600);
    border-color: var(--teal-600);
    color: white;
}

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

.service-card p {
    font-size: 0.92rem;
    color: var(--slate-500);
    line-height: 1.7;
}

/* ---------- ABOUT ---------- */
.about {
    padding: 100px 0;
    background: var(--slate-900);
    color: white;
}

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

.about-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    aspect-ratio: 580 / 500;
}

.about-badge {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background: var(--teal-600);
    color: white;
    padding: 18px 24px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
}

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

.badge-text {
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.3;
    opacity: 0.9;
}

.about-content .section-eyebrow {
    color: var(--teal-400);
}

.about-content .section-title {
    color: white;
    text-align: left;
}

.about-text {
    font-size: 1rem;
    color: var(--slate-300);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--slate-700);
}

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

.stat-number {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--teal-400);
}

.stat-label {
    font-size: 0.82rem;
    color: var(--slate-400);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}

/* ---------- PRODUCTS ---------- */
.products {
    padding: 100px 0;
    background: var(--slate-50);
}

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

.product-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: white;
    border: 1px solid var(--slate-200);
    transition: all var(--transition);
}

.product-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--teal-200);
}

.product-img {
    overflow: hidden;
    aspect-ratio: 400 / 300;
}

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

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

.product-item h4 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--slate-900);
    padding: 18px 20px 6px;
}

.product-item p {
    font-size: 0.88rem;
    color: var(--slate-500);
    padding: 0 20px 20px;
    line-height: 1.6;
}

/* ---------- TESTIMONIALS ---------- */
.testimonials {
    padding: 100px 0;
    background: white;
}

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

.testimonial-card {
    padding: 36px 28px;
    border-radius: var(--radius-md);
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    transition: all var(--transition);
}

.testimonial-card:hover {
    border-color: var(--teal-200);
    box-shadow: var(--shadow-md);
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
}

.testimonial-card blockquote {
    font-size: 0.95rem;
    color: var(--slate-600);
    line-height: 1.75;
    font-style: italic;
    margin-bottom: 24px;
}

.testimonial-card cite {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-style: normal;
}

.testimonial-card .author {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--slate-800);
}

.testimonial-card .company {
    font-size: 0.82rem;
    color: var(--slate-400);
}

/* ---------- CONTACT ---------- */
.contact {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--slate-50) 0%, var(--teal-50) 100%);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}

.contact-info .section-eyebrow {
    color: var(--teal-600);
}

.contact-info .section-title {
    text-align: left;
    margin-bottom: 16px;
}

.contact-desc {
    font-size: 1rem;
    color: var(--slate-500);
    line-height: 1.7;
    margin-bottom: 36px;
}

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

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

.contact-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--teal-50);
    border: 1px solid var(--teal-100);
    border-radius: var(--radius-sm);
    color: var(--teal-700);
}

.contact-item strong {
    display: block;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--slate-500);
    margin-bottom: 4px;
    font-weight: 600;
}

.contact-item p {
    font-size: 0.95rem;
    color: var(--slate-700);
    line-height: 1.6;
}

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

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

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

.contact-form-wrapper {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--slate-200);
}

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

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

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 0.92rem;
    font-family: var(--font-sans);
    color: var(--slate-800);
    background: var(--slate-50);
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--teal-500);
    background: white;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

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

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

.form-note {
    font-size: 0.8rem;
    color: var(--slate-400);
    margin-top: 12px;
    text-align: center;
}

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

.form-success h4 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--slate-900);
    margin: 16px 0 8px;
}

.form-success p {
    color: var(--slate-500);
    font-size: 0.95rem;
}

/* ---------- FOOTER ---------- */
.site-footer {
    background: var(--slate-900);
    color: var(--slate-400);
    padding: 64px 0 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--slate-800);
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-top: 16px;
    max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 700;
    color: var(--slate-200);
    margin-bottom: 18px;
}

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

.footer-links a {
    color: var(--slate-400);
    font-size: 0.88rem;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--teal-400);
}

.footer-contact p {
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 6px;
}

.footer-contact a {
    color: var(--teal-400);
}

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

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

/* ---------- SCROLL REVEAL (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        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);
    }
}

/* ---------- MOBILE NAV OVERLAY ---------- */
.main-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 999;
}

.main-nav-overlay.active {
    display: block;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .hero-layout {
        gap: 40px;
    }

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

    .about-layout {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        height: 100dvh;
        background: white;
        box-shadow: var(--shadow-xl);
        padding: 96px 28px 28px;
        transition: right var(--transition);
        z-index: 1000;
    }

    .main-nav.open {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .main-nav a {
        padding: 14px 16px;
        font-size: 1rem;
    }

    .nav-cta {
        margin-top: 12px;
        text-align: center;
        display: block !important;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        padding: 40px 0;
        gap: 40px;
    }

    .hero-image {
        order: -1;
        aspect-ratio: 4 / 3;
        max-height: 400px;
    }

    .hero-image-accent {
        display: none;
    }

    .hero-trust {
        gap: 16px;
    }

    .services-grid,
    .products-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .about-layout {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }

    .about-stats {
        gap: 24px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contact-form-wrapper {
        padding: 28px 20px;
    }
}

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

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

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

    .about-stats {
        flex-direction: column;
        gap: 16px;
    }
}
