/* ===================================================
   GLAZELAND DOORS — Premium Redesign
   Palette: Deep slate | Warm cream | Brass gold accent
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Barlow:wght@300;400;500;600&display=swap');

:root {
  --slate:    #1a1f2e;
  --slate-mid:#2c3347;
  --brass:    #c9a84c;
  --brass-lt: #e8c97a;
  --cream:    #f5f1eb;
  --white:    #ffffff;
  --text-body:#3a3f52;
  --nav-h:    72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Barlow', sans-serif;
  font-size: 17px;
  color: var(--text-body);
  background: var(--white);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; }

/* === NAV === */
#header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: var(--nav-h);
  z-index: 9999;
  background: rgba(26,31,46,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201,168,76,0.25);
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-brand .brand-accent { color: var(--brass); }
.nav-links {
  display: flex;
  list-style: none;
  gap: 0;
}
.nav-links li a {
  display: block;
  padding: 8px 15px;
  color: rgba(255,255,255,0.75);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-links li a:hover,
.nav-links li.active a {
  color: var(--brass);
  border-bottom-color: var(--brass);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}

/* === HERO === */
#hero {
  position: relative;
  margin-top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  min-height: 520px;
  background-image: url('./images/banner.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}


.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(26,31,46,0.2) 0%, rgba(26,31,46,0.72) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px 72px;
  width: 100%;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  border: 1px solid var(--brass);
  padding: 4px 14px;
  margin-bottom: 20px;
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  font-weight: 600;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 20px;
}

/* Mobile: banner*/
@media (max-width: 1000px) {
  .hero-parallax-bg  {
  background-image: url('./images/banner-mobile.jpg') !important;
    }
}


.hero-title em { color: var(--brass); font-style: italic; }
.hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.72);
  font-weight: 300;
  max-width: 460px;
  margin-bottom: 36px;
  line-height: 1.75;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* === BUTTONS === */
.btn-primary {
  display: inline-block;
  background: var(--brass);
  color: var(--slate);
  padding: 13px 28px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border: 2px solid var(--brass);
  transition: background 0.25s, color 0.25s, transform 0.2s;
  cursor: pointer;
}
.btn-primary:hover { background: transparent; color: var(--brass); transform: translateY(-2px); }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--white);
  padding: 13px 28px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border: 2px solid rgba(255,255,255,0.5);
  transition: border-color 0.25s, color 0.25s, transform 0.2s;
  cursor: pointer;
}
.btn-outline:hover { border-color: var(--white); transform: translateY(-2px); }

.btn-dark {
  display: inline-block;
  background: var(--slate);
  color: var(--white);
  padding: 13px 28px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border: 2px solid var(--slate);
  transition: background 0.25s, color 0.25s, transform 0.2s;
  cursor: pointer;
}
.btn-dark:hover { background: transparent; color: var(--slate); transform: translateY(-2px); }

/* === SECTION COMMONS === */
.section-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 88px 40px;
}
.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 10px;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--slate);
  margin-bottom: 18px;
}
.section-title em { font-style: italic; color: var(--brass); }
.section-body {
  font-size: 0.97rem;
  line-height: 1.8;
  color: #555;
  max-width: 520px;
  margin-bottom: 28px;
}

/* === DOORS INTRO === */
#doors { background: var(--cream); overflow: hidden; }
.doors-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
.doors-image-col { overflow: hidden; max-height: 640px; }
.doors-image-col img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.doors-image-col:hover img { transform: scale(1.04); }
.doors-text-col { padding: 64px 72px; }
.price-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--slate);
  color: var(--white);
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 500;
  margin-top: 8px;
  margin-bottom: 20px;
}
.price-tag strong { color: var(--brass); }
.colour-strip { margin-bottom: 28px; }
.colour-strip p {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 10px;
}
.colour-strip a img {
  max-width: 260px;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}
