/* ============================================================
   A2B Windows & Doors — Main Stylesheet  v1.1.0
   ============================================================ */

:root {
  --red:       #C41230;
  --red-dark:  #9e0e26;
  --charcoal:  #1e1e1e;
  --body-text: #2e2e2e;
  --muted:     #666;
  --light-bg:  #e4e4e4;
  --white:     #ffffff;
  --border:    #cccccc;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.10);
  --shadow-md: 0 6px 24px rgba(0,0,0,.16);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.24);
  --radius:    4px;
  --radius-lg: 6px;
  --ease:      .22s ease;
  --font-head: 'Barlow','Arial Narrow',Arial,sans-serif;
  --font-body: 'Open Sans','Helvetica Neue',Arial,sans-serif;
  --container: 1180px;
}

/* ---- Reset ---- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{font-size:16px;scroll-behavior:smooth}
body{font-family:var(--font-body);font-size:1rem;line-height:1.65;color:var(--body-text);background:var(--white);-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:var(--red);text-decoration:none;transition:color var(--ease)}
a:hover{color:var(--red-dark)}
ul{list-style:none}
h1,h2,h3,h4,h5,h6{font-family:var(--font-head);font-weight:700;line-height:1.15;color:var(--charcoal)}
p{margin-bottom:1rem}
p:last-child{margin-bottom:0}

/* ---- Layout ---- */
.container{max-width:var(--container);margin-inline:auto;padding-inline:1.5rem}
.container--wide{max-width:1380px}
.section{padding-block:5rem}
.section-intro{text-align:center;margin-bottom:3rem}
.section-intro .label{margin-bottom:.4rem}
.section-intro .section-title{margin-top:.35rem}

/* ---- Typography helpers ---- */
.label{display:block;font-size:.72rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--red);margin-bottom:.45rem}
.section-title{font-size:clamp(1.6rem,3vw,2.35rem);font-weight:800}

/* ---- Accessibility ---- */
.skip-link{position:absolute;top:-100px;left:0;background:var(--red);color:var(--white);padding:.5rem 1rem;z-index:9999;font-size:.875rem}
.skip-link:focus{top:0}
*:focus-visible{outline:3px solid var(--red);outline-offset:3px}

