/* ========================================
   John Dobash Construction — Styles
   Clean minimalist · Burgundy + Blush
======================================== */

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

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

body {
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

::selection {
    background: #F5E6E0;
    color: #4a0916;
}

/* ── Scroll Reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal:nth-child(2) { transition-delay: 0.08s; }
    .reveal:nth-child(3) { transition-delay: 0.16s; }
    .reveal:nth-child(4) { transition-delay: 0.24s; }
}

/* For no-JS / reduced-motion users, content is always visible */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

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

@media (min-width: 768px) {
    .container { padding: 0 48px; }
}

@media (min-width: 1024px) {
    .container { padding: 0 64px; }
}

/* ── Section Labels ── */
.section-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #7B2D3B;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-label::before {
    content: '';
    width: 32px;
    height: 1px;
    background: #7B2D3B;
}

/* ── Section Titles ── */
.section-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 400;
    line-height: 1.15;
    color: #4a0916;
    margin-bottom: 48px;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary {
    background: #7B2D3B;
    color: #FDF6F4;
    border-color: #7B2D3B;
}
.btn-primary:hover {
    background: #611f2e;
    border-color: #611f2e;
}

.btn-ghost {
    background: transparent;
    color: #7B2D3B;
    border-color: #7B2D3B;
}
.btn-ghost:hover {
    background: #7B2D3B;
    color: #FDF6F4;
}

.btn-light {
    background: #FDF6F4;
    color: #7B2D3B;
    border-color: #FDF6F4;
}
.btn-light:hover {
    background: #F5E6E0;
}

.btn-outline-light {
    background: transparent;
    color: #FDF6F4;
    border-color: rgba(253, 246, 244, 0.5);
}
.btn-outline-light:hover {
    background: rgba(253, 246, 244, 0.1);
    border-color: #FDF6F4;
}

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

/* ── Navigation ── */
.nav-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 248, 246, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(123, 45, 59, 0.08);
    transition: box-shadow 0.3s ease;
}

.nav-fixed.scrolled {
    box-shadow: 0 1px 20px rgba(123, 45, 59, 0.06);
}

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

@media (min-width: 768px) {
    .nav-inner { padding: 0 48px; }
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #4a0916;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.nav-brand-mark {
    color: #7B2D3B;
}

.nav-brand-text {
    display: none;
}

@media (min-width: 768px) {
    .nav-brand-text { display: inline; }
}

.nav-links {
    display: none;
    align-items: center;
    gap: 32px;
}

@media (min-width: 768px) {
    .nav-links { display: flex; }
}

.nav-links a {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4a0916;
    text-decoration: none;
    position: relative;
    padding: 4px 0;
    transition: color 0.2s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #7B2D3B;
    transition: width 0.3s ease;
}

.nav-links a:hover { color: #7B2D3B; }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
    border: 1px solid #7B2D3B !important;
    padding: 8px 20px !important;
    transition: all 0.2s ease !important;
}
.nav-cta:hover {
    background: #7B2D3B !important;
    color: #FDF6F4 !important;
}
.nav-cta::after { display: none !important; }

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

@media (min-width: 768px) {
    .nav-toggle { display: none; }
}

.nav-toggle-line {
    width: 20px;
    height: 1px;
    background: #4a0916;
    transition: all 0.3s ease;
    transform-origin: center;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
.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: rotate(-45deg) translate(4px, -4px);
}

/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(250, 248, 246, 0.98);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

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

.mobile-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.mobile-menu a {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2rem;
    font-weight: 400;
    color: #4a0916;
    text-decoration: none;
    transition: color 0.2s ease;
}

