/* Epitro — shared site styles */

:root {
  --navy: #59677e;
  --navy-dark: #465065;
  --gold: #D7B377;
  --ink: #2b2925;
  --muted: #6b6b64;
  --bg: #ffffff;
  --panel: #f6f4f0;
  --border: #e4e0d8;
  --icon: #5A7D1B;
  --icon-bg: #eef2e4;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

h1, h2, h3, .serif {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: 400;
}

a { color: inherit; }

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

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Header */
header.site-header {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
}

header.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}

.logo svg { width: 34px; height: 34px; }

.logo span {
  font-family: Georgia, serif;
  letter-spacing: 4px;
  font-size: 15px;
  font-weight: 600;
}

nav.main-nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 32px;
  font-size: 15px;
  opacity: 0.9;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--gold);
  opacity: 1;
}

/* Hero */
.hero {
  padding: 90px 0 60px;
  text-align: left;
}

.hero h1 {
  font-size: 2.4rem;
  line-height: 1.35;
  max-width: 780px;
  color: var(--ink);
}

.hero h1 .accent {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.hero-quote {
  font-size: 2.2rem;
  max-width: 620px;
  font-style: italic;
}

/* Mountain illustration band */
.mountain-band {
  height: 260px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #cfd9df 0%, #8fa3ad 55%, #5c7280 100%);
}

.mountain-band svg { position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; }

/* Sections */
section {
  padding: 64px 0;
}

section.panel { background: var(--panel); }

.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  margin-bottom: 8px;
}

.section-lead {
  font-size: 1.4rem;
  max-width: 700px;
}

/* Values grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.value-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px 24px;
}

.value-card .num {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.value-card h3 {
  margin: 8px 0 10px;
  font-size: 1.3rem;
}

.value-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Closing statement */
.closing {
  text-align: center;
  padding: 70px 0;
}

.closing p {
  font-family: Georgia, serif;
  font-size: 1.6rem;
  max-width: 760px;
  margin: 0 auto;
}

/* Portfolio grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.portfolio-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px;
  background: #fff;
  text-decoration: none;
  color: var(--ink);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.portfolio-card.linked:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.portfolio-card .tag {
  color: var(--gold);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--icon-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.icon-badge svg { width: 30px; height: 30px; stroke: var(--icon); fill: none; }

.portfolio-card .name {
  font-family: Georgia, serif;
  font-size: 1.2rem;
  margin: 6px 0 4px;
}

.portfolio-card .link-out {
  font-size: 0.85rem;
  color: var(--muted);
}

.portfolio-card.plain {
  background: var(--panel);
}

.past-list {
  display: flex;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.past-list span {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 20px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Offices / contact */
.offices {
  display: grid;
  grid-template-columns: repeat(2, 1fr) 1fr;
  gap: 32px;
}

.office h4 {
  font-family: Georgia, serif;
  margin: 0 0 8px;
}

.office p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.contact-box {
  background: var(--navy);
  color: #fff;
  border-radius: 6px;
  padding: 24px;
}

.contact-box h4 { font-family: Georgia, serif; margin: 0 0 12px; }

.btn {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  text-decoration: none;
  padding: 10px 22px;
  border-radius: 4px;
  font-size: 0.9rem;
  margin-top: 8px;
}

/* Footer */
footer {
  padding: 28px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 800px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: 1fr; }
  .offices { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.8rem; }
}

@media (max-width: 560px) {
  .values-grid { grid-template-columns: 1fr; }
  nav.main-nav a { margin-left: 18px; font-size: 14px; }
}
