:root {
  color-scheme: light;
  --bg: #f4efe8;
  --bg-elevated: #ffffff;
  --surface: #ede3d6;
  --surface-strong: #e4d6c4;
  --text: #2c2219;
  --muted: #655748;
  --border: #d2bfaa;
  --accent: #c88732;
  --accent-strong: #9f6420;
  --button-text: #1e140d;
  --overlay: rgba(24, 18, 12, 0.35);
  --header-bg: rgba(255, 255, 255, 0.96);
  --shadow-soft: 0 8px 24px rgba(47, 31, 17, 0.1);
  --hero-accent: rgba(196, 132, 53, 0.1);
  --hero-base: rgba(255, 255, 255, 0);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #14100d;
    --bg-elevated: #211914;
    --surface: #261d17;
    --surface-strong: #2f251d;
    --text: #f4ece0;
    --muted: #d2c0a8;
    --border: #4f3e31;
    --accent: #d79a44;
    --accent-strong: #ecb45c;
    --button-text: #1d130a;
    --overlay: rgba(10, 8, 6, 0.6);
    --header-bg: rgba(33, 25, 20, 0.96);
    --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.28);
    --hero-accent: rgba(120, 78, 29, 0.2);
    --hero-base: rgba(33, 25, 20, 0);
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4efe8;
  --bg-elevated: #ffffff;
  --surface: #ede3d6;
  --surface-strong: #e4d6c4;
  --text: #2c2219;
  --muted: #655748;
  --border: #d2bfaa;
  --accent: #c88732;
  --accent-strong: #9f6420;
  --button-text: #1e140d;
  --overlay: rgba(24, 18, 12, 0.35);
  --header-bg: rgba(255, 255, 255, 0.96);
  --shadow-soft: 0 8px 24px rgba(47, 31, 17, 0.1);
  --hero-accent: rgba(196, 132, 53, 0.1);
  --hero-base: rgba(255, 255, 255, 0);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #14100d;
  --bg-elevated: #211914;
  --surface: #261d17;
  --surface-strong: #2f251d;
  --text: #f4ece0;
  --muted: #d2c0a8;
  --border: #4f3e31;
  --accent: #d79a44;
  --accent-strong: #ecb45c;
  --button-text: #1d130a;
  --overlay: rgba(10, 8, 6, 0.6);
  --header-bg: rgba(33, 25, 20, 0.96);
  --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.28);
  --hero-accent: rgba(120, 78, 29, 0.2);
  --hero-base: rgba(33, 25, 20, 0);
}

* { 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;
}

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(1120px, 92vw); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
}

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

.brand-link img {
  max-height: 84px;
  width: auto;
}

.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: 0;
  right: 0;
  width: min(360px, 90vw);
  height: 100dvh;
  z-index: 40;
  background: var(--bg-elevated);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  padding: 6.2rem 1.4rem 1.5rem;
  transform: translateX(100%);
  opacity: 0;
  transition: transform .24s ease, opacity .2s ease;
  display: grid;
  align-content: start;
  gap: 1.25rem;
  pointer-events: none;
}

.menu-panel.open {
  transform: translateX(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);
  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);
  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;
  overflow: clip;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, var(--hero-accent), var(--hero-base));
  pointer-events: none;
}

.hero > .container { position: relative; z-index: 1; text-align: center; }
.hero--home .hero-logo { width: min(680px, 85vw); margin-inline: auto; margin-bottom: 1rem; }

.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); }
.section-subtitle { max-width: 760px; margin: 0 auto; color: var(--muted); }

.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); color: var(--text); border-color: var(--border); }
.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: var(--shadow-soft);
}

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

.service-list,
.gallery-grid,
.before-after-grid,
.contact-grid,
.about-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); }

.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);
}

.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(--bg-elevated);
}

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

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 2.3rem 0 1rem;
}

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

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

.footer-tag {
  margin-top: 1.2rem;
  display: flex;
  justify-content: flex-end;
}

.footer-tag img {
  width: min(70px, 24vw);
  height: auto;
  opacity: 0.78;
}

.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 { max-height: 68px; }

  .footer-tag {
    justify-content: center;
  }

  .footer-tag a {
    margin-left: auto;
  }
}

@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; }
}
