/* =============================================================
   APEX CONSTRUCTION — Custom Styles
   Framework: Bootstrap 5.3
============================================================= */

/* ── Root Variables ─────────────────────────────────────────── */
:root {
  --apex-gold:    #D4A017;
  --apex-gold-dk: #b8870f;
  --apex-dark:    #111418;
  --apex-gray:    #1e2329;
  --apex-light:   #f8f6f2;
  --section-pad:  6rem;
  --radius-lg:    1rem;
  --transition:   0.3s ease;
}

/* ── Base ────────────────────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', sans-serif;
  color: #2d2d2d;
  background: #fff;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.navbar-brand,
.section-heading,
.hero-heading,
.stat-number,
.stat-big-number {
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.02em;
}

/* ── Utility ─────────────────────────────────────────────────── */
.text-apex  { color: var(--apex-gold) !important; }
.bg-apex    { background-color: var(--apex-gold) !important; }

.section-padding { padding: var(--section-pad) 0; }

.section-label {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--apex-gold);
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-apex {
  background-color: var(--apex-gold);
  border-color:     var(--apex-gold);
  color: #111;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.65rem 1.6rem;
  border-radius: 4px;
  transition: background-color var(--transition), border-color var(--transition),
              box-shadow var(--transition);
}
.btn-apex:hover,
.btn-apex:focus {
  background-color: var(--apex-gold-dk);
  border-color:     var(--apex-gold-dk);
  color: #111;
  box-shadow: 0 4px 18px rgba(212, 160, 23, 0.45);
}

/* ── NAVBAR ───────────────────────────────────────────────────── */
#mainNav {
  background: rgba(17, 20, 24, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1rem 0;
  transition: padding var(--transition), background var(--transition);
  border-bottom: 1px solid rgba(212, 160, 23, 0.15);
}
#mainNav.scrolled {
  padding: 0.6rem 0;
  background: rgba(17, 20, 24, 1);
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.brand-icon { font-size: 1.6rem; color: var(--apex-gold); }
.brand-text {
  font-family: 'Oswald', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.08em;
}
.brand-accent { color: var(--apex-gold); }

.navbar-nav .nav-link {
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75) !important;
  padding: 0.5rem 0.85rem !important;
  transition: color var(--transition);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--apex-gold) !important;
}

/* ── HERO SECTION ────────────────────────────────────────────── */
.hero-section {
  min-height: 100vh;
  position: relative;
  background:
    linear-gradient(
      to bottom right,
      rgba(10, 12, 15, 0.92) 0%,
      rgba(17, 20, 24, 0.78) 50%,
      rgba(10, 12, 15, 0.65) 100%
    ),
    url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?w=1920&q=80')
    center center / cover no-repeat;
  padding: 7rem 0 5rem;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,12,15,0.6) 0%, transparent 60%);
  pointer-events: none;
}

.hero-eyebrow {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--apex-gold);
  font-weight: 600;
}
.hero-heading { line-height: 1.1; }

/* Hero Video Card */
.hero-video-card {
  background: rgba(17, 20, 24, 0.75);
  border: 1px solid rgba(212, 160, 23, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  backdrop-filter: blur(6px);
}
.video-label {
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.75rem;
}
.hero-video-card .ratio {
  border-radius: calc(var(--radius-lg) - 6px);
  overflow: hidden;
}
.video-caption { opacity: 0.6; font-size: 0.82rem; }

/* Hero Stats */
.stat-item { text-align: center; }
.stat-number { font-size: 2rem; line-height: 1; }
.stat-label  { font-size: 0.7rem; margin-top: 2px; }
.stat-divider {
  width: 1px;
  background: rgba(255,255,255,0.15);
  align-self: stretch;
}

/* Scroll indicator */
.scroll-down-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.4);
  font-size: 1.4rem;
  text-decoration: none;
  animation: bounce 2s infinite;
}
.scroll-down-indicator:hover { color: var(--apex-gold); }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ── TRUST BAR ───────────────────────────────────────────────── */
.trust-item { font-size: 0.82rem; }

