/* ============================================
   Winston Michael Contracting — Stylesheet
   ============================================ */

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

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.6;
    color: #3a2430;
    background-color: #fefcfb;
    overflow-x: hidden;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul {
    list-style: none;
}

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

/* --- Section Shared --- */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #a81838;
    margin-bottom: 12px;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    color: #3a2430;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.0625rem;
    color: #6b5060;
    line-height: 1.7;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-primary {
    background: #a81838;
    color: #fff;
    border: 2px solid #a81838;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: #8c1633;
    border-color: #8c1633;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(168, 24, 56, 0.25);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
    background: rgba(255, 255, 255, 0.25);
    border-color: #fff;
    transform: translateY(-2px);
}

.btn-outline-primary {
    background: transparent;
    color: #a81838;
    border: 2px solid #a81838;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus-visible {
    background: #a81838;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(168, 24, 56, 0.2);
}

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

.btn-full {
    width: 100%;
}

/* --- Navigation --- */
.nav-scrolled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav-scrolled.scrolled {
    background: rgba(254, 252, 251, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 12px rgba(58, 36, 48, 0.08);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 1.125rem;
    color: #fff;
    transition: color 0.3s ease;
    z-index: 101;
}

.nav-scrolled.scrolled .nav-logo {
    color: #3a2430;
}

.nav-logo-text {
    letter-spacing: -0.01em;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 101;
}

.nav-toggle-line {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-scrolled.scrolled .nav-toggle-line {
    background: #3a2430;
}

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

.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(5px, -5px);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-left: auto;
}

.nav-menu a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.2s ease;
    position: relative;
}

.nav-scrolled.scrolled .nav-menu a {
    color: #6b5060;
}

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

.nav-scrolled.scrolled .nav-menu a:hover {
    color: #a81838;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #a81838;
    transition: width 0.25s ease;
}

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

.nav-cta {
    background: #a81838;
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
    background: #8c1633;
    transform: translateY(-1px);
}

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

/* Mobile nav */
@media (max-width: 767px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 280px;
        background: #fefcfb;
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        padding: 40px;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -8px 0 32px rgba(58, 36, 48, 0.12);
    }

    .nav-menu.open {
        transform: translateX(0);
    }

    .nav-menu a {
        color: #3a2430;
        font-size: 1.125rem;
    }

    .nav-menu a:hover {
        color: #a81838;
    }

    .nav-cta {
        margin-top: 8px;
    }

    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(58, 36, 48, 0.4);
        z-index: 99;
    }

    .nav-overlay.visible {
        display: block;
    }
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(65, 7, 18, 0.82) 0%,
        rgba(136, 24, 56, 0.72) 50%,
        rgba(168, 24, 56, 0.60) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 120px 24px 80px;
}

.hero-eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 20px;
}

.hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 5.5vw, 3.75rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-title em {
    font-style: italic;
    color: #ffd9cf;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.1875rem);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    max-width: 580px;
    margin: 0 auto 40px;
}

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

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.hero-trust-item svg {
    color: #ffd9cf;
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: rgba(255, 255, 255, 0.6);
    animation: scrollBounce 2s ease-in-out infinite;
}

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

/* --- Services --- */
.services {
    background: #fff;
}

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

.service-card {
    background: #fefcfb;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(168, 24, 56, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(58, 36, 48, 0.1);
}

.service-card-img {
    height: 200px;
    overflow: hidden;
}

.service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-card-img img {
    transform: scale(1.05);
}

.service-card-body {
    padding: 28px;
}

.service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fdf2f4, #fce7eb);
    border-radius: 12px;
    color: #a81838;
    margin-bottom: 16px;
}

.service-card-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #3a2430;
    margin-bottom: 8px;
}

.service-card-desc {
    font-size: 0.9375rem;
    color: #6b5060;
    line-height: 1.65;
}

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

