/* JB Select Floors — main stylesheet (dark/orange theme) */

:root {
  --color-bg: #0a0a0a;
  --color-bg-alt: #111111;
  --color-surface: #131313;
  --color-surface-2: #1a1a1a;
  --color-text: #eaeaea;
  --color-text-strong: #ffffff;
  --color-muted: #cfcfcf;
  --color-muted-2: #9c9c9c;
  --color-accent: #ff9900;
  --color-accent-dark: #cc7a00;
  --color-accent-soft: rgba(255, 153, 0, 0.15);
  --color-border: #262626;
  --color-border-2: #2b2b2b;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
  --max-width: 1280px;
  --header-height: 88px;
  --home-header-height: 112px;
}

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

html { scroll-behavior: smooth; background: var(--color-bg); }

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--color-accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-accent-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-strong);
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin-bottom: 1rem; color: var(--color-accent); }
h3 { font-size: 1.4rem; margin-bottom: 0.75rem; color: var(--color-accent); }
h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; color: var(--color-muted); }

strong { color: var(--color-text-strong); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.06);
  z-index: 100;
  display: flex;
  align-items: center;
}

.site-header .container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  position: relative;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  color: #111;
}

.logo img {
  width: auto;
  height: 54px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #111;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.main-nav a {
  color: #111;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.5rem 0;
  position: relative;
}

.main-nav a:hover,
.main-nav a.active {
  color: #000;
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0; right: 0;
  height: 2px;
  background: var(--color-accent);
}

.nav-cta {
  background: #111;
  color: #fff !important;
  padding: 0.6rem 1.2rem !important;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.nav-cta:hover { background: var(--color-accent); color: #111 !important; }

.home-header {
  --header-height: var(--home-header-height);
  background: rgba(255, 255, 255, 0.54);
}

.split-header .logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-50%);
  translate: 0 -50%;
  z-index: 2;
}

.split-header .logo img {
  height: 64px;
}

.home-header .logo img {
  height: 88px;
}

.split-header .main-nav {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 330px) minmax(0, 1fr);
  align-items: center;
  gap: 2rem;
}

.split-header .nav-group {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2.25rem);
  min-width: 0;
}

.split-header .nav-left {
  grid-column: 1;
  justify-content: flex-start;
}

.split-header .nav-right {
  grid-column: 3;
  justify-content: flex-end;
}

.split-header .main-nav a {
  color: #0c0c0c;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  white-space: nowrap;
}

/* ===== Hero with background slideshow ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: #fff;
  background: #000;
}

.slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  animation: kenburns 20s ease-in-out infinite alternate;
}

.slide.active { opacity: 1; }

@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

/* Dark gradient overlay so text stays readable */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.45) 50%,
    rgba(0, 0, 0, 0.85) 100%
  );
  z-index: 1;
}

.hero-home::after {
  background: linear-gradient(
    180deg,
    rgba(250, 247, 241, 0.86) 0%,
    rgba(248, 244, 237, 0.58) 20%,
    rgba(241, 237, 230, 0.62) 100%
  );
}

.hero-home .slide {
  animation: none;
  filter: saturate(0.82) brightness(1.08);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 1.5rem;
}

.hero-content-home {
  width: min(1100px, 100%);
  max-width: none;
  padding-top: clamp(8rem, 16vh, 10.5rem);
}

.hero-panel {
  background: rgba(186, 180, 173, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 5vw, 5rem);
}

.hero h1 {
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.7);
}

.hero-home h1 {
  color: #111;
  text-shadow: none;
  font-size: clamp(3rem, 6vw, 5.25rem);
  max-width: 10ch;
  margin: 0 auto 1.25rem;
}