/* ── ABOUT SECTION ───────────────────────────────────────────── */
.about-image-grid { position: relative; display: inline-block; width: 100%; }
.about-img-main {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.about-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  text-align: center;
  border-left: 5px solid var(--apex-gold);
}
.badge-number { font-size: 2.5rem; line-height: 1; color: var(--apex-gold); }
.badge-text   { font-size: 0.72rem; color: #444; margin-top: 4px; }

.feature-check { font-size: 0.92rem; margin-bottom: 0.25rem; }
.feature-check i { font-size: 1rem; }

/* ── SERVICES SECTION ────────────────────────────────────────── */
.service-card {
  background: #fff;
  border: 1px solid #e8e4de;
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition),
              border-color var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.1);
  border-color: var(--apex-gold);
}
.service-icon-wrap {
  width: 60px;
  height: 60px;
  background: rgba(212, 160, 23, 0.12);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--apex-gold);
}
.service-link {
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--apex-gold);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: gap var(--transition), color var(--transition);
}
.service-link:hover { color: var(--apex-gold-dk); gap: 8px; }

/* ── PROJECTS SECTION ────────────────────────────────────────── */
.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  transition: transform var(--transition), box-shadow var(--transition);
}
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.13);
}
.project-img-wrap {
  position: relative;
  overflow: hidden;
}
.project-img-wrap img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}
.project-card:hover .project-img-wrap img {
  transform: scale(1.06);
}
.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.7) 100%);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity var(--transition);
}
.project-card:hover .project-overlay { opacity: 1; }
.project-category {
  background: var(--apex-gold);
  color: #111;
  font-family: 'Oswald', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 3px;
}

/* Project Video Block */
.project-video-section { border: 1px solid #e0dbd3; }
.project-video-section .ratio iframe { display: block; }

/* ── PROCESS SECTION ─────────────────────────────────────────── */
.process-section {
  background:
    linear-gradient(
      to bottom right,
      rgba(10, 12, 15, 0.96),
      rgba(17, 20, 24, 0.98)
    ),
    url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?w=1920&q=80')
    center center / cover no-repeat fixed;
}

.process-video-wrap { position: relative; }
.process-video-badge {
  position: absolute;
  bottom: -1.25rem;
  left: 1.5rem;
  background: #fff;
  padding: 0.6rem 1rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  color: #333;
  white-space: nowrap;
}

.process-step { padding-bottom: 2rem; border-left: 1px solid rgba(212,160,23,0.2); padding-left: 1.5rem; position: relative; }
.process-step:last-child { border-left-color: transparent; padding-bottom: 0; }
.process-step::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 10px;
  width: 9px;
  height: 9px;
  background: var(--apex-gold);
  border-radius: 50%;
}
.step-number {
  font-family: 'Oswald', sans-serif;
  font-size: 2.5rem;
  color: rgba(212, 160, 23, 0.2);
  line-height: 1;
  min-width: 3rem;
  margin-top: -6px;
}

/* ── STATS BANNER ────────────────────────────────────────────── */
.stats-section { background-color: var(--apex-gold) !important; }
.stat-box { padding: 1rem; }
.stat-big-number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1;
}
.stat-big-label { margin-top: 0.3rem; }

