/* ============================================
   A&Q Custom Shutters — Premium Website CSS
   ============================================ */

:root {
  --primary: #1a3a4a;
  --primary-light: #2c5f7a;
  --accent: #c8a96e;
  --accent-dark: #a8893e;
  --white: #ffffff;
  --off-white: #f8f6f2;
  --light-gray: #f2f0ec;
  --mid-gray: #e5e2db;
  --text: #2a2a2a;
  --text-light: #6b6b6b;
  --text-lighter: #9a9a9a;
  --dark-bg: #0f2535;
  --success: #2d7a4f;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.14);
  --transition: all 0.3s ease;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-pad { padding: 90px 0; }
.bg-light { background: var(--light-gray); }
.bg-dark { background: var(--dark-bg); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-primary { background: var(--accent); color: var(--primary); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(200,169,110,0.35); }
.btn-secondary { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-secondary:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-white { background: var(--white); color: var(--primary); border-color: var(--white); }
.btn-white:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.btn-outline-white { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline-white:hover { background: var(--white); color: var(--primary); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-outline-light:hover { background: rgba(255,255,255,0.15); border-color: var(--white); }

/* ============ SECTION HEADERS ============ */
.section-header { text-align: center; margin-bottom: 56px; }
.section-header.light h2,
.section-header.light p { color: var(--white); }
.section-tag {
  display: inline-block;
  background: rgba(200,169,110,0.15);
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
  border: 1px solid rgba(200,169,110,0.3);
}
.section-tag.light {
  background: rgba(200,169,110,0.2);
  color: var(--accent);
  border-color: rgba(200,169,110,0.4);
}
.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.25;
  margin-bottom: 16px;
}
.section-header.light h2 { color: var(--white); }
.section-header p {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto;
}
.section-header.light p { color: rgba(255,255,255,0.75); }

/* ============ TOP BAR ============ */
.topbar {
  background: var(--primary);
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  padding: 9px 0;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar-right { display: flex; gap: 20px; }
.topbar a { color: var(--accent); font-weight: 500; }
.topbar a:hover { color: var(--white); }

/* ============ HEADER / NAV ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--mid-gray);
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  transition: var(--transition);
}
.header.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.12); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 24px;
}
.logo img { height: 48px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 8px 14px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  border-radius: 6px;
  transition: var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--primary); background: var(--light-gray); }
.nav-cta { padding: 10px 22px; font-size: 0.9rem; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,37,53,0.92) 0%, rgba(15,37,53,0.55) 60%, rgba(15,37,53,0.3) 100%);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,37,53,0.88) 0%, rgba(15,37,53,0.45) 55%, transparent 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 80px 24px;
}
.hero-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.hero-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
}
.hero-accent { color: var(--accent); display: block; }
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 580px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-trust {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.9);
  font-size: 0.88rem;
  font-weight: 500;
}
.trust-icon { font-size: 1.1rem; }

/* ============ FACTORY BANNER ============ */
.factory-banner {
  background: var(--accent);
  padding: 56px 0;
}
.factory-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.factory-text h2 {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  color: var(--primary);
  margin-bottom: 16px;
}
.factory-text p { color: rgba(26,58,74,0.85); font-size: 1rem; line-height: 1.7; }
.factory-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: 0.82rem;
  color: rgba(26,58,74,0.75);
  font-weight: 600;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============ PRODUCTS ============ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--mid-gray);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-img {
  position: relative;
  height: 240px;
  overflow: hidden;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-img img { transform: scale(1.05); }
.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--accent);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 100px;
  letter-spacing: 0.5px;
}
.product-info { padding: 28px; }
.product-info h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--primary);
  margin-bottom: 10px;
}
.product-info p { color: var(--text-light); font-size: 0.93rem; margin-bottom: 16px; }
.product-features { margin-bottom: 24px; }
.product-features li {
  font-size: 0.87rem;
  color: var(--text-light);
  padding: 4px 0;
}

/* ============ PROCESS ============ */
.steps {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 48px;
}
.step {
  flex: 1;
  text-align: center;
  padding: 36px 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--mid-gray);
  transition: var(--transition);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.step-num {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(200,169,110,0.2);
  line-height: 1;
  margin-bottom: 8px;
}
.step-icon { font-size: 2.2rem; margin-bottom: 16px; }
.step h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 12px;
}
.step p { font-size: 0.92rem; color: var(--text-light); line-height: 1.65; }
.step-arrow {
  font-size: 1.8rem;
  color: var(--accent);
  margin-top: 80px;
  flex-shrink: 0;
}
.process-cta { text-align: center; }

