/*
Theme Name:  Classic Cabinets
Theme URI:   https://www.myclassicconstruction.com
Author:      Chaney Technology
Description: Single-page landing theme for Classic Cabinets by Classic Construction, a cabinet contractor sub-brand of Classic Construction in the DFW area. Designed for WordPress Multisite.
Version: 0.1.70
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License:     GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: classic-cabinets
*/

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #111111;
  --dark: #1a1a1a;
  --mid: #333333;
  --gold: #b8953f;
  --gold-light: #d4aa55;
  --gold-on-light: #7d6427;
  --white: #ffffff;
  --off-white: #f5f4f0;
  --light-gray: #e8e6e1;
  --text-muted: #6b6b67;
  --font-display: 'Oswald', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;

  /* Navigation */
  --nav-link: #aaaaaa;

  /* Text tiers on dark backgrounds (all pass WCAG AA against --black) */
  --text-secondary: #999999;
  --text-tertiary: #888888;
  --text-dim: #666666;
  --text-light: #cccccc;

  /* Text on light-background cards */
  --text-on-card: #555555;

  /* Borders on dark sections */
  --border-subtle: #1e1e1e;
  --border-dark: #2a2a2a;

  /* Surfaces on dark sections */
  --surface-dark: #141414;
  --surface-deep: #0d0d0d;

  /* Light card background */
  --card-light: #f7f7f7;

  /* Heading / title text on dark backgrounds */
  --heading: #ffffff;

  /* Hero overlay and grid (rgba derived from --black and --gold) */
  --hero-overlay: rgba(17, 17, 17, 0.55);
  --hero-grid: rgba(184, 149, 63, 0.04);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--dark);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; }

/* ── NAV ── */
.admin-bar .cc-nav { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .cc-nav { top: 46px; } }

#gallery, #reviews, #contact { scroll-margin-top: 80px; }
.admin-bar #gallery, .admin-bar #reviews, .admin-bar #contact { scroll-margin-top: 112px; }
@media screen and (max-width: 782px) {
  .admin-bar #gallery, .admin-bar #reviews, .admin-bar #contact { scroll-margin-top: 126px; }
}

.cc-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 80px;
  border-bottom: 2px solid var(--gold);
}

.nav-brand {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nav-brand-main {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--heading);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.1;
}

.nav-brand-sub {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 300;
  color: var(--gold);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nav-link);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--gold); }

.nav-parent-link {
  font-family: var(--font-body) !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  letter-spacing: 0.06em !important;
  color: var(--text-secondary) !important;
  text-transform: none !important;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid var(--mid);
  border-radius: 2px;
  padding: 5px 12px;
  transition: color 0.2s, border-color 0.2s;
}

.nav-parent-link:hover {
  color: var(--gold-light) !important;
  border-color: var(--gold);
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  background: var(--black);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 48px 80px;
  position: relative;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 0;
}

.hero-slide.is-active { opacity: 1; }

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
  z-index: 0;
}

.hero-bg-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(var(--hero-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-grid) 1px, transparent 1px);
  background-size: 60px 60px;
}

#hero > *:not(.hero-bg-lines):not(.hero-bg-overlay):not(.hero-slide) {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 86px);
  font-weight: 700;
  color: var(--heading);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.0;
  margin-bottom: 12px;
}

.hero-title span { color: var(--gold); }

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.5vw, 34px);
  font-weight: 400;
  color: var(--hero-secondary-color, var(--text-tertiary));
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.hero-desc {
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 300;
  color: var(--hero-secondary-color, var(--text-secondary));
  max-width: 520px;
  line-height: 1.8;
  margin-bottom: 48px;
}

.hero-cta {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--gold);
  text-decoration: none;
  padding: 16px 44px;
  transition: background 0.2s, transform 0.15s;
}

.hero-cta:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  color: var(--black);
}

.hero-phone {
  margin-top: 32px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--hero-secondary-color, var(--text-secondary));
}

.hero-phone a { color: var(--gold); text-decoration: none; font-weight: 600; }

.hero-eyebrow,
.hero-subtitle,
.hero-desc,
.hero-phone {
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}

