/* 奢眸门窗 Thermo-Bilt Windows & Doors — torontowindowsdoorsca.com */
:root {
    --primary-color: #103a56;
    --primary-dark: #0a2638;
    --primary-light: #1d5a82;
    --accent-color: #e20113;
    --accent-dark: #b8000f;
    --gold: #c9a45c;
    --dark-color: #0b1f2e;
    --text: #1f2d38;
    --muted: #5b6b78;
    --line: #dde4ea;
    --bg-soft: #f3f6f9;
    --white: #ffffff;
    --radius: 10px;
    --shadow: 0 10px 30px rgba(16, 58, 86, .10);
    --transition: all .3s ease;
    --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-color); }
h1, h2, h3, h4, h5 { color: var(--primary-color); line-height: 1.35; margin: 0 0 .6em; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--accent-color); color: #fff; padding: 8px 14px; z-index: 999; }
.skip-link:focus { left: 10px; }
.lang-en { display: none; }

/* ---------- Top bar ---------- */
.topbar { background: var(--dark-color); color: rgba(255,255,255,.8); font-size: 13.5px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 38px; flex-wrap: wrap; }
.topbar a { color: #fff; }
.topbar a:hover { color: var(--gold); }
.topbar span + span { margin-left: 18px; }

/* ---------- Header ---------- */
.site-header { background: var(--white); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 14px rgba(11, 31, 46, .08); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 16px; }
.logo a { color: var(--primary-color); text-decoration: none; transition: opacity .3s; display: flex; align-items: center; gap: 10px; }
.logo a:hover { opacity: .8; color: var(--primary-color); }
.logo img { width: 48px; height: 48px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text strong { font-size: 22px; letter-spacing: 1px; }
.logo-text small { font-size: 11.5px; color: var(--muted); letter-spacing: .3px; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.main-nav a { display: block; padding: 8px 11px; color: var(--text); font-size: 15px; font-weight: 500; border-radius: 6px; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--accent-color); }
.main-nav .nav-cta a { background: var(--accent-color); color: #fff; padding: 9px 16px; margin-left: 8px; font-weight: 600; }
.main-nav .nav-cta a:hover { background: var(--accent-dark); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--primary-color); margin: 6px 0; transition: var(--transition); }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 13px 28px; border-radius: 6px; font-weight: 600; font-size: 16px; border: 2px solid transparent; cursor: pointer; transition: var(--transition); text-align: center; }
.btn-primary { background: var(--accent-color); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { border-color: rgba(255,255,255,.85); color: #fff; }
.btn-outline:hover { background: #fff; color: var(--primary-color); }
.btn-navy { background: var(--primary-color); color: #fff; }
.btn-navy:hover { background: var(--primary-dark); color: #fff; }
.btn-group { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: var(--primary-dark); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,38,56,.92) 0%, rgba(10,38,56,.72) 48%, rgba(10,38,56,.25) 100%); }
.hero .container { position: relative; z-index: 2; padding-top: 110px; padding-bottom: 120px; }
.hero-eyebrow { display: inline-block; background: rgba(226,1,19,.92); color: #fff; font-size: 14px; padding: 5px 14px; border-radius: 30px; margin-bottom: 18px; letter-spacing: 1px; }
.hero h1 { color: #fff; font-size: clamp(30px, 4.6vw, 52px); max-width: 700px; margin-bottom: 18px; }
.hero-lead { font-size: clamp(16px, 1.8vw, 20px); max-width: 620px; color: rgba(255,255,255,.9); margin-bottom: 30px; }
.hero-points { list-style: none; padding: 0; margin: 0 0 34px; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 15px; }
.hero-points li::before { content: "✓"; color: var(--gold); font-weight: 700; margin-right: 6px; }

/* Page hero (inner pages) */
.page-hero { position: relative; background: var(--primary-color); color: #fff; overflow: hidden; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.page-hero .container { position: relative; padding-top: 64px; padding-bottom: 60px; }
.page-hero h1 { color: #fff; font-size: clamp(26px, 3.6vw, 40px); margin-bottom: 10px; max-width: 900px; }
.page-hero p { color: rgba(255,255,255,.88); max-width: 760px; margin: 0; font-size: 17px; }
.breadcrumb { font-size: 14px; margin-bottom: 14px; color: rgba(255,255,255,.75); }
.breadcrumb a { color: rgba(255,255,255,.9); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { margin: 0 6px; }

/* ---------- Stats ---------- */
.stats { background: var(--white); position: relative; z-index: 3; margin-top: -54px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.stat { padding: 26px 18px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: 34px; color: var(--accent-color); line-height: 1.1; }
.stat span { color: var(--muted); font-size: 14.5px; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-soft { background: var(--bg-soft); }
.section-navy { background: var(--primary-color); color: rgba(255,255,255,.9); }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.section-head .eyebrow, .eyebrow { color: var(--accent-color); font-weight: 700; font-size: 14px; letter-spacing: 2px; display: block; margin-bottom: 8px; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 36px); }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }
.section-navy .section-head p { color: rgba(255,255,255,.8); }

.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Feature cards */
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; transition: var(--transition); }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.feature-icon { width: 54px; height: 54px; border-radius: 12px; background: rgba(226,1,19,.08); color: var(--accent-color); display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700; margin-bottom: 18px; }
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { color: var(--muted); margin: 0; font-size: 15.5px; }

/* Image cards */
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 18px rgba(16,58,86,.07); display: flex; flex-direction: column; transition: var(--transition); }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 19px; margin-bottom: 8px; }
.card-body h3 a { color: var(--primary-color); }
.card-body h3 a:hover { color: var(--accent-color); }
.card-body p { color: var(--muted); font-size: 15px; flex: 1; }
.card-meta { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.more { font-weight: 600; font-size: 15px; color: var(--accent-color); }
.more::after { content: " →"; }

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-img img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.check-list { list-style: none; padding: 0; margin: 0 0 1.4em; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #fff; background: var(--accent-color); width: 20px; height: 20px; border-radius: 50%; font-size: 12px; line-height: 20px; text-align: center; margin-top: 5px; }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; text-align: center; padding: 20px 14px; }
.step-num { width: 70px; height: 70px; border-radius: 50%; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 800; background: #fff; color: var(--accent-color); border: 3px solid var(--accent-color); }
.section-navy .step-num { background: transparent; color: #fff; border-color: var(--gold); }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { font-size: 15px; margin: 0; }

/* Color swatches */
.swatches { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; }
.swatch { text-align: center; font-size: 15px; color: var(--muted); }
.swatch img { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 8px; box-shadow: 0 4px 14px rgba(0,0,0,.14); border: 3px solid #fff; }

/* Testimonials */
.quote { background: #fff; border-radius: var(--radius); padding: 28px 26px; box-shadow: 0 4px 18px rgba(16,58,86,.07); position: relative; }
.quote::before { content: "“"; position: absolute; top: 4px; right: 22px; font-size: 70px; color: rgba(226,1,19,.15); font-family: Georgia, serif; line-height: 1; }
.quote p { font-size: 15.5px; color: var(--text); }
.quote cite { font-style: normal; font-weight: 700; color: var(--primary-color); }
.stars { color: #f5a623; letter-spacing: 2px; font-size: 15px; margin-bottom: 8px; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--primary-color), var(--primary-light)); color: #fff; padding: 60px 0; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 6px; font-size: clamp(22px, 2.8vw, 30px); }
.cta-band p { margin: 0; color: rgba(255,255,255,.85); }
.cta-phone { font-size: 30px; font-weight: 800; color: #fff; }
.cta-phone:hover { color: var(--gold); }

/* ---------- Article / rich content ---------- */
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.prose { font-size: 16.5px; }
.prose h2 { font-size: 26px; margin-top: 1.6em; }
.prose h3 { font-size: 21px; margin-top: 1.5em; }
.prose h4, .prose h5 { font-size: 18px; margin-top: 1.3em; }
.prose img { border-radius: 8px; margin: 1.4em auto; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { font-size: 13.5px; color: var(--muted); text-align: center; margin-top: -.6em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { border-left: 4px solid var(--accent-color); background: var(--bg-soft); margin: 1.4em 0; padding: 14px 20px; border-radius: 0 8px 8px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; }
.prose .lead { font-size: 18px; color: var(--muted); }
.video { position: relative; aspect-ratio: 16 / 9; margin: 1.6em 0; border-radius: 8px; overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.notice { background: #fff8e6; border: 1px solid #f1d99a; border-radius: 8px; padding: 14px 18px; font-size: 15px; margin: 0 0 1.6em; }
.post-meta { color: var(--muted); font-size: 14px; margin-bottom: 1.4em; }
.cover { border-radius: var(--radius); margin-bottom: 1.6em; width: 100%; }

.sidebar { position: sticky; top: 100px; display: grid; gap: 22px; }
.side-box { background: var(--bg-soft); border-radius: var(--radius); padding: 24px; }
.side-box h3 { font-size: 18px; margin-bottom: 12px; }
.side-box ul { list-style: none; padding: 0; margin: 0; }
.side-box li { border-bottom: 1px solid var(--line); }
.side-box li:last-child { border-bottom: 0; }
.side-box li a { display: block; padding: 9px 0; color: var(--text); font-size: 15px; }
.side-box li a:hover { color: var(--accent-color); }
.side-cta { background: var(--primary-color); color: #fff; }
.side-cta h3 { color: #fff; }
.side-cta p { color: rgba(255,255,255,.85); font-size: 15px; }
.side-cta .cta-phone { font-size: 24px; display: block; margin-bottom: 12px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 900px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; background: #fff; overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 18px 56px 18px 22px; font-weight: 700; color: var(--primary-color); font-size: 17px; list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 26px; color: var(--accent-color); font-weight: 400; }
.faq-item[open] summary::after { content: "−"; }
.faq-item[open] summary { border-bottom: 1px solid var(--line); }
.faq-answer { padding: 16px 22px 8px; font-size: 15.5px; }

/* ---------- Gallery ---------- */
.gallery-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.gallery-nav a { border: 1px solid var(--line); border-radius: 30px; padding: 7px 18px; color: var(--text); font-size: 15px; background: #fff; }
.gallery-nav a:hover { border-color: var(--accent-color); color: var(--accent-color); }
.gallery-group { margin-bottom: 64px; scroll-margin-top: 100px; }
.gallery-group h2 { font-size: 26px; }
.gallery-group > p { color: var(--muted); max-width: 820px; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-grid a { display: block; border-radius: 8px; overflow: hidden; aspect-ratio: 1 / 1; background: var(--bg-soft); }
.gallery-grid.tall a { aspect-ratio: 3 / 5; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-grid a:hover img { transform: scale(1.06); }
.lightbox { position: fixed; inset: 0; background: rgba(5,15,24,.92); display: none; align-items: center; justify-content: center; z-index: 1000; padding: 20px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 88vh; max-width: 92vw; width: auto; border-radius: 6px; }
.lightbox button { position: absolute; top: 14px; right: 18px; background: none; border: 0; color: #fff; font-size: 40px; cursor: pointer; line-height: 1; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 44px; align-items: start; }
.info-list { list-style: none; padding: 0; margin: 0 0 24px; }
.info-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.info-list .ico { flex: 0 0 42px; height: 42px; border-radius: 50%; background: rgba(226,1,19,.08); color: var(--accent-color); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.info-list strong { display: block; color: var(--primary-color); }
.hours { width: 100%; border-collapse: collapse; font-size: 15px; }
.hours td { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.hours td:last-child { text-align: right; }
.form-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px 32px; }
.form-card h2 { font-size: 24px; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 15.5px; background: #fbfcfd; color: var(--text);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 0; border-color: var(--primary-light); background: #fff; box-shadow: 0 0 0 3px rgba(29,90,130,.12); }
.contact-form textarea { min-height: 130px; resize: vertical; grid-column: 1 / -1; }
.contact-form .full, .contact-form button, .contact-form .captcha-row { grid-column: 1 / -1; }
.contact-form button { background: var(--accent-color); color: #fff; border: 0; padding: 15px; font-size: 17px; font-weight: 700; border-radius: 6px; cursor: pointer; transition: var(--transition); }
.contact-form button:hover { background: var(--accent-dark); }
.form-note { font-size: 13.5px; color: var(--muted); margin: 12px 0 0; }
.map { border: 0; width: 100%; height: 380px; border-radius: var(--radius); display: block; }

/* ---------- Footer ---------- */
footer { background: var(--dark-color); color: var(--white); padding: 3rem 0 1rem; margin-top: 0; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-section h3 { color: var(--white); margin-bottom: 1rem; font-size: 1.2rem; }
.footer-section p, .footer-section a { color: rgba(255, 255, 255, 0.8); line-height: 1.8; }
.footer-section p { margin: 0 0 .7em; font-size: 15px; }
.footer-section a:hover { color: var(--accent-color); }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.6); font-size: 14px; }
.footer-bottom p { margin-bottom: 0.5rem; }
.footer-partner { margin-top: 1rem; font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); }
.footer-partner a { color: var(--gold); text-decoration: none; transition: var(--transition); }
.footer-partner a:hover { color: var(--white); }

/* Mobile call bar */
.call-bar { display: none; }

/* 404 */
.error-page { text-align: center; padding: 110px 0; }
.error-page .code { font-size: 110px; font-weight: 800; color: var(--accent-color); line-height: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .main-nav a { padding: 8px 8px; font-size: 14.5px; }
}
@media (max-width: 980px) {
    .nav-toggle { display: block; }
    .main-nav { position: fixed; top: 76px; left: 0; right: 0; height: calc(100dvh - 76px); background: #fff; transform: translateX(100%); transition: transform .3s ease; overflow-y: auto; border-top: 1px solid var(--line); }
    .nav-open .main-nav { transform: translateX(0); }
    .main-nav ul { flex-direction: column; align-items: stretch; padding: 12px 20px 30px; gap: 0; }
    .main-nav li { border-bottom: 1px solid var(--line); }
    .main-nav a { padding: 14px 4px; font-size: 16px; }
    .main-nav .nav-cta { border: 0; margin-top: 16px; }
    .main-nav .nav-cta a { margin: 0; text-align: center; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .split, .contact-grid, .content-layout { grid-template-columns: 1fr; gap: 36px; }
    .sidebar { position: static; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(2) { border-right: 0; }
    .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
    body { padding-bottom: 58px; }
    .topbar .hide-sm { display: none; }
    .topbar .container { justify-content: center; }
    .site-header .container { min-height: 66px; }
    .main-nav { top: 66px; height: calc(100dvh - 66px); }
    .logo img { width: 42px; height: 42px; }
    .logo-text strong { font-size: 19px; }
    .logo-text small { font-size: 10.5px; }
    .section { padding: 60px 0; }
    .hero .container { padding-top: 70px; padding-bottom: 100px; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .contact-form { grid-template-columns: 1fr; }
    .form-card { padding: 26px 20px; }
    .stat strong { font-size: 28px; }
    .cta-band .container { flex-direction: column; text-align: center; }
    .call-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; box-shadow: 0 -4px 16px rgba(0,0,0,.12); }
    .call-bar a { flex: 1; text-align: center; padding: 15px 8px; font-weight: 700; color: #fff; background: var(--accent-color); }
    .call-bar a + a { background: var(--primary-color); }
}
