/* ─── RESET & BASE ──────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --bg:    #f5f5f5;
  --card:  #ffffff;
  --text:  #161616;
  --muted: #878787;
  --sep:   rgba(22, 22, 22, 0.08);
  --font:  'Roboto', system-ui, sans-serif;
  --ease:  cubic-bezier(0.32, 0.72, 0, 1);
  --shadow: rgba(0, 0, 0, 0.05) 0px 13px 21px 0px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}

a      { text-decoration: none; color: inherit; }
button { background: none; border: none; font-family: var(--font); color: inherit; cursor: pointer; }

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

/* ─── PAGE ──────────────────────────────────────────────────── */
.page {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 13px 0;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  justify-content: center;
}

@keyframes revealUp {
  from { transform: translateY(105%); }
  to   { transform: translateY(0); }
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ─── BRAND ─────────────────────────────────────────────────── */
.brand {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin: 55px 0;
}

.brand-name {
  font-size: 2.25rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  line-height: 1.1;
  padding-left: 0.42em;
  overflow: hidden;
}

.brand-name span {
  display: block;
  animation: revealUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}

.brand-sub {
  font-size: 0.54rem;
  font-weight: 300;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  padding-left: 0.32em;
  animation: fadeIn 0.7s ease 0.45s both;
}

/* ─── LINKS ─────────────────────────────────────────────────── */
.links {
  display: flex;
  flex-direction: column;
  padding: 0 21px;
  margin: 13px 0;
}

/* staggered entrance */
.links > *:nth-child(1) { animation: fadeSlide 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.22s both; }
.links > *:nth-child(2) { animation: fadeSlide 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.30s both; }
.links > *:nth-child(3) { animation: fadeSlide 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.38s both; }
.links > *:nth-child(4) { animation: fadeSlide 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.46s both; }
.links > *:nth-child(5) { animation: fadeSlide 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.54s both; }

.link-card {
  display: block;
  background: var(--card);
  padding: 17px 13px;
  margin-bottom: 21px;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: normal;
  border-radius: 4px;
  border: 1px solid transparent;
  box-shadow: var(--shadow);
  width: 100%;
  color: var(--text);
  transition: box-shadow 0.2s ease, background 0.2s ease;
  position: relative;
  min-height: 57px;
  display: flex;
  align-items: center;
}

.link-card:hover {
  background: #fafafa;
  box-shadow: rgba(0, 0, 0, 0.09) 0px 13px 21px 0px;
}

.link-card:active {
  background: #efefef;
  box-shadow: rgba(0, 0, 0, 0.03) 0px 4px 8px 0px;
  transition-duration: 0.08s;
}

/* services toggle */
.link-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  line-height: normal;
  padding: 17px 13px;
  min-height: 57px;
}

.link-toggle span:first-child {
  flex: 1;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 400;
}

.chevron {
  font-size: 1.05rem;
  color: var(--muted);
  transition: transform 0.3s var(--ease);
  line-height: 1;
  flex-shrink: 0;
}

.link-toggle[aria-expanded="true"] .chevron {
  transform: rotate(90deg);
}

/* ─── SERVICES DRAWER ───────────────────────────────────────── */
.link-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 21px;
}

.link-group > .link-card {
  margin-bottom: 0;
  border-radius: 4px 4px 0 0;
  line-height: normal;
}

.services-drawer {
  background: var(--card);
  overflow: hidden;
  max-height: 0;
  border-radius: 0 0 4px 4px;
  box-shadow: var(--shadow);
  transition: max-height 0.4s var(--ease);
}

.services-drawer[aria-hidden="false"] {
  max-height: 200px;
}

.service-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 13px;
  border-top: 1px solid var(--sep);
  font-size: 0.8125rem;
  font-weight: 300;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.services-drawer[aria-hidden="false"] .service-row {
  opacity: 1;
  transform: translateY(0);
}

.services-drawer[aria-hidden="false"] .service-row:nth-child(1) { transition-delay: 0.06s; }
.services-drawer[aria-hidden="false"] .service-row:nth-child(2) { transition-delay: 0.12s; }
.services-drawer[aria-hidden="false"] .service-row:nth-child(3) { transition-delay: 0.18s; }

.svc-price {
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

/* ─── FOOTER ────────────────────────────────────────────────── */
.info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 0 21px;
  margin: 8px 0 55px;
  animation: fadeIn 0.7s ease 0.65s both;
}

.address {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.powered-by {
  position: fixed;
  bottom: 1.25rem;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--muted);
  opacity: 0.4;
  text-transform: uppercase;
}

.lang-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.58rem;
  color: var(--muted);
  user-select: none;
}

.lang-btn {
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--muted);
  opacity: 0.4;
  padding: 6px 3px;
  transition: opacity 0.2s ease;
  touch-action: manipulation;
}

.lang-btn.active,
.lang-btn:hover { opacity: 1; }

/* ─── GALLERY OVERLAY ───────────────────────────────────────── */
.gallery-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 21px 21px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  overflow-y: auto;
}

.gallery-overlay[aria-hidden="false"] {
  opacity: 1;
  pointer-events: all;
}

.gallery-close {
  position: fixed;
  top: 18px;
  right: 21px;
  font-size: 1rem;
  color: var(--muted);
  padding: 8px;
  z-index: 101;
  transition: color 0.2s ease;
}

.gallery-close:hover { color: var(--text); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  width: 100%;
  max-width: 460px;
}

.gallery-thumb {
  aspect-ratio: 2/3;
  overflow: hidden;
  border-radius: 4px;
  display: block;
  padding: 0;
  cursor: pointer;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s var(--ease);
  display: block;
}

.gallery-thumb:hover img { transform: scale(1.04); }

/* ─── LIGHTBOX ───────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox[aria-hidden="false"] {
  opacity: 1;
  pointer-events: all;
}

.lightbox-viewport {
  position: relative;
  overflow: hidden;
  width: 92vw;
  height: 90dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 92vw;
  max-height: 90dvh;
  object-fit: contain;
  border-radius: 4px;
  position: absolute;
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 21px;
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  padding: 8px;
  z-index: 201;
  transition: color 0.2s ease;
}

.lightbox-close:hover { color: #fff; }

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 2.5rem;
  padding: 12px 18px;
  z-index: 201;
  line-height: 1;
  transition: color 0.2s ease;
  user-select: none;
}

.lightbox-nav:hover { color: #fff; }
.lightbox-prev { left: 8px; }
.lightbox-next { right: 8px; }

/* ─── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 420px) {
  .brand-name { font-size: 1.85rem; }
  .links      { padding: 0 13px; }
}

@media (pointer: coarse) {
  .link-card { min-height: 58px; }
}
