/*
Theme Name: Aconcagua Foundation
Theme URI: https://mountainguide.ru/
Author: Mountain Guide
Description: Lightweight editorial and expedition theme for the Aconcagua site group.
Version: 1.0.0
Text Domain: aconcagua-foundation
*/

:root {
  --bg: #f5f2ea;
  --surface: #fffdf8;
  --ink: #17201f;
  --muted: #5c6865;
  --line: rgba(23, 32, 31, .14);
  --accent: #bb4a2b;
  --accent-2: #183f49;
  --serif: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max: 1180px;
  --radius: 22px;
}

body.site-expert {
  --bg: #07141c;
  --surface: #0d202b;
  --ink: #f5f0e5;
  --muted: #b4c3c8;
  --line: rgba(255, 255, 255, .15);
  --accent: #e0b45c;
  --accent-2: #5fb8bf;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: .2em; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 14px;
  z-index: 99;
}
.skip-link:focus { left: 10px; }

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(16px);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { text-decoration: none; display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: conic-gradient(from 210deg, var(--accent), var(--accent-2), var(--accent));
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 10px 7px 8px;
  background: var(--bg);
  clip-path: polygon(50% 0, 100% 100%, 63% 74%, 50% 100%, 35% 71%, 0 100%);
}
.brand-name { display: block; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.brand-tag { display: block; color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.site-nav ul { display: flex; list-style: none; gap: 22px; padding: 0; margin: 0; }
.site-nav a { font-size: 14px; font-weight: 700; text-decoration: none; }
.mobile-menu { display: none; position: relative; margin-left: auto; }
.mobile-menu summary {
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 15px;
  font-size: 14px;
  font-weight: 800;
}
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu[open] summary { color: var(--accent); border-color: var(--accent); }
.mobile-menu nav {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(310px, calc(100vw - 48px));
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 18px 45px color-mix(in srgb, var(--ink) 16%, transparent);
}
.mobile-menu ul { display: grid; list-style: none; gap: 2px; padding: 0; margin: 0; }
.mobile-menu a { display: block; padding: 11px 12px; border-radius: 10px; font-size: 15px; font-weight: 750; text-decoration: none; }
.mobile-menu a:hover, .mobile-menu a:focus-visible { background: var(--bg); }

.site-main { min-height: 70vh; }
.page-shell { max-width: 900px; margin: 0 auto; padding: 72px 24px 100px; }
.page-shell h1 { font: 700 clamp(42px, 7vw, 76px)/.98 var(--serif); letter-spacing: -.045em; }

.hero {
  min-height: 720px;
  display: grid;
  align-items: end;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 18%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 28%),
    linear-gradient(155deg, transparent 44%, color-mix(in srgb, var(--accent-2) 30%, transparent) 45%, transparent 71%),
    linear-gradient(25deg, transparent 52%, color-mix(in srgb, var(--ink) 10%, transparent) 52.2%, transparent 78%);
  opacity: .9;
}
.hero::after {
  content: "";
  position: absolute;
  right: -6vw;
  bottom: -1px;
  width: min(760px, 72vw);
  height: min(540px, 55vw);
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent-2) 55%, var(--bg)), var(--bg));
  clip-path: polygon(52% 0, 100% 100%, 68% 78%, 58% 100%, 38% 69%, 0 100%);
  opacity: .7;
}
.hero-inner { width: 100%; max-width: var(--max); margin: 0 auto; padding: 110px 24px 80px; position: relative; z-index: 1; }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .16em; font-weight: 800; font-size: 13px; }
.hero h1 { max-width: 930px; margin: 18px 0 28px; font: 700 clamp(54px, 9vw, 120px)/.86 var(--serif); letter-spacing: -.06em; }
.hero-lead { max-width: 720px; margin: 0; color: var(--muted); font-size: clamp(20px, 2.4vw, 29px); line-height: 1.35; }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
}
body.site-expert .button { color: #07141c; }
.button.secondary { background: transparent; border: 1px solid var(--line); color: var(--ink); }
body.site-expert .button.secondary { color: var(--ink); }

.content-section { max-width: var(--max); margin: 0 auto; padding: 90px 24px; }
.section-kicker { color: var(--accent); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 900; }
.section-title { max-width: 820px; margin: 12px 0 38px; font: 700 clamp(38px, 5vw, 68px)/1 var(--serif); letter-spacing: -.04em; }
.section-intro { max-width: 820px; color: var(--muted); font-size: 21px; }
.fact-strip { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.fact { padding: 34px 24px; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact strong { display: block; font: 700 34px/1 var(--serif); color: var(--accent); }
.fact span { color: var(--muted); font-size: 14px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  min-height: 260px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  display: flex;
  flex-direction: column;
}
.card h3 { margin: 0 0 12px; font: 700 30px/1.08 var(--serif); letter-spacing: -.025em; }
.card p { color: var(--muted); margin: 0 0 22px; }
.card a { margin-top: auto; font-weight: 800; }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: start; }
.notice { padding: 25px; border-left: 4px solid var(--accent); background: var(--surface); color: var(--muted); }
.check-list { padding: 0; margin: 25px 0; list-style: none; }
.check-list li { padding: 13px 0 13px 30px; border-bottom: 1px solid var(--line); position: relative; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 900; }
.cta-panel { border-radius: 32px; padding: clamp(32px, 6vw, 72px); background: var(--accent-2); color: #fff; }
.cta-panel h2 { margin: 0 0 18px; font: 700 clamp(40px, 6vw, 76px)/.95 var(--serif); letter-spacing: -.045em; }
.cta-panel p { max-width: 700px; opacity: .82; }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 42px 24px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer p { color: var(--muted); font-size: 14px; margin: 8px 0; }
.footer-title { font-weight: 800; }

@media (max-width: 820px) {
  body { font-size: 17px; }
  .header-inner { align-items: center; gap: 14px; }
  .site-nav { display: none; }
  .mobile-menu { display: block; }
  .hero { min-height: 660px; }
  .fact-strip, .card-grid, .split, .footer-inner { grid-template-columns: 1fr; }
  .fact { border-right: 0; border-bottom: 1px solid var(--line); }
  .fact:last-child { border-bottom: 0; }
  .content-section { padding-block: 64px; }
}