/* ---- Buttons ---- */
.btn{display:inline-flex;align-items:center;gap:.45rem;padding:.72rem 1.6rem;font-family:var(--font-body);font-size:.9rem;font-weight:700;border-radius:var(--radius);border:2px solid transparent;cursor:pointer;white-space:nowrap;text-decoration:none;transition:background var(--ease),color var(--ease),border-color var(--ease),transform var(--ease);line-height:1.4}
.btn:hover{transform:translateY(-1px);text-decoration:none}
.btn--primary{background:var(--red);color:var(--white);border-color:var(--red)}
.btn--primary:hover{background:var(--red-dark);border-color:var(--red-dark);color:var(--white)}
.btn--outline{background:transparent;color:var(--charcoal);border-color:var(--charcoal)}
.btn--outline:hover{background:var(--charcoal);color:var(--white)}
.btn--dark{background:var(--charcoal);color:var(--white);border-color:var(--charcoal)}
.btn--dark:hover{background:#000;border-color:#000;color:var(--white)}
.btn--lg{padding:.85rem 2rem;font-size:.95rem}

/* ==========================================================
   HEADER
   ========================================================== */
#masthead{position:sticky;top:0;z-index:1000;background:var(--white);box-shadow:0 2px 14px rgba(0,0,0,.14);transition:box-shadow var(--ease)}
#masthead.scrolled{box-shadow:0 4px 22px rgba(0,0,0,.22)}

.header-inner{display:flex;align-items:center;gap:1.25rem;height:80px}

/* Logo */
.site-branding{flex-shrink:0}
.site-branding a,.site-branding .text-logo{display:inline-flex;align-items:center;text-decoration:none}
.site-branding img,.site-branding .text-logo img{height:54px;width:auto}

/* Nav */
#site-navigation{flex:1;display:flex;justify-content:center}
.nav-menu{display:flex;align-items:center}
.nav-menu>li{position:relative}
.nav-menu>li>a{display:block;padding:.5rem .9rem;font-size:.875rem;font-weight:600;color:var(--charcoal);position:relative;transition:color var(--ease);white-space:nowrap}
.nav-menu>li>a::after{content:'';position:absolute;bottom:-3px;left:.9rem;right:.9rem;height:2px;background:var(--red);transform:scaleX(0);transform-origin:left;transition:transform var(--ease)}
.nav-menu>li>a:hover,.nav-menu>li.current-menu-item>a{color:var(--red)}
.nav-menu>li>a:hover::after,.nav-menu>li.current-menu-item>a::after{transform:scaleX(1)}

/* Dropdown */
.nav-menu .sub-menu{display:none;position:absolute;top:calc(100% + 4px);left:0;min-width:210px;background:var(--white);box-shadow:var(--shadow-md);border-top:3px solid var(--red);border-radius:0 0 var(--radius) var(--radius);z-index:200}
.nav-menu li:hover>.sub-menu{display:block}
.sub-menu li a{display:block;padding:.6rem 1.2rem;font-size:.85rem;color:var(--charcoal);border-bottom:1px solid var(--border);transition:background var(--ease),color var(--ease)}
.sub-menu li:last-child a{border-bottom:none}
.sub-menu li a:hover{background:var(--light-bg);color:var(--red)}

.header-cta{flex-shrink:0}

/* Hamburger */
.menu-toggle{display:none;flex-direction:column;gap:5px;background:none;border:none;cursor:pointer;padding:.4rem;margin-left:auto}
.menu-toggle span{display:block;width:24px;height:2px;background:var(--charcoal);border-radius:2px;transition:var(--ease)}
.menu-toggle.is-active span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.menu-toggle.is-active span:nth-child(2){opacity:0;transform:scaleX(0)}
.menu-toggle.is-active span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

/* ==========================================================
   HERO  —  CSS Grid two-column layout (no overlap)
   Left column = text on light background
   Right column = photo with diagonal clip
   ========================================================== */
.hero {
  display: grid;
  grid-template-columns: 44fr 56fr;   /* 44 % text | 56 % image */
  min-height: 600px;
  overflow: hidden;
  position: relative;
}

/* ── LEFT: text pane ── */
.hero__left {
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  /* percentage padding so text stays visually centred in the left column
     at every viewport width — equal space left of text and right of text */
  padding: 5rem 6% 5rem 6%;
  position: relative;
  z-index: 2;
}

.hero__content {
  width: 100%;
  max-width: 460px;  /* narrower than the column so justify-content:center works */
}

.hero__label {
  display: block;
  font-size:.72rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;
  color:var(--red);margin-bottom:.8rem;
}

.hero__title {
  font-family:var(--font-head);
  font-size: clamp(1.9rem, 3.2vw, 3.1rem);
  font-weight:800;line-height:1.1;
  color:var(--charcoal);margin-bottom:1.2rem;
}
.hero__title .line-red { color:var(--red); display:block; }

.hero__description {
  font-size:.95rem;color:#555;
  max-width:440px;margin-bottom:2rem;line-height:1.7;
}

.hero__actions { display:flex;flex-wrap:wrap;gap:.875rem;align-items:center; }

/* ── RIGHT: image pane ── */
.hero__image-panel {
  position: relative;
  overflow: hidden;
}

/* Diagonal cut: white triangle that bleeds from left edge into image */
.hero__image-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  /* CSS border trick: transparent top-right, white bottom-left */
  width: 0; height: 0;
  border-style: solid;
  /* top = full hero height (over-sized so it always covers), left = width of diagonal */
  border-width: 0 0 800px 70px;
  border-color: transparent transparent #f4f4f4 transparent;
  z-index: 2;
  pointer-events: none;
}

/* Thin red stripe at the diagonal edge */
.hero__image-panel::after {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 0 800px 6px;
  border-color: transparent transparent var(--red) transparent;
  z-index: 3;
  pointer-events: none;
}

.hero__image-panel img {
  width:100%;height:100%;
  object-fit:cover;object-position:center right;
  display:block;
}

/* Red accent bar along bottom-right of hero */
.hero__accent {
  position: absolute;
  bottom: 0; right: 0;
  /* match right column width */
  width: 56%;
  height: 5px;
  background: var(--red);
  z-index: 4;
}

/* These elements are now unused — hide them */
.hero__red-sliver { display: none; }

/* ==========================================================
   PRODUCTS
   ========================================================== */
