/* ============================================================
   Karolina Pogodina — Luxury Real Estate (redesign)
   Cormorant Garamond + Jost · deep green / cream / gold
   Mobile-first, responsive. Desktop max-width 1280.
   ============================================================ */

:root {
  --cream: #EFEBE0;
  --paper: #F5F2EA;
  --green-deep: #122720;   /* dark sections */
  --ink: #183029;          /* primary text on light */
  --green-text: #3c554c;   /* secondary text on light */
  --green-soft: #5c7268;   /* footer text */
  --gold: #B49A6A;
  --gold-dark: #977f52;
  --on-dark: #F5F2EA;
  --on-dark-soft: #c3d0c9;
  --line-dark: rgba(245,242,234,.16);
  --line-light: rgba(24,48,41,.14);

  --ff-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --ff-sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --pad-x: 22px;
  --sec-y: 68px;
  --maxw: 1280px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--ff-sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold); }

.page { max-width: var(--maxw); margin: 0 auto; overflow: hidden; }
.wrap { padding-left: var(--pad-x); padding-right: var(--pad-x); }

.eyebrow {
  font-family: var(--ff-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.serif { font-family: var(--ff-serif); font-weight: 300; }

/* ---------------- NAV ---------------- */
.nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 24px var(--pad-x) 8px;
  text-align: center;
}
.brand { display: flex; flex-direction: column; align-items: center; line-height: 1; order: -1; }
.brand-name { font-family: var(--ff-serif); font-weight: 400; font-size: 22px; letter-spacing: .15em; white-space: nowrap; }
.brand-role { font-size: 8.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-dark); margin-top: 8px; }
.nav-side {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 18px;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--green-text);
}
.lang-toggle {
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink); border: 1px solid rgba(24,48,41,.3);
  padding: 6px 11px; background: none; cursor: pointer;
}
.lang-toggle:hover { border-color: var(--gold); color: var(--gold); }

/* ---------------- HERO ---------------- */
.hero { text-align: center; padding: 40px var(--pad-x) 30px; }
.hero-eyebrow { letter-spacing: .38em; margin-bottom: 22px; }
.hero-title {
  font-family: var(--ff-serif); font-weight: 300;
  font-size: clamp(38px, 9vw, 96px);
  line-height: 1.03;
  margin: 0 auto;
  max-width: 16ch;
}
.hero-sub {
  font-size: clamp(15px, 4vw, 18px);
  line-height: 1.7; color: var(--green-text);
  max-width: 560px; margin: 26px auto 32px;
}
.hero-cta { display: flex; flex-direction: column; gap: 12px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--ff-sans); font-size: 12px; font-weight: 400;
  letter-spacing: .16em; text-transform: uppercase;
  padding: 15px 30px; cursor: pointer; text-align: center; line-height: 1.2;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.btn-dark { background: var(--green-deep); color: var(--paper); border: 1px solid var(--green-deep); }