.colour-strip a:hover img { border-color: var(--brass); }
.doors-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* === SERVICES STRIP === */
.services-strip {
  background: var(--slate);
  padding: 0 40px;
}
.services-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(201,168,76,0.18);
}
.service-card {
  padding: 36px 24px;
  border-right: 1px solid rgba(201,168,76,0.18);
  text-align: center;
  transition: background 0.25s;
}
.service-card:last-child { border-right: none; }
.service-card:hover { background: rgba(201,168,76,0.06); }
.service-icon { font-size: 1.8rem; color: var(--brass); margin-bottom: 14px; }
.service-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 6px;
}
.service-card p { font-size: 0.82rem; color: rgba(255,255,255,0.5); line-height: 1.6; }

/* === SPLIT SECTION (Lanterns) === */
#lantern { background: var(--white); overflow: hidden; }
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 620px;
}
.split-image { overflow: hidden; }
.split-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.split-image:hover img { transform: scale(1.04); }
.split-text {
  padding: 72px 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--cream);
}
.mini-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 24px 0 30px;
}
.mini-gallery img {
  width: 100%; height: 170px; object-fit: cover;
  transition: transform 0.3s ease;
}
.mini-gallery img:hover { transform: scale(1.04); }

/* === CONSERVATORIES === */
#conservatories { background: var(--slate); overflow: hidden; }
.cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.cons-text {
  padding: 72px 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cons-text .section-title { color: var(--white); }
.cons-text .section-body { color: rgba(255,255,255,0.62); }
.cons-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 32px 0;
}
.cons-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.cons-feature-item i {
  color: var(--brass-lt);
  font-size: 1.1rem;
  margin-top: 3px;
  flex-shrink: 0;
}
.cons-feature-item h4 {
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
  margin: 0 0 3px;
  letter-spacing: 0.02em;
}
.cons-feature-item p {
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  margin: 0;
  line-height: 1.5;
}
.cons-stats {
  display: flex;
  gap: 28px;
  margin: 28px 0 36px;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.cons-stat-item { text-align: center; }
.cons-stat-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--brass-lt);
  line-height: 1;
}
.cons-stat-label {
  display: block;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 5px;
}
.cons-img-stack {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  height: auto;
  align-self: center;
  gap: 3px;
}
.cons-img-stack img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  transition: transform 0.4s ease;
}
.cons-img-stack img:hover { transform: scale(1.03); }

/* === FULL HOUSE === */
#fullhouse { background: var(--cream); overflow: hidden; }
.fullhouse-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 88px 40px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 36px 0 36px;
}
.gallery-grid .g-item { overflow: hidden; }
.gallery-grid .g-item img {
  width: 100%; height: 240px; object-fit: cover;
  transition: transform 0.45s ease;
}
.gallery-grid .g-item:hover img { transform: scale(1.06); }

/* === CONTACT === */
#contact {
  background-image: url('./images/door.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.contact-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,31,46,0.94) 0%, rgba(26,31,46,0.82) 100%);
}
.contact-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 96px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.contact-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 14px;
}
.contact-heading em { color: var(--brass); font-style: italic; }
.contact-sub {
  color: rgba(255,255,255,0.58);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 36px;
}
.contact-offices { display: flex; flex-direction: column; gap: 24px; }
.office-card {
  padding: 24px 28px;
  border: 1px solid rgba(201,168,76,0.3);
  transition: border-color 0.25s;
}
.office-card:hover { border-color: var(--brass); }
.office-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--brass);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.office-detail {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.78);
  font-size: 0.9rem;
}
.office-detail i { color: var(--brass); width: 16px; text-align: center; }
.office-detail a { color: rgba(255,255,255,0.78); transition: color 0.2s; }
.office-detail a:hover { color: var(--brass); }

/* === FOOTER === */
footer {
  background: #111621;
  border-top: 1px solid rgba(201,168,76,0.18);
  padding: 22px 40px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-copy, .footer-right { font-size: 0.78rem; color: rgba(255,255,255,0.35); }

/* === DOORS PAGE === */
#doors-page-hero {
  margin-top: var(--nav-h);
  background: var(--slate);
  padding: 64px 40px;
  border-bottom: 1px solid rgba(201,168,76,0.2);
}
.page-hero-inner { max-width: 1280px; margin: 0 auto; }
.page-hero-inner .section-title { color: var(--white); }
.page-hero-inner .section-body { color: rgba(255,255,255,0.6); }

