/* ============================================================
   Deck the Halls Lighting Co. — Main Stylesheet
   v1.2
   ============================================================ */

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

/* ---- Brand colors ---- */
:root {
  --red: #d42a2a;
  --green: #1b7a3d;
  --green-dark: #145c2e;
  --gold: #d4a017;
}

/* ---- Dark theme (default) ---- */
[data-theme="dark"] {
  --bg: #1a1a1a;
  --bg-gradient-1: rgba(27, 122, 61, 0.15);
  --bg-gradient-2: rgba(212, 42, 42, 0.1);
  --text: #ffffff;
  --text-heading: #fdf8f0;
  --text-muted: #aaaaaa;
  --text-subtle: #888888;
  --text-faint: #999999;
  --text-footer: #555555;
  --wire: #333333;
  --socket: #555555;
  --border-footer: #222222;
  --btn-secondary-text: #ffffff;
  --btn-secondary-border: var(--green);
  --contact-link: var(--gold);
  --contact-link-hover: #f0b820;
  --service-border: var(--gold);
  --logo-shadow: rgba(212, 160, 23, 0.15);
}

/* ---- Light theme ---- */
[data-theme="light"] {
  --bg: #fdf8f0;
  --bg-gradient-1: rgba(27, 122, 61, 0.08);
  --bg-gradient-2: rgba(212, 42, 42, 0.06);
  --text: #1a1a1a;
  --text-heading: #2a2a2a;
  --text-muted: #555555;
  --text-subtle: #777777;
  --text-faint: #666666;
  --text-footer: #999999;
  --wire: #cccccc;
  --socket: #999999;
  --border-footer: #e0d8cc;
  --btn-secondary-text: #1a1a1a;
  --btn-secondary-border: var(--green);
  --contact-link: var(--green-dark);
  --contact-link-hover: var(--green);
  --service-border: var(--green);
  --logo-shadow: rgba(27, 122, 61, 0.1);
}

/* ---- Base ---- */
body {
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background 0.4s ease, color 0.4s ease;
}

/* ---- Light switch toggle ---- */
.switch-wrap {
  position: fixed;
  top: 3.5rem;
  right: 1.5rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.switch-plate {
  width: 48px;
  height: 76px;
  background: linear-gradient(180deg, #e8e4dc 0%, #d5d0c6 100%);
  border-radius: 6px;
  border: 1px solid #c0bab0;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: box-shadow 0.3s ease;
}

.switch-plate::before,
.switch-plate::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(180deg, #b8b2a8, #9e9890);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.switch-plate::before {
  top: 6px;
}

.switch-plate::after {
  bottom: 6px;
}

.switch-plate:hover {
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.switch-rocker {
  width: 22px;
  height: 38px;
  background: linear-gradient(180deg, #f5f2ed 0%, #ddd9d0 100%);
  border-radius: 3px;
  border: 1px solid #b8b2a8;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.switch-rocker::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 3px;
  background: #c8c2b8;
  border-radius: 2px;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .switch-rocker {
  transform: perspective(200px) rotateX(-12deg);
  box-shadow:
    0 -1px 3px rgba(0, 0, 0, 0.1),
    0 3px 6px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .switch-rocker::after {
  top: 8px;
}

[data-theme="dark"] .switch-rocker {
  transform: perspective(200px) rotateX(12deg);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.1),
    0 -2px 4px rgba(0, 0, 0, 0.08),
    inset 0 -1px 0 rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .switch-rocker::after {
  bottom: 8px;
}

.switch-label {
  margin-top: 0.4rem;
  font-family: "Open Sans", sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
  transition: color 0.4s ease;
}

/* ---- Decorative light string ---- */
.light-string {
  width: 100%;
  height: 40px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  transition: background 0.4s ease;
}

.light-string::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--wire);
  border-radius: 2px;
  transition: background 0.4s ease;
}

.bulb {
  position: absolute;
  top: 10px;
  width: 12px;
  height: 18px;
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  animation: glow 2s ease-in-out infinite alternate;
  transition: box-shadow 0.4s ease;
}

.bulb::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 3px;
  width: 6px;
  height: 6px;
  background: var(--socket);
  border-radius: 2px 2px 0 0;
  transition: background 0.4s ease;
}

@keyframes glow {
  0% {
    filter: brightness(0.7);
  }
  100% {
    filter: brightness(1.3);
  }
}

@keyframes glow-light {
  0% {
    filter: brightness(0.85) saturate(0.9);
  }
  100% {
    filter: brightness(1.1) saturate(1.1);
  }
}

[data-theme="light"] .bulb {
  animation-name: glow-light;
}

/* ---- Hero ---- */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
  background:
    radial-gradient(ellipse at 50% 0%, var(--bg-gradient-1) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 100%, var(--bg-gradient-2) 0%, transparent 60%),
    var(--bg);
  min-height: calc(100vh - 40px);
  transition: background 0.4s ease;
}

.logo {
  max-width: 520px;
  width: 90%;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 30px var(--logo-shadow));
  transition: filter 0.4s ease;
}

.tagline {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.4rem;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
  transition: color 0.4s ease;
}

.subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 500px;
  line-height: 1.6;
  transition: color 0.4s ease;
}