.products-section{background:var(--white)}
.products-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.75rem}

.product-card{border-radius:var(--radius-lg);overflow:visible;background:var(--white);transition:transform var(--ease),box-shadow var(--ease);display:flex;flex-direction:column}
.product-card:hover{transform:translateY(-5px);box-shadow:var(--shadow-lg)}

.product-card__image{position:relative;height:220px;overflow:hidden;border-radius:var(--radius-lg) var(--radius-lg) 0 0;background:#e8e8e8}
.product-card__image img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .45s ease}
.product-card:hover .product-card__image img{transform:scale(1.05)}

/* Icon circle — half protrudes below image */
.product-card__icon{
  position:absolute;bottom:-27px;left:1.25rem;
  width:54px;height:54px;
  background:var(--charcoal);border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  z-index:3;box-shadow:0 4px 14px rgba(0,0,0,.3);
  border:3px solid var(--white)
}
.product-card__icon svg{width:24px;height:24px;stroke:var(--white);fill:none;stroke-width:1.8}

.product-card__body{
  padding:2.75rem 1.5rem 1.75rem;flex:1;display:flex;flex-direction:column;
  border:1px solid var(--border);border-top:none;background:#fafafa;
  border-radius:0 0 var(--radius-lg) var(--radius-lg)
}
/* Top border for the image area */
.product-card__image{border:1px solid var(--border);border-bottom:none}

.product-card__title{font-size:1.15rem;font-weight:700;color:var(--charcoal);margin-bottom:.5rem}
.product-card__desc{font-size:.875rem;color:#666;line-height:1.6;margin-bottom:1.25rem;flex:1}
.product-card__link{display:inline-flex;align-items:center;gap:.35rem;font-size:.875rem;font-weight:700;color:var(--red);transition:gap var(--ease),color var(--ease)}
.product-card__link:hover{gap:.65rem;color:var(--red-dark)}
.product-card__link svg{width:14px;height:14px;stroke:currentColor;stroke-width:2;fill:none}

/* ==========================================================
   WHY CHOOSE US
   ========================================================== */
.why-section{background:var(--light-bg)}
.why-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:2rem;text-align:center}

.why-item__icon{width:76px;height:76px;border:2px solid var(--red);border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 auto 1.2rem;transition:background var(--ease),border-color var(--ease)}
.why-item:hover .why-item__icon{background:var(--red)}
.why-item__icon svg{width:34px;height:34px;stroke:var(--red);fill:none;stroke-width:1.5;transition:stroke var(--ease)}
.why-item:hover .why-item__icon svg{stroke:var(--white)}

.why-item__title{font-size:1rem;font-weight:700;color:var(--charcoal);margin-bottom:.35rem}
.why-item__desc{font-size:.85rem;color:#666;line-height:1.6}

/* ==========================================================
   GALLERY
   ========================================================== */
.gallery-section{background:var(--white)}
.gallery-header{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:1.75rem}
.gallery-header .label{margin-bottom:.4rem}
.gallery-header .section-title{margin-top:.35rem}

.gallery-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:.875rem}

.gallery-item{position:relative;overflow:hidden;border-radius:var(--radius);aspect-ratio:4/3;cursor:zoom-in}
.gallery-item img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s ease}
.gallery-item::after{content:'';position:absolute;inset:0;background:rgba(196,18,48,.5);opacity:0;transition:opacity var(--ease);pointer-events:none}
.gallery-item:hover img{transform:scale(1.07)}
.gallery-item:hover::after{opacity:1}

/* ==========================================================
   TESTIMONIAL + CTA SPLIT
   ========================================================== */
.split-section{display:grid;grid-template-columns:1fr 1fr}

.testimonial-panel{background:var(--white);padding:5.5rem 4rem 5.5rem 5rem;display:flex;align-items:center}
.testimonial-panel>div{max-width:500px}

.quote-mark{font-family:Georgia,'Times New Roman',serif;font-size:7rem;line-height:.7;color:var(--red);display:block;margin-bottom:.1rem}

blockquote{font-size:1.05rem;font-style:italic;color:var(--charcoal);line-height:1.8;margin-bottom:1rem;border:none;padding:0}

cite{display:block;font-style:normal;font-size:.875rem;color:var(--muted);margin-bottom:.875rem}