#composite-doors { background: var(--cream); }
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 36px 0 40px;
}
.photo-grid .p-item { overflow: hidden; }
.photo-grid .p-item img {
  width: 100%; height: 250px; object-fit: cover;
  transition: transform 0.4s ease;
}
.photo-grid .p-item:hover img { transform: scale(1.06); }

#bifold { background: var(--white); overflow: hidden; }
.bifold-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 580px;
}
.bifold-bg {
  background-image: url('./images/ourwork/doors/bifold/bifold14.jpg');
  background-size: cover;
  background-position: center;
}
.bifold-text {
  padding: 72px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.bifold-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 20px 0 24px;
}
.bifold-gallery img {
  width: 100%; height: 170px; object-fit: cover;
  transition: transform 0.35s ease;
}
.bifold-gallery img:hover { transform: scale(1.05); }
video {
  width: 100%;
  max-width: 500px;
  margin: 20px 0;
  border: 2px solid var(--brass);
}

#porch { background: var(--slate); }
.porch-inner { padding: 88px 40px; max-width: 1280px; margin: 0 auto; }
.porch-inner .section-title { color: var(--white); }
.porch-inner .section-body { color: rgba(255,255,255,0.6); }
.porch-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 28px 0 36px;
  max-width: 640px;
}
.porch-gallery img {
  width: 100%; height: 280px; object-fit: cover;
  transition: transform 0.35s ease;
}
.porch-gallery img:hover { transform: scale(1.04); }

/* === SCROLL ANIMATIONS === */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: none; }
.fade-up.d1 { transition-delay: 0.1s; }
.fade-up.d2 { transition-delay: 0.2s; }
.fade-up.d3 { transition-delay: 0.3s; }

/* === RESPONSIVE === */
@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--slate);
    flex-direction: column;
    border-top: 1px solid rgba(201,168,76,0.25);
    padding: 10px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li a { padding: 14px 28px; border-bottom: none; }
  .doors-grid, .split-section, .cons-grid, .bifold-layout, .contact-inner { grid-template-columns: 1fr; }
  .doors-text-col, .split-text, .cons-text, .bifold-text { padding: 48px 28px; }
  .cons-text { order: -1; }
  .cons-features { grid-template-columns: 1fr; gap: 14px; }
  .cons-stats { gap: 16px; flex-wrap: wrap; }
  .cons-img-stack { grid-template-rows: repeat(3, 1fr); height: auto; }
  .services-inner { grid-template-columns: 1fr 1fr; }
  .gallery-grid, .photo-grid { grid-template-columns: 1fr 1fr; }
  .bifold-gallery { grid-template-columns: 1fr 1fr; }
  .bifold-bg { min-height: 320px; }
  .contact-inner { padding: 56px 24px; gap: 40px; }
  .hero-content { padding: 0 24px 48px; }
  .section-wrap, .fullhouse-inner, .porch-inner { padding: 60px 24px; }
  #doors-page-hero { padding: 48px 24px; }
}
@media (max-width: 600px) {
  .services-inner { grid-template-columns: 1fr; }
  .gallery-grid, .photo-grid, .bifold-gallery { grid-template-columns: 1fr; }
  .porch-gallery, .mini-gallery { grid-template-columns: 1fr; }
  .hero-actions, .doors-ctas { flex-direction: column; }
  .contact-inner { grid-template-columns: 1fr; }
}

/* ===================================================
   HERO ENTRANCE ANIMATION
   =================================================== */

@keyframes heroSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

.hero-anim {
  opacity: 0;
  animation: heroSlideUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ===================================================
   STATS BAR
   =================================================== */

.stats-bar {
  background: var(--brass);
  padding: 0 40px;
}

.stats-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
}

.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  text-align: center;
}

.stat-num, .stat-static {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--slate);
  line-height: 1;
}

.stat-suffix {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--slate);
  margin-left: 2px;
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(26,31,46,0.65);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  background: rgba(26,31,46,0.2);
  margin: 18px 0;
}

