/*
 * JC Fire Door – public-site reproduction styles
 * This file intentionally follows the visual language of the current
 * www.jcfiredoors.com site: red utility bar, compact logo navigation,
 * image-only homepage slider and light, spacious content sections.
 */
:root {
  --jc-red: #df0805;
  --jc-red-dark: #b70000;
  --jc-black: #111;
  --jc-text: #202020;
  --jc-muted: #666;
  --jc-line: #e8e8e8;
  --jc-light: #f7f7f7;
  --jc-container: min(1110px, calc(100% - 36px));
}

body {
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  color: var(--jc-text);
  line-height: 1.55;
}

.container { width: var(--jc-container); }

/* Header */
.original-header { position: relative; z-index: 500; background: #fff; }
.original-header .topbar {
  background: var(--jc-red);
  color: #fff;
  font-size: 13px;
}
.original-header .topbar-inner {
  min-height: 43px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 22px;
}
.original-header .welcome { white-space: nowrap; }
.original-header .topbar-contact {
  display: flex;
  align-items: center;
  gap: 18px;
}
.original-header .topbar-contact a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-weight: 400;
  opacity: 1;
  padding: 0;
}
.original-header .topbar-contact svg,
.original-header .topbar-social svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
.original-header .topbar-social {
  display: flex;
  align-items: center;
  gap: 12px;
}
.original-header .topbar-social a {
  display: grid;
  place-items: center;
  color: #fff;
}
.original-header .nav-shell {
  position: relative;
  top: auto;
  background: #fff;
  box-shadow: none;
  border-bottom: 1px solid #f3f3f3;
  z-index: 400;
}
.original-header .navbar {
  min-height: 84px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 36px;
}
.original-header .brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}
.original-header .brand img {
  display: block;
  width: 76px;
  height: 64px;
  object-fit: contain;
}
.original-header .main-nav { margin-left: auto; }
.original-header .main-nav > ul {
  display: flex;
  align-items: center;
  gap: 1px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.original-header .main-nav > ul > li { position: relative; }
.original-header .main-nav a,
.original-header .main-nav button {
  min-height: 84px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 18px;
  border: 0;
  background: transparent;
  color: #111;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}
.original-header .main-nav a:hover,
.original-header .main-nav button:hover,
.original-header .main-nav a.active,
.original-header .main-nav a[aria-current="page"] {
  color: var(--jc-red);
}
.original-header .main-nav .nav-cta {
  margin: 0;
  padding: 0 18px;
  border-radius: 0;
  background: transparent;
  color: #111;
}
.original-header .main-nav .nav-cta:hover { color: var(--jc-red); background: transparent; }
.original-header .mega-menu {
  position: absolute;
  top: 84px;
  left: 0;
  right: auto;
  width: 860px;
  max-width: min(860px, 90vw);
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1.15fr 2fr 1fr;
  gap: 22px;
  background: #fff;
  border-top: 3px solid var(--jc-red);
  box-shadow: 0 14px 34px rgba(0,0,0,.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: .18s ease;
}
.original-header .has-mega:hover .mega-menu,
.original-header .has-mega:focus-within .mega-menu,
.original-header .has-mega.open .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.original-header .mega-group > span {
  display: block;
  margin-bottom: 9px;
  color: var(--jc-red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.original-header .mega-group ul { list-style: none; margin: 0; padding: 0; }
.original-header .mega-group a {
  min-height: auto;
  display: block;
  padding: 6px 0;
  color: #333;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  text-transform: none;
  white-space: normal;
}
.original-header .nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 8px;
  border: 0;
  background: transparent;
}
.original-header .nav-toggle svg { width: 27px; height: 27px; fill: #111; }

/* Homepage slider */
.original-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #eee;
}
.original-slide {
  display: none;
  width: 100%;
}
.original-slide.active { display: block; }
.original-slide img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1628 / 600;
  object-fit: cover;
}
.original-slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 34px;
  height: 34px;
  margin-top: -17px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(30,30,30,.72);
  color: #fff;
  font-size: 31px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}
.original-slider-arrow.prev { left: 10px; }
.original-slider-arrow.next { right: 10px; }
.original-slider-dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  z-index: 4;
  display: flex;
  gap: 7px;
  transform: translateX(-50%);
}
.original-slider-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1px solid #fff;
  border-radius: 50%;
  background: rgba(0,0,0,.42);
}
.original-slider-dots button.active { background: var(--jc-red); }

