:root {
  --bg: #f5f5f4;
  --surface: #ffffff;
  --ink: #111111;
  --muted: #5f5f5f;
  --brand: #9a6b3d;
  --brand-dark: #6f4d2f;
  --brand-accent: #d4b08a;
  --border: #d9d9d9;
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.1);
}

[data-theme="charcoal"] {
  --bg: #ececeb;
  --surface: #ffffff;
  --ink: #121212;
  --muted: #4d4d4d;
  --brand: #2b2b2b;
  --brand-dark: #111111;
  --brand-accent: #b98e67;
  --border: #cfcfcf;
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
}

[data-theme="light"] {
  --bg: #f8f8f8;
  --surface: #ffffff;
  --ink: #202020;
  --muted: #666666;
  --brand: #8b5e34;
  --brand-dark: #5c3d25;
  --brand-accent: #d8b798;
  --border: #dddddd;
  --shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
}

a {
  color: var(--brand-dark);
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.logo img {
  width: auto;
  height: 96px;
  border-radius: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem;
}

.social-link img {
  width: 20px;
  height: 20px;
  border-radius: 0;
}

.site-nav a[aria-current="page"] {
  color: var(--brand-dark);
}

.menu-toggle {
  display: none;
}

.hero {
  padding: 3rem 0;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-content > img {
  max-height: 460px;
  width: 100%;
  object-fit: cover;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
}

.hero p {
  color: var(--muted);
  max-width: 50ch;
}

.hero-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.trust-line {
  margin-top: 1rem;
  font-weight: 700;
}

.section {
  padding: 2.1rem 0 2.8rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.container--gallery {
  width: min(1180px, 94%);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
}

@media (min-width: 720px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.quote p {
  font-style: italic;
}

.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--brand), var(--brand-accent));
  color: #fff !important;
  border: none;
  border-radius: 0.7rem;
  padding: 0.7rem 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.22);
}

.btn-small {
  padding: 0.5rem 0.8rem;
}

.btn-secondary {
  background: #ffffff;
  color: #111111 !important;
  border: 2px solid #111111;
}

.btn-secondary:hover {
  background: #111111;
  color: #ffffff !important;
}

.btn-quote {
  background: #111111;
  color: #ffffff !important;
  border: 2px solid #111111;
}

.btn-quote:hover {
  background: #ffffff;
  color: #111111 !important;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.form-grid {
  display: grid;
  gap: 0.6rem;
  max-width: 680px;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid var(--border);
  border-radius: 0.45rem;
  font: inherit;
}

.form-status {
  margin-top: 0.4rem;
  font-weight: 700;
}

.upload-promo {
  margin: 0 0 0.3rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.upload-help {
  color: var(--muted);
}

.form-reassure {
  color: var(--muted);
  margin: 0.1rem 0 0;
}

.notice {
  border-left: 4px solid var(--brand);
  padding-left: 0.75rem;
  color: var(--muted);
}

.center {
  text-align: center;
}

.top-gap {
  margin-top: 1rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #fff;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0;
  flex-wrap: wrap;
}

.quote-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1rem;
  align-items: start;
}

.logo-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.8rem;
  padding-top: 0.5rem;
}

.logo-feature img {
  width: min(260px, 75%);
  border-radius: 0;
}

.logo-feature p {
  margin: 0;
  font-weight: 700;
  color: var(--ink);
}

.section-intro {
  color: var(--muted);
  margin-top: 0;
  margin-bottom: 1rem;
}

.service-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0;
}

.service-title img {
  width: 22px;
  height: 22px;
  border-radius: 0;
}

.services-note {
  margin-top: 1rem;
  font-weight: 700;
  color: var(--muted);
}

.services-toc {
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  padding: 1rem 1.25rem;
}

.toc-heading {
  margin: 0 0 0.65rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.35rem 1rem;
}

.toc-list a {
  text-decoration: none;
  font-size: 0.95rem;
}

.toc-list a:hover {
  text-decoration: underline;
}

.packages-list li + li {
  margin-top: 0.35rem;
}

.packages-closing {
  margin-top: 1rem;
}

.services-detail-grid {
  margin-top: 1rem;
}

.service-detail-card[id],
#service-packages {
  scroll-margin-top: 6rem;
}

.service-detail-card h2 {
  font-size: 1.15rem;
}

.service-detail-card p {
  margin: 0 0 0.5rem;
}

.service-detail-card ul {
  margin: 0;
  padding-left: 1.2rem;
}

.service-detail-card li + li {
  margin-top: 0.25rem;
}

.quote-line {
  font-style: italic;
  color: var(--muted);
}

.testimonial-preview h3 {
  margin-top: 0;
}

.testimonial-photo-card {
  display: block;
  text-decoration: none;
  margin-bottom: 0.9rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 0.8rem;
  box-shadow: var(--shadow);
}

.testimonial-photo-card p {
  margin: 0.6rem 0 0.3rem;
  color: var(--ink);
  font-style: italic;
}

.testimonial-photo-card span {
  font-weight: 700;
  color: var(--brand-dark);
}

.gallery-job:target,
.gallery-card-link:target {
  outline: 3px solid var(--brand-accent);
  outline-offset: 3px;
}

.gallery-job {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.gallery-card-link {
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.gallery-card-link:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.14);
}

