/* ═══════════════════════════════════════════════════════
   SØMĀRA — shared stylesheet
   Density: stone, bone, water, dust, hands.
   No sacred geometry. No energy aesthetics. No glow.
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Lora:ital,wght@0,400;0,500;1,400;1,500&family=Jost:wght@300;400&display=swap');

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

:root {
  --bg:       #181410;
  --bg-deep:  #14100B;
  --gold:     #C4A882;   /* lines and accents only */
  --gold-lt:  #D8C8A8;
  --gold-txt: #EBD9B8;   /* beige TEXT needs to be much brighter than beige lines */
  --white:    #F7F3EC;
  --muted:    #C0B49C;
  --line:     rgba(196,168,130,0.20);

  /* Cormorant carries the display weight. Lora carries the reading,
     because Cormorant's thin strokes break down over photographs. */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Lora', Georgia, serif;

  /* Warm dark brown, never black. Used for the overlay and the cards. */
  --brown:      36, 26, 17;
  --brown-deep: 24, 17, 11;

  --panel:    rgba(36,26,17,0.62);

  /* Set per page. Lower = more photograph showing through. */
  --page-image: none;
  --overlay: 0.50;
}

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

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 400;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.75;
}

/* ── BACKGROUND LAYER ────────────────────────────────── */
/* Image sits behind everything, heavily darkened so type
   stays legible. Falls back to a plain vignette when no
   image is set, so pages work before the art arrives.    */

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--page-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* Pulls bright or green-heavy photographs toward the earthen palette
     so five different images still read as one place. */
  filter: saturate(0.62) brightness(0.98) contrast(1.03) sepia(0.16);
}

.bg-layer::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 42%,
      rgba(var(--brown), 0.18) 0%,
      rgba(var(--brown-deep), 0.78) 82%),
    rgba(var(--brown), var(--overlay));
}

/* Film grain — real texture, not decoration */
.bg-layer::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* ── LAYOUT ──────────────────────────────────────────── */

.page {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 0 auto;
  padding: 64px 26px 72px;
  /* Lets the overlay stay light enough to see the photograph
     while keeping type readable over the busy parts. */
  text-shadow: 0 1px 2px rgba(var(--brown-deep), 0.95),
               0 0 18px rgba(var(--brown-deep), 0.55);
}

section { margin-bottom: 60px; }

/* ── TYPE ────────────────────────────────────────────── */

.brand {
  font-family: var(--font-display);
  font-size: clamp(46px, 12vw, 82px);
  font-weight: 500;
  letter-spacing: 0.26em;
  line-height: 1;
  text-align: center;
  text-indent: 0.26em;
  margin-bottom: 26px;
}

.eyebrow {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold-txt);
  margin-bottom: 16px;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 9vw, 56px);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: 0.01em;
  margin-bottom: 30px;
}

h2 {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold-txt);
  margin-bottom: 22px;
}

h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 6px;
  line-height: 1.3;
}

p { font-size: 18px; margin-bottom: 20px; color: #F0EAE0; }
p:last-child { margin-bottom: 0; }

.lead {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  font-style: italic;
  color: var(--white);
  line-height: 1.55;
}

.tagline {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  font-style: italic;
  text-align: center;
  color: var(--white);
  max-width: 460px;
  margin: 0 auto;
}

em { font-style: italic; }
strong { font-weight: 400; color: var(--white); }

/* ── RULES ───────────────────────────────────────────── */

.rule {
  height: 1px;
  width: 100%;
  max-width: 200px;
  margin: 0 auto 40px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  opacity: 0.35;
}

.rule.tight { margin-bottom: 26px; }

/* ── SERVICE CARDS ───────────────────────────────────── */

.cards { display: flex; flex-direction: column; gap: 14px; }

.card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 30px 30px 28px;
  transition: border-color .35s ease, background .35s ease, transform .25s ease;
}

.card:hover {
  border-color: rgba(196,168,130,0.5);
  background: rgba(40,34,24,0.7);
  transform: translateY(-2px);
}

.card .eyebrow { margin-bottom: 10px; }

.card-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 12px;
}

.card-desc {
  font-size: 16.5px;
  color: #E4DCCC;
  line-height: 1.7;
  margin-bottom: 16px;
}

.card-price {
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--gold-txt);
}

/* ── BLOCKS (numbered / listed content) ──────────────── */