/* ── TESTIMONIALS ────────────────────────────────────────────── */
.testimonial-card {
  background: #fff;
  border: 1px solid #e8e4de;
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  font-family: Georgia, serif;
  font-size: 5rem;
  color: rgba(212, 160, 23, 0.15);
  position: absolute;
  top: 0.5rem;
  left: 1.5rem;
  line-height: 1;
}
.testimonial-card blockquote {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #555;
  position: relative;
  z-index: 1;
}
.testimonial-card--featured {
  background: var(--apex-dark);
  border-color: var(--apex-gold);
  color: #fff;
}
.testimonial-card--featured::before { color: rgba(212, 160, 23, 0.25); }
.testimonial-card--featured blockquote { color: rgba(255,255,255,0.8); }

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--apex-gold);
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.author-avatar--light { background: rgba(255,255,255,0.15); color: #fff; }

/* ── CONTACT SECTION ─────────────────────────────────────────── */
.contact-icon-wrap {
  width: 40px;
  height: 40px;
  background: rgba(212, 160, 23, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-form-card { background: var(--apex-light); border: 1px solid #e8e4de; }
.contact-form-card .form-control,
.contact-form-card .form-select {
  background: #fff;
  border-color: #d8d3cb;
  font-size: 0.95rem;
  border-radius: 6px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.contact-form-card .form-control:focus,
.contact-form-card .form-select:focus {
  border-color: var(--apex-gold);
  box-shadow: 0 0 0 0.2rem rgba(212, 160, 23, 0.2);
}
.contact-form-card .form-label { font-size: 0.88rem; color: #444; }

/* Social Buttons */
.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1rem;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition);
}
.social-btn:hover {
  background: var(--apex-gold);
  border-color: var(--apex-gold);
  color: #111;
}

/* ── FOOTER ──────────────────────────────────────────────────── */
.footer-section { border-top: 2px solid var(--apex-gold); }
.footer-links { margin: 0; padding: 0; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--apex-gold); }
.footer-contact { font-size: 0.88rem; }
.footer-contact a { transition: color var(--transition); }
.footer-contact a:hover { color: var(--apex-gold) !important; }

/* ── BACK TO TOP ─────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  background: var(--apex-gold);
  color: #111;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition), transform var(--transition),
              background var(--transition);
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover   { background: var(--apex-gold-dk); }

/* ── FORM SUCCESS MESSAGE ────────────────────────────────────── */
.form-success {
  background: #e9f7ef;
  border: 1px solid #b8dfcb;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  color: #1a6636;
  font-weight: 500;
}

/* ── PAGE HERO (inner pages) ─────────────────────────────────── */
.page-hero {
  min-height: 420px;
  background:
    linear-gradient(to right, rgba(10,12,15,0.88) 0%, rgba(10,12,15,0.65) 100%),
    center center / cover no-repeat;
  padding: 8rem 0 4rem;
  position: relative;
}
.page-hero .breadcrumb-item { font-size: 0.82rem; }
.page-hero .breadcrumb-item a { color: rgba(255,255,255,0.55); text-decoration: none; }
.page-hero .breadcrumb-item a:hover { color: var(--apex-gold); }
.page-hero .breadcrumb-item.active { color: var(--apex-gold); }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.35); }

/* ── BREADCRUMB BAR (light pages) ────────────────────────────── */
.breadcrumb-bar {
  background: var(--apex-light);
  padding: 0.65rem 0;
  border-bottom: 1px solid #e0dbd3;
}
.breadcrumb-bar .breadcrumb { margin: 0; font-size: 0.82rem; }
.breadcrumb-bar .breadcrumb-item a { color: #666; text-decoration: none; }
.breadcrumb-bar .breadcrumb-item a:hover { color: var(--apex-gold); }
.breadcrumb-bar .breadcrumb-item.active { color: #333; }
.breadcrumb-bar .breadcrumb-item + .breadcrumb-item::before { color: #aaa; }

/* ── GALLERY GRID ────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.5rem;
}
.gallery-item {
  display: block;
  overflow: hidden;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  background: #111;
}
.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, opacity 0.3s ease;
}
.gallery-item:hover img {
  transform: scale(1.06);
  opacity: 0.85;
}
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  color: #fff;
  font-size: 1.5rem;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }

/* ── LIGHTBOX MODAL ──────────────────────────────────────────── */
#lightboxModal .modal-dialog {
  max-width: min(92vw, 1100px);
  margin: 2rem auto;
}
#lightboxModal .modal-content {
  background: #0a0c0f;
  border: 1px solid rgba(212,160,23,0.2);
  border-radius: var(--radius-lg);
}
#lightboxModal .modal-body {
  padding: 0.5rem;
  position: relative;
}
#lightboxModal img#lightboxImg {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}
#lightboxModal .lightbox-counter {
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(212,160,23,0.85);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #111;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
  z-index: 10;
}
.lightbox-nav:hover { background: var(--apex-gold); }
.lightbox-prev { left: 0.75rem; }
.lightbox-next { right: 0.75rem; }

/* ── PROJECT DETAIL ──────────────────────────────────────────── */
.project-meta-card {
  background: var(--apex-light);
  border: 1px solid #e0dbd3;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.project-meta-item {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid #e0dbd3;
  font-size: 0.9rem;
}
.project-meta-item:last-child { border-bottom: none; }
.project-meta-label { color: #888; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; }

/* ── FAQ SECTION ─────────────────────────────────────────────── */
.faq-section .accordion-item {
  border: 1px solid #e0dbd3;
  border-radius: 8px !important;
  margin-bottom: 0.6rem;
  overflow: hidden;
}
.faq-section .accordion-button {
  font-family: 'Oswald', sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  background: #fff;
  color: #222;
}
.faq-section .accordion-button:not(.collapsed) {
  background: var(--apex-dark);
  color: var(--apex-gold);
  box-shadow: none;
}
.faq-section .accordion-button::after {
  filter: none;
}
.faq-section .accordion-button:not(.collapsed)::after {
  filter: invert(1) sepia(1) saturate(3) hue-rotate(5deg);
}
.faq-section .accordion-body {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.8;
}

/* ── TEAM CARD ───────────────────────────────────────────────── */
.team-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: #fff;
  border: 1px solid #e8e4de;
  border-radius: var(--radius-lg);
  transition: transform var(--transition), box-shadow var(--transition);
}
.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}
.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--apex-gold);
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Oswald', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

