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

html { scroll-behavior: smooth; }

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    color: #555;
    line-height: 1.75;
    background: #fff;
    -webkit-tap-highlight-color: transparent;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #1a6fc4; text-decoration: none; }
a:hover { color: #145aaa; }

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

.text-center { text-align: center; }

section { padding: 80px 0; }

.lead {
    font-size: 19px;
    font-weight: 400;
    line-height: 1.75;
    color: #555;
}

p { margin-bottom: 15px; }
p:last-child { margin-bottom: 0; }

/* ── Utility row/col ────────────────────────────────────────────── */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    align-items: center;
}
.col-left  { flex: 0 0 58.33%; max-width: 58.33%; padding: 0 15px; }
.col-right { flex: 0 0 41.67%; max-width: 41.67%; padding: 0 15px; }

/* ── Fade-in on scroll ──────────────────────────────────────────── */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
    display: inline-block;
    font-family: 'Open Sans', sans-serif;
    font-size: 17px;
    font-weight: 700;
    padding: 15px 34px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    text-align: center;
    line-height: 1.4;
    letter-spacing: 0.3px;
    -webkit-font-smoothing: antialiased;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,0.15); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: #1a6fc4;
    color: #fff;
}
.btn-primary:hover { background: #145aaa; color: #fff; }

.btn-submit {
    background: #1a6fc4;
    color: #fff;
    width: 100%;
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    padding: 16px 28px;
    border-radius: 8px;
    margin-top: 6px;
    -webkit-font-smoothing: antialiased;
}
.btn-submit:hover { background: #145aaa; color: #fff; }
.btn-submit:disabled { background: #7baee0; cursor: not-allowed; transform: none; }

.btn-nav {
    background: #1a6fc4;
    color: #fff;
    padding: 11px 24px;
    border-radius: 8px;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    -webkit-font-smoothing: antialiased;
}
.btn-nav:hover { background: #145aaa; color: #fff; }

/* ── Navigation ─────────────────────────────────────────────────── */
#mainNav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    height: 70px;
    transition: box-shadow 0.3s;
}
.nav-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-brand {
    display: block;
    width: 200px;
    height: 50px;
    background: url('../images/premium-logo-grey-bg-240.png') no-repeat left center;
    background-size: contain;
}

/* ── Header / Hero ──────────────────────────────────────────────── */
header {
    width: 100%;
    background: url('../images/best-canadian-windows.jpg') center center / cover no-repeat fixed;
    color: #fff;
    min-height: 860px;
    position: relative;
    overflow: hidden;
}
.bg_overlay {
    position: absolute; inset: 0;
    background: rgba(10, 30, 60, 0.62);
}
header .header-content {
    position: relative;
    padding: 90px 20px 40px;
    min-height: 860px;
    display: flex;
    align-items: center;
    max-width: 1140px;
    margin: 0 auto;
}
header .header-content .container { width: 100%; }

.header-content .row { align-items: center; width: 100%; }

.col-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.heder-heading {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 20px;
}
.header-content .lead {
    color: rgba(255,255,255,0.92);
    font-size: 18px;
    margin-bottom: 15px;
}

/* Price match box */
.price-match-box {
    display: flex;
    align-items: stretch;
    margin-top: 22px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 8px;
    overflow: hidden;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    width: 100%;
}
.price-match-tab {
    background: #1a6fc4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 18px;
    flex-shrink: 0;
    color: #fff;
    font-size: 22px;
}
.price-match-box span { padding: 14px 16px; }

/* ── Lead Form ──────────────────────────────────────────────────── */
.lead-form-header {
    background: #fff;
    border-radius: 12px;
    padding: 28px 28px 20px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.18);
    margin-top: 50px;
}
.lead-form-header h3 {
    text-align: center;
    color: #1b2a3e;
    font-weight: 800;
    font-size: 20px;
    margin-bottom: 18px;
}

.form-group {
    position: relative;
    margin-bottom: 16px;
}
.form-group i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 15px;
    z-index: 2;
    pointer-events: none;
}
.form-group-select i {
    top: 50%;
    transform: translateY(-50%);
}
.form-control {
    width: 100%;
    height: 46px;
    background: #f0f6ff;
    border: 1.5px solid #d0e2f5;
    border-radius: 8px;
    padding: 10px 12px 10px 42px;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    color: #333;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    -webkit-appearance: none;
}
.form-control:focus {
    outline: none;
    border-color: #1a6fc4;
    box-shadow: 0 0 0 3px rgba(26,111,196,0.12);
    background: #fff;
}
.form-control-placeholder {
    position: absolute;
    top: 13px;
    left: 42px;
    font-size: 14px;
    color: #aaa;
    pointer-events: none;
    transition: all 0.15s ease;
}
.form-control:not(:placeholder-shown) + .form-control-placeholder,
.form-control:focus + .form-control-placeholder {
    top: -8px;
    left: 38px;
    font-size: 11px;
    color: #1a6fc4;
    background: #fff;
    padding: 0 4px;
    border-radius: 3px;
}
select.form-control { cursor: pointer; color: #aaa; }
select.form-control.has-value { color: #333; }

.byebye { display: none !important; }

.form-privacy {
    font-size: 12px;
    color: #999;
    text-align: center;
    margin-top: 12px;
    line-height: 1.5;
}
.form-privacy i { color: #1a6fc4; margin-right: 4px; }

/* ── Section headers ────────────────────────────────────────────── */
.section-header { margin-bottom: 40px; }
.section-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: #1b2a3e;
    margin-bottom: 16px;
    line-height: 1.25;
}
.section-header p { color: #666; margin-bottom: 10px; }

.section-cta { margin-top: 40px; }

/* ── About section ──────────────────────────────────────────────── */
#about { background: #fff; }
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}
.about-img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
}
.review-bar {
    display: block;
    margin: 20px auto 0;
    max-width: 320px;
}

/* ── Blue bg sections ───────────────────────────────────────────── */
.section-blue { background: #eef4fb; }

/* ── Service grid ───────────────────────────────────────────────── */
.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}
.service-grid-3 { grid-template-columns: repeat(3, 1fr); }

.service-wrap { position: relative; }
.service-box {
    background: #fff;
    border: 1px solid #dce8f5;
    border-radius: 12px;
    padding: 28px 20px;
    text-align: center;
    height: 100%;
    transition: box-shadow 0.25s, transform 0.25s;
    position: relative;
    overflow: hidden;
}
.service-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: #1a6fc4;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}
.service-box:hover { box-shadow: 0 8px 30px rgba(26,111,196,0.12); transform: translateY(-3px); }
.service-box:hover::before { transform: scaleX(1); }

.service-icon {
    margin-bottom: 16px;
    color: #1a6fc4;
}
.service-box h3 {
    font-size: 19px;
    font-weight: 700;
    color: #1b2a3e;
    margin-bottom: 12px;
}
.service-box p { font-size: 16px; color: #666; margin: 0; line-height: 1.65; }

/* ── Why Us ─────────────────────────────────────────────────────── */
.why-us-section { padding: 0; background: #fff; }
.why-us-split {
    display: flex;
    align-items: stretch;
    min-height: 560px;
}
.why-us-img {
    flex: 0 0 50%;
    background: url('../images/premium-windows-doors-installation.jpg') center center / cover no-repeat;
    min-height: 460px;
}
.why-us-des {
    flex: 0 0 50%;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.why-us-des h2 {
    font-size: 32px;
    font-weight: 800;
    color: #1b2a3e;
    margin-bottom: 20px;
}
.why-us-des p { color: #555; font-size: 16px; margin-bottom: 14px; }
.why-us-des .review-bar { margin: 16px 0; }

/* ── Achievement / CTA ──────────────────────────────────────────── */
#achievement {
    position: relative;
    background: url('../images/achievement-bg.jpg') center center / cover no-repeat fixed;
    padding: 100px 0;
}
#achievement .c_cover {
    position: absolute; inset: 0;
    background: rgba(10,30,60,0.7);
}
.achievement-des { color: #fff; position: relative; z-index: 2; }
.achievement-des h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #fff;
}
.achievement-des .lead { color: rgba(255,255,255,0.9); margin-bottom: 14px; }
.achievement-des .btn-primary {
    margin-top: 10px;
    background: #1a6fc4;
}
.achievement-des .btn-primary:hover { background: #fff; color: #1a6fc4; }

/* ── Portfolio ──────────────────────────────────────────────────── */
#portfolio { background: #fff; }
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 30px;
}
.portfolio-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.portfolio-item:hover img {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* ── Contact section ────────────────────────────────────────────── */
#contact { background: #eef4fb; padding-bottom: 60px; }
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
    text-align: center;
}
.contact-info i {
    font-size: 36px;
    color: #1a6fc4;
    margin-bottom: 12px;
    display: block;
}
.contact-info a { color: #1a6fc4; font-weight: 600; }
.contact-info a:hover { color: #145aaa; }
.contact-info p { margin: 0; font-size: 15px; }

/* ── Footer ─────────────────────────────────────────────────────── */
footer {
    background: #1b2a3e;
    color: rgba(255,255,255,0.65);
    padding: 30px 0;
    text-align: center;
}
.copy-right {
    font-size: 12px;
    margin-bottom: 6px;
    line-height: 1.6;
}
.copy-right a { color: rgba(255,255,255,0.65); }
.copy-right a:hover { color: #fff; }

/* ── Modal ──────────────────────────────────────────────────────── */
.modal-backdrop {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}
.modal-backdrop.open { display: flex; }
.modal-box {
    background: #fff;
    border-radius: 12px;
    padding: 36px 32px 28px;
    max-width: 480px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.modal-close {
    position: absolute;
    top: 14px; right: 18px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: #aaa;
    line-height: 1;
}
.modal-close:hover { color: #333; }
.modal-body { margin-top: 10px; font-size: 16px; }
.modal-footer { margin-top: 24px; text-align: right; }
.text-success { color: #27ae60; }
.text-danger  { color: #e74c3c; }

/* ── Spinner ────────────────────────────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }
.fa-spin { animation: spin 1s linear infinite; }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .service-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
    .col-left, .col-right { flex: 0 0 100%; max-width: 100%; }
    .col-left { text-align: center; align-items: center; padding-top: 60px; }
    .col-left .lead { max-width: 100%; }
    .col-left .price-match-box { text-align: left; }
    .about-grid { grid-template-columns: 1fr; }
    .about-img img { height: 280px; }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .why-us-split { flex-direction: column; }
    .why-us-img { flex: 0 0 100%; min-height: 340px; }
    .why-us-des { flex: 0 0 100%; padding: 40px 30px; }
    .contact-grid { grid-template-columns: 1fr; }
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .service-grid-3 { grid-template-columns: repeat(2, 1fr); }
    section { padding: 60px 0; }
    .section-header h2 { font-size: 26px; }
}

@media (max-width: 767px) {
    .heder-heading { font-size: 28px; }
    .header-content .lead { font-size: 16px; }
    .service-grid { grid-template-columns: 1fr; }
    .service-grid-3 { grid-template-columns: 1fr; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .lead-form-header { padding: 22px 18px 16px; margin-top: 30px; }
    .section-header h2 { font-size: 22px; }
    .achievement-des h2 { font-size: 24px; }
}

/* ── Trust Bar ──────────────────────────────────────────────────── */
.trust-bar {
    background: #1b2a3e;
    color: rgba(255,255,255,0.85);
    padding: 10px 20px;
    position: fixed;
    top: 70px;
    left: 0; right: 0;
    z-index: 999;
    overflow: hidden;
}
.trust-bar-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    max-width: 1140px;
    margin: 0 auto;
    font-size: 13px;
    font-weight: 600;
}
.trust-item { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.trust-item i { color: #1a6fc4; font-size: 14px; }

/* push header down to clear nav + trust bar */
header { margin-top: 40px; }
.header-content { padding-top: 70px !important; }

/* ── Urgency bar ────────────────────────────────────────────────── */
.urgency-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    background: rgba(255,193,7,0.15);
    border: 1px solid rgba(255,193,7,0.5);
    border-radius: 8px;
    padding: 10px 16px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
}
.urgency-bar i { color: #ffc107; font-size: 18px; flex-shrink: 0; }

/* ── 5-card grid ────────────────────────────────────────────────── */
.service-grid-5 { grid-template-columns: repeat(5, 1fr); }

/* ── Achievement bg fix ─────────────────────────────────────────── */
#achievement {
    background-image: url('../images/custom-windows-sunroom.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center center;
}

/* ── Reviews carousel ───────────────────────────────────────────── */
.reviews-section { background: #fff; padding: 80px 0 60px; }
.reviews-carousel-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding: 0 20px;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
}
.reviews-viewport {
    flex: 1;
    overflow: hidden;
}
.reviews-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease;
}
.review-card {
    background: #f7faff;
    border: 1px solid #dce8f0;
    border-radius: 10px;
    padding: 24px;
    flex: 0 0 calc(33.333% - 14px);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.review-stars { color: #f4b400; font-size: 20px; letter-spacing: 2px; }
.review-text {
    font-size: 15px;
    line-height: 1.65;
    color: #444;
    font-style: italic;
    flex: 1;
    margin: 0;
}
.review-author { display: flex; flex-direction: column; font-size: 14px; }
.review-author strong { color: #1b2a3e; }
.review-author span { color: #888; }

.reviews-arrow {
    background: #1a6fc4;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 42px; height: 42px;
    font-size: 16px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.15s;
    display: flex; align-items: center; justify-content: center;
}
.reviews-arrow:hover { background: #145aaa; transform: scale(1.08); }
.reviews-arrow:disabled { background: #ccc; cursor: default; transform: none; }

.reviews-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}
.reviews-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
}
.reviews-dot.active { background: #1a6fc4; }

/* ── Responsive additions ───────────────────────────────────────── */
@media (max-width: 1100px) {
    .service-grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 992px) {
    .trust-bar-inner { gap: 16px; font-size: 12px; }
    .service-grid-5 { grid-template-columns: repeat(2, 1fr); }
    .review-card { flex: 0 0 calc(50% - 10px); }
}
@media (max-width: 640px) {
    .trust-item:nth-child(4),
    .trust-item:nth-child(5) { display: none; }
    .review-card { flex: 0 0 100%; }
    .reviews-carousel-wrap { padding: 0 10px; }
}

/* ── FAQ accordion ──────────────────────────────────────────────── */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
    border-bottom: 1px solid #d0e2f5;
    margin-bottom: 0;
}
.faq-item:first-child { border-top: 1px solid #d0e2f5; }
.faq-q {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 18px 0;
    font-family: 'Open Sans', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #1b2a3e;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    line-height: 1.4;
}
.faq-q i {
    color: #1a6fc4;
    font-size: 14px;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}
.faq-q[aria-expanded="true"] i { transform: rotate(180deg); }
.faq-a {
    font-size: 16px;
    color: #555;
    line-height: 1.7;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0;
}
.faq-a.open {
    max-height: 300px;
    padding-bottom: 18px;
}

/* ── Mobile parallax fix ────────────────────────────────────────── */
@media (max-width: 992px) {
    header { background-attachment: scroll; }
    #achievement { background-attachment: scroll; }
}
