/*
Theme Name: A2B Windows & Doors
Theme URI: https://a2bwindows.com
Author: A2B Windows & Doors Ltd
Author URI: https://a2bwindows.com
Description: Professional WordPress theme for A2B Windows & Doors Ltd - Beautiful, Secure & Energy-Efficient Windows & Doors.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: a2b-windows
Tags: business, one-page, responsive
*/

/* =============================================
   CSS CUSTOM PROPERTIES
   ============================================= */
:root {
  --red:        #cc1122;
  --red-dark:   #a50e1c;
  --dark:       #1a1a1a;
  --dark-mid:   #2a2a2a;
  --dark-light: #3a3a3a;
  --slate:      #2c3035;
  --white:      #ffffff;
  --off-white:  #f5f5f5;
  --light-grey: #e8e8e8;
  --mid-grey:   #888888;
  --text-dark:  #222222;
  --text-body:  #444444;
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.10);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.15);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.20);
  --radius:     4px;
  --radius-md:  8px;
  --transition: 0.25s ease;
  --font-head:  'Oswald', sans-serif;
  --font-body:  'Source Sans 3', sans-serif;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-body);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

input, textarea, select, button { font-family: var(--font-body); }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: 0.5px;
}

.section-title span { color: var(--red); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn-red {
  background: var(--red);
  color: var(--white);
}
.btn-red:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(204,17,34,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

/* =============================================
   HEADER / NAVIGATION
   ============================================= */
#site-header {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 52px;
  height: 52px;
}

.logo-text { line-height: 1.1; }

.logo-brand {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.5px;
}

.logo-brand span { color: var(--red); }

.logo-sub {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: #aaa;
  text-transform: uppercase;
}

.logo-sub span { color: var(--red); font-size: 0.7rem; }

/* Primary Nav */
#primary-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

#primary-nav a {
  color: #ccc;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: color var(--transition);
  position: relative;
}

#primary-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width var(--transition);
}

#primary-nav a:hover,
#primary-nav a.current { color: var(--white); }
#primary-nav a:hover::after,
#primary-nav a.current::after { width: 100%; }

.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-phone {
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 25px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* =============================================
   HERO SECTION
   ============================================= */
#hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--slate) 60%, #353a3f 100%);
  position: relative;
  overflow: hidden;
  padding: 70px 0 0;
  min-height: 520px;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

.hero-content { padding-bottom: 60px; }

.hero-badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 2px;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  color: rgba(255,255,255,0.72);
  font-size: 1.05rem;
  margin-bottom: 32px;
  max-width: 480px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Quote Form Card */
.quote-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-lg);
  margin-top: -10px;
}

.quote-card h3 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}

.quote-form { display: flex; flex-direction: column; gap: 12px; }

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--light-grey);
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--text-dark);
  background: #fafafa;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.quote-form input::placeholder,
.quote-form textarea::placeholder { color: #aaa; }

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(204,17,34,0.08);
  background: var(--white);
}

.quote-form textarea { resize: vertical; min-height: 80px; }

.quote-form .btn-red { width: 100%; justify-content: center; font-size: 1rem; padding: 14px; }

/* Stats Bar */
.stats-bar {
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(4px);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 0;
  position: relative;
  z-index: 1;
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 8px 16px;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}

.stat-number sup {
  font-size: 1rem;
  color: var(--red);
}

.stat-number .plus { color: var(--red); font-size: 1.4rem; }
.stat-number .pct  { color: var(--red); font-size: 1.2rem; }

.stat-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-top: 4px;
}

/* =============================================
   SERVICES SECTION
   ============================================= */
#services {
  padding: 80px 0;
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 300px;
  gap: 24px;
  align-items: start;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--light-grey);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.service-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--light-grey);
}