/* ===================================================
   WHY CHOOSE US
   =================================================== */

#why-us {
  background: var(--white);
  overflow: hidden;
}

.why-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 96px 40px;
}

.why-header {
  text-align: center;
  margin-bottom: 56px;
}

.why-header .section-label {
  display: block;
  text-align: center;
}

.why-header .section-title {
  text-align: center;
  margin: 0 auto;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--grey-lt, #eaeaea);
}

.why-card {
  background: var(--white);
  padding: 40px 32px;
  text-align: left;
  transition: background 0.25s;
  position: relative;
}

.why-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.why-card:hover { background: var(--cream); }
.why-card:hover::before { transform: scaleX(1); }

.why-icon {
  font-size: 1.6rem;
  color: var(--brass);
  margin-bottom: 18px;
}

.why-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 12px;
  line-height: 1.25;
}

.why-card p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.75;
}

/* ===================================================
   FLOATING CALL BUTTON
   =================================================== */

.float-call {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 8888;
  background: var(--brass);
  color: var(--slate);
  padding: 14px 22px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 28px rgba(201,168,76,0.45);
  transition: transform 0.2s, box-shadow 0.2s;
}

.float-call:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 36px rgba(201,168,76,0.55);
  color: var(--slate);
}

@media (max-width: 960px) {
  .float-call { display: flex; }

  .why-grid { grid-template-columns: 1fr 1fr; }

  .stats-inner { flex-wrap: wrap; }
  .stat-item { min-width: 50%; }
  .stat-divider { display: none; }

  .why-inner { padding: 60px 24px; }
  .stats-bar { padding: 0 24px; }
}

@media (max-width: 600px) {
  .why-grid { grid-template-columns: 1fr; }
  .stat-item { min-width: 100%; }
}

/* ===================================================
   LIFE & WARMTH UPGRADE
   =================================================== */

/* ── Parallax hero background ── */
#hero {
  overflow: hidden;
  background: none; /* bg handled by pseudo layer */
}

.hero-parallax-bg {
  position: absolute;
  inset: -20% 0 -20% 0;
  background-image: url('./images/banner.jpg');
  background-size: cover;
  background-position: center;
  will-change: transform;
  z-index: 0;
}

/* ── Nav shrinks when scrolled ── */
#header {
  transition: height 0.35s ease, background 0.35s ease;
}
#header.scrolled {
  height: 58px;
  background: rgba(26,31,46,1);
}
#header.scrolled .nav-inner { height: 58px; }

/* ── Eyebrow shimmer ── */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.hero-eyebrow::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
  animation: shimmer 3.2s ease-in-out 1.4s infinite;
}

@keyframes shimmer {
  0%   { left: -100%; }
  100% { left: 200%;  }
}

.eyebrow-dot {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brass);
  flex-shrink: 0;
}