.btn-dark:hover { background: #0c1c16; color: var(--gold); }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid rgba(24,48,41,.4); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); background: rgba(24,48,41,.04); }
.btn-full { width: 100%; }

.hero-media { margin: 30px var(--pad-x) 0; height: clamp(300px, 62vw, 560px); }

/* image placeholder panels (until real photos are supplied) */
.media-ph {
  position: relative; width: 100%; height: 100%;
  background:
    radial-gradient(120% 100% at 50% 0%, #1c3a2e 0%, var(--green-deep) 60%, #0d1f18 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.media-ph::after {
  content: ""; position: absolute; inset: 14px; border: 1px solid rgba(180,154,106,.35);
  pointer-events: none;
}
.media-ph span {
  font-family: var(--ff-serif); font-weight: 300; font-style: italic;
  font-size: clamp(20px, 5vw, 34px); color: var(--gold);
  letter-spacing: .04em; text-align: center; padding: 0 16px; z-index: 1;
}
.media-ph img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------- ABOUT ---------------- */
.about { padding: var(--sec-y) var(--pad-x); display: grid; gap: 34px; }
.about-portrait {
  width: 150px; height: 150px; border-radius: 50%; object-fit: cover;
  border: 1px solid rgba(180,154,106,.5); justify-self: start;
}
.about-title { font-family: var(--ff-serif); font-weight: 300; font-size: clamp(30px, 7vw, 44px); line-height: 1.14; }
.about-body { font-size: clamp(15px, 4vw, 18px); line-height: 1.85; color: var(--green-text); }

/* ---------------- SERVICES ---------------- */
.services { background: var(--green-deep); color: var(--on-dark); padding: var(--sec-y) var(--pad-x); }
.services-eyebrow { color: var(--gold); letter-spacing: .3em; }
.services-title { font-family: var(--ff-serif); font-weight: 300; font-size: clamp(34px, 8vw, 52px); margin: 16px 0 34px; }
.service-row { padding: 26px 0; border-top: 1px solid var(--line-dark); display: grid; gap: 10px; }
.service-no { font-family: var(--ff-serif); font-size: 22px; color: var(--gold); }
.service-title { font-family: var(--ff-serif); font-weight: 400; font-size: clamp(24px, 6vw, 30px); }
.service-desc { font-size: 15px; line-height: 1.75; color: var(--on-dark-soft); }

/* ---------------- LOCATIONS ---------------- */
.locations { padding: var(--sec-y) var(--pad-x); }
.loc-head { text-align: center; margin-bottom: 40px; }
.loc-head .eyebrow { color: var(--gold-dark); letter-spacing: .3em; }
.loc-title { font-family: var(--ff-serif); font-weight: 300; font-size: clamp(34px, 8vw, 52px); margin-top: 14px; }
.loc-grid { display: grid; gap: 34px; }
.loc-media { height: clamp(320px, 78vw, 420px); overflow: hidden; }
.loc-card-body { text-align: center; margin-top: 20px; }
.loc-tag { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.loc-name { font-family: var(--ff-serif); font-weight: 400; font-size: clamp(28px, 7vw, 32px); margin-bottom: 10px; }
.loc-desc { font-size: 15px; line-height: 1.7; color: var(--green-text); max-width: 300px; margin: 0 auto; }

/* ---------------- QUOTE ---------------- */
.quote { text-align: center; padding: 24px var(--pad-x) var(--sec-y); }
.quote p {
  font-family: var(--ff-serif); font-style: italic; font-weight: 400;
  font-size: clamp(26px, 6.5vw, 46px); line-height: 1.3; max-width: 840px; margin: 0 auto;
}

/* ---------------- CONTACT ---------------- */
.contact { text-align: center; padding: 0 var(--pad-x) var(--sec-y); }
.contact-eyebrow { color: var(--gold-dark); letter-spacing: .3em; margin-bottom: 20px; }
.contact-title { font-family: var(--ff-serif); font-weight: 300; font-size: clamp(38px, 9vw, 64px); line-height: 1.04; max-width: 640px; margin: 0 auto 20px; }
.contact-body { font-size: clamp(15px, 4vw, 18px); line-height: 1.7; color: var(--green-text); max-width: 520px; margin: 0 auto 34px; }

.form { max-width: 440px; margin: 0 auto; text-align: left; }
.field { margin-bottom: 14px; }
.input, .textarea {
  width: 100%; font-family: var(--ff-sans); font-size: 15px; font-weight: 300;
  padding: 14px 16px; background: var(--paper); color: var(--ink);
  border: 1px solid rgba(24,48,41,.2); border-radius: 0;
}
.input:focus, .textarea:focus { outline: none; border-color: var(--green-deep); }
.input::placeholder, .textarea::placeholder { color: #9aa79d; }
.textarea { resize: vertical; min-height: 96px; line-height: 1.6; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: #a3402f; font-size: 13px; margin: 4px 0 12px; min-height: 1em; text-align: center; }
.form-msg { font-family: var(--ff-serif); font-style: italic; font-size: clamp(22px, 5vw, 30px); line-height: 1.4; color: var(--ink); padding: 24px 0; text-align: center; }

/* ---------------- FOOTER ---------------- */
.footer {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 34px var(--pad-x); border-top: 1px solid var(--line-light);
  font-size: 12.5px; letter-spacing: .05em; color: var(--green-soft); text-align: center;
}
.footer-contact { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: center; }

/* ---------------- reveal (progressive enhancement) ----------------
   Content is visible by default. Only once JS adds `reveal-ready` to
   <html> do the entrance animations arm — so a JS failure never hides
   content. */
.reveal { transition: opacity .8s ease, transform .8s ease; }
html.reveal-ready .reveal { opacity: 0; transform: translateY(20px); }
html.reveal-ready .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.reveal-ready .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   DESKTOP / TABLET
   ============================================================ */
@media (min-width: 760px) {
  :root { --pad-x: 60px; --sec-y: 110px; }

  .nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 30px 60px 10px; text-align: left; }
  .brand { order: 0; }
  .nav-left { justify-content: flex-start; }
  .nav-right { justify-content: flex-end; }
  .brand-name { font-size: 27px; }
  .brand-role { font-size: 9px; }

  .hero { padding: 60px 60px 46px; }
  .hero-cta { flex-direction: row; justify-content: center; gap: 16px; }
  .btn-full { width: auto; }

  .about {
    grid-template-columns: 1fr 1.4fr; gap: 70px; padding: var(--sec-y) 60px;
    align-items: start;
  }
  .about-left { display: flex; flex-direction: column; gap: 26px; }
  .about-body { align-self: center; }

  .service-row { grid-template-columns: 90px 320px 1fr; gap: 40px; align-items: baseline; }
  .service-no { margin: 0; }

  .loc-grid { grid-template-columns: repeat(3, 1fr); gap: 30px; }

  .footer { flex-direction: row; justify-content: space-between; padding: 38px 60px; }
}

@media (min-width: 1000px) {
  .service-title { font-size: 30px; }
}