.block { margin-bottom: 26px; }
.block:last-child { margin-bottom: 0; }
.block p { font-size: 17.5px; color: #E4DCCC; margin-bottom: 0; }

/* ── PRICE PANEL ─────────────────────────────────────── */

.prices { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 20px 24px;
  text-decoration: none;
  color: inherit;
  transition: border-color .3s ease, background .3s ease;
}

.price-row:hover { border-color: rgba(196,168,130,0.5); background: rgba(40,34,24,0.7); }

.price-label { font-family: var(--font-display); font-size: 21px; font-weight: 500; color: var(--white); }
.price-note { display: block; font-size: 14px; font-style: italic; color: #D6CBB6; }
.price-amount {
  font-family: 'Jost', sans-serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--gold-txt);
  white-space: nowrap;
}

/* ── BUTTONS ─────────────────────────────────────────── */

.btn {
  display: inline-block;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bg);
  background: var(--gold);
  padding: 15px 34px;
  transition: background .3s ease, transform .25s ease;
}
.btn:hover { background: var(--gold-lt); transform: translateY(-1px); }

.btn-ghost {
  color: var(--gold);
  background: none;
  border: 1px solid rgba(196,168,130,0.45);
}
.btn-ghost:hover { background: rgba(196,168,130,0.1); color: var(--gold-lt); }

.center { text-align: center; }

/* ── CLOSING PASSAGE ─────────────────────────────────── */

.close-passage {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 500;
  font-style: italic;
  line-height: 1.55;
  color: var(--white);
  text-align: center;
  max-width: 480px;
  margin: 0 auto 34px;
}

/* ── CALL STRIP ──────────────────────────────────────── */

.call-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 42px 0;
  text-align: center;
  margin-bottom: 56px;
}
.call-strip h3 { font-size: 27px; margin-bottom: 12px; }
.call-strip p { font-size: 17px; font-style: italic; color: #E4DCCC; max-width: 380px; margin: 0 auto 26px; }

/* ── LETTERS ─────────────────────────────────────────── */

.letters { text-align: center; margin-bottom: 52px; }
.letters h3 { font-size: 24px; margin-bottom: 10px; }
.letters p {
  font-size: 16px; font-style: italic; color: #E4DCCC;
  max-width: 400px; margin: 0 auto 22px;
}

.letters-form {
  display: flex;
  gap: 8px;
  max-width: 400px;
  margin: 0 auto;
}

.letters-form input {
  flex: 1;
  min-width: 0;
  background: rgba(14,11,8,0.6);
  border: 1px solid var(--line);
  color: var(--white);
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 14px 16px;
  outline: none;
  transition: border-color .3s ease;
}
.letters-form input:focus { border-color: rgba(196,168,130,0.55); }
.letters-form input::placeholder { color: var(--muted); opacity: 0.7; }

.letters-form button {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--gold);
  border: none;
  padding: 14px 22px;
  cursor: pointer;
  transition: background .3s ease;
}
.letters-form button:hover { background: var(--gold-lt); }

/* ── NAV / BACK ──────────────────────────────────────── */

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 620px;
  margin: 0 auto;
  padding: 20px 26px 0;
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.topbar a { color: #DCD2C0; text-decoration: none; transition: color .25s; }
.topbar a:hover { color: var(--gold-txt); }

.lang { display: flex; align-items: center; gap: 5px; }
.lang button {
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: inherit; letter-spacing: inherit;
  text-transform: uppercase; color: #BFB4A0; padding: 4px 2px;
  transition: color .25s;
}
.lang button.active { color: var(--gold-txt); }
.lang span { color: #8A8070; }

/* ── FOOTER ──────────────────────────────────────────── */

.social { text-align: center; margin-bottom: 34px; }
.social-row { display: flex; justify-content: center; gap: 34px; }
.social a {
  font-family: 'Jost', sans-serif;
  font-size: 12px; font-weight: 400; letter-spacing: 0.24em; text-transform: uppercase;
  color: #E4DCCC; text-decoration: none;
  padding-bottom: 3px; border-bottom: 1px solid transparent;
  transition: color .3s, border-color .3s;
}
.social a:hover { color: var(--gold-txt); border-color: var(--gold); }

footer {
  font-family: 'Jost', sans-serif;
  font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase;
  color: #A99E8B; text-align: center;
}

/* ── LANGUAGE SWITCHING ──────────────────────────────── */

html[data-lang="en"] [lang="es"] { display: none !important; }
html[data-lang="es"] [lang="en"] { display: none !important; }

/* ── MOBILE ──────────────────────────────────────────── */

@media (max-width: 640px) {
  .page { padding: 48px 22px 60px; }
  p { font-size: 17.5px; }
  .lead { font-size: 22px; }
  .tagline { font-size: 20px; }
  .card { padding: 26px 22px 24px; }
  .card-title { font-size: 26px; }
  .card-desc { font-size: 16px; }
  .price-row { flex-direction: column; gap: 8px; }
  .close-passage { font-size: 19px; }
  .letters-form { flex-direction: column; }
}