/* Homepage content */
.original-home-section { padding: 64px 0; }
.original-home-section h1,
.original-home-section h2,
.original-home-section h3 { font-weight: 400; }
.original-welcome {
  padding: 26px 0 66px;
  text-align: center;
}
.original-welcome h1 {
  margin: 0 0 28px;
  color: #0d0d0d;
  font-size: clamp(32px, 3.25vw, 47px);
  font-weight: 300;
  letter-spacing: .08em;
  line-height: 1.18;
  text-transform: uppercase;
}
.original-welcome .copy {
  max-width: 1070px;
  margin: 0 auto;
  color: #222;
  font-size: 14px;
  line-height: 1.55;
}
.original-welcome .copy p { margin: 0; }

.original-vision-mission { background: #fafafa; border-top: 1px solid #f2f2f2; border-bottom: 1px solid #eee; }
.original-vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
}
.original-vm-card {
  display: grid;
  grid-template-columns: 108px 1fr;
  align-items: center;
  gap: 24px;
  padding: 26px 30px;
  background: #fff;
  box-shadow: 0 3px 18px rgba(0,0,0,.05);
}
.original-vm-card img { width: 95px; height: 95px; object-fit: contain; }
.original-vm-card h2 { margin: 0 0 9px; font-size: 25px; }
.original-vm-card p { margin: 0; color: var(--jc-muted); font-size: 14px; }

.original-why-grid {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 62px;
  align-items: center;
}
.original-why-image img { width: 100%; height: auto; display: block; }
.original-section-title { margin-bottom: 24px; }
.original-section-title h2 {
  margin: 0 0 14px;
  font-size: clamp(29px, 3vw, 42px);
  line-height: 1.2;
}
.original-section-title:after {
  content: "";
  display: block;
  width: 58px;
  height: 3px;
  margin-top: 18px;
  background: var(--jc-red);
}
.original-why-copy p { color: #505050; font-size: 14px; }
.original-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  margin-top: 10px;
  background: var(--jc-red);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}
.original-btn:hover { background: var(--jc-red-dark); color: #fff; }

.original-products { background: #fafafa; }
.original-products .original-section-title { text-align: center; }
.original-products .original-section-title:after { margin-left: auto; margin-right: auto; }
.original-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 36px;
}
.original-product-card {
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 4px 16px rgba(0,0,0,.04);
  text-align: center;
}
.original-product-card img {
  width: 100%;
  aspect-ratio: 1.5 / 1;
  object-fit: cover;
  display: block;
}
.original-product-card h3 {
  min-height: 66px;
  margin: 0;
  padding: 20px 14px 8px;
  font-size: 17px;
  line-height: 1.35;
}
.original-product-card .read-more {
  display: inline-block;
  margin: 6px 0 22px;
  color: var(--jc-red);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.original-quality-band {
  position: relative;
  overflow: hidden;
  background: #1c1c1c;
  color: #fff;
}
.original-quality-band:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.86), rgba(0,0,0,.62));
}
.original-quality-band .container {
  position: relative;
  z-index: 1;
  padding-top: 62px;
  padding-bottom: 62px;
  text-align: center;
}
.original-quality-band h2 { margin: 0 0 14px; font-size: 34px; }
.original-quality-band p { max-width: 780px; margin: 0 auto; color: rgba(255,255,255,.82); font-size: 14px; }

