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

:root {
  --bg: #F8F6F1;
  --bg-dark: #2C2A24;
  --text: #1A1916;
  --text-secondary: #5A5750;
  --text-muted: #8A8578;
  --border: #D6D1C4;
  --border-light: #E8E4DA;
  --accent: #C8C3B5;
  --serif: 'EB Garamond', 'Georgia', serif;
  --sans: 'Jost', 'Helvetica Neue', sans-serif;
}

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

html { scroll-behavior: smooth; }

/* ── PAGE LOAD ANIMATION ── */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-content {
  animation: fadeUp 0.8s ease-out both;
}

.hero-content .hero-sub {
  animation: fadeUp 0.8s ease-out 0.15s both;
}

.home-tagline p {
  animation: fadeUp 0.6s ease-out 0.3s both;
}

.stat-bar {
  animation: fadeUp 0.6s ease-out 0.45s both;
}

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--text);
  background: var(--bg);
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

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

/* ── NAV ── */

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 52px;
  border-bottom: 0.5px solid var(--border);
  position: relative;
  z-index: 100;
}

.nav-logo img {
  height: 28px;
  width: auto;
}

.nav-logo-text {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 20px; height: 1px; background: var(--text); margin: 5px 0; transition: 0.2s; }

@media (max-width: 720px) {
  nav { padding: 20px 28px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 24px 28px;
    border-bottom: 0.5px solid var(--border);
    gap: 20px;
  }
}

/* ── HERO ── */

.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  padding: 80px 52px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.55);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #F8F6F1;
  max-width: 680px;
}

.hero-content h1 {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 14px;
}

.hero-content .hero-sub {
  font-size: 15px;
  font-weight: 300;
  color: var(--accent);
  line-height: 1.6;
}

.hero--short {
  min-height: 44vh;
}

@media (max-width: 720px) {
  .hero { padding: 60px 28px; min-height: 50vh; }
  .hero--short { min-height: 36vh; }
  .hero-content h1 { font-size: 30px; }
}

/* ── SECTIONS ── */

.section {
  padding: 72px 52px;
  max-width: 1100px;
  margin: 0 auto;
}

.section + .section {
  border-top: 0.5px solid var(--border);
}

.section h2 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 20px;
}

.section h3 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  margin-bottom: 12px;
}

.section p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 620px;
  margin-bottom: 14px;
}

.section p:last-child { margin-bottom: 0; }

.cta-link {
  display: inline-block;
  margin-top: 20px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text);
  border-bottom: 0.5px solid var(--text);
  padding-bottom: 3px;
  transition: opacity 0.2s;
}

.cta-link:hover { opacity: 0.6; }

/* ── PHOTO GRID ── */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 0;
}

.photo-grid img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

@media (max-width: 720px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-grid img { height: 160px; }
}

/* ── TEAM ── */

/* ── TEAM CARDS (C1) ── */

.team-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.team-card {
  background: #EFEAE0;
  border-radius: 6px;
  overflow: hidden;
}

.team-card-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: grayscale(20%);
}

.team-card-body {
  padding: 20px 22px 24px;
}

.team-card-body h3 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 4px;
}

.team-card-body .role {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
}

.team-card-body .team-bio {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-secondary);
  margin-top: 8px;
  max-width: none;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .team-card-grid { grid-template-columns: 1fr; max-width: 320px; }
  .section { padding: 48px 28px; }
}

/* ── MANDATES ── */

.mandate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 12px;
}

.mandate-card {
  background: #EFEAE0;
  border-radius: 6px;
  padding: 28px 28px 24px;
}

.mandate-card h3 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--text);
}

.mandate-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: none;
}

@media (max-width: 720px) {
  .mandate-grid { grid-template-columns: 1fr; }
}

/* ── PORTFOLIO ── */

.portfolio-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.portfolio-item:not(:has(img)) {
  grid-template-columns: 1fr;
}

.portfolio-item img {
  width: 100%;
  border-radius: 6px;
}

.portfolio-item h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 12px;
}

.portfolio-item p {
  max-width: none;
}

.portfolio-note {
  margin-top: 40px;
  font-size: 14px;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.7;
}

@media (max-width: 720px) {
  .portfolio-item { grid-template-columns: 1fr; }
}

/* ── CONTACT ── */

.contact-body {
  max-width: 520px;
}

.contact-body p {
  margin-bottom: 24px;
}

.contact-form { margin-top: 8px; }

.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 300;
  padding: 14px 16px;
  border: 0.5px solid var(--border);
  border-radius: 4px;
  background: #fff;
  color: var(--text);
  margin-bottom: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--text-secondary);
}

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

.contact-form button {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 36px;
  background: var(--bg-dark);
  color: var(--bg);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.contact-form button:hover { opacity: 0.8; }

/* ── CONTACT MAP ── */

.contact-map {
  width: 100%;
  line-height: 0;
}

/* ── HOME TAGLINE ── */

.home-tagline {
  text-align: center;
  padding: 48px 52px;
}

.home-tagline p {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 720px) {
  .home-tagline { padding: 36px 28px; }
  .home-tagline p { font-size: 16px; }
}

/* ── LANG TOGGLE ── */

.lang-toggle {
  display: flex;
  gap: 0;
  margin-left: 12px;
  border: 0.5px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.lang-btn {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.lang-btn + .lang-btn {
  border-left: 0.5px solid var(--border);
}

.lang-btn.active {
  background: var(--bg-dark);
  color: var(--bg);
}

/* ── STAT BAR ── */

.stat-bar {
  background: var(--bg-dark);
  display: flex;
  justify-content: center;
  gap: 72px;
  padding: 44px;
}

.stat-item { text-align: center; }

.stat-num {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  color: #F8F6F1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 11px;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.04em;
}

@media (max-width: 720px) {
  .stat-bar { flex-wrap: wrap; gap: 32px 48px; padding: 36px 28px; }
}

/* ── FOOTER ── */

footer {
  border-top: 0.5px solid var(--border);
  padding: 32px 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.footer-links a {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text); }

.footer-copy {
  font-size: 11px;
  color: var(--text-muted);
}

@media (max-width: 720px) {
  footer { flex-direction: column; gap: 16px; padding: 28px; text-align: center; }
}
