/* Summitive Solutions — design system */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,500;9..144,600&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --ink: #0f1c2e;
  --ink-soft: #24334a;
  --paper: #faf8f4;
  --paper-dim: #f1ede4;
  --line: #e2ddd0;
  --gold: #b8863b;
  --gold-bright: #d9a54a;
  --slate: #4a5a72;
  --white: #ffffff;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 1180px;
  --radius: 4px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

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

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 244, 0.97);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
}

.brand-mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s;
  position: relative;
}

.nav-links a:hover { color: var(--ink); }

.nav-links a.active { color: var(--ink); }

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
}

.nav-cta {
  padding: 0.6rem 1.3rem !important;
  background: var(--ink);
  color: var(--white) !important;
  border-radius: var(--radius);
  font-weight: 600 !important;
}

.nav-cta:hover { background: var(--gold); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: 0.2s;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--white);
}
.btn-primary:hover { background: var(--gold); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--white); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  overflow: hidden;
  background-color: var(--ink);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-mountain.webp');
  background-size: cover;
  background-position: center 35%;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(9,17,29,0.94) 0%, rgba(12,22,37,0.82) 42%, rgba(15,28,46,0.45) 100%);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 9rem 0 4.5rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 4.6vw, 3.8rem);
  margin: 1rem 0 1.4rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-bright);
}

.hero p.lead {
  font-size: 1.15rem;
  color: #dce4ee;
  max-width: 48ch;
  margin-bottom: 2.2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- Sections ---------- */
section { padding: 5.5rem 0; }

.section-head {
  max-width: 640px;
  margin-bottom: 3rem;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-top: 0.6rem;
}

.section-head p {
  color: var(--slate);
  margin-top: 1rem;
  font-size: 1.05rem;
}

.section-dark {
  background: var(--ink);
  color: var(--white);
}
.section-dark .section-head p { color: #aebbcf; }

.section-dim { background: var(--paper-dim); }

/* ---------- Grid cards ---------- */
.grid {
  display: grid;
  gap: 1.75rem;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -20px rgba(15, 28, 46, 0.25);
}

.card .num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 0.9rem;
  display: block;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.7rem;
}

.card p { color: var(--slate); font-size: 0.97rem; }

.icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--paper-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  color: var(--gold);
}

/* ---------- Stat strip ---------- */
.stat-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,0.18);
  background: rgba(9, 16, 27, 0.55);
  backdrop-filter: blur(2px);
}

.stat {
  padding: 2.2rem 1rem;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.15);
}
.stat:last-child { border-right: none; }

.stat .figure {
  font-family: var(--font-display);
  font-size: 2.3rem;
  color: var(--gold-bright);
}

.stat .label {
  font-size: 0.85rem;
  color: #aebbcf;
  margin-top: 0.4rem;
}

/* ---------- Testimonial ---------- */
.testimonial {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.testimonial blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
}

.testimonial cite {
  display: block;
  margin-top: 1.6rem;
  font-style: normal;
  font-weight: 600;
  color: var(--gold);
  font-size: 0.95rem;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, #14243a 0%, #1c3350 100%);
  color: var(--white);
  border-radius: 8px;
  padding: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-banner h2 { font-size: 1.8rem; max-width: 24ch; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #aebbcf;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-grid h4 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-body);
  margin-bottom: 1.1rem;
}

.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 0.6rem; }
.footer-grid a { font-size: 0.92rem; transition: color 0.2s; }
.footer-grid a:hover { color: var(--white); }

.footer-brand p {
  margin-top: 0.8rem;
  font-size: 0.92rem;
  max-width: 32ch;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 1.6rem;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  position: relative;
  color: var(--white);
  padding: 8.5rem 0 4rem;
  background-color: var(--ink);
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-mountain.webp');
  background-size: cover;
  background-position: center 30%;
  opacity: 0.28;
  z-index: 0;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,28,46,0.75) 0%, rgba(15,28,46,0.92) 100%);
  z-index: 0;
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero h1 { font-size: clamp(2rem, 3.6vw, 2.8rem); margin-top: 0.8rem; }
.page-hero p { color: #dce4ee; max-width: 60ch; margin-top: 1rem; font-size: 1.05rem; }

.breadcrumb {
  font-size: 0.85rem;
  color: #9fb0c7;
  margin-bottom: 1rem;
}
.breadcrumb a:hover { color: var(--white); }

/* ---------- About page ---------- */
.about-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3.5rem;
  align-items: start;
}

.portrait-frame {
  background: var(--ink);
  border-radius: 8px;
  aspect-ratio: 4/5;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 50px -28px rgba(15, 28, 46, 0.55);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.portrait-frame::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--gold-bright), var(--gold));
}

.credential-list {
  list-style: none;
  margin-top: 1.5rem;
}
.credential-list li {
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
}
.credential-list li span:first-child { color: var(--slate); }
.credential-list li span:last-child { font-weight: 600; }

.timeline {
  border-left: 2px solid var(--line);
  margin-top: 1rem;
}

.timeline-item {
  padding: 0 0 2rem 1.75rem;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--paper);
}