.original-testimonials .original-section-title { text-align: center; }
.original-testimonials .original-section-title:after { margin-left: auto; margin-right: auto; }
.original-testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 38px;
}
.original-testimonial {
  padding: 30px 25px;
  border: 1px solid #ececec;
  background: #fff;
  text-align: center;
}
.original-testimonial img {
  width: 88px;
  height: 88px;
  margin: 0 auto 18px;
  border-radius: 50%;
  object-fit: cover;
}
.original-testimonial blockquote { margin: 0 0 16px; color: #666; font-size: 13px; }
.original-testimonial strong { display: block; color: #222; font-size: 14px; }

.original-review-strip { padding: 34px 0; background: #f7f7f7; border-top: 1px solid #eee; }
.original-review-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  text-align: center;
}
.original-review-summary strong { font-size: 20px; }
.original-stars { color: #f5b400; font-size: 22px; letter-spacing: 3px; }
.original-review-summary span { color: #555; font-size: 13px; }

/* Existing inner pages: bring the public-site header and page styling closer to source */
.original-layout .page-hero {
  height: auto;
  min-height: 220px;
  display: flex;
  align-items: center;
  background: #f6f6f6;
  color: #111;
}
.original-layout .page-hero:before { background: none; }
.original-layout .page-hero h1 {
  color: #111;
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 400;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.original-layout .page-hero p { color: #666; }
.original-layout .page-hero .breadcrumb { color: #888; }
.original-layout .eyebrow { color: var(--jc-red); }
.original-layout .btn-primary { background: var(--jc-red); }
.original-layout .site-footer { margin-top: 0; }

/* Footer overrides */
.site-footer { background: #191919; }
.site-footer .footer-main { padding: 58px 0; }
.site-footer .footer-brand img {
  width: 96px;
  height: auto;
  padding: 8px;
  background: #fff;
}
.site-footer h3 { font-size: 13px; }
.site-footer a:hover { color: var(--jc-red); }
.site-footer .footer-bottom { background: #111; }

/* Original-style fixed quick actions */
.floating-actions {
  position: fixed;
  right: 9px;
  top: 54%;
  bottom: auto;
  z-index: 650;
  display: grid;
  gap: 11px;
}
.floating-actions a {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border: 4px solid #fff;
  border-radius: 8px;
  background: #2ebd18;
  color: #fff;
  box-shadow: 0 2px 7px rgba(0,0,0,.18);
}
.floating-actions .float-phone,
.floating-actions .float-whatsapp { background: #2ebd18; }
.floating-actions svg { width: 23px; height: 23px; }

@media (max-width: 1120px) {
  .original-header .main-nav a,
  .original-header .main-nav button { padding: 0 11px; font-size: 12px; }
  .original-product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .original-header .topbar-inner { grid-template-columns: 1fr auto; }
  .original-header .topbar-social { display: none; }
  .original-header .navbar { min-height: 72px; }
  .original-header .brand img { width: 68px; height: 56px; }
  .original-header .nav-toggle { display: block; }
  .original-header .main-nav {
    position: absolute;
    inset: 72px 0 auto 0;
    margin: 0;
    background: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 14px 30px rgba(0,0,0,.12);
    max-height: calc(100vh - 115px);
    overflow: auto;
    transform: translateY(-115%);
    visibility: hidden;
    transition: .2s ease;
  }
  .original-header .main-nav.open { transform: none; visibility: visible; }
  .original-header .main-nav > ul { display: block; padding: 8px 18px 18px; }
  .original-header .main-nav a,
  .original-header .main-nav button {
    width: 100%;
    min-height: 46px;
    justify-content: space-between;
    padding: 0 8px;
  }
  .original-header .mega-menu {
    position: static;
    width: 100%;
    max-width: none;
    display: none;
    grid-template-columns: 1fr 1fr;
    padding: 10px 16px 16px;
    border-top: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .original-header .has-mega.open .mega-menu { display: grid; }
  .original-vm-grid,
  .original-why-grid { grid-template-columns: 1fr; }
  .original-testimonial-grid { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
  :root { --jc-container: min(100% - 28px, 1110px); }
  .original-header .topbar-inner { min-height: 38px; grid-template-columns: 1fr; justify-items: center; }
  .original-header .welcome { display: none; }
  .original-header .topbar-contact { gap: 11px; }
  .original-header .topbar-contact a { font-size: 10px; }
  .original-header .topbar-contact a:nth-child(2) { display: none; }
  .original-header .navbar { min-height: 66px; }
  .original-header .main-nav { inset: 66px 0 auto; }
  .original-header .mega-menu { grid-template-columns: 1fr; }
  .original-slide img { height: 270px; aspect-ratio: auto; object-position: center; }
  .original-slider-arrow { width: 30px; height: 30px; font-size: 27px; }
  .original-welcome { padding: 34px 0 48px; }
  .original-welcome h1 { font-size: 29px; letter-spacing: .045em; }
  .original-home-section { padding: 54px 0; }
  .original-vm-card { grid-template-columns: 78px 1fr; padding: 22px 18px; gap: 15px; }
  .original-vm-card img { width: 70px; height: 70px; }
  .original-product-grid { grid-template-columns: 1fr; }
  .original-review-summary { flex-direction: column; gap: 7px; }
  .floating-actions { right: 5px; top: auto; bottom: 18px; }
  .floating-actions a { width: 41px; height: 41px; border-width: 3px; }
}
