/* ── Design tokens ──────────────────────────────────────────── */
:root {
  /* Colors — OKLCH for perceptual uniformity */
  --header-bg:  oklch(14% 0.016 48);    /* near-black warm brown */
  --cream-0:    oklch(97% 0.010 75);    /* page background */
  --cream-1:    oklch(93% 0.018 72);    /* card / section surface */
  --cream-2:    oklch(87% 0.025 70);    /* borders, dividers */
  --amber:      oklch(72% 0.14  65);    /* primary brand accent */
  --amber-deep: oklch(58% 0.12  58);    /* hover / darker amber */
  --ink:        oklch(16% 0.018 50);    /* primary text */
  --ink-mid:    oklch(40% 0.016 50);    /* secondary text */
  --ink-muted:  oklch(62% 0.010 50);    /* placeholders, fine print */

  /* Spacing — 4pt scale with semantic names */
  --space-1:   4px;
  --space-2:   8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  24px;
  --space-6:  32px;
  --space-7:  48px;
  --space-8:  64px;
  --space-9:  96px;
  --space-10: 128px;

  /* Easing curves */
  --ease-out:   cubic-bezier(0.23, 1, 0.32, 1);
  --ease-inout: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-modal: cubic-bezier(0.32, 0.72, 0, 1);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Jost', system-ui, sans-serif;
  background-color: var(--cream-0);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, .logo-text, .footer-brand {
  font-family: 'Gilda Display', Georgia, serif;
}

h1 {
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.12;
  font-weight: 400;
}

h3 {
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.3;
}

em {
  font-style: italic;
  color: var(--amber);
}

/* ── Scroll reveal ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ── Eyebrow label ──────────────────────────────────────────── */
.eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--amber);
}

/* ── Header ─────────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) clamp(var(--space-5), 6vw, var(--space-8));
  background-color: var(--header-bg);
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.logo-img {
  height: 44px;
  width: auto;
  /* makes the logo's black background invisible against the dark header */
  mix-blend-mode: screen;
}

.logo-text {
  font-size: 1.25rem;
  color: oklch(92% 0.010 75);
  letter-spacing: 0.01em;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-7);
}

.nav a {
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: oklch(72% 0.010 75);
  transition: color 160ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .nav a:hover {
    color: var(--amber);
  }
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  padding-top: 72px; /* header height */
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-5);
  padding: var(--space-9) clamp(var(--space-6), 8vw, var(--space-10)) var(--space-9) clamp(var(--space-6), 8vw, var(--space-10));
}

.hero-lead {
  color: var(--ink-mid);
  font-size: 1.05rem;
  line-height: 1.72;
  max-width: 44ch;
}

.hero-image-wrap {
  position: relative;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

/* ── CTA button ─────────────────────────────────────────────── */
.cta-btn {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: var(--space-4) var(--space-7);
  background-color: var(--amber);
  color: oklch(14% 0.016 48);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background-color 180ms var(--ease-out), transform 160ms var(--ease-out);
}

.cta-btn:active {
  transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
  .cta-btn:hover {
    background-color: var(--amber-deep);
    color: oklch(97% 0.010 75);
  }
}

/* ── Services section ───────────────────────────────────────── */
.services-section {
  padding: var(--space-10) clamp(var(--space-5), 8vw, var(--space-10));
}

.section-head {
  margin-bottom: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.services-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-5);
}

/* ── Service card ───────────────────────────────────────────── */
.service-card {
  width: 100%;
  max-width: 320px;
  cursor: pointer;
  background-color: var(--cream-1);
  border-radius: 3px;
  overflow: hidden;
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}

.service-card:active {
  transform: scale(0.98);
}

@media (hover: hover) and (pointer: fine) {
  .service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 48px oklch(14% 0.016 48 / 0.12);
  }

  .service-card:hover .card-img-wrap img {
    transform: scale(1.05);
  }
}

.card-img-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms var(--ease-out);
}

.card-body {
  padding: var(--space-5) var(--space-5) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.card-body h3 {
  color: var(--ink);
}

.card-price {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--amber-deep);
}