/* ---- Hero portrait (Silas) ---- */
.hero-portrait {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.hero-portrait img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  border: 4px solid var(--gold);
  box-shadow: 0 0 0 2px rgba(212, 160, 23, 0.2), 0 6px 28px rgba(212, 160, 23, 0.3);
}

.hero-portrait-caption {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--gold);
  letter-spacing: 0.03em;
}

/* ---- Buttons ---- */
.cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: 6px;
  font-family: "Open Sans", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--red);
  color: #ffffff;
}

.btn-primary:hover {
  background: #b82222;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 42, 42, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--btn-secondary-text);
  border: 2px solid var(--btn-secondary-border);
}

.btn-secondary:hover {
  background: var(--green);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27, 122, 61, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--gold);
  border: 2px solid rgba(212, 160, 23, 0.4);
}

.btn-ghost:hover {
  background: rgba(212, 160, 23, 0.1);
  border-color: var(--gold);
  transform: translateY(-2px);
}

/* ---- Services ---- */
.services {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 3rem;
  max-width: 960px;
}

.service {
  text-align: center;
  flex: 1;
  min-width: 220px;
  max-width: 300px;
}

.service-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  display: block;
  border: 2px solid var(--service-border);
}

.service h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 0.95rem;
  color: var(--text-heading);
  margin-bottom: 0.25rem;
  transition: color 0.4s ease;
}

.service p {
  font-size: 0.8rem;
  color: var(--text-subtle);
  line-height: 1.4;
  transition: color 0.4s ease;
}

/* ---- Contact bar ---- */
.contact-bar {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-faint);
  transition: color 0.4s ease;
}

.contact-bar a {
  color: var(--contact-link);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-bar a:hover {
  color: var(--contact-link-hover);
}

/* ---- Footer ---- */
footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.75rem;
  color: var(--text-footer);
  border-top: 1px solid var(--border-footer);
  transition: color 0.4s ease, border-color 0.4s ease;
}

footer a {
  color: var(--text-footer);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

footer a:hover {
  color: var(--text-muted);
  border-color: var(--text-muted);
}

[data-theme="dark"] footer a {
  color: var(--text-subtle);
}

[data-theme="dark"] footer a:hover {
  color: var(--text-muted);
  border-color: var(--text-muted);
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .tagline {
    font-size: 1.15rem;
  }

  .subtitle {
    font-size: 0.9rem;
  }

  .logo {
    max-width: 360px;
  }

  .services {
    gap: 1.25rem;
  }

  .service {
    min-width: 160px;
    max-width: 100%;
  }

  .contact-bar {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* ============================================================
   Showcase — customer install slideshow
   Always dark; nighttime photos look best on a dark stage.
   ============================================================ */

.showcase {
  background: #0c0c0c;
  padding: 4rem 0 2.5rem;
}

.showcase-header {
  text-align: center;
  padding: 0 1.5rem 2.5rem;
}

.showcase-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.8rem;
  font-weight: 400;
  color: #fdf8f0;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.showcase-sub {
  font-size: 0.78rem;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Stage */
.showcase-stage {
  position: relative;
  width: 100%;
  height: 62vh;
  min-height: 360px;
  max-height: 700px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
}

/* Slides */
.showcase-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.showcase-slide.active {
  opacity: 1;
}

.showcase-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 6.5s ease-out;
}

/* Ken Burns slow zoom on active slide */
.showcase-slide.active img {
  transform: scale(1.06);
}

/* Caption gradient overlay */
.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 4rem 1.5rem 1.2rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  pointer-events: none;
}

/* Progress bar — thin line that fills across the bottom */
.showcase-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--red);
  z-index: 10;
  transition: none;
}

