/* ============================================================
   Veridian Family Office — shared styles
   Palette: slate #1A1F2E · brass #C9A96E · sage #7A9E7E
   Type:    Cormorant Garamond (display) · Inter (body)
   ============================================================ */

:root {
  --bg:        #1A1F2E;
  --bg-deep:   #141414;
  --brass:     #C9A96E;
  --sage:      #7A9E7E;
  --text:      #F0EDE8;
  --text-dim:  rgba(240, 237, 232, 0.64);
  --line:      #2E3347;

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body:    "Inter", -apple-system, "Segoe UI", sans-serif;

  --max-width: 1280px;
  --pad-x: 24px;
  --section-pad: 80px;
}

/* ---------- Reset ---------- */

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Signature: the one moving element ----------
   A fixed gradient field behind everything. JS rotates it
   slowly with scroll; nothing else on the site animates.   */

.ambient {
  position: fixed;
  inset: -40vmax;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 45% at 30% 25%, rgba(201, 169, 110, 0.07), transparent 65%),
    radial-gradient(ellipse 50% 40% at 75% 70%, rgba(122, 158, 126, 0.06), transparent 60%),
    linear-gradient(160deg, #1A1F2E 0%, #161A26 55%, #141414 100%);
  transform: rotate(0deg);
  will-change: transform;
  pointer-events: none;
}

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.005em;
}

h1 { font-size: clamp(38px, 6vw, 56px); }
h2 { font-size: clamp(28px, 4vw, 36px); }
h3 { font-size: 22px; }

.caption {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
}

p { color: var(--text-dim); }
strong { color: var(--text); font-weight: 600; }

a {
  color: var(--text);
  text-decoration: none;
}

a:hover { color: var(--brass); }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

::selection { background: var(--brass); color: var(--bg-deep); }

/* ---------- Layout primitives ---------- */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

section { padding: var(--section-pad) 0; }

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  max-width: var(--max-width);
  margin: 0 auto;
  width: calc(100% - 2 * var(--pad-x));
}

.section-head {
  margin-bottom: 48px;
}

.section-head h2 { margin-top: 12px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(26, 31, 46, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.04em;
}

.wordmark .mark { color: var(--sage); }

.site-nav {
  display: none;
}

.site-nav a {
  font-size: 14px;
  color: var(--text-dim);
  margin-left: 32px;
  letter-spacing: 0.02em;
}

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

@media (min-width: 768px) {
  .site-nav { display: block; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 36px;
  border: 1px solid var(--brass);
  color: var(--brass);
  background: transparent;
  cursor: pointer;
}

.btn:hover {
  background: var(--brass);
  color: var(--bg-deep);
}

/* ---------- Hero ---------- */

.hero {
  min-height: calc(100svh - 72px);
  display: flex;
  align-items: center;
  padding: 0;
}

.hero .container {
  padding-top: 96px;
  padding-bottom: 96px;
}

.hero .caption { display: block; margin-bottom: 20px; }

.hero h1 {
  max-width: 14ch;
  margin-bottom: 24px;
}

.hero p {
  max-width: 44ch;
  font-size: 18px;
  margin-bottom: 40px;
}

/* ---------- Philosophy ---------- */

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.philosophy-grid article h3 {
  margin: 18px 0 10px;
}

.philosophy-grid article p { font-size: 15px; }

.icon {
  width: 36px;
  height: 36px;
  stroke: var(--brass);
  stroke-width: 1.25;
  fill: none;
}

@media (min-width: 768px) {
  .philosophy-grid { grid-template-columns: repeat(2, 1fr); gap: 56px 48px; }
}

@media (min-width: 1280px) {
  .philosophy-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-card {
  background: var(--bg);
  padding: 40px 32px;
}

.service-card .caption { color: var(--sage); }

.service-card h3 { margin: 14px 0 14px; }

.service-card p { font-size: 15px; }

@media (min-width: 768px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .service-card { padding: 48px 36px; }
}

/* ---------- Why independent ---------- */

.independent {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.independent .statement h2 {
  max-width: 12ch;
}

.independent ul {
  list-style: none;
}

.independent li {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 15px;
}

.independent li:first-child { border-top: 1px solid var(--line); }

.independent li strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}

@media (min-width: 768px) {
  .independent {
    grid-template-columns: 5fr 7fr;
    gap: 64px;
    align-items: start;
  }
}

/* ---------- Timeline ---------- */

.timeline {
  list-style: none;
  position: relative;
  border-left: 1px solid var(--line);
  padding-left: 32px;
  display: grid;
  gap: 36px;
}

.timeline li { position: relative; }

.timeline li::before {
  content: "";
  position: absolute;
  left: -36px;
  top: 8px;
  width: 7px;
  height: 7px;
  background: var(--brass);
}

.timeline .year {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--brass);
  display: block;
}

.timeline p { font-size: 15px; max-width: 52ch; }

@media (min-width: 1280px) {
  .timeline {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 32px;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
  }
  .timeline li::before {
    left: 0;
    top: -36px;
  }
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
}

.contact-details p {
  margin-bottom: 6px;
  font-size: 15px;
}

.contact-details .org {
  color: var(--text);
  font-weight: 600;
  margin-bottom: 14px;
}

.contact-details a { color: var(--text-dim); border-bottom: 1px solid var(--line); }
.contact-details a:hover { color: var(--brass); border-color: var(--brass); }

.map-frame {
  margin-top: 28px;
  border: 1px solid var(--line);
}

.map-frame iframe {
  width: 100%;
  height: 240px;
  border: 0;
  filter: grayscale(1) invert(0.9) contrast(0.85);
}

/* Form */

.contact-form label {
  display: block;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 22px 0 8px;
}

.contact-form label:first-of-type { margin-top: 0; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 13px 14px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--brass);
  outline-offset: 0;
  border-color: var(--brass);
}

.contact-form textarea { min-height: 140px; resize: vertical; }

.contact-form .btn { margin-top: 28px; }

.form-confirm {
  display: none;
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid var(--sage);
  color: var(--sage);
  font-size: 14px;
}

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

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
  background: rgba(20, 20, 20, 0.45);
}

.footer-top {
  display: grid;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--text-dim);
  margin-top: 8px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.footer-nav a {
  font-size: 14px;
  color: var(--text-dim);
}

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

.copyright {
  font-size: 13px;
  color: var(--text-dim);
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}

/* ---------- Legal pages ---------- */

.legal {
  padding: 72px 0 96px;
}

.legal .container { max-width: 800px; }

.legal h1 { margin-bottom: 8px; }

.legal .updated {
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 48px;
}

.legal h2 {
  font-size: 24px;
  margin: 44px 0 14px;
}

.legal p { margin-bottom: 14px; }

.legal ul {
  margin: 0 0 14px 20px;
  color: var(--text-dim);
}

.legal li { margin-bottom: 6px; }

.legal address {
  font-style: normal;
  color: var(--text-dim);
  border-left: 2px solid var(--brass);
  padding-left: 18px;
  margin: 14px 0;
}

/* ---------- Wider screens ---------- */

@media (min-width: 768px) {
  :root {
    --pad-x: 48px;
    --section-pad: 110px;
  }
}