/* ── Word-by-word hero title ── */
.word-outer {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.word-inner {
  display: inline-block;
  opacity: 0;
  transform: translateY(110%) rotate(3deg);
  animation: wordReveal 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.word-italic {
  font-style: italic;
  color: var(--brass);
}

@keyframes wordReveal {
  to { opacity: 1; transform: translateY(0) rotate(0deg); }
}

/* ── Clip-path image reveals (left → right wipe) ── */
.img-reveal {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.95s cubic-bezier(0.77, 0, 0.175, 1);
}
.img-reveal.revealed {
  clip-path: inset(0 0% 0 0);
}

.img-reveal-right {
  clip-path: inset(0 0 0 100%);
  transition: clip-path 0.95s cubic-bezier(0.77, 0, 0.175, 1) 0.15s;
}
.img-reveal-right.revealed {
  clip-path: inset(0 0 0 0%);
}

/* ── Gallery items stagger in with a pop ── */
@keyframes galleryPop {
  0%   { opacity: 0; transform: scale(0.92) translateY(18px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.gallery-grid .g-item.visible img,
.photo-grid .p-item.visible img {
  animation: galleryPop 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ── Why cards lift with a warm glow on hover ── */
.why-card {
  transition: background 0.25s, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s;
}
.why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(201,168,76,0.12);
}

/* ── Service cards warm glow ── */
.service-card {
  transition: background 0.25s, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.service-card:hover {
  transform: translateY(-4px);
}

/* ── Stat numbers pulse in ── */
@keyframes statPop {
  0%   { transform: scale(0.7); opacity: 0; }
  60%  { transform: scale(1.1); }
  100% { transform: scale(1);   opacity: 1; }
}
.stats-bar.visible .stat-item {
  animation: statPop 0.5s ease forwards;
}

/* ── Warm section divider lines ── */
.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--brass);
  vertical-align: middle;
  margin-right: 10px;
}

/* ── Btn-magnetic needs relative positioning ── */
.btn-magnetic {
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.25s, color 0.25s, box-shadow 0.25s !important;
}
.btn-primary.btn-magnetic:hover,
.btn-outline.btn-magnetic:hover {
  box-shadow: 0 8px 28px rgba(201,168,76,0.35);
}

/* ── Image hover zoom warmth ── */
.doors-image-col img,
.split-image img,
.cons-img-stack img,
.gallery-grid .g-item img,
.mini-gallery img,
.photo-grid .p-item img,
.bifold-gallery img,
.porch-gallery img {
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  .hero-anim, .word-inner, .img-reveal, .img-reveal-right,
  .hero-parallax-bg, .fade-up { animation: none !important; transition: none !important;
    opacity: 1 !important; transform: none !important; clip-path: none !important; }
}

/* ═══════════════════════════════════════════════
   QUOTE FORM  —  contact section overrides
   ═══════════════════════════════════════════════ */

/* Wider contact inner to fit form side-by-side */
.contact-inner--wide {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding: 80px 32px;
  position: relative;
  z-index: 2;
}

.contact-left { display: flex; flex-direction: column; gap: 0; }
.contact-left .contact-heading { margin-bottom: 14px; }
.contact-left .contact-sub     { margin-bottom: 28px; }
.contact-left .contact-offices { flex-direction: column; gap: 14px; }

/* Form card */
.quote-form-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(201,168,76,0.22);
  border-radius: 12px;
  padding: 36px 36px 28px;
  backdrop-filter: blur(10px);
}

.form-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--brass);
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Success / Error banners */
.form-msg {
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 16px;
  font-size: 0.93rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}
.form-msg--success { background: rgba(60,180,100,0.18); border:1px solid rgba(60,180,100,0.4); color:#7eeaaa; }
.form-msg--error   { background: rgba(220,60,60,0.18);  border:1px solid rgba(220,60,60,0.35); color:#f5a0a0; }
.form-msg a        { color: inherit; text-decoration: underline; }

/* Form rows & groups */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.form-group:last-of-type { margin-bottom: 0; }

.form-group label,
.label-block {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  display: block;
  margin-bottom: 2px;
}
.req { color: var(--brass); }

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea,
.form-group select {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 7px;
  padding: 11px 14px;
  color: #fff;
  font-size: 0.94rem;
  font-family: var(--font-body);
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
  box-sizing: border-box;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.3); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--brass);
  background: rgba(255,255,255,0.09);
}
.form-group select option { background: #1a1a1a; color: #fff; }
.form-group textarea { resize: vertical; min-height: 100px; }

/* Checkbox grid */
.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.cb-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 10px 14px;
  transition: border-color 0.2s, background 0.2s;
  user-select: none;
}
.cb-label:hover { border-color: rgba(201,168,76,0.4); background: rgba(201,168,76,0.08); }
.cb-label input[type="checkbox"] { display: none; }

.cb-box {
  width: 18px; height: 18px;
  border: 2px solid rgba(201,168,76,0.5);
  border-radius: 4px;
  flex-shrink: 0;
  position: relative;
  transition: background 0.15s, border-color 0.15s;
}
.cb-label input:checked ~ .cb-box {
  background: var(--brass);
  border-color: var(--brass);
}
.cb-label input:checked ~ .cb-box::after {
  content: '';
  position: absolute;
  left: 4px; top: 1px;
  width: 6px; height: 10px;
  border: 2px solid #111;
  border-top: none; border-left: none;
  transform: rotate(45deg);
}
.cb-label input:checked ~ .cb-box { box-shadow: 0 0 8px rgba(201,168,76,0.4); }

.cb-text {
  font-size: 0.87rem;
  color: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  gap: 6px;
}
.cb-text i { color: var(--brass); font-size: 0.8rem; }

/* Checked card highlight */
.cb-label:has(input:checked) {
  border-color: rgba(201,168,76,0.6);
  background: rgba(201,168,76,0.1);
}

/* Submit button */
.btn-submit-form {
  width: 100%;
  margin-top: 20px;
  padding: 14px 24px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-submit-form:disabled { opacity: 0.6; cursor: not-allowed; }

.form-note {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.38);
  text-align: center;
  margin: 10px 0 0;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 900px) {
  .contact-inner--wide {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 60px 24px;
  }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .checkbox-grid { grid-template-columns: 1fr; }
  .quote-form-card { padding: 24px 18px; }
}

/* ═══════════════════════════════════════════════
   CONTACT MODAL PANEL
   ═══════════════════════════════════════════════ */

.nav-contact-trigger {
  color: var(--brass) !important;
  font-weight: 700 !important;
}

/* Dark backdrop */
.cmodal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.22,1,0.36,1);
}
.cmodal-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