/* ── VALUES CARD ─────────────────────────────────────────────── */
.value-card {
  padding: 1.75rem;
  background: #fff;
  border: 1px solid #e8e4de;
  border-radius: var(--radius-lg);
  border-top: 4px solid var(--apex-gold);
  transition: transform var(--transition), box-shadow var(--transition);
}
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.09);
}

/* ── FILTER PILLS ────────────────────────────────────────────── */
.filter-pills .btn {
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: 50px;
  padding: 0.45rem 1.4rem;
  border: 2px solid #d0cbc2;
  color: #555;
  background: transparent;
  transition: all var(--transition);
}
.filter-pills .btn.active,
.filter-pills .btn:hover {
  background: var(--apex-gold);
  border-color: var(--apex-gold);
  color: #111;
}

/* ── CONTACT MAP PLACEHOLDER ─────────────────────────────────── */
.map-placeholder {
  background: var(--apex-gray);
  border-radius: var(--radius-lg);
  height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  border: 1px solid rgba(255,255,255,0.08);
}

/* ── ALERT SUCCESS / ERROR ───────────────────────────────────── */
.alert-apex-success {
  background: #e9f7ef;
  border: 1px solid #b8dfcb;
  border-left: 5px solid #28a745;
  border-radius: 8px;
  padding: 1.1rem 1.4rem;
  color: #1a6636;
  font-weight: 500;
}
.alert-apex-error {
  background: #fdf0f0;
  border: 1px solid #f5c6cb;
  border-left: 5px solid #dc3545;
  border-radius: 8px;
  padding: 1.1rem 1.4rem;
  color: #721c24;
  font-weight: 500;
}

/* ── SERVICE AREA BADGES ─────────────────────────────────────── */
.area-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212,160,23,0.1);
  border: 1px solid rgba(212,160,23,0.25);
  border-radius: 50px;
  padding: 0.45rem 1rem;
  font-size: 0.88rem;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.06em;
  color: #333;
}

/* ── RESPONSIVE TWEAKS ───────────────────────────────────────── */
@media (max-width: 991.98px) {
  :root { --section-pad: 4rem; }
  .hero-section { padding: 6rem 0 4rem; }
  .about-badge { right: 0; bottom: -1rem; }
  .process-video-badge { display: none; }
}

@media (max-width: 767.98px) {
  :root { --section-pad: 3rem; }
  .hero-heading { font-size: 2.4rem; }
  .about-badge { position: static; margin-top: 1rem; display: inline-flex;
                 align-items: center; gap: 1rem; padding: 0.75rem 1rem; }
  .badge-number { font-size: 1.75rem; }
  .project-video-section .col-lg-5 { padding: 2rem !important; }
  .contact-form-card { padding: 2rem !important; }
}

/* ── SCROLL OFFSET (fixed navbar) ────────────────────────────── */
html { scroll-padding-top: 90px; }

/* ── CTA SECTION ─────────────────────────────────────────────── */
.cta-section {
  position: relative;
  border-top: 3px solid var(--apex-gold);
}
.cta-section .section-label { letter-spacing: 0.18em; }

/* =============================================================
   FLOOR PLANS
============================================================= */

/* ── Plan Card (grid + related) ──────────────────────────────── */
.floor-plan-card {
  background: #fff;
  border: 1px solid #e8e4de;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition),
              border-color var(--transition);
}
.floor-plan-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.13);
  border-color: var(--apex-gold);
}

.fp-img-wrap {
  position: relative;
  overflow: hidden;
  background: var(--apex-dark);
  line-height: 0;
}
.fp-img-wrap img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, opacity var(--transition);
}
.floor-plan-card:hover .fp-img-wrap img {
  transform: scale(1.06);
  opacity: 0.9;
}
.fp-img-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to top, rgba(10,12,15,0.55), rgba(10,12,15,0.05));
  opacity: 0;
  transition: opacity var(--transition);
}
.floor-plan-card:hover .fp-img-overlay { opacity: 1; }
.fp-img-overlay span {
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #111;
  background: var(--apex-gold);
  padding: 0.45rem 1.1rem;
  border-radius: 4px;
}

