/* ─── Design Tokens ─────────────────────────────────────────── */
:root {
  --bg:        #f7f5f0;
  --bg-dark:   #1a1a18;
  --ink:        #1a1a18;
  --ink-mid:    #5a5a52;
  --ink-faint:  #9a9a8e;
  --rule:       rgba(26, 26, 24, 0.12);
  --accent:     #b5893a;
  --accent-2:   #d4a853;
  --white:      #ffffff;
  --radius:     4px;
  --radius-lg:  12px;
  --container:  1120px;
  --serif:      'Playfair Display', Georgia, serif;
  --sans:       'DM Sans', system-ui, sans-serif;
  --transition: 0.22s ease;
}

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

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

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(var(--container), calc(100% - 3rem));
  margin: 0 auto;
}

/* ─── Header ─────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 68px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  border-radius: 6px;
  flex-shrink: 0;
}

.brand-mark.sm { width: 30px; height: 30px; font-size: 0.65rem; }

.brand-text {
  font-size: 0.95rem;
  color: var(--ink);
}

.nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0;
}

.nav a {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--ink-mid);
  letter-spacing: 0.02em;
  transition: color var(--transition);
}

.nav a:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink);
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

/* ─── Labels ─────────────────────────────────────────────────── */
.label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.label-light { color: var(--accent-2); }

/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
  padding: 7rem 0 4rem;
  animation: fadeUp 0.8s ease both;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: end;
  padding-bottom: 4rem;
}

h1 {
  font-family: var(--serif);
  font-size: clamp(3rem, 5.5vw, 5.2rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
}

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

h2 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h3 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 0.5rem;
}

.hero-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  grid-column: 1 / -1;
}

.hero-sub p {
  color: var(--ink-mid);
  font-size: 1.05rem;
  max-width: 42ch;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-rule {
  height: 1px;
  background: var(--rule);
}

.hero-caps {
  display: flex;
  gap: 2.5rem;
  padding: 1.5rem 0;
  flex-wrap: wrap;
}

.hero-caps span {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 1.5rem;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}

.btn-primary:hover {
  background: #333330;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-mid);
  border: 1px solid var(--rule);
}

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

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 1.5rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.85);
  transition: all var(--transition);
}

.btn-outline-light:hover {
  border-color: rgba(255,255,255,0.6);
  color: white;
}

/* ─── Sections ───────────────────────────────────────────────── */
.section { padding: 6rem 0; }

.section-header {
  margin-bottom: 3.5rem;
}

/* ─── Services ───────────────────────────────────────────────── */
.services-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
}

.service-item {
  display: flex;
  gap: 1.5rem;
  padding: 2.25rem 2rem 2.25rem 0;
  border-bottom: 1px solid var(--rule);
  transition: background var(--transition);
}

.service-item:nth-child(odd) {
  border-right: 1px solid var(--rule);
  padding-right: 3rem;
}

.service-item:nth-child(even) {
  padding-left: 3rem;
}

.service-item:hover {
  background: rgba(26, 26, 24, 0.02);
}

.service-num {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  padding-top: 0.15rem;
  flex-shrink: 0;
}

.service-body h3 {
  margin-bottom: 0.5rem;
}

.service-body p {
  font-size: 0.92rem;
  color: var(--ink-mid);
  line-height: 1.65;
}

/* ─── About (dark) ───────────────────────────────────────────── */
.section-dark {
  background: var(--bg-dark);
  color: var(--white);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-left h2 {
  color: var(--white);
  max-width: 16ch;
}

.about-right p {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

/* ─── Contact ────────────────────────────────────────────────── */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
}

.contact-left h2 {
  margin-bottom: 1rem;
}

.contact-left p {
  color: var(--ink-mid);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.contact-email {
  display: inline-block;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: opacity var(--transition);
}

.contact-email:hover { opacity: 0.7; }

/* ─── Form ───────────────────────────────────────────────────── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-mid);
}

input, textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  transition: border-color var(--transition);
}

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

input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
}

textarea { resize: vertical; }

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-status {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  background: var(--white);
  font-size: 0.9rem;
  color: var(--ink-mid);
  display: none;
  margin-bottom: 0.5rem;
}

.form-status.visible { display: block; }

/* ─── Footer ─────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 2.5rem 0;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-left strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
}

.footer-left p {
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--ink-mid);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--ink); }

/* ─── Legal pages ────────────────────────────────────────────── */
.legal-page {
  min-height: 100vh;
  padding: 5rem 0;
}

.legal-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 720px;
}

.legal-card-narrow { max-width: 640px; }

.legal-card h1 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin: 0.5rem 0 1.25rem;
}

.legal-card p {
  color: var(--ink-mid);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.legal-note {
  font-size: 0.82rem;
  color: var(--ink-faint) !important;
  margin-top: 1.5rem;
}

.details-list {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.details-item {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1rem;
}

.details-item span {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.3rem;
}

.details-item strong {
  font-size: 0.95rem;
  font-weight: 500;
}

.details-item a { color: var(--accent); }

/* ─── Animations ─────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.section {
  animation: fadeUp 0.7s ease both;
  animation-play-state: paused;
}

.section.visible {
  animation-play-state: running;
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner,
  .about-inner,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .services-list {
    grid-template-columns: 1fr;
  }

  .service-item:nth-child(odd),
  .service-item:nth-child(even) {
    padding: 2rem 0;
    border-right: none;
  }

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

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

  .nav ul {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 1rem;
    width: min(240px, calc(100vw - 2rem));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border: 1px solid var(--rule);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  }

  .nav ul.open { display: flex; }
  .nav li + li { border-top: 1px solid var(--rule); }
  .nav ul a { display: block; padding: 0.9rem 1.2rem; }

  .hero { padding: 4rem 0 2.5rem; }
  .section { padding: 4rem 0; }

  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
}
