@import url("/assets/fonts.css");

:root {
  color-scheme: light;
  scroll-padding-top: 76px;
  --bg-main: #f7f2ec;
  --bg-soft: #fffaf5;
  --surface: #ffffff;
  --text: #1f1a17;
  --muted: #6f635b;
  --accent: #b75f3a;
  --accent-soft: #ecd4c5;
  --line: #ebdfd6;
  --ok: #345f4c;
  --shadow: 0 18px 40px rgba(51, 33, 20, 0.08);
  --radius-lg: 24px;
  --radius-md: 16px;
  --card-bg:
    radial-gradient(620px 240px at 0% 0%, rgba(244, 224, 210, 0.72) 0%, transparent 52%),
    linear-gradient(135deg, #fff8f2 0%, #fff 100%);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --card-bg: var(--surface, #211d1a);
  --bg-main: #1a1714;
  --bg-soft: #12100e;
  --surface: #211d1a;
  --text: #f0e6dc;
  --muted: #c4b3a6;
  --accent: #dd8d66;
  --accent-soft: #5d3f33;
  --line: #433a34;
  --ok: #8bc9ab;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --bg: #161412;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }
footer { flex-shrink: 0; }

:root[data-theme="dark"] body {
  background:
    radial-gradient(900px 500px at 8% -10%, #34261f 0%, transparent 55%),
    radial-gradient(1000px 520px at 100% 0%, #2a241f 0%, transparent 48%),
    linear-gradient(180deg, var(--bg-main), var(--bg-soft));
}

.topbar-actions,
.top-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid #d9cfc6;
  border-radius: 14px;
  background: rgba(255, 250, 245, 0.92);
  color: var(--text, #1f1a17);
  box-shadow: 0 10px 24px rgba(51, 33, 20, 0.08);
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.menu-toggle:hover {
  transform: translateY(-1px);
  border-color: #c8b6a8;
}

.menu-toggle:focus-visible {
  outline: 2px solid var(--accent, #b75f3a);
  outline-offset: 2px;
}

.menu-toggle-icon {
  position: relative;
  display: block;
  width: 18px;
  height: 12px;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after,
.menu-toggle-icon span {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease, top 180ms ease;
}

.menu-toggle-icon::before {
  top: 0;
}

.menu-toggle-icon span {
  top: 5px;
}

.menu-toggle-icon::after {
  top: 10px;
}

.brand {
  align-items: flex-end;
  gap: 1.1rem;
}

.brand-note,
.nav a,
.topnav a,
.feed-row a {
  font-family: "Manrope", "Trebuchet MS", sans-serif;
}

.brand-logo {
  transition: filter 220ms ease;
}

.brand-note {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  margin-bottom: 0.24rem;
}

.nav a,
.topnav a,
.feed-row a {
  font-weight: 700;
}

.nav,
.topnav {
  align-items: center;
}

.switch-toggle {
  position: relative;
  width: 56px;
  height: 22px;
  padding: 2px;
  box-sizing: border-box;
  border: 1px solid #b8c1ce;
  background: #edf1f6;
  border-radius: 999px;
  appearance: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.switch-toggle[data-state="on"] {
  border-color: #a4afbf;
}

.switch-toggle:hover {
  filter: brightness(0.99);
}

.switch-toggle:focus-visible {
  outline: 2px solid #8d97a8;
  outline-offset: 2px;
}

.switch-track {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(120deg, #e9edf3 0%, #d9e0ea 100%);
}

.switch-option {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

.switch-option-left {
  left: 5px;
}

.switch-option-right {
  right: 5px;
}

.switch-thumb {
  position: absolute;
  top: 50%;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 6px rgba(31, 24, 20, 0.22);
  transform: translateY(-50%);
  transition: left 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.switch-toggle[data-state="on"] .switch-thumb {
  left: calc(100% - 18px);
}

.switch-toggle[data-state="on"] .switch-track {
  background: linear-gradient(120deg, #dbe2ec 0%, #c9d3e0 100%);
}

.switch-theme .switch-option {
  font-size: 0.56rem;
  font-weight: 800;
  text-shadow: none;
}

.switch-theme[data-state="off"] .switch-option-left {
  color: #1f2937;
}

.switch-theme[data-state="off"] .switch-option-right {
  color: rgba(31, 41, 55, 0.4);
}

.switch-theme[data-state="on"] .switch-thumb {
  background: #eef2f8;
}

.switch-theme[data-state="on"] .switch-option-left {
  color: rgba(28, 37, 51, 0.35);
}

.switch-theme[data-state="on"] .switch-option-right {
  color: #1e2938;
}


:root[data-theme="dark"] .switch-toggle {
  background: #2b313d;
  border-color: #6c7686;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

:root[data-theme="dark"] .switch-toggle[data-state="on"] {
  border-color: #7f8a9b;
}

:root[data-theme="dark"] .switch-toggle:focus-visible {
  outline-color: #aab5c8;
}

:root[data-theme="dark"] .switch-track {
  background: linear-gradient(120deg, #414a59 0%, #323947 100%);
}

:root[data-theme="dark"] .switch-toggle[data-state="on"] .switch-track {
  background: linear-gradient(120deg, #4f5b6d 0%, #3c4657 100%);
}

:root[data-theme="dark"] .switch-thumb {
  background: #eef1f5;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

:root[data-theme="dark"] .switch-theme[data-state="off"] .switch-option-left {
  color: #dbe2ec;
}

:root[data-theme="dark"] .switch-theme[data-state="off"] .switch-option-right {
  color: rgba(219, 226, 236, 0.38);
}

:root[data-theme="dark"] .switch-theme[data-state="on"] .switch-option-left {
  color: rgba(242, 247, 255, 0.38);
}

:root[data-theme="dark"] .switch-theme[data-state="on"] .switch-option-right {
  color: #ffffff;
}


:root[data-theme="dark"] .topbar {
  background: rgba(20, 18, 16, 0.9);
}

:root[data-theme="dark"] .brand-logo {
  filter: brightness(0) invert(1);
}

:root[data-theme="dark"] .hero,
:root[data-theme="dark"] .intro,
:root[data-theme="dark"] .card,
:root[data-theme="dark"] .price-box,
:root[data-theme="dark"] .contact,
:root[data-theme="dark"] .hero-card,
:root[data-theme="dark"] .hero-quote,
:root[data-theme="dark"] .portrait,
:root[data-theme="dark"] .service-nav a,
:root[data-theme="dark"] .service-btn,
:root[data-theme="dark"] .slot,
:root[data-theme="dark"] input,
:root[data-theme="dark"] textarea {
  background: #221e1b;
  border-color: var(--line);
  color: var(--text);
}

:root[data-theme="dark"] .service-btn[disabled],
:root[data-theme="dark"] .slot[disabled] {
  background: #2a2521;
  color: #9f8f84;
}

:root[data-theme="dark"] .service-btn.active {
  color: #fff;
}

:root[data-theme="dark"] .placeholder {
  border-color: #69584c;
  background: linear-gradient(135deg, #2f2621 0%, #241f1b 45%, #2d2520 100%);
  color: #d7c3b5;
}

:root[data-theme="dark"] .hero-home:not(.hero-cover) {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

/* Restore background properties reset by the .hero shorthand above */
:root[data-theme="dark"] .hero-cover {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: right center;
}

:root[data-theme="dark"] .btn-alt {
  border-color: #6f6056;
  color: var(--text);
}

:root[data-theme="dark"] .service-nav a.active {
  background: #3a2c24;
  color: #f3d6c7;
}

:root[data-theme="dark"] .contact-link {
  color: #f1d7c6;
  text-decoration-color: rgba(241, 215, 198, 0.5);
}

:root[data-theme="dark"] .contact-link:hover {
  color: #ffd9c5;
  text-decoration-color: currentColor;
}

:root[data-theme="dark"] .menu-toggle {
  background: rgba(33, 29, 26, 0.96);
  border-color: #5a4d44;
  color: var(--text, #f0e6dc);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
}

:root[data-theme="dark"] .contact li.address-item,
:root[data-theme="dark"] .contact-address {
  color: var(--muted);
}

:root[data-theme="dark"] .eyebrow {
  background: #2f4438;
  color: #c8ead8;
}

:root[data-theme="dark"] .tag-main {
  background: #4f352a;
  color: #ffd8c5;
}

:root[data-theme="dark"] .tag-secondary {
  background: #3b3530;
  color: #dbcfc6;
}

:root[data-theme="dark"] .mono {
  background: #2b2521;
  border-color: #5a4d44;
}

:root[data-theme="dark"] .contact iframe {
  filter: grayscale(0.05) brightness(0.82) contrast(1.08);
}

.global-reveal {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition:
    opacity 620ms ease,
    transform 620ms cubic-bezier(0.2, 0.78, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.global-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem 1rem;
  padding: 0.9rem 0;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
}

.legal-links a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: rgba(111, 99, 91, 0.45);
}

.legal-links a:hover {
  text-decoration-color: currentColor;
}

:root[data-theme="dark"] .legal-links a {
  text-decoration-color: rgba(196, 179, 166, 0.42);
}

@media (prefers-reduced-motion: reduce) {
  .global-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 700px) {
  .topbar-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    position: relative;
  }

  .brand {
    align-self: flex-start;
    max-width: calc(100% - 68px);
  }

  .brand-note {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .topbar-actions,
  .top-actions {
    position: absolute;
    top: calc(100% + 0.55rem);
    left: 0;
    right: 0;
    z-index: 30;
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--line, #ebdfd6);
    border-radius: 18px;
    background: rgba(255, 250, 245, 0.98);
    box-shadow: var(--shadow, 0 18px 40px rgba(51, 33, 20, 0.08));
    gap: 0.9rem;
  }

  .topbar.is-menu-open .topbar-actions,
  .topbar.is-menu-open .top-actions {
    display: flex;
  }

  .topbar-actions .nav,
  .topbar-actions .topnav,
  .top-actions .nav,
  .top-actions .topnav {
    display: grid;
    gap: 0.7rem;
    width: 100%;
    justify-items: start;
  }

  .topbar-actions .nav a,
  .topbar-actions .topnav a,
  .top-actions .nav a,
  .top-actions .topnav a {
    display: block;
    width: 100%;
    font-size: 1rem;
    line-height: 1.35;
  }

  .topbar-actions > :not(.nav):not(.topnav),
  .top-actions > :not(.nav):not(.topnav) {
    align-self: flex-start;
  }

  .topbar-actions > [data-theme-toggle],
  .top-actions > [data-theme-toggle] {
    margin-top: -0.1rem;
  }

  .topbar.is-menu-open .menu-toggle-icon::before {
    top: 5px;
    transform: rotate(45deg);
  }

  .topbar.is-menu-open .menu-toggle-icon span {
    opacity: 0;
  }

  .topbar.is-menu-open .menu-toggle-icon::after {
    top: 5px;
    transform: rotate(-45deg);
  }

  :root[data-theme="dark"] .topbar-actions,
  :root[data-theme="dark"] .top-actions {
    background: rgba(30, 26, 23, 0.98);
  }

  .contact {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .contact-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, max-content));
    justify-content: start;
  }

  .contact-actions .btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  .footer-meta {
    align-items: flex-start;
    flex-direction: column;
  }
}

footer {
  border-top: 1px solid var(--line, #ebdfd6);
  backdrop-filter: blur(8px);
  background: rgba(255, 250, 245, 0.86);
  font-size: 0.86rem;
  color: #77695f;
  padding: 1.8rem 0 2.4rem;
}

:root[data-theme="dark"] footer {
  background: rgba(20, 18, 16, 0.9);
  color: #a89588;
  border-color: var(--line, #433a34);
}

.shape {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(2px);
  opacity: 0.45;
  pointer-events: none;
}

.shape-1 {
  width: 360px;
  height: 360px;
  background: #efcfb9;
  left: -120px;
  bottom: 10%;
}

.shape-2 {
  width: 280px;
  height: 280px;
  background: #d7e1d8;
  right: -70px;
  top: 20%;
}

