/* theme.css — MD Mojo Photo & Video Booths
 * Custom theme layered OVER Bootstrap 5. Reproduces the original's elegant
 * black + deep-red palette, high-contrast display serif headings, and a
 * flowing script accent — expressed as tokens + targeted overrides, not by
 * re-importing the original CSS.
 */

:root {
  /* --- Brand palette (from capture/theme.json -> colors.palette) --- */
  --brand-primary: #931c13;        /* deep brick red (rgb 147,28,19) */
  --brand-primary-bright: #c1272d; /* brighter red for hover/bars */
  --brand-secondary: #444444;      /* mid grey */
  --brand-dark: #070707;           /* near-black headings */
  --brand-body: #222222;           /* body text */
  --brand-light: #f5f5f5;          /* light section bg */
  --brand-accent: #931c13;

  /* --- Typography --- */
  --font-base: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-heading: "Playfair Display", "Times New Roman", Georgia, serif; /* La Luxes SERIF substitute */
  --font-script: "Great Vibes", "Playfair Display", cursive;              /* flowing script accent */
  --font-size-base: 1rem;

  /* --- Map brand tokens onto Bootstrap's CSS variables --- */
  --bs-primary: var(--brand-primary);
  --bs-primary-rgb: 147, 28, 19;
  --bs-body-font-family: var(--font-base);
  --bs-body-font-size: var(--font-size-base);
  --bs-body-color: var(--brand-body);
  --bs-link-color: var(--brand-primary);
  --bs-link-hover-color: var(--brand-primary-bright);
}

body {
  font-family: var(--font-base);
  color: var(--brand-body);
}

/* Display serif headings, all-caps with generous tracking to match La Luxes. */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-heading);
  color: var(--brand-dark);
  font-weight: 500;
}
h1, .display-1, .display-2, .h1 { letter-spacing: .04em; }

/* Section titles: centered elegant serif, all-caps. */
.section-title {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--brand-dark);
  font-weight: 500;
}

/* Script eyebrow: the small red flowing line above section titles. */
.eyebrow {
  font-family: var(--font-script);
  color: var(--brand-primary);
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1;
  display: block;
}
.eyebrow-lg { font-size: 3rem; }

/* Headings stay white on dark/colored sections. */
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-dark h5, .bg-dark h6,
.bg-brand-dark h1, .bg-brand-dark h2, .bg-brand-dark h3, .bg-brand-dark h4,
.text-white h1, .text-white h2, .text-white h3, .text-white h4, .text-white h5, .text-white h6,
.section-title.text-white { color: #fff; }

/* --- Buttons --- */
.btn { border-radius: 0; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; padding: .7rem 1.6rem; }
.btn-primary {
  --bs-btn-bg: var(--brand-primary);
  --bs-btn-border-color: var(--brand-primary);
  --bs-btn-hover-bg: var(--brand-primary-bright);
  --bs-btn-hover-border-color: var(--brand-primary-bright);
  --bs-btn-active-bg: var(--brand-primary-bright);
  --bs-btn-active-border-color: var(--brand-primary-bright);
}
.btn-outline-light { --bs-btn-hover-color: var(--brand-dark); }
.btn-outline-dark {
  --bs-btn-color: var(--brand-dark); --bs-btn-border-color: var(--brand-dark);
  --bs-btn-hover-bg: var(--brand-dark); --bs-btn-hover-border-color: var(--brand-dark);
}
a { color: var(--brand-primary); }

/* --- Background utilities --- */
.bg-brand-dark { background-color: var(--brand-dark) !important; color: #fff; }
.bg-brand-red { background-color: var(--brand-primary) !important; color: #fff; }
.bg-brand-light { background-color: var(--brand-light) !important; }
.text-brand-red { color: var(--brand-primary) !important; }

/* Thin red announcement bar (e.g. "OVER 500 5-STAR REVIEWS"). */
.review-bar {
  background: var(--brand-primary);
  color: #fff;
  text-align: center;
  font-family: var(--font-heading);
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: .85rem 1rem;
  font-size: 1.05rem;
}

/* --- Header / navbar --- */
.site-navbar {
  background: #fff;
  box-shadow: 0 1px 12px rgba(0,0,0,.08);
  padding-top: .5rem;
  padding-bottom: .5rem;
}
.site-navbar .navbar-brand img { height: 46px; width: auto; }
.site-navbar .nav-link {
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .82rem;
  font-weight: 600;
  color: var(--brand-dark);
  text-align: center;
}
.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus,
.site-navbar .nav-link.active { color: var(--brand-primary); }
.site-navbar .dropdown-menu {
  border: 0; border-radius: 0; margin-top: .25rem;
  box-shadow: 0 8px 28px rgba(0,0,0,.14);
}
.site-navbar .dropdown-item { text-transform: uppercase; letter-spacing: .04em; font-size: .78rem; font-weight: 600; padding: .5rem 1.25rem; }
.site-navbar .dropdown-item:active,
.site-navbar .dropdown-item.active { background: var(--brand-primary); }
.site-navbar .dropdown-item:hover { color: var(--brand-primary); background: var(--brand-light); }
/* Keep the expanded bar on one line (matches navbar-expand-xxl = 1400). */
@media (min-width: 1400px) {
  .site-navbar .nav-link { white-space: nowrap; }
  .site-navbar .navbar-nav { gap: .15rem; }
}
.navbar-phone { font-weight: 700; color: var(--brand-dark); white-space: nowrap; }
.navbar-phone:hover { color: var(--brand-primary); }

/* --- Hero --- */
.hero {
  position: relative;
  color: #fff;
  background: #1a1a1a;
  background-size: cover;
  background-position: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.55));
}
.hero > .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 5vw, 4.5rem); }
.hero .lead-sub { letter-spacing: .04em; }