/* Slide-in panel from right */
.cmodal-panel {
  width: min(560px, 100vw);
  height: 100%;
  background: #111;
  border-left: 1px solid rgba(201,168,76,0.2);
  box-shadow: -12px 0 60px rgba(0,0,0,0.6);
  position: relative;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
  display: flex;
  flex-direction: column;
}
.cmodal-backdrop.open .cmodal-panel {
  transform: translateX(0);
}

/* Scrollable inner */
.cmodal-scroll {
  overflow-y: auto;
  flex: 1;
  padding: 72px 40px 48px;
  scrollbar-width: thin;
  scrollbar-color: rgba(201,168,76,0.3) transparent;
}
.cmodal-scroll::-webkit-scrollbar { width: 4px; }
.cmodal-scroll::-webkit-scrollbar-thumb { background: rgba(201,168,76,0.3); border-radius: 2px; }

/* Close button */
.cmodal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  z-index: 10;
}
.cmodal-close:hover {
  background: rgba(201,168,76,0.18);
  border-color: var(--brass);
  transform: rotate(90deg);
}

/* Header */
.cmodal-header { margin-bottom: 28px; }
.cmodal-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: #fff;
  line-height: 1.15;
  margin: 6px 0 10px;
}
.cmodal-title em { font-style: italic; color: var(--brass); }
.cmodal-sub {
  font-size: 0.93rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  margin: 0;
}

/* Office cards at bottom of modal */
.cmodal-offices {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* Mobile: full-width panel */
@media (max-width: 560px) {
  .cmodal-panel { width: 100vw; border-left: none; }
  .cmodal-scroll { padding: 64px 20px 40px; }
}


/* ============================================================
   LIGHTBOX v2 — scroll/zoom/drag/pan + thumbnail strip
   ============================================================ */

/* Trigger images */
img.glb-trigger {
  cursor: zoom-in;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
img.glb-trigger:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  position: relative; z-index: 1;
}

/* Backdrop */
.glb-overlay {
  position: fixed; inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0);
  opacity: 0; pointer-events: none;
  transition: background 0.3s, opacity 0.3s;
  display: flex; flex-direction: column;
  align-items: stretch;
}
.glb-overlay.glb-open {
  background: rgba(0,0,0,0.93);
  opacity: 1; pointer-events: all;
}

/* Main view area (above thumbnail strip) */
.glb-main {
  flex: 1 1 auto;
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  cursor: grab;
}
.glb-main.dragging { cursor: grabbing; }