/* ── Contact section ────────────────────────────────────────── */
.contact-section {
  background-color: var(--cream-1);
  padding: var(--space-10) clamp(var(--space-5), 8vw, var(--space-10));
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: clamp(var(--space-7), 8vw, var(--space-10));
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

.contact-lead {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding-top: var(--space-2);
}

.contact-lead p {
  color: var(--ink-mid);
  line-height: 1.78;
  font-size: 0.95rem;
  max-width: 34ch;
}

/* ── Contact form ───────────────────────────────────────────── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mid);
}

.field-optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink-muted);
  font-size: 0.72rem;
}

input,
textarea {
  width: 100%;
  padding: var(--space-4) var(--space-4);
  background-color: var(--cream-0);
  border: 1px solid var(--cream-2);
  border-radius: 2px;
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 0.95rem;
  color: var(--ink);
  appearance: none;
  transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}

input::placeholder,
textarea::placeholder {
  color: var(--ink-muted);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px oklch(72% 0.14 65 / 0.18);
}

textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.65;
}

.form-footer {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.submit-btn {
  padding: var(--space-4) var(--space-7);
  background-color: var(--ink);
  color: var(--cream-0);
  border: none;
  border-radius: 2px;
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 180ms var(--ease-out), transform 160ms var(--ease-out);
}

.submit-btn:active {
  transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
  .submit-btn:hover {
    background-color: var(--amber);
    color: oklch(14% 0.016 48);
  }
}

.form-status {
  font-size: 0.875rem;
  color: oklch(52% 0.12 150);
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background-color: var(--header-bg);
  padding: var(--space-8) clamp(var(--space-5), 8vw, var(--space-10));
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-brand {
  font-size: 1.1rem;
  color: oklch(92% 0.010 75);
}

.footer-copy {
  font-size: 0.78rem;
  color: oklch(50% 0.010 75);
}

.footer-links {
  display: flex;
  gap: var(--space-6);
}

.footer-links a {
  text-decoration: none;
  font-size: 0.78rem;
  color: oklch(50% 0.010 75);
  transition: color 160ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .footer-links a:hover {
    color: var(--amber);
  }
}

/* ── Modal ──────────────────────────────────────────────────── */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background-color: oklch(14% 0.016 48 / 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  background-color: var(--cream-0);
  max-width: 940px;
  width: 100%;
  height: auto;
  max-height: 90vh;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: modalIn 360ms var(--ease-modal) both;
}

.modal.is-closing .modal-panel {
  animation: modalOut 200ms var(--ease-out) both;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes modalOut {
  from { opacity: 1; transform: scale(1); }
  to   { opacity: 0; transform: scale(0.96); }
}

.modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  z-index: 10;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: oklch(14% 0.016 48 / 0.07);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: var(--ink);
  transition: background-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}

.modal-close:active { transform: scale(0.90); }

@media (hover: hover) and (pointer: fine) {
  .modal-close:hover { background-color: oklch(14% 0.016 48 / 0.13); }
}

.modal-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  height: 100%;
  min-height: 0;
}

.modal-img {
  background-size: cover;
  background-position: center;
  min-height: 300px;
}

.modal-info {
  padding: var(--space-7);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

#modalTitle {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--ink);
  line-height: 1.2;
}

#modalDescription {
  color: var(--ink-mid);
  line-height: 1.7;
  font-size: 0.95rem;
  white-space: pre-wrap;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  padding-right: var(--space-3);
  scrollbar-width: thin;
  scrollbar-color: var(--cream-2) transparent;
}

#modalDescription::-webkit-scrollbar {
  width: 6px;
}

#modalDescription::-webkit-scrollbar-track {
  background: transparent;
}

#modalDescription::-webkit-scrollbar-thumb {
  background-color: var(--cream-2);
  border-radius: 10px;
}

.modal-price {
  font-family: 'Gilda Display', Georgia, serif;
  font-size: 1.6rem;
  color: var(--amber-deep);
  line-height: 1;
  margin-top: auto;
}

.back-btn {
  align-self: flex-start;
  padding: var(--space-3) var(--space-6);
  background-color: transparent;
  border: 1px solid var(--cream-2);
  border-radius: 2px;
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mid);
  cursor: pointer;
  transition: all 160ms var(--ease-out);
}

.back-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-image-wrap {
    height: 50vw;
    min-height: 320px;
    order: -1;
  }

  .hero-img {
    position: static;
    width: 100%;
    height: 100%;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: var(--space-7);
  }

  .contact-lead p {
    max-width: 100%;
  }

  .modal-layout {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .modal-img {
    height: 240px;
    min-height: 240px;
  }

  .modal-info {
    height: auto;
    overflow: visible;
    padding: var(--space-6);
  }

  #modalDescription {
    overflow-y: visible;
    flex: none;
  }
}

@media (max-width: 860px) {
  .services-grid {
  max-width: 1100px;
  margin: 0 auto;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .nav {
    display: none;
  }

  .hero-content {
    padding: var(--space-8) var(--space-5);
  }

  .services-section {
    padding: var(--space-9) var(--space-5);
  }

  .services-grid {
  max-width: 1100px;
  margin: 0 auto;
    grid-template-columns: 1fr;
  }

  .contact-section {
    padding: var(--space-9) var(--space-5);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
    text-align: center;
    padding: var(--space-7) var(--space-5);
  }

  .modal-info {
    padding: var(--space-6);
  }
}

/* ── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: opacity 0.3s ease;
    transform: none;
  }

  .service-card,
  .cta-btn,
  .submit-btn,
  .back-btn,
  .modal-close {
    transition: none;
  }

  .card-img-wrap img {
    transition: none;
  }

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

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

/* ── Language Switcher ─────────────────────────────────────── */
.lang-switcher {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  margin-left: var(--space-4);
}

.lang-btn {
  background: transparent;
  border: 1px solid var(--cream-2);
  color: oklch(72% 0.010 75);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 2px;
  transition: all 160ms var(--ease-out);
  text-transform: uppercase;
}

.lang-btn.is-active {
  background-color: var(--amber);
  border-color: var(--amber);
  color: oklch(14% 0.016 48);
}

@media (hover: hover) and (pointer: fine) {
  .lang-btn:hover:not(.is-active) {
    border-color: var(--amber);
    color: var(--amber);
  }
}
