/* ============================================
   MIHALOV CONSTRUCTION — Custom Styles
   Classic & Elegant · Burgundy + Blush
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    background-color: #fefdfb;
    color: #2a2220;
}

::selection {
    background-color: #7B2D3B;
    color: #fdf8f5;
}

/* --- 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);
    }

    /* Stagger children */
    .card.reveal { transition-delay: 0.1s; }
    .card.reveal:nth-child(2) { transition-delay: 0.2s; }
    .card.reveal:nth-child(3) { transition-delay: 0.3s; }
    .card.reveal:nth-child(4) { transition-delay: 0.4s; }
    .card.reveal:nth-child(5) { transition-delay: 0.5s; }
    .card.reveal:nth-child(6) { transition-delay: 0.6s; }
}

/* Fallback: always visible if JS disabled or reduced motion */
.no-js .reveal,
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(254, 253, 251, 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.scrolled {
    box-shadow: 0 2px 24px rgba(123, 45, 59, 0.08);
}

.nav__inner {
    height: 80px;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.nav__logo-icon {
    color: #7B2D3B;
    flex-shrink: 0;
}

.nav__links {
    gap: 32px;
}

.nav__link {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #3d3230;
    text-decoration: none;
    position: relative;
    padding: 4px 0;
    transition: color 0.25s ease;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #7B2D3B;
    transition: width 0.3s ease;
}

.nav__link:hover {
    color: #7B2D3B;
}

.nav__link:hover::after {
    width: 100%;
}

.nav__menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #7B2D3B;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav__mobile {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(254, 253, 251, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(123, 45, 59, 0.08);
    box-shadow: 0 8px 32px rgba(123, 45, 59, 0.08);
}

.nav__mobile.hidden {
    display: none;
}

.nav__mobile[aria-hidden="true"] {
    display: none;
}

.nav__mobile-link {
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #3d3230;
    text-decoration: none;
    padding: 12px 0;
    transition: color 0.25s ease;
}

.nav__mobile-link:hover {
    color: #7B2D3B;
}

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

.btn--sm {
    padding: 10px 20px;
    font-size: 0.75rem;
}

.btn--burgundy {
    background: #7B2D3B;
    color: #fdf8f5;
    border-color: #7B2D3B;
}

.btn--burgundy:hover {
    background: #5e1f2c;
    border-color: #5e1f2c;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(123, 45, 59, 0.25);
}

.btn--gold {
    background: #d48454;
    color: #fdf8f5;
    border-color: #d48454;
}

.btn--gold:hover {
    background: #c46c3e;
    border-color: #c46c3e;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(212, 132, 84, 0.3);
}

.btn--outline {
    background: transparent;
    color: #fdf8f5;
    border-color: rgba(253, 248, 245, 0.6);
}

.btn--outline:hover {
    background: rgba(253, 248, 245, 0.1);
    border-color: #fdf8f5;
}

.btn--outline-light {
    background: transparent;
    color: #7B2D3B;
    border-color: #7B2D3B;
}

.btn--outline-light:hover {
    background: #7B2D3B;
    color: #fdf8f5;
}

.btn__icon {
    flex-shrink: 0;
}

/* --- Labels --- */
.label {
    display: inline-block;
    font-family: 'Raleway', sans-serif;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 2px;
}

.label--burgundy {
    color: #7B2D3B;
    background: rgba(123, 45, 59, 0.07);
}

/* --- Headings --- */
.heading--serif {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

.heading--large {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

/* --- Sections --- */
.section {
    padding: 80px 0;
}

.section--alt {
    background: #faf2e5;
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('https://images.pexels.com/photos/1249611/pexels-photo-1249611.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080') center center / cover no-repeat;
    background-color: #3d3230;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(42, 24, 18, 0.82) 0%,
        rgba(123, 45, 59, 0.72) 50%,
        rgba(42, 24, 18, 0.82) 100%
    );
}

.hero__content {
    max-width: 800px;
}

.hero__greeting {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

.hero__headline {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

.hero__scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(253, 248, 245, 0.5);
}

.hero__scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(253, 248, 245, 0.5), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* --- Cards --- */
.card {
    background: #fefdfb;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(61, 50, 48, 0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(61, 50, 48, 0.12);
}

.card__img-wrapper {
    overflow: hidden;
    aspect-ratio: 3 / 2;
}

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

.card:hover .card__img {
    transform: scale(1.04);
}

.card__body {
    background: #fefdfb;
}

.card__icon-wrap {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(123, 45, 59, 0.07);
    border-radius: 50%;
}

.card__icon {
    color: #7B2D3B;
}

.card__title {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

/* --- About --- */
.about__img-main {
    position: relative;
    z-index: 1;
}

.about__img-accent {
    position: absolute;
    bottom: -32px;
    right: -24px;
    width: 55%;
    z-index: 2;
    border: 4px solid #fefdfb;
    box-shadow: 0 8px 32px rgba(61, 50, 48, 0.12);
}

/* --- Stats --- */
.stat-number {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

.stat-label {
    font-family: 'Raleway', sans-serif;
}

/* --- Gallery --- */
.gallery__item {
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
}

.gallery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery__item:hover .gallery__img {
    transform: scale(1.06);
}

/* --- Testimonials --- */
.testimonial {
    background: #faf2e5;
    padding: 32px;
    border-radius: 4px;
    position: relative;
}

.testimonial__quote {
    color: #7B2D3B;
    opacity: 0.2;
    margin-bottom: 12px;
}

.testimonial__text {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.125rem;
    font-style: italic;
    line-height: 1.7;
}

.testimonial__name {
    font-size: 0.9375rem;
}

/* --- CTA Banner --- */
.cta-banner {
    position: relative;
    padding: 88px 0;
    background: url('https://images.pexels.com/photos/4792489/pexels-photo-4792489.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=600') center center / cover no-repeat;
    background-color: #3d3230;
}

.cta-banner__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(123, 45, 59, 0.88) 0%,
        rgba(42, 24, 18, 0.85) 100%
    );
}

.cta-banner__content {
    max-width: 680px;
}

/* --- Contact --- */
.contact-info__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(123, 45, 59, 0.07);
    border-radius: 50%;
    color: #7B2D3B;
    flex-shrink: 0;
}

.contact-info__label {
    font-family: 'Raleway', sans-serif;
}

/* --- Contact Form --- */
.contact-form {
    background: #faf2e5;
    padding: 36px;
    border-radius: 4px;
}

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

.form-label {
    display: block;
    font-family: 'Raleway', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #3d3230;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    font-family: 'Raleway', sans-serif;
    font-size: 0.9375rem;
    color: #2a2220;
    background: #fefdfb;
    border: 1.5px solid rgba(123, 45, 59, 0.15);
    border-radius: 2px;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    appearance: none;
}

.form-input::placeholder {
    color: #a19890;
}

.form-input:focus {
    border-color: #7B2D3B;
    box-shadow: 0 0 0 3px rgba(123, 45, 59, 0.08);
}

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

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

.form-success {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding: 16px 20px;
    background: rgba(123, 45, 59, 0.06);
    border: 1px solid rgba(123, 45, 59, 0.15);
    border-radius: 2px;
    color: #7B2D3B;
    font-size: 0.9375rem;
    font-weight: 500;
}

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

/* --- Footer --- */
.footer {
    background: #2a0c12;
    color: #fdf8f5;
}

.footer__top {
    padding-bottom: 40px;
}

.footer__heading {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

.footer__logo {
    text-decoration: none;
    color: inherit;
}

.footer__logo svg {
    color: #fad0d9;
}

.footer__link {
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer__bottom {
    border-top: 1px solid rgba(253, 248, 245, 0.08);
}

/* --- Responsive --- */
@media (max-width: 767px) {
    .section {
        padding: 60px 0;
    }

    .hero {
        min-height: 88vh;
    }

    .hero__content {
        padding-top: 100px;
        padding-bottom: 80px;
    }

    .about__img-accent {
        display: none;
    }

    .contact-form {
        padding: 24px;
    }

    .testimonial {
        padding: 24px;
    }

    .cta-banner {
        padding: 64px 0;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .section {
        padding: 72px 0;
    }
}
