/* Same palette, type and landing layout as the members' app (companion-agency/public/styles.css),
   so the public site and the sign-in page look like one house. Keep the two in step. */
:root {
  --ink: #0e0d0c;
  --ink-2: #161412;
  --line: rgba(201, 169, 110, 0.18);
  --line-strong: rgba(201, 169, 110, 0.4);
  --ivory: #f2ece1;
  --ivory-dim: #b9b1a4;
  --muted: #847c70;
  --gold: #c9a96e;
  --gold-bright: #e2c78f;
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(201, 169, 110, 0.08), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(201, 138, 122, 0.05), transparent 60%),
    var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: 0.01em;
}
a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-bright); }
::selection { background: var(--gold); color: var(--ink); }

h1 { font-family: var(--serif); font-weight: 400; margin: 1.2rem 0 1.5rem; letter-spacing: 0.01em; line-height: 1.15; font-size: clamp(2.6rem, 6vw, 4.6rem); }
em { font-family: var(--serif); font-style: italic; }

.eyebrow { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.32em; color: var(--gold); font-weight: 400; }
.brand { font-family: var(--serif); font-size: 1.6rem; letter-spacing: 0.06em; color: var(--ivory); }
.landing .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
/* Same language switch as the app's sign-in page, as links (the site has no scripts). */
.lang-switch { display: inline-flex; flex: 0 0 auto; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; }
.lang-switch a { color: var(--muted); font-size: .62rem; letter-spacing: .18em; padding: .3rem .6rem; }
.lang-switch a:hover { color: var(--ivory); }
.lang-switch a.on { background: var(--gold); color: var(--ink); }
.lang-switch a:focus-visible { outline: 1px solid var(--gold); outline-offset: -2px; }
.brand small { display: block; font-family: var(--sans); font-size: 0.6rem; letter-spacing: 0.4em; text-transform: uppercase; color: var(--gold); margin-top: 0.3rem; }

/* ---------- Landing: text on the left, the photograph on the right ---------- */
.landing { min-height: 100vh; display: grid; grid-template-columns: 1.15fr 1fr; }
.landing .hero {
  padding: clamp(2rem, 6vw, 5rem);
  display: flex; flex-direction: column; justify-content: space-between; gap: 3rem;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(14, 13, 12, 0) 0%, rgba(14, 13, 12, 0.9) 100%),
    radial-gradient(800px 500px at 30% 30%, rgba(201, 169, 110, 0.12), transparent 70%);
  position: relative; overflow: hidden;
}
.landing .hero::before { content: ''; position: absolute; inset: 2rem; border: 1px solid var(--line); pointer-events: none; }
.landing .hero h1 { max-width: 12ch; }
.landing .hero h1 em { color: var(--gold); }
.landing .hero p { color: var(--ivory-dim); max-width: 42ch; font-size: 1.05rem; margin: 0; }
.landing .pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 640px; }
.landing .pillars div { border-top: 1px solid var(--line-strong); padding-top: 0.9rem; font-size: 0.85rem; color: var(--ivory-dim); }
.landing .pillars strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.2rem; color: var(--ivory); }
.foot {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.28em; color: var(--muted);
}

.photo {
  margin: 0; position: relative; min-height: 100vh;
  background: var(--ink-2) url(/hero.jpg) 72% center / cover no-repeat;
}
/* A gold frame and a soft fade into the dark panel, like the hero's inset border. */
.photo::before { content: ''; position: absolute; inset: 2rem; border: 1px solid rgba(226, 199, 143, 0.35); pointer-events: none; }
.photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 13, 12, 0.55) 0%, rgba(14, 13, 12, 0) 35%); pointer-events: none; }

.fade-in { animation: fade .8s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Phones and narrow tablets: the photograph on top, the text below it. */
@media (max-width: 900px) {
  .landing { grid-template-columns: 1fr; }
  .photo { order: -1; min-height: 58vh; background-position: 60% 35%; }
  .photo::before { inset: 0.8rem; }
  .photo::after { background: linear-gradient(180deg, rgba(14, 13, 12, 0) 55%, rgba(14, 13, 12, 1) 100%); }
  .landing .hero { border-right: 0; padding: 2rem 1.4rem 2.4rem; gap: 2rem; }
  .landing .hero::before { inset: 0.8rem; top: 0; border-top: 0; }
  .landing .hero h1 { font-size: 2.5rem; margin: 0.8rem 0 1rem; }
  .landing .hero p { font-size: 0.95rem; }
  .landing .pillars { grid-template-columns: 1fr; gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .fade-in { animation: none; }
}

/* ---------- 404 ---------- */
.notfound { max-width: 34rem; margin: 18vh auto; padding: 0 1.5rem; text-align: center; }
.notfound h1 { font-size: 2.4rem; margin: 2.5rem 0 0.4rem; }
.notfound p { color: var(--ivory-dim); font-family: var(--serif); font-style: italic; font-size: 1.25rem; margin: 0; }
.notfound .btn-row { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; margin-top: 2.2rem; }
.btn {
  display: inline-block; font-size: 0.7rem; font-weight: 400; text-transform: uppercase; letter-spacing: 0.28em;
  padding: 0.95rem 1.8rem; border: 1px solid var(--gold); color: var(--gold); border-radius: 2px;
}
.btn:hover { background: rgba(201, 169, 110, 0.1); }