.hero-title {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.65), 0 1px 4px rgba(0, 0, 0, 0.45);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow { animation: fadeUp 0.6s ease both; }
.hero-title   { animation: fadeUp 0.7s 0.1s ease both; }
.hero-subtitle { animation: fadeUp 0.7s 0.2s ease both; }
.hero-desc    { animation: fadeUp 0.7s 0.3s ease both; }
.hero-cta     { animation: fadeUp 0.7s 0.4s ease both; }
.hero-phone   { animation: fadeUp 0.7s 0.5s ease both; }

/* ── SECTION SHARED ── */
.cc-section { padding: 96px 48px; }

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-eyebrow::after {
  content: '';
  display: block;
  flex: 1;
  max-width: 48px;
  height: 1px;
  background: var(--gold);
  opacity: 0.4;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dark);
  line-height: 1.1;
  margin-bottom: 8px;
}

.section-title.light { color: var(--heading); }

.section-desc {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  color: var(--text-muted);
  margin-bottom: 56px;
  max-width: 560px;
}

/* ── GALLERY / CAROUSEL ── */
#gallery {
  background: var(--off-white);
  padding: 96px 0 96px 48px;
}

#gallery .section-header { padding-right: 48px; }
#gallery .section-eyebrow { color: var(--gold-on-light); }
#gallery .section-eyebrow::after { background: var(--gold-on-light); }

.gallery-filter {
  display: flex;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  padding-right: 48px;
}

.filter-btn {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--light-gray);
  background: transparent;
  color: var(--text-muted);
  padding: 8px 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

.carousel-track-wrap {
  overflow: hidden;
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 380px;
  height: 280px;
  background: var(--light-gray);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.carousel-slide .slide-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.carousel-slide .slide-icon {
  font-size: 32px;
  opacity: 0.3;
}

.carousel-slide img.slide-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
  font-size: unset;
  opacity: 0.3;
}

.cc-img-placeholder { opacity: 0.3; }

.carousel-slide .slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.18) 55%, transparent 100%);
  opacity: 0;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  transition: opacity 0.3s;
}

.carousel-slide:hover .slide-overlay { opacity: 1; }

.slide-overlay-text {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
}

.carousel-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding-right: 48px;
}

.carousel-btn {
  width: 44px; height: 44px;
  border: 1px solid var(--mid);
  background: transparent;
  color: var(--dark);
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-family: var(--font-display);
}

.carousel-btn:hover {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

.carousel-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--light-gray);
  border: 1px solid var(--light-gray);
  cursor: pointer;
  transition: all 0.2s;
}

.dot.active {
  background: var(--gold);
  border-color: var(--gold);
  width: 20px;
  border-radius: 3px;
}

/* ── WHY US + CONTACT (merged) ── */
#contact {
  background: var(--black);
}

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

.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.contact-why {
  display: flex;
  flex-direction: column;
  padding: 96px 56px;
  border-right: 1px solid var(--border-subtle);
}

.contact-why .section-title { margin-bottom: 28px; }

.contact-form-col {
  display: flex;
  flex-direction: column;
  padding: 96px 48px;
}

.contact-form-col .section-title { margin-bottom: 12px; }

.contact-col-desc {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  color: var(--text-tertiary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.contact-quick-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}

/* Trust signals */
.trust-panel {
  display: flex;
  flex-direction: column;
}

.trust-signal {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 0;
  border-top: 1px solid var(--border-subtle);
}

.trust-signal:last-child { border-bottom: 1px solid var(--border-subtle); }

.trust-signal-mark {
  width: 3px;
  height: 16px;
  background: var(--gold);
  opacity: 0.7;
  margin-top: 4px;
  flex-shrink: 0;
}

.trust-signal-headline {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--heading);
  margin-bottom: 4px;
}

.trust-signal-note {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--text-tertiary);
  line-height: 1.55;
}

/* Current offer callout -- sits below trust signals in left column */
.promo-callout {
  background: var(--surface-dark);
  border: 1px solid var(--border-dark);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  margin-top: 32px;
}

.promo-callout + .promo-callout {
  margin-top: 12px;
}

