/* =========================================================
   Doors & Windows - Main Stylesheet
   Colours: White, Navy Blue, Orange (highlight / buttons)
   ========================================================= */

:root {
    --navy: #0a1f44;
    --navy-2: #13306b;
    --navy-light: #1e3f80;
    --orange: #f7931e;
    --orange-dark: #e07b00;
    --white: #ffffff;
    --bg-soft: #f4f6fb;
    --text: #2b3445;
    --muted: #6b7489;
    --border: #e3e7f0;
    --radius: 10px;
    --shadow: 0 10px 30px rgba(10, 31, 68, .08);
    --shadow-lg: 0 20px 45px rgba(10, 31, 68, .15);
    --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: var(--navy-2); text-decoration: none; transition: color .2s; }
a:hover { color: var(--orange); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; margin: 0 0 .6em; font-weight: 700; }
p { margin: 0 0 1em; }

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

.icon { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 28px; border-radius: 50px; border: 2px solid transparent;
    font-family: inherit; font-weight: 600; font-size: 15px; cursor: pointer;
    transition: all .25s ease; text-align: center; justify-content: center;
}
.btn .icon { width: 16px; height: 16px; }
.btn-orange { background: var(--orange); color: var(--white); border-color: var(--orange); }
.btn-orange:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(247, 147, 30, .35); }
.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-light); border-color: var(--navy-light); color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-outline-navy { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }
.btn-sm { padding: 9px 20px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: #c9d3ea; font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding: 8px 20px; }
.topbar a { color: #c9d3ea; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: var(--orange); }
.topbar-info { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar-social { display: flex; gap: 14px; }
.topbar .icon { width: 14px; height: 14px; }

/* ---------- Header ---------- */
.site-header { background: var(--white); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 15px rgba(10, 31, 68, .06); transition: box-shadow .3s; }
.site-header.scrolled { box-shadow: 0 4px 25px rgba(10, 31, 68, .12); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 700; font-size: 20px; }
.logo img { max-height: 52px; width: auto; }
.logo-mark { width: 42px; height: 42px; background: var(--navy); color: var(--white); border-radius: 8px; display: grid; place-items: center; }
.logo-mark svg { width: 28px; height: 28px; }
.logo:hover { color: var(--navy); }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.main-nav ul a { display: block; padding: 8px 14px; color: var(--navy); font-weight: 500; position: relative; }
.main-nav ul a::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--orange); transform: scaleX(0); transition: transform .25s; }
.main-nav ul a:hover::after, .main-nav ul a.active::after { transform: scaleX(1); }
.main-nav ul a.active { color: var(--orange); }

.nav-toggle { display: none; background: none; border: 0; color: var(--navy); cursor: pointer; padding: 6px; }
.nav-toggle .icon { width: 28px; height: 28px; }

/* ---------- Hero ---------- */
.hero {
    position: relative; min-height: 620px; display: flex; align-items: center;
    background-size: cover; background-position: center; color: var(--white);
}
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 31, 68, .95) 0%, rgba(10, 31, 68, .75) 50%, rgba(10, 31, 68, .3) 100%); }
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 640px; }
.hero-badge { display: inline-block; background: rgba(247, 147, 30, .15); color: var(--orange); border: 1px solid rgba(247, 147, 30, .4); padding: 6px 16px; border-radius: 50px; font-size: 13px; font-weight: 600; margin-bottom: 20px; letter-spacing: .5px; }
.hero h1 { color: var(--white); font-size: clamp(34px, 5vw, 56px); margin-bottom: 20px; }
.hero p { font-size: 18px; color: #d6deef; margin-bottom: 34px; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Stats ---------- */
.stats { margin-top: -60px; position: relative; z-index: 2; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.stat { padding: 32px 20px; text-align: center; border-right: 1px solid var(--border); }
.stat:last-child { border-right: 0; }
.stat-num { font-size: 34px; font-weight: 700; color: var(--orange); line-height: 1.1; }
.stat-label { color: var(--navy); font-weight: 500; margin-top: 6px; }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-soft { background: var(--bg-soft); }
.section-navy { background: var(--navy); color: #d6deef; }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 50px; }
.section-head .eyebrow, .eyebrow { display: inline-block; color: var(--orange); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px; }
.section-head h2 { font-size: clamp(28px, 3.5vw, 40px); }
.section-head p { color: var(--muted); }
.section-navy .section-head p { color: #b9c5e0; }
.title-line { width: 60px; height: 3px; background: var(--orange); border-radius: 3px; margin: 14px auto 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-img { position: relative; }
.split-img img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split-img::after { content: ''; position: absolute; width: 120px; height: 120px; border: 6px solid var(--orange); border-radius: var(--radius); right: -20px; bottom: -20px; z-index: -1; }
.split h2 { font-size: clamp(26px, 3vw, 38px); }
.split .text { color: var(--muted); }

.check-list { list-style: none; padding: 0; margin: 20px 0 30px; display: grid; gap: 10px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; }
.check-list .icon { color: var(--white); background: var(--orange); border-radius: 50%; padding: 3px; width: 22px; height: 22px; margin-top: 3px; }

/* ---------- Feature cards ---------- */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-card { background: var(--white); padding: 34px 26px; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; transition: transform .3s, box-shadow .3s; border-bottom: 3px solid transparent; }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-bottom-color: var(--orange); }
.feature-icon { width: 70px; height: 70px; margin: 0 auto 20px; background: rgba(10, 31, 68, .06); color: var(--navy); border-radius: 50%; display: grid; place-items: center; transition: all .3s; }
.feature-icon .icon { width: 30px; height: 30px; }
.feature-card:hover .feature-icon { background: var(--orange); color: var(--white); }
.feature-card h3 { font-size: 19px; }
.feature-card p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- Product cards ---------- */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 28px; }
.product-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-img { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--bg-soft); }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product-card:hover .product-img img { transform: scale(1.06); }
.product-cat { position: absolute; top: 14px; left: 14px; background: var(--navy); color: var(--white); font-size: 12px; padding: 4px 12px; border-radius: 50px; font-weight: 500; }
.product-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { font-size: 19px; margin-bottom: 8px; }
.product-body h3 a { color: var(--navy); }
.product-body h3 a:hover { color: var(--orange); }
.product-body p { color: var(--muted); font-size: 15px; flex: 1; }
.product-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--border); }
.price { color: var(--orange); font-weight: 700; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--navy); font-size: 14px; }
.link-arrow .icon { width: 16px; height: 16px; transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* Filter */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.filter-bar a { padding: 9px 22px; border-radius: 50px; border: 2px solid var(--border); color: var(--navy); font-weight: 500; font-size: 14px; background: var(--white); }
.filter-bar a:hover { border-color: var(--orange); color: var(--orange); }
.filter-bar a.active { background: var(--orange); border-color: var(--orange); color: var(--white); }

.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }

/* Product detail */
.product-detail { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: start; }
.product-detail-img img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.product-detail h1 { font-size: clamp(28px, 3.5vw, 40px); }
.product-detail .price { font-size: 24px; display: block; margin-bottom: 20px; }
.product-detail .desc { color: var(--muted); }
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.tag { display: inline-block; background: rgba(247, 147, 30, .12); color: var(--orange-dark); padding: 4px 14px; border-radius: 50px; font-size: 13px; font-weight: 600; margin-bottom: 14px; }

/* ---------- Testimonials ---------- */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.testimonial { background: var(--navy-2); padding: 32px; border-radius: var(--radius); position: relative; }
.testimonial::before { content: '\201C'; position: absolute; top: 4px; right: 24px; font-size: 90px; color: var(--orange); opacity: .35; font-family: Georgia, serif; line-height: 1; }
.testimonial p { color: #d6deef; font-style: italic; }
.stars { color: var(--orange); display: flex; gap: 2px; margin-bottom: 14px; }
.stars .icon { width: 16px; height: 16px; fill: currentColor; }
.testimonial-author { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--orange); color: var(--white); display: grid; place-items: center; font-weight: 700; font-size: 18px; }
.testimonial-author strong { color: var(--white); display: block; }
.testimonial-author span { font-size: 13px; color: #9fb0d4; }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-light) 100%); color: var(--white); padding: 70px 0; position: relative; overflow: hidden; }
.cta::after { content: ''; position: absolute; right: -80px; top: -80px; width: 300px; height: 300px; border-radius: 50%; background: rgba(247, 147, 30, .15); }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; position: relative; z-index: 1; flex-wrap: wrap; }
.cta h2 { color: var(--white); font-size: clamp(24px, 3vw, 34px); margin-bottom: 8px; }
.cta p { color: #c9d3ea; margin: 0; }

/* ---------- Page banner ---------- */
.page-banner { background-size: cover; background-position: center; color: var(--white); padding: 90px 0 80px; text-align: center; }
.page-banner h1 { color: var(--white); font-size: clamp(32px, 4.5vw, 48px); margin-bottom: 10px; }
.page-banner p { color: #c9d3ea; font-size: 18px; margin-bottom: 18px; }
.breadcrumb { font-size: 14px; color: #9fb0d4; }
.breadcrumb a { color: var(--white); }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb .current { color: var(--orange); }
.breadcrumb span { margin: 0 6px; }

/* ---------- About ---------- */
.mv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.mv-card { background: var(--white); padding: 36px 30px; border-radius: var(--radius); box-shadow: var(--shadow); border-top: 4px solid var(--orange); }
.mv-card h3 { display: flex; align-items: center; gap: 10px; }
.mv-card h3 .icon { color: var(--orange); width: 26px; height: 26px; }
.mv-card p, .mv-card li { color: var(--muted); }
.mv-card ul { padding-left: 0; list-style: none; margin: 0; }
.mv-card li { display: flex; gap: 8px; margin-bottom: 6px; }
.mv-card li .icon { color: var(--orange); margin-top: 5px; width: 16px; height: 16px; }

.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; counter-reset: step; }
.step { text-align: center; padding: 20px; position: relative; }
.step-num { width: 70px; height: 70px; border-radius: 50%; background: var(--orange); color: var(--white); font-size: 26px; font-weight: 700; display: grid; place-items: center; margin: 0 auto 18px; box-shadow: 0 0 0 8px rgba(247, 147, 30, .2); }
.step h3 { font-size: 19px; }
.step p { color: #b9c5e0; font-size: 15px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 50px; }
.contact-info { background: var(--navy); color: #c9d3ea; padding: 40px; border-radius: var(--radius); }
.contact-info h3 { color: var(--white); }
.info-item { display: flex; gap: 16px; margin-top: 26px; }
.info-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--orange); color: var(--white); display: grid; place-items: center; flex-shrink: 0; }
.info-item h4 { color: var(--white); margin: 0 0 4px; font-size: 16px; }
.info-item a { color: #c9d3ea; }
.info-item a:hover { color: var(--orange); }

.form-card { background: var(--white); padding: 40px; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 500; color: var(--navy); margin-bottom: 6px; font-size: 14px; }
.form-group label .req { color: var(--orange); }
.form-control { width: 100%; padding: 13px 16px; border: 1.5px solid var(--border); border-radius: 8px; font-family: inherit; font-size: 15px; color: var(--text); background: var(--white); transition: border-color .2s, box-shadow .2s; }
.form-control:focus { outline: none; border-color: var(--navy-light); box-shadow: 0 0 0 3px rgba(30, 63, 128, .12); }
textarea.form-control { min-height: 150px; resize: vertical; }
.hp-field { position: absolute; left: -9999px; }

.alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-size: 15px; }
.alert-success { background: #e7f7ee; color: #146c43; border: 1px solid #b6e4c9; }
.alert-error { background: #fdecec; color: #a12622; border: 1px solid #f5c2c0; }
.alert ul { margin: 0; padding-left: 18px; }

.map-wrap { margin-top: 0; line-height: 0; }
.map-wrap iframe { width: 100%; height: 420px; border: 0; filter: grayscale(.2); }

/* ---------- Footer ---------- */
.site-footer { background: #071631; color: #9fb0d4; padding-top: 70px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 50px; }
.footer-logo { color: var(--white); font-size: 22px; }
.site-footer h4 { color: var(--white); font-size: 17px; margin-bottom: 20px; position: relative; padding-bottom: 10px; }
.site-footer h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 36px; height: 2px; background: var(--orange); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #9fb0d4; }
.site-footer a:hover { color: var(--orange); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { color: var(--orange); margin-top: 4px; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .08); display: grid; place-items: center; color: var(--white); transition: background .2s; }
.footer-social a:hover { background: var(--orange); color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 20px 0; text-align: center; font-size: 14px; }

.whatsapp-float { position: fixed; right: 22px; bottom: 22px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: var(--white); display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); z-index: 90; }
.whatsapp-float .icon { width: 28px; height: 28px; }
.whatsapp-float:hover { color: var(--white); transform: scale(1.08); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .mv-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .main-nav { position: absolute; top: 78px; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: stretch; gap: 0; padding: 10px 20px 20px; box-shadow: 0 10px 20px rgba(10, 31, 68, .1); display: none; }
    .main-nav.open { display: flex; }
    .main-nav ul { flex-direction: column; }
    .main-nav ul a { padding: 12px 0; border-bottom: 1px solid var(--border); }
    .main-nav ul a::after { display: none; }
    .main-nav .btn { margin-top: 14px; }
    .split, .product-detail, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .split-img::after { display: none; }
    .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(--border); }
    .hero { min-height: 520px; }
    .section { padding: 70px 0; }
}

@media (max-width: 560px) {
    .topbar-social { display: none; }
    .topbar-info { gap: 14px; }
    .features-grid, .footer-grid, .form-row { grid-template-columns: 1fr; }
    .form-card, .contact-info { padding: 28px 22px; }
    .cta-inner { text-align: center; justify-content: center; }
}