.timeline-item h4 { font-size: 1.05rem; }
.timeline-item .meta { color: var(--gold); font-size: 0.85rem; font-weight: 600; margin: 0.2rem 0 0.5rem; }
.timeline-item p { color: var(--slate); font-size: 0.95rem; }

/* ---------- Case studies ---------- */
.case-study {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
  margin-bottom: 1.75rem;
  display: grid;
  grid-template-columns: 300px 1fr;
}

.case-media {
  position: relative;
  min-height: 320px;
}

.case-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(15,28,46,0.15) 0%, rgba(15,28,46,0.45) 100%);
}

.case-body { padding: 2.75rem; }

.case-study-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.case-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--paper-dim);
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
}

.case-study h3 { font-size: 1.4rem; margin: 0.5rem 0 1.1rem; }

.case-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.case-cols h5 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate);
  margin-bottom: 0.6rem;
  font-family: var(--font-body);
}

.case-cols p, .case-cols li { color: var(--ink-soft); font-size: 0.96rem; }
.case-cols ul { padding-left: 1.1rem; }
.case-cols li { margin-bottom: 0.4rem; }

.case-quote {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--line);
  font-style: italic;
  color: var(--ink-soft);
}
.case-quote cite { display: block; margin-top: 0.5rem; font-style: normal; font-weight: 600; color: var(--gold); font-size: 0.88rem; }

.result-pill {
  display: inline-block;
  background: var(--ink);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  margin: 0.25rem 0.4rem 0.25rem 0;
}

/* ---------- Insights ---------- */
.insight-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 2.25rem;
  height: 100%;
}

.insight-card .index {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--gold);
  font-weight: 600;
}

.insight-card h3 { font-size: 1.2rem; margin: 0.8rem 0 0.8rem; }
.insight-card p { color: var(--slate); font-size: 0.95rem; }

/* ---------- Contact ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info-card {
  background: var(--ink);
  color: var(--white);
  border-radius: 8px;
  padding: 2.5rem;
}

.contact-info-card h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.contact-info-card p { color: #c7d2e0; font-size: 0.96rem; margin-bottom: 1.75rem; }

.contact-detail {
  display: flex;
  gap: 0.9rem;
  margin-bottom: 1.4rem;
  align-items: flex-start;
}
.contact-detail .icon-badge { background: rgba(255,255,255,0.08); color: var(--gold-bright); flex-shrink: 0; margin-bottom: 0; }
.contact-detail strong { display: block; font-size: 0.92rem; }
.contact-detail span { color: #aebbcf; font-size: 0.9rem; }

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2.5rem;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }

.field { margin-bottom: 1.3rem; }

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--ink-soft);
}

.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.96rem;
  background: var(--paper);
  transition: border-color 0.2s;
}

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
}

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

.form-note {
  font-size: 0.82rem;
  color: var(--slate);
  margin-top: 0.9rem;
}

.form-status {
  margin-top: 1rem;
  font-size: 0.92rem;
  font-weight: 600;
  display: none;
}
.form-status.success { display: block; color: #2e7d4f; }
.form-status.error { display: block; color: #b3413a; }

.config-notice {
  background: #fdf3e3;
  border: 1px solid #ecd8ac;
  color: #7a5416;
  font-size: 0.85rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}
.config-notice code { background: rgba(0,0,0,0.06); padding: 0.1rem 0.35rem; border-radius: 3px; }

/* ---------- Brand logo image ---------- */
.brand-logo {
  height: 30px;
  width: auto;
  flex-shrink: 0;
}
.site-footer .brand-logo { height: 34px; }

/* ---------- Image-topped cards ---------- */
.card-media {
  margin: -2rem -2rem 1.5rem;
  height: 180px;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card:hover .card-media img { transform: scale(1.05); }

/* ---------- Split feature band ---------- */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.feature-split.reverse .feature-media { order: 2; }

.feature-media {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 24px 50px -30px rgba(15, 28, 46, 0.5);
}
.feature-media img { width: 100%; height: 100%; object-fit: cover; }

.feature-text h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); margin: 0.6rem 0 1rem; }
.feature-text p { color: var(--slate); font-size: 1.02rem; margin-bottom: 1rem; }
.feature-list { list-style: none; margin-top: 1.2rem; }
.feature-list li {
  padding: 0.5rem 0 0.5rem 1.8rem;
  position: relative;
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 10px;
  height: 10px;
  background: var(--gold);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.section-dark .feature-text p { color: #aebbcf; }
.section-dark .feature-list li { color: #dce4ee; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { padding: 7rem 0 3rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .about-layout { grid-template-columns: 1fr; }
  .portrait-frame { max-width: 340px; margin: 0 auto; }
  .case-cols { grid-template-columns: 1fr; }
  .case-study { grid-template-columns: 1fr; }
  .case-media { min-height: 220px; }
  .feature-split { grid-template-columns: 1fr; gap: 2rem; }
  .feature-split.reverse .feature-media { order: -1; }
  .contact-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-banner { padding: 2.5rem; }
}

@media (max-width: 700px) {
  .nav-links { position: fixed; top: 68px; left: 0; right: 0; bottom: 0; background: var(--paper); flex-direction: column; justify-content: flex-start; padding: 2.5rem 1.5rem; gap: 1.8rem; transform: translateX(100%); transition: transform 0.3s ease; }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}