.promo-callout-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.promo-callout-badge {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.promo-callout-offer {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--heading);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.promo-callout-desc {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  color: var(--text-tertiary);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 20px;
}

.promo-callout-desc p { margin: 0; }

.promo-callout-expiry {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
  margin-top: auto;
}

/* ── REVIEWS ── */
#reviews {
  background: var(--off-white);
  padding: 96px 48px;
  overflow: hidden;
}

#reviews .section-eyebrow { color: var(--gold-on-light); }
#reviews .section-eyebrow::after { background: var(--gold-on-light); }

.reviews-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 16px;
}

.reviews-aggregate {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.reviews-source {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: var(--white);
  border: 1px solid var(--light-gray);
}

.reviews-source-logo {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.reviews-source-logo.google { color: #4285f4; }

.reviews-source-score {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
}

.reviews-source-stars {
  color: var(--gold-on-light);
  font-size: 13px;
  letter-spacing: 1px;
}

.reviews-source-count {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.reviews-track-wrap {
  overflow: hidden;
  position: relative;
}

.reviews-track {
  display: flex;
  gap: 20px;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.review-card {
  flex: 0 0 360px;
  background: var(--white);
  border: 1px solid var(--light-gray);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  flex-shrink: 0;
}

.review-name {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.2;
}

.review-location {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.review-source-tag {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border: 1px solid;
}

.review-source-tag.google {
  color: #4285f4;
  border-color: #c8daf8;
  background: #f0f5ff;
}

.review-source-tag.facebook {
  color: #1877f2;
  border-color: #bdd3fc;
  background: #eef3ff;
}

.review-source-tag.yelp {
  color: #c41200;
  border-color: #f5c0bb;
  background: #fff1f0;
}

.review-source-tag.bbb {
  color: #003f87;
  border-color: #b3c8e8;
  background: #edf3fb;
}

.review-source-tag.other {
  color: var(--text-dim);
  border-color: var(--light-gray);
  background: var(--card-light);
}

.review-stars {
  color: var(--gold-on-light);
  font-size: 14px;
  letter-spacing: 2px;
}

.review-text {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--text-on-card);
  line-height: 1.75;
  flex: 1;
}

.review-date {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  border-top: 1px solid var(--light-gray);
  padding-top: 14px;
}

.reviews-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}

/* Google embed wrapper */
.cc-reviews-embed-wrap {
  width: 100%;
  margin-bottom: 48px;
  overflow: hidden;
  border: 1px solid var(--light-gray);
}

.cc-reviews-embed-wrap iframe {
  display: block;
  width: 100%;
  border: 0;
}

/* Reviews CTA block */
.reviews-cta-block {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.reviews-cta-heading {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 6px;
}

.reviews-cta-sub {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  color: var(--text-muted);
}

.btn-google-review {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--gold);
  text-decoration: none;
  padding: 16px 36px;
  transition: background 0.2s;
  white-space: nowrap;
}

.btn-google-review:hover {
  background: var(--gold-light);
  color: var(--black);
}

/* ── CONTACT ── */
/* Baseline text color for anything Fluent Forms injects (success message, errors).
   All form fields override this with their own !important color rules. */
.contact-form-wrap { width: 100%; color: var(--heading); }

/* Force every Fluent Forms wrapper div to fill the column — FF uses varying class names across versions */
.contact-form-wrap > div,
.contact-form-wrap > div > div,
.contact-form-wrap [class*="fluentform"],
.contact-form-wrap [class*="ff-form"],
.contact-form-wrap [class*="ff_form"] {
  width: 100% !important;
  max-width: none !important;
}

/* Fluent Forms overrides — theme styling for the dark contact column.
   Fluent Forms wraps each field in its own .ff-t-row. We make the form
   a flex container so rows become flex items, then target email/phone
   rows specifically to place them side by side at half-width. */
.contact-form-wrap .frm-fluent-form {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px 0 !important;
  align-items: flex-start !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* All rows full-width by default */
.contact-form-wrap .frm-fluent-form .ff-t-row {
  flex: 0 0 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Clean up field group spacing */
.contact-form-wrap .frm-fluent-form .ff-el-group {
  margin: 0 !important;
  padding: 0 !important;
}

/* Email row — left half */
.contact-form-wrap .frm-fluent-form .ff-t-row:has(input[name="email"]),
.contact-form-wrap .frm-fluent-form > .ff-el-group:has(input[name="email"]) {
  flex: 0 0 calc(50% - 6px) !important;
  max-width: calc(50% - 6px) !important;
}

/* Phone row — right half */
.contact-form-wrap .frm-fluent-form .ff-t-row:has(input[name="phone"]),
.contact-form-wrap .frm-fluent-form > .ff-el-group:has(input[name="phone"]) {
  flex: 0 0 calc(50% - 6px) !important;
  max-width: calc(50% - 6px) !important;
  margin-left: 12px !important;
}

/* Submit container — gap above */
.contact-form-wrap .frm-fluent-form .ff_submit_btn_container,
.contact-form-wrap .frm-fluent-form .ff-t-row:has(.ff_submit_btn_container) {
  flex: 0 0 100% !important;
  max-width: 100% !important;
  margin: 20px 0 0 !important;
  padding: 0 !important;
}

/* Labels */
.contact-form-wrap .frm-fluent-form .ff-el-input--label label {
  font-family: var(--font-body) !important;
  font-size: 10px !important;
  font-weight: 400 !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  color: var(--text-secondary) !important;
  margin-bottom: 4px !important;
}

/* Inputs */
.contact-form-wrap .frm-fluent-form .ff-el-form-control {
  font-family: var(--font-body) !important;
  font-size: 14px !important;
  font-weight: 300 !important;
  color: var(--heading) !important;
  background: var(--surface-dark) !important;
  border: 1px solid var(--border-dark) !important;
  border-radius: 0 !important;
  padding: 9px 14px !important;
  outline: none !important;
  box-shadow: none !important;
  transition: border-color 0.2s !important;
  width: 100% !important;
}

/* Name field — first/last side by side */
.contact-form-wrap .frm-fluent-form .ff-name-field-wrap {
  display: flex !important;
  gap: 8px !important;
}
.contact-form-wrap .frm-fluent-form .ff-name-field { flex: 1 !important; }
.contact-form-wrap .frm-fluent-form .ff-name-field input { width: 100% !important; }
.contact-form-wrap .frm-fluent-form .ff-name-field .ff-el-help-message { display: none !important; }

/* Textarea */
.contact-form-wrap .frm-fluent-form textarea.ff-el-form-control {
  min-height: 80px !important;
  resize: none !important;
}

/* Focus */
.contact-form-wrap .frm-fluent-form .ff-el-form-control:focus {
  border-color: var(--gold) !important;
  background: var(--border-subtle) !important;
  box-shadow: none !important;
}

/* Submit button — hide any DOM text (may be white/invisible from FF's CSS)
   and render "REQUEST A FREE QUOTE" via ::after for guaranteed visibility */
.contact-form-wrap .frm-fluent-form .ff-btn-submit {
  background: var(--gold) !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 14px 44px !important;
  cursor: pointer !important;
  transition: background 0.2s, transform 0.15s !important;
  width: 100% !important;
  font-size: 0 !important;
  line-height: 0 !important;
  position: relative !important;
  display: block !important;
  min-height: 48px !important;
}

.contact-form-wrap .frm-fluent-form .ff-btn-submit::after {
  content: 'REQUEST A FREE QUOTE';
  display: block !important;
  font-family: var(--font-display) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.16em !important;
  color: #111111 !important;
  line-height: 1 !important;
  pointer-events: none !important;
}

.contact-form-wrap .frm-fluent-form .ff-btn-submit:hover {
  background: var(--gold-light) !important;
  transform: translateY(-1px) !important;
}

/* Confirmation message shown after successful submission.
   Color inherits var(--heading) from .contact-form-wrap above.
   Border/padding applied across all known Fluent Forms success class variants. */
.contact-form-wrap [class*="success"],
.contact-form-wrap [class*="ff-message"],
.contact-form-wrap [class*="ff_success"] {
  background: transparent !important;
  border: 1px solid var(--gold) !important;
  border-radius: 0 !important;
  padding: 20px 24px !important;
  box-shadow: none !important;
  font-family: var(--font-body) !important;
  font-size: 15px !important;
  font-weight: 300 !important;
  line-height: 1.6 !important;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-detail-icon {
  width: 36px; height: 36px;
  background: var(--surface-dark);
  border: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-detail-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2px;
}

.contact-detail-value {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--text-light);
  text-decoration: none;
}

a.contact-detail-value:hover { color: var(--gold); }

.contact-parent-link {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  color: var(--text-tertiary);
}

.contact-parent-link a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 400;
}

/* ── FALLBACK HTML FORM (shown when WPForms ID is not set) ── */
.cc-fallback-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.cc-fallback-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cc-fallback-form .form-group.full { grid-column: 1 / -1; }

.cc-fallback-form label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.cc-fallback-form input[type="text"],
.cc-fallback-form input[type="email"],
.cc-fallback-form input[type="tel"],
.cc-fallback-form select,
.cc-fallback-form textarea {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  color: var(--heading);
  background: var(--surface-dark);
  border: 1px solid var(--border-dark);
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  border-radius: 0;
  width: 100%;
}

.cc-fallback-form input:focus,
.cc-fallback-form select:focus,
.cc-fallback-form textarea:focus {
  border-color: var(--gold);
  background: var(--border-subtle);
}

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

.form-submit {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--gold);
  border: none;
  border-radius: 0;
  padding: 16px 44px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  width: 100%;
}

.form-submit:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .cc-fallback-form .form-row { grid-template-columns: 1fr; }
}

/* ── FORM SETUP NOTICE (admin-only, shown when WPForms not connected) ── */
.cc-form-setup-notice {
  border: 1px solid var(--border-dark);
  padding: 24px 28px;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
}

.cc-form-setup-notice p { margin-bottom: 10px; }
.cc-form-setup-notice p:last-child { margin-bottom: 0; }
.cc-form-setup-notice ol { margin: 0 0 12px 20px; padding: 0; }
.cc-form-setup-notice a { color: var(--gold); text-decoration: underline; }

/* ── FOOTER ── */
.cc-footer {
  background: var(--black);
  border-top: 2px solid var(--gold);
  padding: 32px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  position: relative;
}

.footer-designer {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 300;
  color: var(--text-secondary);
  text-align: center;
  white-space: nowrap;
}

.footer-designer a { color: var(--gold); text-decoration: none; }
.footer-designer a:hover { color: var(--gold-light); }

.footer-brand {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--heading);
}

.footer-sub {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 2px;
}

.footer-copy {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 300;
  color: var(--text-secondary);
  text-align: right;
}

.footer-copy a { color: var(--gold); text-decoration: none; }

/* ── PROJECT POPUP ── */
.cc-slide-clickable { cursor: pointer; }
.cc-slide-clickable:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }

.cc-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.cc-popup-overlay[hidden] { display: none; }

/* Popup card — fixed dimensions, no scroll on the card itself */
.cc-popup {
  background: var(--white);
  width: 100%;
  max-width: 1280px;
  position: relative;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 40px);
  overflow: hidden;
}