.mobile-menu a:hover { color: #7B2D3B; }

.mobile-cta {
    margin-top: 16px;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.8rem !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid #7B2D3B;
    padding: 12px 32px;
    color: #7B2D3B !important;
}

/* ── HERO ── */
.hero {
    min-height: 100vh;
    padding-top: 64px;
    background: #FDF6F4;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px 64px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: start;
}

@media (min-width: 768px) {
    .hero-grid {
        padding: 120px 48px 80px;
        grid-template-columns: 1fr 1fr;
        gap: 64px;
        align-items: stretch;
    }
}

@media (min-width: 1024px) {
    .hero-grid {
        padding: 140px 64px 100px;
        gap: 80px;
    }
}

/* Hero Text */
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #7B2D3B;
    margin-bottom: 32px;
}

.hero-tag-line {
    width: 32px;
    height: 1px;
    background: #7B2D3B;
    flex-shrink: 0;
}

.hero-headline {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2.4rem, 5.5vw, 4.5rem);
    font-weight: 300;
    line-height: 1.05;
    color: #4a0916;
    margin-bottom: 28px;
    letter-spacing: -0.01em;
}

.hero-sub {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.9rem, 1.2vw, 1.05rem);
    font-weight: 300;
    line-height: 1.75;
    color: #611f2e;
    max-width: 480px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

/* Hero Image Stack */
.hero-visual {
    position: relative;
    min-height: 400px;
}

@media (min-width: 768px) {
    .hero-visual {
        min-height: 600px;
        margin-top: 48px;
    }
}

.hero-img {
    position: absolute;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(74, 9, 22, 0.1);
}

.hero-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-img--main {
    width: 85%;
    height: 75%;
    top: 0;
    right: 0;
}

.hero-img--accent {
    width: 60%;
    height: 40%;
    bottom: 8%;
    left: 0;
    border: 4px solid #FDF6F4;
}

.hero-img--detail {
    width: 45%;
    height: 28%;
    bottom: 0;
    right: 5%;
    border: 4px solid #FDF6F4;
    opacity: 0.9;
}

@media (min-width: 768px) {
    .hero-img--main { width: 78%; height: 82%; }
    .hero-img--accent { width: 55%; height: 38%; }
    .hero-img--detail { width: 42%; height: 26%; }
}

/* Hero decorative line */
.hero-line {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 768px) {
    .hero-line { padding: 0 48px; }
}

.hero-line span {
    display: block;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, #7B2D3B 0%, rgba(123,45,59,0.1) 60%, transparent 100%);
}

/* ── SERVICES ── */
.services {
    padding: 100px 0;
    background: #FAF8F6;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background: rgba(123, 45, 59, 0.08);
    border: 1px solid rgba(123, 45, 59, 0.08);
}

@media (min-width: 640px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .services-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
    background: #FAF8F6;
    padding: 40px 32px;
    transition: all 0.3s ease;
    position: relative;
}

.service-card:hover {
    background: #FDF6F4;
}

.service-card:hover .service-icon {
    color: #7B2D3B;
    transform: scale(1.05);
}

.service-icon {
    color: #4a0916;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.service-name {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 500;
    color: #4a0916;
    margin-bottom: 12px;
}

.service-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1.7;
    color: #611f2e;
}

/* ── ABOUT ── */
.about {
    padding: 100px 0;
    background: #FDF6F4;
}

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

@media (min-width: 768px) {
    .about-grid { grid-template-columns: 1fr 1fr; gap: 80px; }
}

.about-visual {
    position: relative;
}

.about-img-main {
    overflow: hidden;
}

.about-img-main img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.about-stat {
    position: absolute;
    bottom: -24px;
    right: -16px;
    background: #7B2D3B;
    color: #FDF6F4;
    padding: 24px 32px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

@media (min-width: 768px) {
    .about-stat { bottom: 40px; right: -40px; }
}

.about-stat-number {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2.8rem;
    font-weight: 300;
    line-height: 1;
    color: #FDF6F4;
}

.about-stat-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(253, 246, 244, 0.7);
}

.about-content { padding-top: 16px; }

.about-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.8;
    color: #611f2e;
    margin-bottom: 20px;
}

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

.about-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    color: #4a0916;
}

.about-feature svg {
    color: #7B2D3B;
    flex-shrink: 0;
}