.hero p {
  color: #f0f0f0;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  margin-bottom: 2rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-home p {
  color: rgba(10, 10, 10, 0.94);
  text-shadow: none;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  line-height: 1.6;
  max-width: 980px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-buttons-home {
  margin-top: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  text-align: center;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-accent);
  color: #111;
  border-color: var(--color-accent);
  box-shadow: 0 0 20px rgba(255, 153, 0, 0.25);
}
.btn-primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: #111;
  transform: translateY(-1px);
  box-shadow: 0 8px 26px rgba(255, 153, 0, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.btn-outline:hover {
  background: var(--color-accent);
  color: #111;
}

.btn-hero {
  background: rgba(255, 255, 255, 0.22);
  color: #111;
  border-color: rgba(0, 0, 0, 0.78);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn-hero:hover {
  background: #111;
  border-color: #111;
  color: #fff;
}

.hero-phone {
  display: inline-block;
  margin-top: 2rem;
  color: #111;
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero-phone:hover {
  color: var(--color-accent-dark);
}

/* Slide indicator dots */
.slide-dots {
  position: absolute;
  bottom: 2rem;
  left: 0; right: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.slide-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.slide-dots button.active { background: var(--color-accent); border-color: var(--color-accent); }
.hero-home .slide-dots { display: none; }

/* ===== Sections ===== */
.section {
  padding: 5rem 0;
  background: var(--color-bg);
}

.section-light { background: var(--color-bg-alt); }

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header p {
  color: var(--color-muted);
  max-width: 600px;
  margin: 0.5rem auto 0;
}

/* ===== Page hero (non-home pages) ===== */
.page-hero {
  margin-top: var(--header-height);
  background: linear-gradient(180deg, #0a0a0a 0%, #141414 100%);
  padding: 4rem 0;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.page-hero h1 {
  color: var(--color-text-strong);
}

.page-hero p {
  color: var(--color-muted);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0.5rem auto 0;
}

/* ===== Services grid ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(255, 153, 0, 0.1);
  border-color: var(--color-accent);
}

.service-card .icon {
  font-size: 2.5rem;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.service-card h3 { color: var(--color-accent); }
.service-card h3 a { color: var(--color-accent); }
.service-card h3 a:hover { color: var(--color-accent-dark); }

.service-card p {
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* ===== Two-column layout (about, service detail) ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.two-col img,
.two-col .placeholder-img {
  border-radius: 12px;
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.placeholder-img {
  background: linear-gradient(135deg, var(--color-surface), var(--color-surface-2));
  border: 1px dashed var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted-2);
  font-size: 0.9rem;
}

/* ===== Testimonials ===== */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.testimonial {
  background: var(--color-surface);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--color-border);
}

.testimonial p {
  font-style: italic;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.testimonial cite {
  font-style: normal;
  font-weight: 700;
  color: var(--color-accent);
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
}

.contact-info ul {
  list-style: none;
  margin: 1.5rem 0;
}

.contact-info li {
  margin-bottom: 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--color-muted);
}

.contact-info .label {
  font-weight: 700;
  color: var(--color-accent);
  min-width: 80px;
}

.hours-list {
  list-style: none;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 1.5rem;
  border-radius: 12px;
  margin-top: 1rem;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-muted);
}
.hours-list li:last-child { border-bottom: none; }
.hours-list .day { font-weight: 700; color: var(--color-text-strong); }

/* ===== Form ===== */
.contact-form {
  background: var(--color-surface);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--color-border);
}

.contact-form h2 {
  color: var(--color-accent);
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--color-text-strong);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font: inherit;
  background: #0a0a0a;
  color: var(--color-text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--color-muted-2); }

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.15);
}

.form-group textarea { min-height: 120px; resize: vertical; }

.form-note {
  font-size: 0.85rem;
  color: var(--color-muted-2);
  margin-top: 1rem;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item summary {
  padding: 1.25rem 0;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-text-strong);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--color-accent);
  transition: transform 0.2s;
}

.faq-item[open] summary::after { content: "−"; }

.faq-item p {
  padding: 0 0 1.25rem;
  color: var(--color-muted);
}

/* ===== Footer ===== */
.site-footer {
  background: #050505;
  color: var(--color-muted);
  padding: 3rem 0 1.5rem;
  border-top: 1px solid var(--color-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer h4 {
  color: var(--color-accent);
  margin-bottom: 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.5rem; color: var(--color-muted-2); }
.site-footer a { color: var(--color-muted); }
.site-footer a:hover { color: var(--color-accent); }

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-muted-2);
}

/* ===== Responsive ===== */
@media (max-width: 1120px) {
  .home-header {
    --header-height: 84px;
  }

  .split-header .nav-toggle {
    display: block;
  }

  .split-header .logo {
    position: static;
    transform: none;
    translate: none;
  }

  .split-header .logo img {
    height: 50px;
  }

  .split-header .main-nav {
    position: absolute;
    display: block;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transform: translateY(-150%);
    transition: transform 0.3s;
  }

  .split-header .main-nav.open {
    transform: translateY(0);
  }

  .split-header .nav-group {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: auto;
    gap: 0;
  }

  .split-header .nav-left {
    padding: 1rem 1.5rem 0;
  }

  .split-header .nav-right {
    padding: 0 1.5rem 1rem;
  }

  .split-header .main-nav li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .split-header .main-nav li:last-child {
    border-bottom: none;
  }

  .split-header .main-nav a {
    padding: 0.9rem 0;
    display: block;
  }

  .hero-content-home {
    padding-top: 7rem;
  }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: var(--header-height);
    left: 0; right: 0;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transform: translateY(-150%);
    transition: transform 0.3s;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0;
  }
  .main-nav li { border-bottom: 1px solid rgba(0, 0, 0, 0.08); }
  .main-nav li:last-child { border-bottom: none; }
  .main-nav a { padding: 0.9rem 0; display: block; }

  .home-header {
    --header-height: 84px;
  }

  .split-header .logo {
    position: static;
    transform: none;
    translate: none;
  }

  .split-header .logo img {
    height: 50px;
  }

  .hero-content-home {
    padding-top: 7rem;
  }

  .two-col, .contact-grid, .form-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 3rem 0; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-panel { padding: 1.75rem 1rem; }
  .hero-phone { font-size: 1.25rem; }
}
