/* ===================================
   Marco's Upholstery — Styles
   Clean Minimalist | Teal + Slate
   =================================== */

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

:root {
    --teal-900: #042f2e;
    --teal-800: #134e4a;
    --teal-700: #115e59;
    --teal-600: #0f766e;
    --teal-500: #0d9488;
    --teal-400: #14b8a6;
    --teal-100: #ccfbf1;
    --teal-50:  #f0fdfa;
    --slate-950:#05090f;
    --slate-900:#0f172a;
    --slate-800:#1e293b;
    --slate-700:#334155;
    --slate-600:#475569;
    --slate-500:#64748b;
    --slate-400:#94a3b8;
    --slate-300:#cbd5e1;
    --slate-200:#e2e8f0;
    --slate-100:#f1f5f9;
    --slate-50: #f8fafc;
    --white:   #ffffff;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans:  'Inter', system-ui, -apple-system, sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-sans);
    font-weight: 300;
    color: var(--slate-700);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.2s ease; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

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

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

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: all 0.25s var(--ease-out);
    white-space: nowrap;
}
.btn-primary {
    background: var(--teal-600);
    color: var(--white);
    border: 1.5px solid var(--teal-600);
}
.btn-primary:hover {
    background: var(--teal-700);
    border-color: var(--teal-700);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(15, 118, 110, 0.25);
}
.btn-outline-light {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.5);
}
.btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
}
.btn-outline-dark {
    background: transparent;
    color: var(--teal-600);
    border: 1.5px solid var(--teal-600);
}
.btn-outline-dark:hover {
    background: var(--teal-50);
}
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

/* ---------- Section Labels ---------- */
.section-label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal-600);
    margin-bottom: 12px;
}
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
}
.section-subtitle {
    font-size: 1.05rem;
    color: var(--slate-500);
    max-width: 560px;
    line-height: 1.7;
}
.section-header {
    text-align: center;
    margin-bottom: 64px;
}
.section-header .section-subtitle { margin: 0 auto; }

/* ---------- Reveal Animation (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
    }
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== HEADER ========== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--slate-200);
    transition: box-shadow 0.3s ease;
}
.site-header.scrolled {
    box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--slate-900);
}
.logo-icon { color: var(--teal-600); }
.logo-light { color: var(--white); }

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 36px;
}
.main-nav a {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--slate-600);
    position: relative;
    transition: color 0.2s ease;
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--teal-600);
    transition: width 0.25s var(--ease-out);
}
.main-nav a:hover { color: var(--teal-700); }
.main-nav a:hover::after { width: 100%; }

.nav-cta {
    padding: 9px 20px !important;
    border: 1.5px solid var(--teal-600) !important;
    border-radius: 6px;
    color: var(--teal-600) !important;
    font-weight: 500 !important;
    transition: all 0.25s var(--ease-out) !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
    background: var(--teal-600) !important;
    color: var(--white) !important;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    padding: 4px 0;
}
.nav-toggle-line {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--slate-700);
    border-radius: 2px;
    transition: all 0.3s var(--ease-out);
    transform-origin: center;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
    opacity: 0;
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    
    .main-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--slate-200);
        padding: 0 24px 24px;
        transform: translateY(-110%);
        opacity: 0;
        transition: transform 0.35s var(--ease-out), opacity 0.35s var(--ease-out);
        pointer-events: none;
        box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    }
    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 16px 0;
    }
    .main-nav li { width: 100%; }
    .main-nav a {
        display: block;
        padding: 12px 0;
        font-size: 1rem;
        border-bottom: 1px solid var(--slate-100);
    }
    .main-nav a::after { display: none; }
    .nav-cta {
        margin-top: 12px;
        text-align: center;
        display: block !important;
        border: none !important;
        background: var(--teal-600) !important;
        color: var(--white) !important;
    }
}

/* ========== HERO ========== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--slate-900);
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(4, 47, 46, 0.88) 0%,
        rgba(15, 23, 42, 0.82) 100%
    );
}
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 120px 24px 80px;
    max-width: 820px;
}
.hero-eyebrow {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--teal-400);
    margin-bottom: 20px;
}
.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 300;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}
.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: var(--slate-300);
    max-width: 580px;
    margin: 0 auto 40px;
    line-height: 1.75;
}
.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--slate-400);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--slate-400), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

/* ========== SERVICES ========== */
.services {
    padding: 120px 0;
    background: var(--white);
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.service-card {
    padding: 40px 32px;
    border: 1px solid var(--slate-200);
    border-radius: 10px;
    transition: all 0.3s var(--ease-out);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--teal-600);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease-out);
}
.service-card:hover {
    border-color: var(--teal-200, var(--teal-100));
    box-shadow: 0 8px 32px rgba(15, 118, 110, 0.08);
    transform: translateY(-4px);
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--teal-50);
    color: var(--teal-700);
    margin-bottom: 20px;
}
.service-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--slate-900);
}
.service-desc {
    font-size: 0.95rem;
    color: var(--slate-500);
    line-height: 1.7;
}

@media (max-width: 900px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .services-grid { grid-template-columns: 1fr; }
    .services { padding: 80px 0; }
}