.cc-popup-close {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 20;
  width: 48px;
  height: 48px;
  background: rgba(17, 17, 17, 0.9);
  color: var(--white);
  border: none;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  line-height: 1;
  backdrop-filter: blur(4px);
}

.cc-popup-close:hover { background: var(--gold); color: var(--black); }

/* Two-column body — fixed height so neither portrait nor landscape
   resizes the frame. Info column scrolls if the description is long. */
.cc-popup-body {
  display: grid;
  grid-template-columns: 1fr 300px;
  height: clamp(500px, 76vh, 780px);
  min-height: 0;
}

/* ── Image column ── */
.cc-popup-images {
  /* Slightly off-black: less extreme than pure #000 which causes
     halo/bloom at image edges on HDR / wide-color displays */
  background: var(--dark);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Padded mat around the image — the 10px gap acts as a dark frame
   that clearly separates the photo from the background on HDR screens,
   and provides letterbox/pillarbox space for portrait vs landscape */
.cc-popup-main-wrap {
  flex: 1;
  min-height: 0;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* object-fit: contain — always shows the whole image.
   Portrait shots get vertical bars, landscape gets horizontal bars.
   The frame size never changes between photos. */
.cc-popup-main-img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: opacity 0.25s ease;
  /* Subtle inner edge to prevent HDR bleed at photo boundary */
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

/* Wide-color / P3 display tweak: warmer, less crushed dark field */
@media (color-gamut: p3) {
  .cc-popup-images { background: var(--dark); }
}

/* Thumbnail strip */
.cc-popup-thumbs {
  display: flex;
  gap: 4px;
  padding: 6px 10px;
  background: var(--surface-dark);
  flex-wrap: wrap;
  flex-shrink: 0;
}

.cc-popup-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s, border-color 0.2s;
  border: 2px solid transparent;
  display: block;
  flex-shrink: 0;
}

.cc-popup-thumb:hover  { opacity: 0.8; }
.cc-popup-thumb.active { opacity: 1; border-color: var(--gold); }

/* ── Info column — dark panel, light text to match image area ── */
.cc-popup-info {
  background: var(--dark);
  padding: 40px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  border-left: 1px solid var(--border-dark);
}

.cc-popup-cat {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.cc-popup-title {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--heading);
  line-height: 1.1;
  margin: 0;
}

.cc-popup-location {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-tertiary);
  letter-spacing: 0.06em;
}