/* ── PROJECTS ── */
.projects {
    padding: 100px 0;
    background: #FAF8F6;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 640px) {
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

.project-card {
    text-decoration: none;
    color: inherit;
    group: project;
}

.project-img {
    overflow: hidden;
    margin-bottom: 16px;
    position: relative;
}

.project-img img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover .project-img img {
    transform: scale(1.03);
}

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

.project-type {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #7B2D3B;
}

.project-name {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 400;
    color: #4a0916;
}

/* ── TESTIMONIALS ── */
.testimonials {
    padding: 100px 0;
    background: #FDF6F4;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .testimonials-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}

.testimonial-card {
    background: #FAF8F6;
    padding: 40px 32px;
    border: 1px solid rgba(123, 45, 59, 0.06);
    position: relative;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    border-color: rgba(123, 45, 59, 0.15);
    box-shadow: 0 8px 32px rgba(74, 9, 22, 0.06);
}

.testimonial-quote {
    color: #7B2D3B;
    position: absolute;
    top: 20px;
    right: 24px;
    opacity: 0.3;
}

.testimonial-text {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 400;
    font-style: italic;
    line-height: 1.7;
    color: #4a0916;
    margin-bottom: 24px;
    padding-top: 8px;
}

.testimonial-author {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7B2D3B;
}

/* ── CTA BANNER ── */
.cta-banner {
    padding: 100px 0;
    background: #7B2D3B;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(245, 230, 224, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.cta-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 768px) {
    .cta-inner { grid-template-columns: 1fr auto; gap: 64px; }
}

.cta-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 300;
    line-height: 1.15;
    color: #FDF6F4;
    margin-bottom: 16px;
}

.cta-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(253, 246, 244, 0.7);
    max-width: 480px;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* ── CONTACT ── */
.contact {
    padding: 100px 0;
    background: #FAF8F6;
}

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

@media (min-width: 768px) {
    .contact-grid { grid-template-columns: 1fr 1fr; gap: 80px; }
}

.contact-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.75;
    color: #611f2e;
    margin-bottom: 40px;
}

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

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.contact-item:hover { color: #7B2D3B; }

.contact-item svg {
    color: #7B2D3B;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-item span {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.6;
    color: #4a0916;
}

/* ── Form ── */
.contact-form-wrap {
    background: #FDF6F4;
    padding: 40px;
    border: 1px solid rgba(123, 45, 59, 0.08);
}

@media (min-width: 640px) {
    .contact-form-wrap { padding: 48px; }
}

.contact-form { display: flex; flex-direction: column; gap: 24px; }

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

@media (max-width: 480px) {
    .form-row { grid-template-columns: 1fr; }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #7B2D3B;
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    color: #4a0916;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(123, 45, 59, 0.2);
    padding: 10px 0;
    outline: none;
    border-radius: 0;
    -webkit-appearance: none;
    resize: vertical;
    transition: border-color 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(123, 45, 59, 0.35);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #7B2D3B;
}

.form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 5l3 3 3-3' stroke='%237B2D3B' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 24px;
}

.form-group select option {
    background: #FDF6F4;
    color: #4a0916;
}

.form-success {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(123, 45, 59, 0.06);
    color: #7B2D3B;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
}

.form-success svg { flex-shrink: 0; color: #7B2D3B; }

/* ── FOOTER ── */
.footer {
    padding: 64px 0 40px;
    background: #4a0916;
    color: rgba(253, 246, 244, 0.6);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(253, 246, 244, 0.08);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: #FDF6F4;
}

.footer-brand-mark { color: rgba(253, 246, 244, 0.5); }

.footer-links {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.footer-links a {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(253, 246, 244, 0.5);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover { color: #FDF6F4; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 32px;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 300;
    color: rgba(253, 246, 244, 0.35);
}

.footer-bottom a {
    color: rgba(253, 246, 244, 0.5);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom a:hover { color: #FDF6F4; }

/* ── Utility ── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