.fp-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.fp-name {
  font-family: 'Oswald', sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.15;
  color: #1a1a1a;
}

.fp-style-badge {
  display: inline-block;
  margin-top: 0.35rem;
  font-family: 'Oswald', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--apex-gold-dk);
  background: rgba(212,160,23,0.12);
  border: 1px solid rgba(212,160,23,0.3);
  border-radius: 50px;
  padding: 0.18rem 0.7rem;
}

.fp-price { flex-shrink: 0; padding-left: 0.75rem; }
.fp-price-range {
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--apex-gold-dk);
  line-height: 1.2;
  white-space: nowrap;
}
.fp-price-label {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #999;
  margin-top: 2px;
}

.fp-tagline { line-height: 1.6; }

/* ── Spec Pills ──────────────────────────────────────────────── */
.fp-specs { margin-top: auto; }
.spec-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #4a4a4a;
  background: var(--apex-light);
  border: 1px solid #e2ddd4;
  border-radius: 50px;
  padding: 0.28rem 0.7rem;
  white-space: nowrap;
}
.spec-pill i { color: var(--apex-gold); font-size: 0.85rem; }

/* ── Detail Page: Hero Price Card ────────────────────────────── */
.fp-hero-price-card {
  background: rgba(17,20,24,0.82);
  border: 1px solid rgba(212,160,23,0.35);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.fp-hero-price-label {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--apex-gold);
  font-weight: 600;
}
.fp-hero-price-range {
  font-family: 'Oswald', sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  margin-top: 0.4rem;
}
.fp-hero-price-note {
  font-size: 0.78rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.55);
  margin-top: 0.6rem;
}

/* ── Detail Page: Quick Spec Bar ─────────────────────────────── */
.fp-spec-bar-item { min-width: 92px; padding: 0.35rem 0.5rem; }
.fp-spec-bar-item .fw-bold { font-family: 'Oswald', sans-serif; letter-spacing: 0.02em; }
.fp-spec-bar-divider {
  width: 1px;
  align-self: stretch;
  background: rgba(255,255,255,0.12);
}

/* ── Detail Page: Sidebar Card ───────────────────────────────── */
.fp-sidebar-card {
  background: var(--apex-light);
  border: 1px solid #e0dbd3;
  border-top: 4px solid var(--apex-gold);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 8px 28px rgba(0,0,0,0.07);
}
.fp-sidebar-price-label {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #888;
  font-weight: 600;
}
.fp-sidebar-price-range {
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--apex-gold-dk);
  line-height: 1.25;
  margin-top: 0.35rem;
}
.fp-sidebar-price-note { line-height: 1.6; }

@media (max-width: 767.98px) {
  .fp-img-wrap img       { height: 200px; }
  .fp-hero-price-card    { padding: 1.25rem; }
  .fp-sidebar-card       { padding: 1.35rem; }
  .fp-spec-bar-divider   { display: none; }
  .fp-spec-bar-item      { min-width: 78px; }
}

/* ── PAGE HERO: plain variant (no project photo) ─────────────── */
.page-hero--plain {
  background:
    linear-gradient(135deg, var(--apex-dark) 0%, var(--apex-gray) 55%, #0a0c0f 100%);
  border-bottom: 3px solid var(--apex-gold);
}

/* ── CONTRAST: text on gold surfaces ─────────────────────────
   Gold #D4A017 against white is ~2:1 and fails WCAG AA. Against
   the dark ink it is ~8:1. Anything sitting on a gold background
   therefore uses dark text, not white.
------------------------------------------------------------- */
.stats-section,
.stats-section .stat-big-number,
.stats-section .stat-big-label,
.bg-apex,
.bg-apex .display-6,
.bg-apex .small {
  color: var(--apex-dark) !important;
}
.stats-section .stat-big-label,
.bg-apex .opacity-75 {
  opacity: 0.75;
}

/* Avatars and pills on gold keep dark ink too. */
.author-avatar,
.project-category,
.fp-img-overlay span { color: var(--apex-dark); }

/* ── PHOTO GRID HOVER (was 20 inline handlers per page) ──────── */
.gallery-thumb { display: block; overflow: hidden; border-radius: 6px; }
.gallery-thumb img { transition: transform 0.35s ease, opacity var(--transition); }
.gallery-thumb:hover img { transform: scale(1.05); opacity: 0.92; }