.gallery-card-link:active {
  transform: translateY(-1px) scale(1.008);
}

.gallery-card-link:focus-visible {
  outline: 3px solid var(--brand-accent);
  outline-offset: 4px;
}

.gallery-card-link:focus:not(:focus-visible) {
  outline: none;
}

.gallery-job img {
  height: 260px;
  width: 100%;
  object-fit: cover;
  border-radius: 0.75rem;
}

.gallery-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.gallery-text {
  margin-bottom: 0.6rem;
}

.gallery-title {
  margin: 0.65rem 0 0.45rem;
  min-height: 2.8rem;
  font-size: 1.05rem;
}

.gallery-text p {
  margin: 0;
}

.gallery-card-cta {
  display: inline-block;
  margin-top: auto;
  padding-top: 0.45rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.gallery-card-link:hover .gallery-card-cta {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.album-link {
  display: inline-block;
  margin-top: 0.45rem;
  font-weight: 700;
  margin-top: auto;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.album-grid img {
  max-height: 520px;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.album-grid img:hover {
  transform: scale(1.015);
  box-shadow: var(--shadow);
}

.album-grid img:focus {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.album-grid img:focus:not(:focus-visible) {
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  .album-grid img {
    transition: none;
  }

  .album-grid img:hover {
    transform: none;
  }
}

.final-cta {
  text-align: center;
}

.inline-icon {
  width: 18px;
  height: 18px;
  border-radius: 0;
  vertical-align: middle;
  margin-right: 0.35rem;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.footer-social img {
  width: 18px;
  height: 18px;
  border-radius: 0;
}

.theme-switcher {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  gap: 0.45rem;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  box-shadow: var(--shadow);
  padding: 0.45rem 0.65rem;
  z-index: 20;
}

.theme-switcher label {
  font-size: 0.86rem;
  font-weight: 700;
}

.theme-switcher select {
  width: auto;
  padding: 0.35rem 0.45rem;
}

@media (max-width: 860px) {
  .hero-content,
  .grid-3,
  .grid-2,
  .split,
  .quote-layout,
  .album-grid {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    display: block;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 0.45rem;
    padding: 0.45rem 0.8rem;
  }

  .site-nav {
    position: absolute;
    top: 65px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 1rem 4%;
    display: none;
    flex-direction: column;
    align-items: start;
  }

  .site-nav.open {
    display: flex;
  }
}

/* Album lightbox */
body.lightbox-open {
  overflow: hidden;
}

body.lightbox-photo-zoomed {
  overscroll-behavior: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom)
    env(safe-area-inset-left);
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox__backdrop {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.78);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.lightbox__stage {
  grid-area: 1 / 1;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  max-height: 100vh;
  padding: 3rem min(4rem, 6vw);
  box-sizing: border-box;
  pointer-events: none;
  overflow: hidden;
}

.lightbox__zoom {
  position: relative;
  z-index: 1;
  pointer-events: auto;
  max-width: min(96vw, 1400px);
  max-height: min(88vh, 900px);
  width: auto;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.lightbox__zoom-pan {
  display: block;
  border-radius: 0.5rem;
  cursor: zoom-in;
  touch-action: manipulation;
}

.lightbox__zoom--zoomed .lightbox__zoom-pan {
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.lightbox__zoom-pan--dragging {
  cursor: grabbing !important;
}

.lightbox__zoom-inner {
  transform-origin: center center;
  transition: transform 0.28s ease;
  border-radius: 0.5rem;
}

/* Screen-space pan uses translate on .lightbox__zoom-pan; zoom uses scale + % origin on .lightbox__zoom-inner — combined effect matches scale + translate without skewing drag. */
.lightbox__zoom-inner--panning {
  transition: none !important;
}

.lightbox__zoom img {
  display: block;
  max-width: min(96vw, 1400px);
  max-height: min(88vh, 900px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.5rem;
}

.lightbox--visible .lightbox__backdrop {
  opacity: 1;
}

.lightbox--visible .lightbox__zoom {
  opacity: 1;
  transform: scale(1);
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  z-index: 3;
  pointer-events: auto;
  border: none;
  cursor: pointer;
  font: inherit;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.lightbox__close {
  top: 0.75rem;
  right: 0.75rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.lightbox__close:hover {
  background: #ffffff;
}

.lightbox__prev,
.lightbox__next {
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 3.25rem;
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 1.75rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.lightbox__prev {
  left: min(1rem, 4vw);
}

.lightbox__next {
  right: min(1rem, 4vw);
}

.lightbox__prev:hover,
.lightbox__next:hover {
  background: #ffffff;
}

.lightbox__prev[hidden],
.lightbox__next[hidden] {
  display: none;
}

@media (max-width: 640px) {
  .lightbox__stage {
    padding: 2.5rem 0.25rem;
  }

  .lightbox__prev {
    left: 0.35rem;
  }

  .lightbox__next {
    right: 0.35rem;
  }

  .lightbox__close {
    top: 0.5rem;
    right: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox__backdrop,
  .lightbox__zoom {
    transition: none;
  }

  .lightbox__zoom-inner {
    transition: none;
  }

  .lightbox__zoom-inner--panning {
    transition: none !important;
  }

  .lightbox--visible .lightbox__zoom {
    transform: none;
  }
}
