:root {
  color-scheme: light dark;
  --bg: #f6f2ea;
  --surface: #ffffff;
  --surface-2: #f1ebe1;
  --text: #1a1a1a;
  --muted: #444444;
  --border: rgba(0, 0, 0, 0.12);
  --accent: #d9a441;
  --accent-2: #9a6b1f;
  --button-text: #1e140d;
  --shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  --overlay: rgba(18, 14, 10, 0.36);
  --header-bg: rgba(255, 255, 255, 0.96);
  --hero-glow: rgba(217, 164, 65, 0.18);
  --hero-sheen: rgba(0, 0, 0, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #0f0f10;
    --surface: #141416;
    --surface-2: #1b1b1e;
    --text: #f3f3f3;
    --muted: #c8c8c8;
    --border: rgba(255, 255, 255, 0.1);
    --accent: #d9a441;
    --accent-2: #9a6b1f;
    --button-text: #1d130a;
    --shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    --overlay: rgba(5, 5, 6, 0.58);
    --header-bg: rgba(20, 20, 22, 0.95);
    --hero-glow: rgba(217, 164, 65, 0.26);
    --hero-sheen: rgba(0, 0, 0, 0.2);
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f2ea;
  --surface: #ffffff;
  --surface-2: #f1ebe1;
  --text: #1a1a1a;
  --muted: #444444;
  --border: rgba(0, 0, 0, 0.12);
  --accent: #d9a441;
  --accent-2: #9a6b1f;
  --button-text: #1e140d;
  --shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  --overlay: rgba(18, 14, 10, 0.36);
  --header-bg: rgba(255, 255, 255, 0.96);
  --hero-glow: rgba(217, 164, 65, 0.18);
  --hero-sheen: rgba(0, 0, 0, 0.06);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f0f10;
  --surface: #141416;
  --surface-2: #1b1b1e;
  --text: #f3f3f3;
  --muted: #c8c8c8;
  --border: rgba(255, 255, 255, 0.1);
  --accent: #d9a441;
  --accent-2: #9a6b1f;
  --button-text: #1d130a;
  --shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  --overlay: rgba(5, 5, 6, 0.58);
  --header-bg: rgba(20, 20, 22, 0.95);
  --hero-glow: rgba(217, 164, 65, 0.26);
  --hero-sheen: rgba(0, 0, 0, 0.2);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Source Sans 3", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  padding-top: 110px;
}

body.menu-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  background: var(--accent);
  color: var(--button-text);
  padding: .6rem .9rem;
  border-radius: .5rem;
  font-weight: 700;
}