.cc-popup-desc {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  color: var(--text-light);
  line-height: 1.8;
}

/* ── Mobile: stack vertically, fixed image height, info scrolls below ── */
@media (max-width: 768px) {
  .cc-popup-overlay { padding: 0; align-items: flex-end; }
  .cc-popup { max-height: 94vh; overflow-y: auto; }
  .cc-popup-body {
    grid-template-columns: 1fr;
    height: auto;
  }
  .cc-popup-main-wrap {
    height: clamp(220px, 52vw, 320px);
    padding: 8px;
  }
  .cc-popup-info {
    padding: 24px 20px 32px;
    overflow-y: visible;
    border-left: none;
    border-top: 1px solid var(--border-dark);
  }
  .cc-popup-thumbs { padding: 6px 8px; }
}

/* ── PAGE LOADER ── */
#cc-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

#cc-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Spinner */
.cc-loader--spinner .cc-loader-anim {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(184,149,63,0.18);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: cc-spin 0.85s linear infinite;
}

@keyframes cc-spin { to { transform: rotate(360deg); } }

/* Dots */
.cc-loader--dots .cc-loader-anim {
  display: flex;
  gap: 10px;
  align-items: center;
}

.cc-loader--dots .cc-loader-anim span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  animation: cc-pulse 1.2s ease-in-out infinite;
}