/* Image wrapper — transform applied here for pan */
.glb-img-wrap {
  position: relative;
  will-change: transform;
  line-height: 0;
}
.glb-img-wrap img {
  display: block;
  max-width: 88vw;
  max-height: calc(100vh - 130px); /* leave room for strip */
  width: auto; height: auto;
  border-radius: 3px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.7);
  pointer-events: none;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease;
  user-select: none;
}
.glb-img-wrap img.glb-loaded {
  opacity: 1;
  transform: scale(1);
}

/* Spin loader */
.glb-spinner {
  position: absolute;
  width: 36px; height: 36px;
  border: 3px solid rgba(255,255,255,0.15);
  border-top-color: rgba(201,168,76,0.8);
  border-radius: 50%;
  animation: glb-spin 0.7s linear infinite;
  pointer-events: none;
}
@keyframes glb-spin { to { transform: rotate(360deg); } }

/* Close button */
.glb-close {
  position: absolute; top: 16px; right: 20px;
  width: 44px; height: 44px;
  background: rgba(20,20,20,0.7);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: #fff; font-size: 1.25rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 10020;
  transition: background 0.2s, transform 0.25s, border-color 0.2s;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.glb-close:hover {
  background: rgba(201,168,76,0.3);
  border-color: var(--brass,#c9a84c);
  transform: rotate(90deg) scale(1.1);
}

/* Prev / Next */
.glb-prev, .glb-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  background: rgba(20,20,20,0.65);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  color: #fff; font-size: 1.1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 10015;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.glb-prev { left: 16px; }
.glb-next { right: 16px; }
.glb-prev:hover { background: rgba(201,168,76,0.28); border-color: var(--brass,#c9a84c); transform: translateY(-50%) translateX(-2px); }
.glb-next:hover { background: rgba(201,168,76,0.28); border-color: var(--brass,#c9a84c); transform: translateY(-50%) translateX(2px); }
.glb-prev[disabled], .glb-next[disabled] { opacity: 0.25; pointer-events: none; }

/* Counter + hint */
.glb-counter {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,0.5);
  color: rgba(255,255,255,0.7);
  font-size: 0.78rem; letter-spacing: 0.08em;
  padding: 4px 14px; border-radius: 20px;
  backdrop-filter: blur(4px); pointer-events: none;
  white-space: nowrap;
}
.glb-hint {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,0.45);
  color: rgba(255,255,255,0.45);
  font-size: 0.73rem; letter-spacing: 0.06em;
  padding: 4px 12px; border-radius: 20px;
  pointer-events: none;
  transition: opacity 0.6s;
  white-space: nowrap;
}

/* ── Thumbnail strip ── */
.glb-strip {
  flex: 0 0 auto;
  height: 80px;
  background: rgba(0,0,0,0.6);
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex; align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 12px;
  gap: 6px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(201,168,76,0.5) rgba(255,255,255,0.05);
}
.glb-strip::-webkit-scrollbar { height: 4px; }
.glb-strip::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); border-radius: 4px; }
.glb-strip::-webkit-scrollbar-thumb { background: rgba(201,168,76,0.5); border-radius: 4px; }

.glb-thumb {
  flex: 0 0 auto;
  width: 58px; height: 60px;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s, opacity 0.2s;
  opacity: 0.55;
}
.glb-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.glb-thumb:hover { opacity: 0.85; transform: translateY(-2px); }
.glb-thumb.active {
  border-color: var(--brass,#c9a84c);
  opacity: 1;
  transform: translateY(-3px);
}

/* Zoom cursor feedback */
.glb-main.can-zoom-in  { cursor: zoom-in; }
.glb-main.can-zoom-out { cursor: zoom-out; }
.glb-main.dragging     { cursor: grabbing !important; }

@media (max-width: 600px) {
  .glb-prev { left: 8px; width: 40px; height: 40px; }
  .glb-next { right: 8px; width: 40px; height: 40px; }
  .glb-close { top: 10px; right: 10px; width: 40px; height: 40px; }
  .glb-strip { height: 68px; }
  .glb-thumb { width: 48px; height: 50px; }
  .glb-img-wrap img { max-width: 96vw; max-height: calc(100vh - 110px); }
}