.service-card-img-placeholder {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #c8d6e5 0%, #a8b8c8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.service-card-body { padding: 20px; }

.service-card-body h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.service-card-body p {
  font-size: 0.85rem;
  color: var(--mid-grey);
  margin-bottom: 16px;
  line-height: 1.5;
}

/* Seasonal Savings Banner */
.seasonal-card {
  background: var(--dark);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
}

.seasonal-img-wrap {
  height: 140px;
  background: linear-gradient(135deg, #3a5a3a 0%, #2a4a2a 100%);
  overflow: hidden;
  position: relative;
}

.seasonal-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.seasonal-body {
  padding: 20px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.seasonal-tag {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  font-style: italic;
  color: var(--white);
}

.seasonal-offer {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.seasonal-body p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.4;
}

/* =============================================
   WHY CHOOSE US
   ============================================= */
#why-choose {
  padding: 80px 0;
  background: var(--off-white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 860px;
  margin: 0 auto;
}

.feature-item {
  text-align: center;
  padding: 32px 24px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.6rem;
}

.feature-icon.red   { background: var(--red); }
.feature-icon.green { background: #28a745; }
.feature-icon.blue  { background: #2468cc; }

.feature-icon svg { width: 28px; height: 28px; fill: none; stroke: white; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

.feature-item h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.feature-item p {
  font-size: 0.88rem;
  color: var(--mid-grey);
}

/* =============================================
   TESTIMONIALS
   ============================================= */
#testimonials {
  padding: 80px 0;
  background: var(--white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--light-grey);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.quote-mark {
  font-size: 3rem;
  line-height: 1;
  color: var(--red);
  font-family: Georgia, serif;
  margin-bottom: 8px;
  display: block;
  opacity: 0.6;
}

.testimonial-card p {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 16px;
  font-style: italic;
}

.testimonial-author {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-dark);
}

.stars {
  color: #f5a623;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

/* =============================================
   GALLERY STRIP
   ============================================= */
#gallery {
  padding: 0;
}

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

.gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--light-grey);
  cursor: pointer;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #d0d8e0 0%, #b8c4cc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-placeholder { transform: scale(1.05); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(204,17,34,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay svg { width: 32px; height: 32px; stroke: white; fill: none; stroke-width: 2; }

/* =============================================
   CONTACT SECTION
   ============================================= */
#contact {
  padding: 60px 0;
  background: var(--dark);
}

.contact-inner {
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  gap: 40px;
  align-items: start;
}

.contact-showroom {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.showroom-img {
  height: 200px;
  background: linear-gradient(135deg, #b8c8d8 0%, #9aacbe 100%);
  position: relative;
}

.showroom-img img { width: 100%; height: 100%; object-fit: cover; }

.showroom-info {
  background: rgba(255,255,255,0.05);
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.showroom-info h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 14px;
}

.showroom-info li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  margin-bottom: 8px;
  line-height: 1.4;
}

.showroom-info li svg {
  width: 14px; height: 14px;
  flex-shrink: 0;
  margin-top: 2px;
  stroke: var(--red);
  fill: none;
  stroke-width: 2;
}

/* Contact Form */
.contact-form-wrap h2 {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: 0.3px;
}

.contact-form { display: flex; flex-direction: column; gap: 12px; }

.contact-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  color: var(--white);
  font-size: 0.9rem;
  transition: border-color var(--transition), background var(--transition);
  outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,0.35); }

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--red);
  background: rgba(255,255,255,0.10);
}

.contact-form textarea { resize: vertical; min-height: 100px; }

.contact-form .btn-red { align-self: flex-start; }

/* Contact Info Sidebar */
.contact-info {
  padding-top: 8px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.contact-info-icon {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.07);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 16px; height: 16px;
  stroke: var(--red);
  fill: none;
  stroke-width: 2;
}

.contact-info-text label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 3px;
}

.contact-info-text span {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
}

/* =============================================
   FOOTER
   ============================================= */
#site-footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bar {
  width: 120px;
  height: 3px;
  background: linear-gradient(to right, var(--red), transparent);
  border-radius: 2px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--white); }

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .seasonal-card { grid-column: span 2; flex-direction: row; }
  .seasonal-img-wrap { width: 200px; flex-shrink: 0; height: auto; }
  .contact-inner { grid-template-columns: 1fr 1fr; }
  .contact-showroom { grid-column: span 2; display: grid; grid-template-columns: 200px 1fr; }
  .showroom-img { height: auto; }
  .showroom-info { border-top: 1px solid rgba(255,255,255,0.08); border-left: none; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .quote-card { max-width: 480px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .gallery-strip { grid-template-columns: repeat(2, 1fr); }
  .contact-inner { grid-template-columns: 1fr; }
  .contact-showroom { grid-column: span 1; }
}

@media (max-width: 768px) {
  #primary-nav { display: none; position: absolute; top: 70px; left: 0; right: 0; background: var(--dark); flex-direction: column; gap: 0; padding: 16px 20px; border-top: 1px solid rgba(255,255,255,0.1); }
  #primary-nav.is-open { display: flex; }
  #primary-nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .header-phone { display: none; }
  .hamburger { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .seasonal-card { flex-direction: column; }
  .seasonal-img-wrap { width: 100%; height: 160px; }
  .features-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .contact-form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
  .footer-bar { display: none; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .gallery-strip { grid-template-columns: repeat(2, 1fr); }
}