.cc-loader--dots .cc-loader-anim span:nth-child(2) { animation-delay: 0.2s; }
.cc-loader--dots .cc-loader-anim span:nth-child(3) { animation-delay: 0.4s; }

@keyframes cc-pulse {
  0%, 80%, 100% { transform: scale(0.55); opacity: 0.3; }
  40%            { transform: scale(1);    opacity: 1; }
}

/* Bar */
.cc-loader--bar .cc-loader-anim {
  width: 200px;
  height: 3px;
  background: rgba(184,149,63,0.18);
  overflow: hidden;
  position: relative;
}

.cc-loader--bar .cc-loader-anim::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 50%;
  background: var(--gold);
  animation: cc-bar 1.1s ease-in-out infinite;
}

@keyframes cc-bar {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(300%); }
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .cc-nav { padding: 0 20px; }
  .nav-links { display: none; }
  .cc-section { padding: 72px 24px; }
  #gallery { padding: 72px 0 72px 24px; }
  #gallery .section-header { padding-right: 24px; }
  .gallery-filter { padding-right: 24px; }
  .carousel-controls { padding-right: 24px; }
  .carousel-slide { flex: 0 0 280px; height: 220px; }
  #reviews { padding: 72px 24px; }
  .review-card { flex: 0 0 280px; }
  .contact-split { grid-template-columns: 1fr; }
  .contact-why { padding: 64px 24px; border-right: none; border-bottom: 1px solid var(--border-subtle); }
  .contact-form-col { padding: 64px 24px; }
  .contact-why .section-title { margin-bottom: 16px; }
  .cc-footer { flex-direction: column; text-align: center; padding: 24px 20px; }
  .cc-footer .footer-copy { text-align: center; }
  .footer-designer { position: static; transform: none; white-space: normal; }
  .reviews-header { flex-direction: column; align-items: flex-start; }
  .reviews-cta-block { flex-direction: column; align-items: flex-start; }
}
