/*
Theme Name: A2B Windows & Doors
Theme URI: https://a2bwindowsanddoors.co.uk
Author: A2B Windows & Doors Ltd
Description: A refined, responsive WordPress theme for A2B Windows & Doors Ltd in Norwich.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: a2b-windows
*/

:root {
  --ink: #202326;
  --charcoal: #292d30;
  --soft: #f3f2ef;
  --line: #deddd9;
  --red: #c5262d;
  --red-dark: #a81f25;
  --muted: #686c6f;
  --white: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; text-decoration: none; }
svg { width: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: min(1220px, calc(100% - 48px)); margin-inline: auto; }
.topbar { background: #202427; color: #cfd1d2; font-size: 12px; letter-spacing: .03em; }
.topbar-inner { min-height: 35px; display: flex; align-items: center; justify-content: space-between; }
.topbar-inner div { display: flex; gap: 28px; }
.topbar a:hover { color: #fff; }
.site-header { background: rgba(255,255,255,.97); position: relative; z-index: 20; box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.nav { height: 82px; display: flex; align-items: center; gap: 35px; }
.logo { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; }
.logo-mark { display: flex; align-items: baseline; font-weight: 900; letter-spacing: -5px; font-size: 29px; transform: skew(-6deg); }
.logo-mark i { font-style: normal; color: #353a3d; }
.logo-mark b { color: var(--red); font-size: 38px; }
.logo-copy { font-weight: 800; font-size: 16px; letter-spacing: -.04em; line-height: .8; border-left: 1px solid #ccc; padding-left: 10px; }
.logo-copy em { color: var(--red); font-style: normal; }
.logo-copy small { display: block; margin-top: 7px; font-size: 6px; letter-spacing: .16em; color: #777; }
nav { display: flex; gap: 29px; font-size: 14px; font-weight: 600; color: #484c4e; }
nav a:hover { color: var(--red); }
.btn { min-height: 50px; padding: 0 22px; display: inline-flex; justify-content: center; align-items: center; gap: 16px; border-radius: 4px; font-size: 13px; letter-spacing: .03em; font-weight: 700; transition: .2s ease; border: 1px solid transparent; cursor: pointer; }
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 8px 25px rgba(197,38,45,.24); }
.btn-red:hover { background: var(--red-dark); }
.mobile-menu { display: none; }
.hero { min-height: 690px; position: relative; color: #fff; display: flex; align-items: center; }
.hero-image { position: absolute; inset: 0; background: url('assets/images/hero.jpg') center 56% / cover no-repeat, linear-gradient(120deg,#43494b,#9a9a96); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg,rgba(20,23,25,.84) 0%,rgba(25,29,31,.62) 44%,rgba(25,29,31,.1) 76%), linear-gradient(0deg,rgba(17,20,22,.3),transparent 50%); }
.hero-content { position: relative; z-index: 2; padding: 80px 0 115px; }
.eyebrow { font-weight: 700; letter-spacing: .16em; font-size: 11px; color: var(--red); display: flex; align-items: center; gap: 10px; margin: 0 0 22px; }
.eyebrow span { width: 25px; height: 2px; background: currentColor; display: inline-block; }
.eyebrow.light { color: #fff; opacity: .82; }
h1,h2,h3,p { margin-top: 0; }
h1 { font-size: clamp(46px,5.35vw,77px); line-height: 1.02; letter-spacing: -.055em; max-width: 810px; margin-bottom: 24px; font-weight: 700; }
h1 em { color: #fff; font-weight: 300; font-style: italic; }
.hero-lead { font-size: 18px; line-height: 1.65; max-width: 570px; color: #e2e3e3; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 12px; }
.btn-glass { color: #fff; border-color: rgba(255,255,255,.48); background: rgba(18,20,21,.12); backdrop-filter: blur(6px); }
.btn-glass:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.trust-strip { position: absolute; z-index: 3; left: 50%; transform: translateX(-50%); bottom: 0; background: #fff; color: #333; min-height: 76px; display: grid; grid-template-columns: repeat(5,1fr); align-items: center; box-shadow: 0 -5px 25px rgba(0,0,0,.08); }
.trust-strip span { min-height: 35px; padding: 0 14px; display: flex; align-items: center; justify-content: center; gap: 8px; border-right: 1px solid #e0e0de; text-align: center; font-size: 12px; font-weight: 600; }
.trust-strip span:last-child { border: 0; }
.trust-strip svg { color: var(--red); width: 16px; flex: 0 0 auto; }
.section { padding: 110px 0; }
.section-head { margin-bottom: 50px; }
.section-head.split { display: grid; grid-template-columns: 1.4fr .6fr; align-items: end; gap: 60px; }
h2 { font-size: clamp(35px,4vw,55px); line-height: 1.09; letter-spacing: -.045em; font-weight: 700; }
.section-head h2 { margin-bottom: 0; }
.section-head > p, .area-grid > div > p, .intro { color: var(--muted); line-height: 1.8; font-size: 15px; max-width: 500px; margin-bottom: 3px; }
.product-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.product-card { background: var(--soft); overflow: hidden; border-radius: 5px; transition: transform .25s, box-shadow .25s; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 18px 45px rgba(23,27,29,.12); }
.product-photo { height: 235px; background-image: url('assets/images/products.jpg'); background-size: 205% auto; position: relative; }
.product-photo:after { content:""; position:absolute; inset:0; background:linear-gradient(0deg,rgba(0,0,0,.28),transparent 45%); }
.windows .product-photo { background-position: 2% center; }
.doors .product-photo { background-position: 98% center; }
.bifolds .product-photo { background-image: url('assets/images/hero.jpg'); background-size: cover; background-position: 74% center; }
.conservatories .product-photo { background-image: url('assets/images/project.jpg'); background-size: cover; background-position: 15% center; }
.product-photo span { position: absolute; z-index:2; color:#fff; left: 17px; bottom: 14px; font-size:11px; letter-spacing:.14em; }
.product-copy { padding: 25px 23px 27px; }
.product-copy h3 { font-size: 20px; margin-bottom: 12px; }
.product-copy p { color: var(--muted); font-size: 13px; line-height: 1.7; min-height: 88px; }
.product-copy a,.text-link { color: var(--red); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 10px; }
.why { padding: 0; background: var(--charcoal); color: #fff; }
.why-grid { display: grid; grid-template-columns: .92fr 1.08fr; min-height: 750px; }
.why-photo { background: url('assets/images/products.jpg') center / cover no-repeat; position: relative; margin-left: calc((100vw - min(1220px, calc(100vw - 48px))) / -2); }
.why-photo:after { content:""; position:absolute; inset:0; background:linear-gradient(0deg,rgba(17,19,20,.45),transparent 55%); }
.stat-card { position:absolute; z-index:2; right:-30px; bottom: 55px; background:var(--red); padding:25px 28px; width:230px; }
.stat-card b { display:block; font-size:19px; margin-bottom:7px; }
.stat-card span { font-size:11px; opacity:.8; }
.why-copy { padding: 90px 0 75px 90px; }
.why-copy h2 { max-width: 570px; }
.why-copy .intro { color:#b9bbbc; margin: 0 0 33px; }
.benefit { display:grid; grid-template-columns:38px 1fr; gap:15px; border-top:1px solid #464a4c; padding:19px 0; }
.benefit > span { font-size:11px; color:#e36c70; padding-top:3px; }
.benefit h3 { margin:0 0 6px; font-size:16px; }
.benefit p { margin:0; color:#aeb1b2; font-size:13px; line-height:1.55; max-width:510px; }
.projects { background: #f6f5f2; }
.gallery { display:grid; grid-template-columns:1.65fr .75fr; gap:17px; height:560px; }
.gallery article { position:relative; overflow:hidden; border-radius:4px; background-size:cover; background-position:center; }
.gallery-main { background-image: url('assets/images/project.jpg'); }
.gallery article:after { content:""; position:absolute; inset:0; background:linear-gradient(0deg,rgba(20,23,24,.75),transparent 56%); }
.gallery-stack { display:grid; gap:17px; }
.gallery-small { background-image:url('assets/images/products.jpg'); }
.g-window { background-position:15% center!important; }
.g-door { background-position:88% center!important; }
.gallery-label,.gallery-small div { position:absolute; z-index:2; bottom:25px; left:28px; color:#fff; display:flex; flex-direction:column; gap:7px; }
.gallery-label span,.gallery-small span { text-transform:uppercase; letter-spacing:.14em; font-size:10px; color:#e3b4b6; }
.gallery-label b { font-size:23px; }
.gallery-small b { font-size:15px; }
.process-section { background:#24282a; color:#fff; padding:100px 0; }
.process-top { display:grid; grid-template-columns:1.35fr .65fr; align-items:end; gap:70px; }
.process-top h2 { margin:0; }
.process-top > p { color:#b3b6b7; font-size:14px; line-height:1.8; max-width:400px; }
.steps { margin-top:60px; display:grid; grid-template-columns:repeat(3,1fr); border-top:1px solid #484c4e; }
.steps article { padding:34px 60px 0 0; position:relative; }
.steps article:not(:last-child):after { content:""; position:absolute; right:30px; top:-5px; width:9px; height:9px; border-radius:50%; background:var(--red); }
.steps span { color:#e76e73; font-size:11px; letter-spacing:.1em; }
.steps h3 { font-size:20px; margin:18px 0 12px; }
.steps p { color:#aeb1b2; font-size:13px; line-height:1.75; max-width:330px; }
.testimonial-grid { display:grid; grid-template-columns:100px 1fr 290px; gap:50px; align-items:start; }
.quote-mark { font-family:Georgia,serif; color:var(--red); font-size:110px; line-height:.65; }
blockquote { margin:0; }
blockquote > p { font-family:Georgia,serif; font-size:31px; line-height:1.48; color:#373b3d; }
blockquote footer { display:flex; flex-direction:column; gap:5px; font-size:13px; }
blockquote footer span { color:#777; }
.testimonial-note { border-left:1px solid var(--line); padding-left:35px; }
.testimonial-note span { color:var(--red); letter-spacing:.15em; font-size:10px; font-weight:bold; }
.testimonial-note p { margin-top:18px; color:var(--muted); line-height:1.75; font-size:13px; }
.areas { border-top:1px solid var(--line); background:#f6f5f2; }
.area-grid { display:grid; grid-template-columns:1fr 1fr; gap:110px; align-items:center; }
.place-list { display:grid; grid-template-columns:repeat(2,1fr); border-top:1px solid #d8d6d1; }
.place-list span { padding:18px 0; border-bottom:1px solid #d8d6d1; font-size:14px; position:relative; }
.place-list span:nth-child(odd) { border-right:1px solid #d8d6d1; }
.place-list span:before { content:""; display:inline-block; width:5px; height:5px; background:var(--red); border-radius:50%; margin:0 12px 2px 2px; }
.quote-section { background:var(--red); color:#fff; padding:100px 0; }
.quote-grid { display:grid; grid-template-columns:.8fr 1.2fr; gap:90px; align-items:start; }
.quote-intro > p { max-width:440px; color:#f1cdd0; font-size:14px; line-height:1.75; }
.quote-intro > a { margin-top:35px; display:flex; align-items:center; gap:16px; }
.quote-intro > a > svg { width:35px; }
.quote-intro > a span { font-size:11px; text-transform:uppercase; letter-spacing:.1em; }
.quote-intro > a small { display:block; font-size:17px; letter-spacing:0; text-transform:none; font-weight:bold; margin-top:6px; }
.quote-form { background:#fff; color:var(--ink); padding:38px; border-radius:5px; box-shadow:0 20px 60px rgba(69,0,4,.22); }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.quote-form label { display:block; font-size:11px; font-weight:bold; letter-spacing:.04em; margin-bottom:17px; }
.quote-form input,.quote-form select,.quote-form textarea { width:100%; border:1px solid #d9d8d5; background:#faf9f7; margin-top:8px; padding:13px 14px; font:inherit; font-size:13px; border-radius:3px; color:var(--ink); outline:none; }
.quote-form input:focus,.quote-form select:focus,.quote-form textarea:focus { border-color:var(--red); box-shadow:0 0 0 3px rgba(197,38,45,.09); }
.quote-form .btn { width:100%; border:0; }
.quote-form > small { display:block; text-align:center; color:#8b8d8e; margin-top:14px; line-height:1.5; font-size:9px; }
.footer { background:#1f2325; color:#d5d7d8; padding:70px 0 0; }
.footer-main { display:grid; grid-template-columns:2fr 1fr 1fr 1.4fr; gap:60px; padding-bottom:55px; }
.footer-logo { color:#fff; margin-bottom:25px; }
.footer-logo .logo-mark i { color:#fff; }
.footer-main > div:first-child > p { color:#969a9b; line-height:1.75; font-size:13px; max-width:330px; }
.footer h3 { color:#fff; text-transform:uppercase; letter-spacing:.14em; font-size:10px; margin-bottom:23px; }
.footer-main > div:not(:first-child) { display:flex; flex-direction:column; align-items:flex-start; gap:13px; font-size:12px; color:#aeb1b2; }
.footer-main a:hover { color:#fff; }
.footer-main > div:last-child a:first-of-type { color:#fff; font-size:17px; font-weight:bold; }
.footer-main > div:last-child a:nth-of-type(2) { font-size:11px; word-break:break-all; }
.footer-bottom { border-top:1px solid #3b3f41; min-height:70px; display:flex; justify-content:space-between; align-items:center; font-size:10px; color:#85898a; }
.footer-bottom div { display:flex; gap:25px; }

@media (max-width: 980px) {
  nav,.nav-cta { display:none; }
  .mobile-menu { display:block; position:relative; }
  .mobile-menu summary { list-style:none; width:42px; height:42px; border:1px solid #ddd; display:flex; flex-direction:column; justify-content:center; gap:5px; padding:10px; cursor:pointer; }
  .mobile-menu summary::-webkit-details-marker { display:none; }
  .mobile-menu summary span { height:2px; background:#333; width:100%; }
  .mobile-menu div { position:absolute; top:48px; right:0; background:white; color:#222; width:220px; padding:15px; box-shadow:0 15px 35px rgba(0,0,0,.15); display:flex; flex-direction:column; }
  .mobile-menu div a { padding:12px; border-bottom:1px solid #eee; font-size:13px; }
  .trust-strip { grid-template-columns:repeat(3,1fr); }
  .trust-strip span:nth-child(n+4) { display:none; }
  .product-grid { grid-template-columns:repeat(2,1fr); }
  .why-grid { grid-template-columns:1fr; }
  .why-photo { margin:0; min-height:460px; }
  .why-copy { padding:75px 30px; }
  .gallery { grid-template-columns:1fr; height:auto; }
  .gallery-main { min-height:480px; }
  .gallery-stack { grid-template-columns:1fr 1fr; }
  .gallery-small { min-height:250px; }
  .testimonial-grid { grid-template-columns:70px 1fr; }
  .testimonial-note { grid-column:2; }
  .quote-grid { gap:40px; }
  .footer-main { grid-template-columns:2fr 1fr 1fr; }
  .footer-main > div:last-child { grid-column:1/-1; }
}

@media (max-width: 680px) {
  .wrap { width:min(100% - 30px,1220px); }
  .topbar-inner > span { display:none; }
  .topbar-inner { justify-content:center; }
  .topbar-inner div { gap:16px; }
  .topbar-inner div a:last-child { display:none; }
  .nav { height:69px; }
  .logo-copy { font-size:13px; }
  .logo-mark { font-size:23px; }
  .logo-mark b { font-size:31px; }
  .hero { min-height:680px; align-items:flex-start; }
  .hero-content { padding-top:85px; }
  .hero-shade { background:linear-gradient(90deg,rgba(20,23,25,.84),rgba(25,29,31,.36)),linear-gradient(0deg,rgba(17,20,22,.55),transparent); }
  h1 { font-size:46px; }
  .hero-lead { font-size:16px; }
  .hero-actions { flex-direction:column; width:230px; }
  .trust-strip { min-height:67px; }
  .trust-strip span { padding:0 8px; font-size:10px; }
  .section { padding:75px 0; }
  .section-head.split,.process-top,.area-grid,.quote-grid { grid-template-columns:1fr; gap:25px; }
  h2 { font-size:37px; }
  .product-grid { grid-template-columns:1fr; }
  .product-photo { height:260px; }
  .product-copy p { min-height:auto; }
  .why-photo { min-height:360px; }
  .stat-card { right:15px; bottom:20px; }
  .why-copy { padding:65px 0; }
  .gallery-main { min-height:390px; }
  .gallery-stack { grid-template-columns:1fr; }
  .process-section { padding:75px 0; }
  .steps { grid-template-columns:1fr; border:0; margin-top:30px; }
  .steps article { padding:25px 0; border-top:1px solid #484c4e; }
  .steps article:after { display:none; }
  .testimonial-grid { grid-template-columns:1fr; gap:20px; }
  .quote-mark { height:55px; }
  blockquote > p { font-size:24px; }
  .testimonial-note { grid-column:1; padding:20px 0 0; border-left:0; border-top:1px solid var(--line); }
  .place-list { grid-template-columns:1fr; }
  .place-list span:nth-child(odd) { border-right:0; }
  .quote-form { padding:25px 20px; }
  .form-row { grid-template-columns:1fr; gap:0; }
  .footer-main { grid-template-columns:1fr 1fr; gap:40px 25px; }
  .footer-main > div:first-child,.footer-main > div:last-child { grid-column:1/-1; }
  .footer-bottom { flex-direction:column; justify-content:center; gap:12px; }
}