/* ========== WORK / GALLERY ========== */
.work {
    padding: 120px 0;
    background: var(--slate-50);
}
.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.work-item {
    border-radius: 10px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    transition: all 0.3s var(--ease-out);
}
.work-item:hover {
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}
.work-img {
    overflow: hidden;
    aspect-ratio: 6/5;
}
.work-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-out);
}
.work-item:hover .work-img img { transform: scale(1.04); }
.work-info {
    padding: 20px 24px;
}
.work-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--teal-600);
    background: var(--teal-50);
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 8px;
}
.work-info h4 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--slate-800);
}

@media (max-width: 900px) {
    .work-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .work-grid { grid-template-columns: 1fr; }
    .work { padding: 80px 0; }
}

/* ========== ABOUT ========== */
.about {
    padding: 120px 0;
    background: var(--white);
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.about-image {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 7/9;
}
.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.about-content .section-label { text-align: left; }
.about-content .section-title { text-align: left; margin-bottom: 24px; }
.about-text {
    font-size: 1rem;
    color: var(--slate-600);
    line-height: 1.8;
    margin-bottom: 16px;
}
.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}
.value-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--slate-700);
    font-weight: 400;
}
.value-item svg { color: var(--teal-600); flex-shrink: 0; }

@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-image { aspect-ratio: 4/3; }
    .about-content .section-label,
    .about-content .section-title { text-align: center; }
    .about-text { text-align: center; }
}
@media (max-width: 560px) {
    .about { padding: 80px 0; }
    .about-values { grid-template-columns: 1fr; }
}

/* ========== PROCESS ========== */
.process {
    padding: 120px 0;
    background: var(--slate-50);
}
.process-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}
.process-step {
    text-align: center;
    padding: 32px 16px;
    position: relative;
}
.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 44px;
    right: -12px;
    width: 24px;
    height: 1px;
    background: var(--slate-300);
}
.step-number {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--teal-200, #99f6e4);
    line-height: 1;
    margin-bottom: 16px;
}
.step-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--slate-800);
}
.step-desc {
    font-size: 0.875rem;
    color: var(--slate-500);
    line-height: 1.7;
}
.step-desc a { color: var(--teal-600); text-decoration: underline; text-underline-offset: 3px; }
.step-desc a:hover { color: var(--teal-700); }

@media (max-width: 1000px) {
    .process-steps { grid-template-columns: repeat(3, 1fr); }
    .process-step:not(:last-child)::after { display: none; }
}
@media (max-width: 600px) {
    .process-steps { grid-template-columns: 1fr; gap: 8px; }
    .process { padding: 80px 0; }
}

/* ========== CTA ========== */
.cta {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}
.cta-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(4, 47, 46, 0.92), rgba(15, 23, 42, 0.88));
}
.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}
.cta-label {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--teal-400);
    margin-bottom: 16px;
}
.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--white);
    margin-bottom: 20px;
}
.cta-text {
    font-size: 1.05rem;
    color: var(--slate-300);
    line-height: 1.75;
    margin-bottom: 36px;
}
.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ========== CONTACT ========== */
.contact {
    padding: 120px 0;
    background: var(--white);
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}
.contact-info { display: flex; flex-direction: column; gap: 32px; }
.contact-item {
    display: flex;
    gap: 16px;
}
.contact-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--teal-50);
    color: var(--teal-700);
}
.contact-item h4 {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--slate-500);
    margin-bottom: 4px;
}
.contact-item p, .contact-item a {
    font-size: 1rem;
    color: var(--slate-800);
    line-height: 1.6;
}
.contact-item a:hover { color: var(--teal-600); }
.contact-map { border-radius: 10px; overflow: hidden; }

/* Form */
.contact-form-wrapper {
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    padding: 40px;
}
.contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}
.form-note {
    font-size: 0.9rem;
    color: var(--slate-500);
    margin-bottom: 28px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--slate-600);
    margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--slate-200);
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--slate-800);
    background: var(--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(--teal-500);
    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-success {
    text-align: center;
    padding: 40px 20px;
}
.form-success svg { color: var(--teal-600); margin: 0 auto 16px; }
.form-success h4 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: var(--slate-800);
}
.form-success p { color: var(--slate-500); }

@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 560px) {
    .contact { padding: 80px 0; }
    .contact-form-wrapper { padding: 24px; }
    .form-row { grid-template-columns: 1fr; }
}

/* ========== FOOTER ========== */
.footer {
    background: var(--slate-900);
    color: var(--slate-400);
    padding: 80px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand p {
    margin-top: 16px;
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 300px;
}
.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--slate-300);
    margin-bottom: 20px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 12px; }
.footer-links a {
    font-size: 0.9rem;
    color: var(--slate-400);
    transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--teal-400); }
.footer-contact ul { display: flex; flex-direction: column; gap: 12px; }
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
}
.footer-contact svg { flex-shrink: 0; margin-top: 2px; color: var(--teal-500); }
.footer-contact a:hover { color: var(--teal-400); }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 24px 0;
    font-size: 0.8rem;
    color: var(--slate-500);
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 36px; }
    .footer-bottom { flex-direction: column; text-align: center; }
}
</style>