.skip-link:focus-visible { top: 1rem; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.container {
  width: min(1100px, 100% - 2rem);
  margin-inline: auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.mobile-menu,
.nav-menu,
.menu-dropdown {
  position: fixed;
  top: 110px;
  left: 0;
  right: 0;
  z-index: 10000;
}

.header-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-link img {
  width: auto;
  height: clamp(84px, 14vw, 168px);
  max-width: 70vw;
  object-fit: contain;
}

.menu-button {
  width: 48px;
  height: 48px;
  border-radius: .65rem;
  border: 1px solid var(--border);
  background: var(--surface);
  display: grid;
  place-items: center;
  gap: 5px;
  cursor: pointer;
}

.menu-button .bar {
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform .2s ease, opacity .2s ease;
}

.menu-button[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-button[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.menu-button[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.menu-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
  z-index: 39;
}

.menu-overlay.open { opacity: 1; pointer-events: auto; }

.menu-panel {
  position: fixed;
  top: 5.2rem;
  right: 1rem;
  width: min(360px, calc(100vw - 2rem));
  max-height: calc(100dvh - 6.2rem);
  overflow: auto;
  z-index: 40;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 1.2rem;
  transform: translateY(-8px);
  opacity: 0;
  transition: transform .22s ease, opacity .2s ease;
  display: grid;
  align-content: start;
  gap: 1.25rem;
  pointer-events: none;
}

@supports (height: 1svh) {
  .menu-panel {
    max-height: calc(100svh - 6.2rem);
  }
}

.menu-panel.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nav-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }

.nav-link {
  display: block;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .78rem .85rem;
  border-radius: .6rem;
  border: 1px solid transparent;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  border-color: var(--border);
  background: var(--surface-2);
  color: var(--accent);
}

.theme-control { border-top: 1px solid var(--border); padding-top: 1rem; }
.theme-control label { display: block; font-size: .9rem; color: var(--muted); margin-bottom: .5rem; }
.theme-control select {
  width: 100%;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: .6rem;
  padding: .75rem;
  font: inherit;
}

main { display: block; }
.section { padding: clamp(2.8rem, 6vw, 4.6rem) 0; }

.hero {
  position: relative;
  min-height: 60vh;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero,
.hero::before,
.hero::after,
.hero-overlay,
.hero-bg {
  pointer-events: none;
}

@supports (height: 1svh) {
  .hero { min-height: 60svh; }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(closest-side at 50% 30%, var(--hero-glow), transparent 60%),
    linear-gradient(to bottom, var(--hero-sheen), transparent 35%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  align-items: center;
}

.hero-logo {
  display: block;
  width: min(680px, 85vw);
  max-width: 100%;
  height: auto;
  object-fit: contain;
  margin-inline: auto;
}

.hero--home .hero-logo { margin-bottom: 1rem; }
.hero p,
.hero .section-subtitle { max-width: 60ch; margin-inline: auto; }

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: .82rem;
  color: var(--accent);
  margin-bottom: .5rem;
  font-weight: 700;
}

h1, h2, h3 { font-family: "Playfair Display", Georgia, serif; line-height: 1.2; margin: 0 0 .6rem; }
.section-title { font-size: clamp(1.9rem, 4vw, 3rem); text-align: center; }
.section-subtitle { max-width: 60ch; margin: 0 auto; color: var(--muted); text-align: center; }

.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1.4rem; }

.btn-primary,
.btn-ghost {
  padding: .78rem 1.2rem;
  min-height: 46px;
  border-radius: .65rem;
  font-weight: 700;
  letter-spacing: .03em;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

.btn-primary { background: var(--accent); color: var(--button-text); }
.btn-ghost { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn-primary:hover { background: var(--accent-2); }
.btn-primary:hover, .btn-ghost:hover { transform: translateY(-1px); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-top: 1.4rem; }

.card,
.service-item,
.contact-card,
.form-shell,
.gallery-card,
.photo-placeholder,
.about-photo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: .95rem;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.08);
}

.card, .service-item, .contact-card, .form-shell { padding: 1.05rem; }
.card h3, .service-item h3, .contact-card h2 { font-size: 1.34rem; }

.services-wrap { max-width: 900px; margin-inline: auto; }
.services-wrap h2, .services-wrap p { text-align: center; }
.service-list,
.gallery-grid,
.before-after-grid,
.contact-grid,
.about-grid,
.values-grid { display: grid; gap: 1rem; }

.gallery-grid { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.before-after-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.contact-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.gallery-card { min-height: 170px; display: grid; place-items: center; font-weight: 700; color: var(--muted); padding: 1rem; }
.gallery-label { text-align: center; margin: .5rem 0 0; color: var(--muted); }

.section-center { text-align: center; }
.values-grid { text-align: left; margin-inline: auto; max-width: 800px; }
.values-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .75rem; }
.values-list li {
  display: grid;
  gap: .2rem;
  padding: .8rem .9rem;
  border: 1px solid var(--border);
  border-radius: .7rem;
  background: var(--surface-2);
}

.about-photo-card {
  padding: .8rem;
  display: grid;
  align-content: center;
}

.about-photo-card img {
  width: 100%;
  height: auto;
  border-radius: .65rem;
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.form-group { margin-bottom: .95rem; }
label { display: block; margin-bottom: .35rem; font-weight: 600; }
input, textarea {
  width: 100%;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: .55rem;
  font: inherit;
  padding: .7rem .75rem;
}

.site-footer {
  position: relative;
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 2.3rem 0 110px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.footer-grid > * {
  min-width: 0;
}

.footer-nav-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }

.footer-tag {
  margin-top: 1.2rem;
  min-height: 72px;
  position: relative;
}

.dev-tag-link {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  opacity: .92;
  transition: opacity .25s ease;
}

.dev-tag-link:hover {
  opacity: 1;
}

.dev-tag {
  width: clamp(140px, 10vw, 190px);
  height: auto;
  display: block;
  transition:
    transform .25s ease,
    opacity .25s ease;
}

.dev-tag:hover {
  transform: scale(1.03);
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 1.4rem;
  padding-top: .8rem;
  color: var(--muted);
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .36s ease, transform .36s ease;
}

.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .header-inner { min-height: 82px; }
  .brand-link img { height: clamp(72px, 18vw, 128px); }
  .menu-panel { top: 4.8rem; }
}

@media (max-width: 600px) {
  body {
    padding-top: 95px;
  }

  .nav-menu,
  .mobile-menu {
    top: 95px;
  }

  .site-footer {
    padding-bottom: 130px;
  }

  .dev-tag {
    width: clamp(120px, 34vw, 160px);
  }
}

@media (max-width: 520px) {
  .btn-primary,
  .btn-ghost { width: 100%; }
}

@media (min-width: 760px) {
  .about-grid { grid-template-columns: 1.2fr .8fr; align-items: stretch; }
}