.stars{display:flex;gap:3px}
.stars svg{width:20px;height:20px;fill:#FFB800}

.cta-panel{background:var(--red);padding:5rem 4rem;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden}
.cta-panel::before{content:'';position:absolute;inset:0;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Crect x='15' y='15' width='70' height='70' rx='3' fill='none' stroke='rgba(255,255,255,.07)' stroke-width='1.5'/%3E%3Cpath d='M50 5 L95 50 L50 95 L5 50 Z' fill='none' stroke='rgba(255,255,255,.04)' stroke-width='1.5'/%3E%3C/svg%3E");background-size:100px 100px;pointer-events:none}
.cta-panel__inner{position:relative;z-index:1;text-align:center}
.cta-panel__title{font-size:clamp(1.5rem,2.2vw,2.1rem);font-weight:800;color:var(--white);margin-bottom:.6rem}
.cta-panel__desc{font-size:1rem;color:rgba(255,255,255,.9);margin-bottom:2rem}

/* ==========================================================
   FOOTER
   ========================================================== */
#colophon{background:#141414;color:rgba(255,255,255,.65)}

.footer-top{display:grid;grid-template-columns:1.6fr 1fr 1.5fr;gap:3.5rem;padding-block:4rem;border-bottom:1px solid rgba(255,255,255,.08)}

.footer-brand a img,.footer-brand .text-logo img{height:52px;width:auto}
.footer-brand p{margin-top:1rem;font-size:.875rem;color:rgba(255,255,255,.5);line-height:1.7}
.footer-social{display:flex;gap:.75rem;margin-top:1.5rem}
.footer-social a{width:38px;height:38px;border:1px solid rgba(255,255,255,.2);border-radius:50%;display:flex;align-items:center;justify-content:center;transition:background var(--ease),border-color var(--ease);color:var(--white)}
.footer-social a:hover{background:var(--red);border-color:var(--red)}
.footer-social svg{width:16px;height:16px;fill:var(--white)}

.footer-widget-title{font-size:.72rem;font-weight:700;letter-spacing:.13em;text-transform:uppercase;color:var(--white);margin-bottom:1.2rem}
.footer-links li{margin-bottom:.45rem}
.footer-links a{font-size:.875rem;color:rgba(255,255,255,.55);transition:color var(--ease)}
.footer-links a:hover{color:var(--red)}

.footer-contact-list li{display:flex;align-items:flex-start;gap:.875rem;margin-bottom:.875rem;font-size:.875rem;color:rgba(255,255,255,.6);line-height:1.5}
.footer-contact-list a{color:rgba(255,255,255,.6)}
.footer-contact-list a:hover{color:var(--red)}
.footer-contact-list .icon{flex-shrink:0;width:32px;height:32px;background:var(--red);border-radius:50%;display:flex;align-items:center;justify-content:center;margin-top:.05rem}
.footer-contact-list .icon svg{width:14px;height:14px;stroke:var(--white);fill:none;stroke-width:1.8}

.footer-bottom{display:flex;align-items:center;justify-content:space-between;padding-block:1.25rem;font-size:.8rem;color:rgba(255,255,255,.35)}
.footer-bottom a{color:rgba(255,255,255,.35)}
.footer-bottom a:hover{color:rgba(255,255,255,.7)}
.footer-bottom-links{display:flex;gap:1.75rem}

/* ==========================================================
   INNER PAGES
   ========================================================== */
.page-hero{background:#141414;padding-block:4rem;text-align:center}
.page-hero__title{font-size:clamp(1.75rem,4vw,3rem);color:var(--white);font-weight:800}
.page-hero__breadcrumb{margin-top:.75rem;font-size:.85rem;color:rgba(255,255,255,.45)}
.page-hero__breadcrumb a{color:var(--red)}
.page-content{padding-block:5rem}
.entry-content h2{font-size:1.5rem;margin:2rem 0 .875rem}
.entry-content h3{font-size:1.2rem;margin:1.5rem 0 .75rem}
.entry-content ul{list-style:disc;padding-left:1.5rem;margin-bottom:1rem}
.entry-content ol{list-style:decimal;padding-left:1.5rem;margin-bottom:1rem}

.posts-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.75rem}
.post-card{border:1px solid var(--border);border-radius:var(--radius-lg);overflow:hidden;background:var(--white);transition:box-shadow var(--ease)}
.post-card:hover{box-shadow:var(--shadow-md)}
.post-card__image{height:200px;overflow:hidden}
.post-card__image img{width:100%;height:100%;object-fit:cover;transition:transform .4s ease}
.post-card:hover .post-card__image img{transform:scale(1.04)}
.post-card__body{padding:1.5rem}
.post-card__cat{font-size:.72rem;font-weight:700;color:var(--red);text-transform:uppercase;letter-spacing:.08em;margin-bottom:.4rem;display:block}
.post-card__title{font-size:1.05rem;margin-bottom:.4rem}
.post-card__title a{color:var(--charcoal)}
.post-card__title a:hover{color:var(--red)}
.post-card__excerpt{font-size:.85rem;color:#666}

.contact-form{max-width:700px;margin:0 auto}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-bottom:1rem}
.form-group{display:flex;flex-direction:column;gap:.35rem}
.form-group label{font-size:.85rem;font-weight:600;color:var(--charcoal)}
.form-group input,.form-group textarea,.form-group select{padding:.72rem 1rem;border:1.5px solid var(--border);border-radius:var(--radius);font-family:var(--font-body);font-size:.9rem;color:var(--charcoal);background:var(--white);transition:border-color var(--ease);outline:none;width:100%}
.form-group input:focus,.form-group textarea:focus,.form-group select:focus{border-color:var(--red)}
.form-group textarea{min-height:140px;resize:vertical}
.widget{margin-bottom:2rem}
.widget-title{font-size:1.05rem;font-weight:700;border-bottom:2px solid var(--red);padding-bottom:.5rem;margin-bottom:1rem}

/* ==========================================================
   ANIMATIONS
   ========================================================== */
@keyframes fadeInUp{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}

/* ==========================================================
   RESPONSIVE — TABLET
   ========================================================== */
@media(max-width:1024px){
  .hero__image-panel{width:50%}
  .hero__accent{width:50%}
  .hero__red-sliver{right:calc(50% - 5px)}
  .products-grid{grid-template-columns:repeat(2,1fr)}
  .why-grid{grid-template-columns:repeat(2,1fr);row-gap:2.5rem}
  .gallery-grid{grid-template-columns:repeat(2,1fr)}
  .split-section{grid-template-columns:1fr}
  .testimonial-panel{padding:4rem 3rem}
  .cta-panel{padding:4rem 3rem}
  .footer-top{grid-template-columns:1fr 1fr;gap:2.5rem}
}

/* ==========================================================
   RESPONSIVE — MOBILE
   ========================================================== */
@media(max-width:768px){
  .header-inner{height:68px}
  .header-cta{display:none}
  .menu-toggle{display:flex}
  #site-navigation{display:none;position:fixed;top:68px;left:0;right:0;bottom:0;background:var(--white);overflow-y:auto;padding:1.5rem;box-shadow:var(--shadow-lg);z-index:999}
  #site-navigation.open{display:block}
  .nav-menu{flex-direction:column;align-items:flex-start;gap:0}
  .nav-menu>li{width:100%;border-bottom:1px solid var(--border)}
  .nav-menu>li>a{padding:.875rem 0;font-size:1rem}
  .nav-menu>li>a::after{display:none}
  .hero{grid-template-columns:1fr;min-height:auto}
  .hero__image-panel{display:none}
  .hero__accent{display:none}
  .hero__left{padding:3rem 1.5rem;background:#e0e0e0}
  .hero__content{max-width:100%}
  .hero__title{font-size:1.9rem}
  .products-grid{grid-template-columns:1fr}
  .why-grid{grid-template-columns:1fr 1fr}
  .gallery-grid{grid-template-columns:1fr 1fr}
  .gallery-header{flex-direction:column;align-items:flex-start;gap:1rem}
  .testimonial-panel{padding:3rem 1.5rem}
  .cta-panel{padding:3rem 1.5rem}
  .footer-top{grid-template-columns:1fr;gap:2rem;padding-block:3rem}
  .footer-bottom{flex-direction:column;gap:.5rem;text-align:center}
  .form-row{grid-template-columns:1fr}
  .posts-grid{grid-template-columns:1fr}
}

@media(max-width:480px){
  .why-grid{grid-template-columns:1fr}
  .gallery-grid{grid-template-columns:1fr}
  .section{padding-block:3.5rem}
}