.showcase-stage.playing .showcase-progress {
  animation: showcase-tick 5.5s linear forwards;
}

@keyframes showcase-tick {
  from { width: 0; }
  to { width: 100%; }
}

/* Prev / Next arrows */
.showcase-prev,
.showcase-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.55);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.showcase-prev { left: 1rem; }
.showcase-next { right: 1rem; }

.showcase-prev:hover,
.showcase-next:hover {
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

/* Bulb-dot navigation */
.showcase-dots {
  display: flex;
  gap: 1.4rem;
  justify-content: center;
  padding: 1.6rem 1rem 0;
  flex-wrap: wrap;
}

/* Each dot looks like a mini light bulb */
.dot-bulb {
  position: relative;
  width: 11px;
  height: 15px;
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  background: #1e1e1e;
  cursor: pointer;
  border: none;
  padding: 0;
  transition: background 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

/* Socket nub on top */
.dot-bulb::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 2px;
  width: 7px;
  height: 5px;
  background: #181818;
  border-radius: 2px 2px 0 0;
}

.dot-bulb.active {
  filter: brightness(1.25);
}

/* Responsive */
@media (max-width: 600px) {
  .showcase-stage {
    height: 52vw;
    min-height: 220px;
  }

  .showcase-prev,
  .showcase-next {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }

  .showcase-dots {
    gap: 1rem;
  }
}

/* ============================================================
   Business card flip — F'Amos sister site widget
   v1.7
   ============================================================ */

.biz-card {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  width: 178px;
  height: 98px;
  perspective: 800px;
  cursor: pointer;
}

.biz-card-inner {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.4, 0.2, 0.2, 1);
  position: relative;
}

.biz-card:hover .biz-card-inner {
  transform: rotateY(180deg);
}

.biz-card-front,
.biz-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.9rem 1.1rem;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
}

.biz-card-front {
  background: #2a5c1f;
  border-left: 3px solid #b5742a;
}

.biz-card-label {
  display: block;
  font-family: "Open Sans", sans-serif;
  font-size: 0.54rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.3rem;
}

.biz-card-name {
  display: block;
  font-family: "Open Sans", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.biz-card-back {
  background: #b5742a;
  transform: rotateY(180deg);
}

.biz-card-back-label {
  display: block;
  font-family: "Open Sans", sans-serif;
  font-size: 0.54rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.25rem;
}

.biz-card-back-name {
  display: block;
  font-family: "Open Sans", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 0.45rem;
}

.biz-card-arrow {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.08em;
}

/* Page flip overlay */
.page-flip {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #1c170d;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transform: perspective(2000px) rotateY(-90deg);
  transform-origin: left center;
  transition: transform 0.55s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.page-flip.active {
  transform: perspective(2000px) rotateY(0deg);
  pointer-events: all;
}

.page-flip-content {
  text-align: center;
}

.page-flip-eyebrow {
  display: block;
  font-family: "Open Sans", sans-serif;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 0.85rem;
}

.page-flip-name {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 700;
  color: #b5742a;
  line-height: 1.2;
}

/* ===== Biz pill (mobile only) ===== */
.biz-pill {
  display: none;
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 200;
  align-items: center;
  background: #1a1a1a;
  border-left: 3px solid #b5742a;
  padding: 0.45rem 0.75rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.biz-pill svg {
  height: 32px;
  width: auto;
  display: block;
}

.page-flip-logo {
  display: block;
  width: min(340px, 80vw);
  height: auto;
  margin: 0 auto 0.5rem;
}

.page-flip-sub {
  display: block;
  font-size: clamp(0.8rem, 2vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 600px) {
  .biz-card {
    display: none;
  }

  .biz-pill {
    display: flex;
  }
}
