/* ============================================================
   Momentum Construction & Restoration  -  mcrcanada.com
   SHARED STYLESHEET  -  applies to every page.
   Edit site-wide styling here.
   A handful of rules differ per page and stay in that page.
   ============================================================ */

html, body { max-width: 100%; overflow-x: hidden; margin: 0; padding: 0; }
* { box-sizing: border-box; margin: 0; padding: 0; }
h1, h2, h3 { font-family: 'Montserrat', sans-serif; font-weight: 700; }
nav a.nav-btn-link { text-decoration: none; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 18px; letter-spacing: 0.5px; padding: 14px 28px; border-radius: 6px; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); display: inline-block; }
nav a.btn-standard { background-color: #F1F3F5; color: #2B2C2C; }
nav a.btn-standard:hover { background-color: #E2E5E9; color: #800020; transform: translateY(-1px); }
nav a.btn-cta { background-color: #800020; color: #FFFFFF; box-shadow: 0 4px 15px rgba(128, 0, 32, 0.15); }
nav a.btn-cta:hover { background-color: #600018; box-shadow: 0 6px 20px rgba(128, 0, 32, 0.3); transform: translateY(-2px); }
.dropdown { position: relative; display: inline-block; }
.dropdown-toggle::after { content: " ▾"; font-size: 14px; color: #707A8A; }
.dropdown-menu { align-items: stretch; gap: 0; display: none; position: absolute; background-color: #FFFFFF; min-width: 360px; box-shadow: 0px 12px 40px rgba(0,0,0,0.15); border-radius: 6px; padding: 10px 0; top: 100%; left: 0; z-index: 1100; list-style: none; flex-direction: column; border: 1px solid rgba(0,0,0,0.06); }
.dropdown-menu li a { padding: 16px 24px; display: block; font-weight: 600; font-size: 16px; color: #2B2C2C; border-bottom: 1px solid #F1F3F5; text-decoration: none; transition: all 0.3s ease; }
.dropdown-menu li:last-child a { border-bottom: none; }
.dropdown-menu li a:hover { background-color: #FFF0F2; color: #800020; padding-left: 32px; }
.hero { background: linear-gradient(135deg, rgba(30, 31, 33, 0.96) 0%, rgba(58, 60, 64, 0.92) 100%), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60"><path d="M0 0h60v60H0z" fill="none"/><path d="M60 0L0 60M30 0l30 30M0 30l30 30" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></svg>'); background-size: cover; background-position: center; color: var(--white); padding: 160px 20px; text-align: center; }
.hero-content { max-width: 850px; margin: 0 auto; }
.hero h1 { font-size: 48px; margin-bottom: 24px; letter-spacing: -0.5px; line-height: 1.2; }
.hero p { font-size: 19px; margin-bottom: 40px; color: #D1D5DB; font-weight: 400; max-width: 650px; margin-left: auto; margin-right: auto; }
.btn { display: inline-block; padding: 15px 32px; font-weight: 600; text-decoration: none; border-radius: 4px; font-size: 15px; letter-spacing: 0.5px; transition: var(--transition-smooth); cursor: pointer; }
.btn-primary { background-color: var(--primary-burgundy); color: var(--white); box-shadow: 0 4px 15px rgba(128, 0, 32, 0.3); }
.btn-primary:hover { background-color: #600018; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(128, 0, 32, 0.4); }
.btn-secondary { background-color: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.4); margin-left: 15px; }
.btn-secondary:hover { border-color: var(--white); background-color: rgba(255,255,255,0.08); transform: translateY(-2px); }
.services-section { max-width: 1200px; margin: 100px auto; padding: 0 20px; }
.section-title { text-align: center; margin-bottom: 60px; font-size: 32px; letter-spacing: -0.5px; }
.section-title span { display: block; width: 50px; height: 4px; background-color: var(--primary-burgundy); margin: 15px auto 0 auto; border-radius: 2px; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; }
.service-card { background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: var(--card-shadow); display: flex; flex-direction: column; border: 1px solid rgba(0,0,0,0.03); transition: var(--transition-smooth); }
.service-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08); border-color: rgba(128, 0, 32, 0.15); }
.service-card-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.service-card h3 { margin-bottom: 15px; color: var(--dark-charcoal); font-size: 19px; line-height: 1.3; }
.service-card ul { list-style-type: none; margin-bottom: 25px; }
.service-card li { margin-bottom: 8px; padding-left: 20px; position: relative; font-size: 14px; color: #555; }
.service-card li::before { content: "✓"; color: var(--primary-burgundy); font-weight: bold; position: absolute; left: 0; }
.card-link { margin-top: auto; color: var(--primary-burgundy); text-decoration: none; font-weight: 700; font-size: 14px; letter-spacing: 0.5px; display: inline-flex; align-items: center; gap: 6px; transition: var(--transition-smooth); }
.service-card:hover .card-link { gap: 12px; }
.trust-section { background-color: var(--light-grey); padding: 100px 20px; border-top: 1px solid rgba(0,0,0,0.03); }
.trust-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.trust-text h2 { margin-bottom: 24px; font-size: 32px; letter-spacing: -0.5px; line-height: 1.3; }
.trust-text p { color: #5A5C5F; font-size: 16px; margin-bottom: 20px; }
.trust-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.trust-gallery .photo-placeholder { height: 160px; border-radius: 6px; box-shadow: 0 4px 15px rgba(0,0,0,0.02); transition: var(--transition-smooth); background: linear-gradient(135deg, #E9EBF0 0%, #DCE0E6 100%); border: 2px dashed rgba(112, 122, 138, 0.4); display: flex; align-items: center; justify-content: center; color: var(--secondary-slate); font-weight: 600; font-size: 13px; }
.footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 50px; border-bottom: 1px solid #282A2E; padding-bottom: 50px; margin-bottom: 30px; }
.footer-col h4 { color: var(--white); margin-bottom: 25px; font-size: 16px; letter-spacing: 0.5px; }
.footer-col p { line-height: 1.7; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a:hover { color: var(--white); padding-left: 5px; }
.copyright { text-align: center; max-width: 1200px; margin: 0 auto; font-size: 13px; color: #5C5F66; }
.approach-section { background-color: #ffffff; color: #111111; padding: 80px 20px; }
.approach-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.approach-text p { color: #555555; font-size: 1.1rem; line-height: 1.6; margin-bottom: 16px; }
.approach-card { background: #f9f9f9; border: 1px solid #eaeaea; padding: 32px; border-radius: 12px; }
.approach-card h3 { font-size: 3rem; font-weight: bold; color: #111111; margin-bottom: 12px; }
.approach-card p { color: #666666; font-size: 1.05rem; line-height: 1.5; margin: 0; }
.approach-steps { display: flex; flex-direction: column; gap: 16px; }
.step-card { background: #f9f9f9; border: 1px solid #eaeaea; padding: 20px; border-radius: 8px; display: flex; align-items: flex-start; gap: 16px; }
.step-number { flex-shrink: 0; width: 32px; height: 32px; background: #000000; color: #ffffff; font-weight: bold; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; }
.step-content h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 4px; color: #111111; }
.step-content p { color: #666666; font-size: 0.95rem; margin: 0; }
.about-us-section { background-color: #ffffff; color: #111111; padding: 80px 20px; }
.about-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-text h2 { font-size: 2.5rem; font-weight: 700; margin-bottom: 24px; }
.about-text p { color: #555555; font-size: 1.1rem; line-height: 1.6; margin-bottom: 16px; }
.about-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.highlight-card { background: #f9f9f9; border: 1px solid #eaeaea; padding: 24px; border-radius: 8px; }
.highlight-card h3 { font-size: 1.8rem; font-weight: bold; margin-bottom: 4px; }
.highlight-card p { color: #666666; font-size: 0.95rem; }
.contact-wrapper { max-width: 1200px; margin: 60px auto; padding: 0 20px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: start; }
.form-card { background: var(--white); padding: 40px; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.form-card h1, .form-card h2 { margin-bottom: 10px; color: var(--dark-charcoal); font-size: 28px; }
.form-card p { color: var(--secondary-slate); margin-bottom: 30px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 14px; }
.form-control { width: 100%; padding: 12px; border: 1px solid #D1D5DB; border-radius: 4px; font-family: 'Open Sans', sans-serif; font-size: 15px; }
.form-control:focus { outline: none; border-color: var(--primary-burgundy); }
.submit-btn { background-color: var(--primary-burgundy); color: var(--white); border: none; padding: 14px 28px; width: 100%; border-radius: 4px; font-weight: 600; font-size: 16px; cursor: pointer; transition: background-color 0.3s; }
.submit-btn:hover { background-color: #600018; }
.info-panel { display: flex; flex-direction: column; gap: 30px; }
.office-details { background: var(--dark-charcoal); color: var(--white); padding: 40px; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.office-details h3 { color: var(--white); margin-bottom: 15px; font-size: 22px; }
.office-details p { color: #D1D5DB; margin-bottom: 12px; font-size: 15px; }
.office-details a { color: #60A5FA; text-decoration: none; }
.office-details a:hover { text-decoration: underline; }
.map-placeholder { background: linear-gradient(135deg, #E9EBF0 0%, #DCE0E6 100%); border: 2px dashed rgba(112, 122, 138, 0.4); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.map-placeholder iframe { width: 100%; height: 450px; border: 0; }
.inner-hero { background-color: var(--dark-charcoal); color: var(--white); padding: 60px 20px; text-align: center; }
.inner-hero h1 { font-size: 32px; margin-bottom: 10px; font-weight: 700; }
.page-container { max-width: 1200px; margin: 60px auto; padding: 0 20px; display: grid; grid-template-columns: 2fr 1fr; gap: 50px; align-items: start; }
.service-list-section h2 { color: var(--primary-burgundy); margin-bottom: 25px; font-size: 24px; border-bottom: 2px solid var(--light-grey); padding-bottom: 10px; font-weight: 700; }
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 40px; }
.service-item { background: var(--light-grey); padding: 20px; border-radius: 6px; border-left: 4px solid var(--primary-burgundy); font-weight: 600; font-size: 15px; }
.sidebar-gallery { display: flex; flex-direction: column; gap: 20px; }
.photo-placeholder { background: linear-gradient(135deg, #E9EBF0 0%, #DCE0E6 100%); border: 2px dashed rgba(112, 122, 138, 0.4); border-radius: 6px; height: 250px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--secondary-slate); font-weight: 600; font-size: 14px; text-align: center; padding: 20px; overflow: hidden; }
.photo-placeholder::before { content: "📷"; font-size: 32px; margin-bottom: 8px; }
.service-detail { margin-bottom: 30px; }
.service-detail h3 { color: var(--primary-burgundy); margin-bottom: 8px; font-size: 19px; }
.service-detail p { color: #555; margin-bottom: 12px; }

@media (hover: hover) and (pointer: fine) {
    .dropdown:hover .dropdown-menu { display: flex; }
}

@media (max-width: 768px) {
    .dropdown-menu { min-width: 100%; position: static; box-shadow: none; border: none; }
    .hero { padding: 80px 20px; }
    .hero h1 { font-size: 32px; }
    .btn-secondary { margin-left: 0; margin-top: 15px; }
    .hero-content .btn { display: block; width: 100%; }
    .services-grid, .trust-container { grid-template-columns: 1fr; gap: 30px; }
    .trust-text { text-align: center; }
    .approach-container { grid-template-columns: 1fr; }
    .about-container { grid-template-columns: 1fr; }
    .contact-wrapper, .page-container, .service-grid, .about-container, .footer-container { grid-template-columns: 1fr !important; display: flex !important; flex-direction: column !important; width: 100%; gap: 30px; }
    .map-placeholder iframe { width: 100% !important; height: 350px !important; }
    p, h1, h2, h3, a { word-wrap: break-word; overflow-wrap: break-word; }
    .form-card { padding: 20px; }
    .page-container, .service-grid, .footer-container { grid-template-columns: 1fr !important; display: grid; gap: 20px; width: 100%; }
    p, h1, h2, h3, a, div { word-wrap: break-word; overflow-wrap: break-word; }
}

/* dropdown opened by click or keyboard */
.dropdown-menu.is-open { display: flex; }

/* ============================================================
   SERVICE SCOPE PHOTOS
   Photo alternates side down the page. Scopes with no photo run
   full width. Set .is-pair on the figure for before/after later.
   ============================================================ */
.service-detail { margin-bottom: 60px; }
.service-detail h3 {
    position: relative;
    padding-left: 18px;
    font-size: 21px;
    line-height: 1.3;
    margin-bottom: 16px;
}
.service-detail h3::before {
    content: "";
    position: absolute;
    left: 0; top: 0.2em; bottom: 0.2em;
    width: 4px;
    border-radius: 2px;
    background: var(--primary-burgundy);
}
.service-detail p { color: #4A4D52; margin-bottom: 14px; line-height: 1.75; }

.detail-row { display: block; }
.detail-row.has-photo {
    display: grid;
    grid-template-columns: 1fr 390px;
    gap: 44px;
    align-items: center;
}
.detail-row.has-photo.is-flipped { grid-template-columns: 390px 1fr; }
.detail-row.has-photo.is-flipped .service-photo { order: -1; }

.service-photo {
    margin: 0;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05), 0 16px 40px rgba(0,0,0,0.10);
    background-color: var(--light-grey);
}
.service-photo img {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
    display: block;
    transform: scale(1.001);
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-photo:hover img { transform: scale(1.07); }
.service-photo.is-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.service-photo.is-pair img { aspect-ratio: 1 / 1; }
.service-photo figcaption { font-size: 12.5px; color: var(--secondary-slate); margin-top: 6px; }

@media (max-width: 980px) {
    .detail-row.has-photo,
    .detail-row.has-photo.is-flipped { grid-template-columns: 1fr; gap: 18px; }
    .service-photo,
    .detail-row.has-photo.is-flipped .service-photo { order: -1; }
    .service-photo img { aspect-ratio: 16 / 10; }
    .service-detail { margin-bottom: 44px; }
}

/* ============================================================
   HOMEPAGE SERVICE CARDS - whole card clickable
   ============================================================ */
.service-card { position: relative; cursor: pointer; }
.service-card img { transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.service-card:hover img { transform: scale(1.06); }
/* the existing link is stretched to cover the card, so one link serves the whole card */
.service-card .card-link::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 8px;
    z-index: 1;
}
.service-card:active { transform: translateY(-3px) scale(0.994); transition: transform 0.08s ease; }
.service-card:focus-within {
    outline: 3px solid rgba(128, 0, 32, 0.45);
    outline-offset: 3px;
}
.service-card .card-link:focus { outline: none; }
@media (hover: none) {
    .service-card:hover img { transform: none; }
}