/* ============ GALLERY PREVIEW ============ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 280px 280px;
  gap: 16px;
  margin-bottom: 36px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
}
.gallery-item.tall { grid-row: span 2; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,37,53,0.7) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span {
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}
.gallery-cta { text-align: center; }

/* ============ REVIEWS ============ */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.review-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}
.review-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-4px); }
.review-card.featured {
  background: rgba(200,169,110,0.12);
  border-color: rgba(200,169,110,0.3);
}
.review-stars { font-size: 1.1rem; margin-bottom: 16px; }
.review-text {
  color: rgba(255,255,255,0.85);
  font-size: 0.93rem;
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.review-author strong { display: block; color: var(--white); font-size: 0.92rem; }
.review-author span { color: rgba(255,255,255,0.55); font-size: 0.82rem; }
.review-google { height: 20px; width: auto; margin-left: auto; opacity: 0.7; }
.reviews-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============ WHY US ============ */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.why-img {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.why-img img {
  width: 100%;
  height: 600px;
  object-fit: cover;
}
.why-badge-float {
  position: absolute;
  bottom: 28px;
  left: 28px;
  background: var(--accent);
  color: var(--primary);
  padding: 16px 24px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
}
.badge-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}
.badge-text {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}
.why-content .section-tag { margin-bottom: 16px; }
.why-content h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  color: var(--primary);
  margin-bottom: 16px;
  line-height: 1.25;
}
.why-content > p {
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 32px;
  line-height: 1.7;
}
.why-list { margin-bottom: 36px; }
.why-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--mid-gray);
}
.why-item:last-child { border-bottom: none; }
.why-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.why-item h4 { font-size: 1rem; color: var(--primary); margin-bottom: 4px; font-weight: 600; }
.why-item p { font-size: 0.88rem; color: var(--text-light); line-height: 1.6; }

/* ============ SERVICE AREA ============ */
.area-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.area-list h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 20px;
}
.cities-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.cities-grid span {
  background: var(--white);
  border: 1px solid var(--mid-gray);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 100px;
  transition: var(--transition);
}
.cities-grid span:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.area-info { display: flex; flex-direction: column; gap: 12px; }
.area-detail {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.92rem;
}
.area-detail strong { color: var(--primary); min-width: 90px; }
.area-detail span, .area-detail a { color: var(--text-light); }
.area-detail a:hover { color: var(--primary); }

/* ============ CTA BANNER ============ */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 80px 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-text h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--white);
  margin-bottom: 10px;
}
.cta-text p { color: rgba(255,255,255,0.75); font-size: 1rem; }
.cta-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ============ FOOTER ============ */
.footer {
  background: #0a1e2d;
  padding: 72px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand img { height: 44px; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: 0.9; }
.footer-brand p { color: rgba(255,255,255,0.55); font-size: 0.88rem; line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--accent); color: var(--primary); }
.footer-links h4,
.footer-contact h4 {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--accent); }
.footer-contact p {
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  margin-bottom: 10px;
  line-height: 1.6;
}
.footer-contact a { color: var(--accent); }
.footer-contact a:hover { color: var(--white); }
.footer-contact strong { color: rgba(255,255,255,0.8); }
.footer-bottom {
  padding: 20px 0;
}
.footer-bottom p {
  color: rgba(255,255,255,0.35);
  font-size: 0.82rem;
  text-align: center;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--accent); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .factory-inner { grid-template-columns: 1fr; gap: 36px; }
  .why-grid { grid-template-columns: 1fr; gap: 48px; }
  .why-img img { height: 400px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  .topbar-inner { flex-direction: column; gap: 6px; text-align: center; }
  .topbar-right { justify-content: center; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); padding: 16px 24px; border-bottom: 1px solid var(--mid-gray); box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 8px; border-radius: 0; border-bottom: 1px solid var(--light-gray); }
  .hamburger { display: flex; }
  .nav-cta { display: none; }
  .header { position: relative; }
  .hero { min-height: 80vh; }
  .hero-content { padding: 60px 24px; }
  .hero-actions { flex-direction: column; }
  .hero-trust { gap: 16px; }
  .steps { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); margin: 0 auto; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gallery-item.tall { grid-row: span 1; }
  .reviews-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .factory-stats { grid-template-columns: 1fr 1fr; }
  .area-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-actions { justify-content: center; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .section-pad { padding: 60px 0; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 2rem; }
  .factory-stats { grid-template-columns: 1fr 1fr; }
}

/* ============ ANIMATIONS ============ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp 0.6s ease forwards; }
.fade-in-delay-1 { animation-delay: 0.1s; opacity: 0; }
.fade-in-delay-2 { animation-delay: 0.2s; opacity: 0; }
.fade-in-delay-3 { animation-delay: 0.3s; opacity: 0; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