@media (max-width: 639px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* --- About --- */
.about {
    background: linear-gradient(180deg, #fefcfb 0%, #fdf2f4 100%);
}

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

.about-images {
    position: relative;
}

.about-img-main {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(58, 36, 48, 0.12);
}

.about-img-main img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.about-img-secondary {
    position: absolute;
    bottom: -32px;
    right: -32px;
    width: 55%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(58, 36, 48, 0.15);
    border: 4px solid #fff;
}

.about-img-secondary img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.about-badge {
    position: absolute;
    top: -20px;
    left: -20px;
    background: #a81838;
    color: #fff;
    padding: 16px 20px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 12px 32px rgba(168, 24, 56, 0.3);
}

.about-badge-number {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}

.about-badge-text {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.85;
}

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

.about-text {
    font-size: 1.0625rem;
    color: #6b5060;
    line-height: 1.75;
    margin-bottom: 16px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 32px 0 40px;
}

.about-stat {
    text-align: center;
    padding: 20px 12px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(168, 24, 56, 0.08);
}

.about-stat-number {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #a81838;
    margin-bottom: 4px;
}

.about-stat-label {
    font-size: 0.8125rem;
    color: #6b5060;
    line-height: 1.4;
}

@media (max-width: 991px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-images {
        max-width: 500px;
        margin: 0 auto;
    }

    .about-content {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .about-img-secondary {
        right: -16px;
        bottom: -20px;
    }

    .about-badge {
        left: -10px;
        top: -10px;
    }
}

/* --- Gallery --- */
.gallery {
    background: #fff;
}

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

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

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(65, 7, 18, 0.7) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.gallery-item-overlay span {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: #fff;
}

@media (max-width: 767px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* --- Testimonials --- */
.testimonials {
    background: linear-gradient(180deg, #fdf2f4 0%, #fefcfb 100%);
}

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

.testimonial-card {
    background: #fff;
    padding: 36px;
    border-radius: 16px;
    border: 1px solid rgba(168, 24, 56, 0.06);
    box-shadow: 0 4px 20px rgba(58, 36, 48, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(58, 36, 48, 0.08);
}

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

.testimonial-text {
    font-size: 1rem;
    color: #3a2430;
    line-height: 1.75;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    font-size: 0.875rem;
    font-weight: 600;
    color: #a81838;
}

@media (max-width: 991px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 639px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* --- CTA Banner --- */
.cta-banner {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
}

.cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(65, 7, 18, 0.85) 0%, rgba(136, 24, 56, 0.75) 100%);
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.cta-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 16px;
}

.cta-text {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 520px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

/* --- Contact --- */
.contact {
    background: #fff;
}

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

.contact-text {
    font-size: 1.0625rem;
    color: #6b5060;
    line-height: 1.75;
    margin-bottom: 36px;
}

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

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

.contact-detail-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fdf2f4, #fce7eb);
    border-radius: 12px;
    color: #a81838;
    flex-shrink: 0;
}

.contact-detail-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #a81838;
    margin-bottom: 4px;
}

.contact-detail-value {
    font-size: 1rem;
    color: #3a2430;
    line-height: 1.6;
}

.contact-detail a {
    transition: color 0.2s ease;
}

.contact-detail a:hover {
    color: #a81838;
}

/* Form */
.contact-form-wrapper {
    background: #fefcfb;
    border: 1px solid rgba(168, 24, 56, 0.08);
    border-radius: 20px;
    padding: 40px;
}

.contact-form-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #3a2430;
    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.875rem;
    font-weight: 500;
    color: #3a2430;
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid rgba(168, 24, 56, 0.15);
    border-radius: 10px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.9375rem;
    color: #3a2430;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #b89ea8;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #a81838;
    box-shadow: 0 0 0 3px rgba(168, 24, 56, 0.08);
}

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

.form-note {
    font-size: 0.8125rem;
    color: #b89ea8;
    text-align: center;
    margin-top: 16px;
}

.form-success {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #fdf2f4, #fce7eb);
    border-radius: 12px;
    color: #a81838;
    font-weight: 500;
    margin-top: 16px;
}

.form-success svg {
    flex-shrink: 0;
}

.contact-form.hidden {
    display: none;
}

@media (max-width: 991px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

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

/* --- Footer --- */
.footer {
    background: #410712;
    color: rgba(255, 255, 255, 0.7);
    padding: 72px 0 0;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 1.0625rem;
    color: #fff;
    margin-bottom: 14px;
}

.footer-tagline {
    font-size: 0.9375rem;
    line-height: 1.65;
    max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

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

.footer-links a {
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

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

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

.footer-contact a {
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: #ffd9cf;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 24px 0;
    font-size: 0.8125rem;
}

@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 639px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .service-card:hover,
    .testimonial-card:hover {
        transform: none;
    }

    .gallery-item:hover img {
        transform: none;
    }
}