/* Page hero (interior pages): shorter banner. */
.page-hero { position: relative; color: #fff; background: var(--brand-dark); background-size: cover; background-position: center; }
.page-hero::before { content:""; position:absolute; inset:0; background: rgba(0,0,0,.5); }
.page-hero > .container { position: relative; z-index: 1; }
.page-hero h1 { color:#fff; }

/* --- Service / feature cards --- */
.service-card {
  border: 0;
  background: var(--brand-light);
  text-align: center;
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.12); }
.service-card .card-title {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 1.05rem;
  color: var(--brand-dark);
}
.service-card .photo-frame { aspect-ratio: 4 / 3; background: #111; }
.service-card .photo-frame img { object-fit: cover; }

/* Feature/category tiles with a dark overlay + centered caption. */
.category-tile { position: relative; overflow: hidden; display: block; }
.category-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.category-tile:hover img { transform: scale(1.05); }
.category-tile .caption {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(7,7,7,.35);
  color: #fff; font-family: var(--font-heading); text-transform: uppercase;
  letter-spacing: .1em; font-size: 1.5rem;
}

/* Client logo grid: greyscale, uniform. */
.logo-grid img { max-height: 70px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .8; transition: opacity .2s, filter .2s; }
.logo-grid img:hover { filter: grayscale(0); opacity: 1; }

/* --- Footer --- */
.site-footer { background: var(--brand-dark); color: rgba(255,255,255,.75); }
.site-footer .footer-brand img { height: 64px; width: auto; }
.site-footer h5 { color: #fff; font-family: var(--font-heading); text-transform: uppercase; letter-spacing: .05em; font-size: 1rem; }
.site-footer a:not(.btn) { color: rgba(255,255,255,.75); text-decoration: none; }
.site-footer a:not(.btn):hover, .site-footer a:not(.btn):focus { color: #fff; }
.site-footer .btn-link { color: #fff; }
.site-footer .footer-links li { margin-bottom: .35rem; text-transform: uppercase; letter-spacing: .03em; font-size: .8rem; }
.site-footer .footer-accent { background: linear-gradient(135deg, var(--brand-primary), #5c110b); }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; margin-right: .5rem; color: #fff; }
.footer-social a:hover { background: var(--brand-primary); border-color: var(--brand-primary); }

/* --- Image fit helpers (keep the picture() wrapper working) --- */
picture { display: contents; }
.ratio > picture > img,
.ratio > img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
img { max-width: 100%; height: auto; }
.object-cover   { object-fit: cover;   }
.object-contain { object-fit: contain; background: transparent; }
.card img, .feature-card img { object-fit: contain; max-width: 100%; }
.photo-frame { background: transparent; border-radius: .25rem; overflow: hidden; }
.photo-frame img { width: 100%; height: 100%; object-fit: contain; }
.photo-frame img.object-cover { object-fit: cover; }
.photo-frame--square { aspect-ratio: 1 / 1; }
@media (max-width: 767.98px) {
  .photo-frame:not(.photo-frame--square) { height: auto !important; aspect-ratio: 4 / 3; }
}

/* --- Shared lead form (on the dark band) --- */
.lead-form .form-label { color: rgba(255,255,255,.85); font-size: .85rem; font-weight: 600; letter-spacing: .02em; margin-bottom: .3rem; }
.lead-form .form-label .req { color: var(--brand-primary-bright); }
.lead-form .form-control {
  border: 0; border-radius: 0; padding: .7rem .9rem;
  background: #fff; color: var(--brand-body);
}
.lead-form .form-control:focus { box-shadow: 0 0 0 .2rem rgba(193,39,45,.4); }
.lead-form .form-control::placeholder { color: #9a9a9a; }
.lead-form .btn { border-radius: 0; }
.lead-form__status.is-error { color: #ffb3ae; }
.lead-form__status.is-ok { color: #9fe6a0; }
@media (min-width: 768px) { .lead-form .w-md-auto { width: auto !important; } }

/* --- photoboothtemplates.com widget ---
 * The widget renders a tall page but doesn't take desktop wheel-scroll inside
 * the iframe, so we clip it in a fixed-height scroll window (works desktop +
 * mobile). iframe uses scrolling="no" so the WRAPPER does the scrolling. */
.pbt-widget-wrap {
  background: #fff; border: 1px solid #e6e6e6; border-radius: .25rem;
  height: 75vh; max-height: 900px;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.pbt-widget-wrap iframe { display: block; width: 100%; border: 0; }

/* --- Section rhythm --- */
.section { padding-top: 4.5rem; padding-bottom: 4.5rem; }
@media (max-width: 767.98px) { .section { padding-top: 3rem; padding-bottom: 3rem; } }
.section-intro { max-width: 760px; margin-left: auto; margin-right: auto; }
