/* General reset + typography — ported from the template's custom.css
   "02. General css" section, re-pointed at the semantic tokens in
   variables.css so it reskins per data-brand. */

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

html, body {
  width: 100%;
  overflow-x: clip;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2em;
  color: var(--text-body);
  background: var(--surface);
  transition: background-color 0.3s ease, color 0.3s ease;
}

::selection {
  color: var(--text-heading);
  background-color: var(--accent);
}

p {
  line-height: 1.6em;
  margin: 0 0 1.5em;
}

p:last-child {
  margin-bottom: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2em;
  color: var(--text-heading);
  margin: 0;
}

figure {
  margin: 0;
}

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

a {
  text-decoration: none;
  color: inherit;
}

a:hover, a:focus {
  text-decoration: none;
  outline: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

input, textarea, select {
  font: inherit;
  color: inherit;
}

address {
  font-style: normal;
}

/* ---- Accessibility helpers ---- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 15px;
  z-index: 1000;
  background: var(--chrome-bg);
  color: var(--chrome-text);
  padding: 10px 20px;
  border-radius: 6px;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 15px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---- Section-level building blocks (from custom.css "02. General") ---- */

.dark-section {
  background-color: var(--chrome-bg);
}

.dark-section h1,
.dark-section h2,
.dark-section h3,
.dark-section p,
.dark-section .section-title-content p {
  color: var(--chrome-text);
}

/* .section-title h3 sets its own color (for the eyebrow icon/text pairing
   below), which otherwise ties with .dark-section h3 on specificity and
   wins by source order — this reasserts the dark-section override. */
.dark-section .section-title h3 {
  color: var(--chrome-text);
}

.section-row {
  margin-bottom: 80px;
}

.section-row .section-title {
  margin-bottom: 0;
}

.section-row .section-title.section-title-center,
.section-title.section-title-center {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-btn {
  text-align: right;
}

.section-content-btn .section-btn {
  margin-top: 30px;
}

.section-title-content p {
  margin-bottom: 20px;
}

.section-title-content p:last-child {
  margin-bottom: 0;
}

.section-title {
  margin-bottom: 40px;
}

.section-title h3 {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6em;
  text-transform: capitalize;
  color: var(--text-heading);
  background: url('../../images/icon-sub-heading.svg') no-repeat left center;
  background-size: 18px auto;
  padding-left: 26px;
  margin-bottom: 15px;
}

.section-title h1 {
  font-size: 60px;
  font-weight: 400;
  line-height: 1.1em;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 0;
}

.section-title h2 {
  font-size: clamp(2rem, 2.5vw + 1rem, 3.25rem);
  font-weight: 400;
  line-height: 1.2em;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 0;
}

.section-title p {
  margin-top: 20px;
  margin-bottom: 0;
}

/* ---- Page header (About, Gallery, Pricing, Reviews, Contact, Blog) ---- */

.page-header {
  padding: 200px 0 80px;
  text-align: center;
  background-color: var(--chrome-bg);
  background-image: radial-gradient(circle at 20% 10%, color-mix(in srgb, var(--accent-strong) 25%, transparent), transparent 45%),
    radial-gradient(circle at 80% 90%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 45%);
}

.page-header .breadcrumbs__list {
  justify-content: center;
}

.page-header-box h1 {
  font-size: clamp(2.4rem, 4vw + 1rem, 4.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.page-header-box p {
  margin-top: 16px;
  color: var(--chrome-text);
  opacity: 0.75;
  max-width: 640px;
  margin-inline: auto;
}

/* ---- Gallery grid (shared: homepage teaser + full /gallery.php) ---- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

@media (max-width: 860px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  overflow: hidden;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* ---- Lightbox (native <dialog>, no JS library) ---- */

.lightbox {
  border: none;
  padding: 0;
  background: transparent;
  max-width: min(92vw, 1000px);
  max-height: 90vh;
}

.lightbox::backdrop {
  background: rgba(8, 8, 9, 0.9);
}

.lightbox__image {
  max-width: min(92vw, 1000px);
  max-height: 85vh;
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--white);
  color: #0c0c0d;
  font-size: 1.4rem;
  line-height: 1;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

/* The sticky header uses position: fixed + a transform transition, which
   promotes it to its own compositing layer — that layer paints above the
   dialog's top-layer backdrop in some browsers, so it visibly "pokes
   through" the overlay while the lightbox is open. Hide it for the
   duration instead of fighting z-index (which top-layer content ignores). */
body:has(#lightbox[open]) .main-header {
  visibility: hidden;
}

/* ---- Pricing cards (shared: homepage teaser + full /pricing.php) ---- */

.pricing-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  margin-top: 20px;
}

@media (max-width: 860px) {
  .pricing-groups { grid-template-columns: minmax(0, 1fr); }
}

.pricing-item {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 20px;
  padding: 32px;
}

.pricing-item h3 {
  font-size: 22px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.pricing-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-block: 12px;
  border-bottom: 1px dashed var(--divider);
  font-size: 15px;
}

.pricing-row:last-of-type {
  border-bottom: none;
}

a.pricing-row {
  color: var(--text-heading);
  transition: color 0.3s ease-in-out;
}

a.pricing-row:hover {
  color: var(--accent-strong);
}

.pricing-row__price {
  font-weight: 700;
  color: var(--accent-strong);
}

.pricing-note {
  text-align: center;
  margin-top: 40px;
  color: var(--text-body);
  font-size: 14px;
  max-width: 640px;
  margin-inline: auto;
}

.pricing-item__cta {
  margin-top: 24px;
}

/* Full-width single price card (pricing.php Maverick list) and centered
   variant of the CTA below it, used once per brand section. */
.pricing-item--full {
  max-width: 720px;
  margin: 20px auto 0;
}

.pricing-item__cta--center {
  text-align: center;
}

/* Category heading above each Lavish price-table group on pricing.php —
   links through to that category's own service page. */
.pricing-category-heading {
  margin: 48px 0 4px;
  font-size: 20px;
  text-align: center;
}

.pricing-category-heading:first-of-type {
  margin-top: 20px;
}

.pricing-category-heading a {
  color: var(--text-heading);
  transition: color 0.3s ease-in-out;
}

.pricing-category-heading a:hover {
  color: var(--accent-strong);
}

/* ---- FAQ accordion (shared: homepage + every service page) ---- */

.our-faqs {
  padding: 100px 0;
}

.faq-list {
  max-width: 820px;
  margin: 20px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border: 1px solid var(--divider);
  border-radius: 16px;
  padding: 20px 24px;
  background: var(--surface-alt);
}

.faq-item__q {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--font-heading);
  font-weight: 600;
}

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

.faq-item__q::after {
  content: '+';
  font-size: 1.4em;
  color: var(--accent-strong);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-item__q::after {
  transform: rotate(45deg);
}

.faq-item__a {
  padding-top: 14px;
  color: var(--text-body);
}

/* ---- CTA banner (shared: homepage + every service page) ---- */

.cta-banner {
  padding: 90px 0;
}

.cta-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.cta-banner__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-banner__copy {
  margin-bottom: 0;
}
