/* =============================================
   Hinterland Systems — Main Stylesheet
   Colors: #db7705 (orange), #3b3537 (dark),
           #f4efea (light bg), #0a0808 (hero)
   Font: Inter
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;900&display=swap');

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

:root {
  --orange:   #db7705;
  --orange-hover: #5f821c;
  --dark:     #3b3537;
  --dark-alt: #4e4749;
  --light-bg: #f4efea;
  --hero-bg:  #0a0808;
  --border:   #e5e1df;
  --gray:     #828282;
  --white:    #ffffff;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 28px;
  color: var(--dark);
  background: var(--white);
}

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

h1 { font-size: 48px; font-weight: 700; line-height: 56px; }
h2 { font-size: 36px; font-weight: 700; line-height: 44px; }
h3 { font-size: 28px; font-weight: 700; }
h4 { font-size: 24px; font-weight: 700; }
h5 { font-size: 18px; font-weight: 700; }
h6 { font-size: 16px; font-weight: 700; }
p  { font-size: 16px; line-height: 28px; }

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- HEADER / NAV ---- */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.site-logo img { height: 45px; width: auto; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 0;
  align-items: center;
}

.main-nav li { margin: 0 20px -10px 0; padding: 2px 0; }

.main-nav a {
  color: var(--dark);
  font-size: 15px;
  font-weight: 600;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.members-menu {
  border-right: 1px solid #d8d5d4;
  padding-right: 26px !important;
  margin-right: 20px !important;
}

.hamburger { display: none; background: none; border: none; cursor: pointer; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--dark); margin: 5px 0; transition: 0.3s; }

/* ---- HERO ---- */

.hero {
  position: relative;
  background-color: var(--hero-bg);
  background-image: url("../img/hero-bg.b1b955990ed3.jpg");
  background-attachment: fixed;
  background-position: center center;
  background-size: cover;
  min-height: 580px;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 8, 0.70);
}

.hero .container { position: relative; z-index: 1; padding: 80px 24px; }

.hero-claim p,
.hero-claim {
  font-size: 56px;
  font-weight: 900;
  line-height: 1.25em;
  color: var(--white);
  max-width: 800px;
  margin-bottom: 24px;
}

.hero-claim-2 h2,
.hero-subtitle {
  font-size: 22px;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255,255,255,0.88);
  max-width: 680px;
  margin-bottom: 40px;
}

.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- BUTTONS ---- */

.btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  border: none;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
}
.btn-primary:hover { background: var(--orange-hover); color: var(--white); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline:hover { border-color: var(--white); color: var(--white); }

.btn-outline-dark {
  background: transparent;
  color: var(--dark);
  border: 2px solid var(--border);
}
.btn-outline-dark:hover { border-color: var(--dark); }

/* ---- SECTIONS ---- */

section { padding: 72px 0; }

.section-light { background: var(--light-bg); }
.section-dark  { background: var(--dark); color: var(--white); }
.section-dark h2, .section-dark p { color: var(--white); }

/* ---- ABOUT ---- */

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

.about-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.about-item img { width: 24px; height: 24px; flex-shrink: 0; margin-top: 4px; }
.about-item p { font-weight: 600; font-size: 17px; line-height: 26px; }

/* ---- DATA ALTRUISM ---- */

.data-altruism { text-align: center; }
.data-altruism h2 { margin-bottom: 16px; }
.data-altruism p { max-width: 600px; margin: 0 auto 32px; }

/* ---- PROFILE ---- */

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.profile-items { display: flex; flex-direction: column; gap: 16px; }

.profile-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.profile-item img { width: 24px; height: 24px; flex-shrink: 0; margin-top: 4px; }
.profile-item p { font-size: 15px; line-height: 24px; }

/* ---- 5 LAYERS ---- */

.layers-section { background: var(--light-bg); }

.layers-intro { max-width: 700px; margin-bottom: 48px; }

.layers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.layers-visual { position: relative; }
.layers-visual img { width: 100%; max-width: 512px; margin: 0 auto; }

.layer-list { display: flex; flex-direction: column; gap: 0; }

.layer-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.layer-item:first-child { border-top: 1px solid var(--border); }

.layer-number {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray);
  padding-top: 4px;
}

.layer-content h4 { font-size: 16px; margin-bottom: 4px; }
.layer-content p { font-size: 14px; color: var(--dark-alt); line-height: 22px; }

/* ---- PARTNERS ---- */

.partners-section { padding: 56px 0; }
.partners-section h3 { text-align: center; margin-bottom: 40px; font-size: 20px; color: var(--gray); font-weight: 400; }

.partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px 56px;
}

.partner-logo { opacity: 0.75; transition: opacity 0.3s, transform 0.3s; }
.partner-logo:hover { opacity: 1; transform: scale(1.025); }
.partner-logo img { height: 60px; width: auto; object-fit: contain; }

/* ---- CTA BAND ---- */

.cta-band {
  background: var(--dark);
  color: var(--white);
  text-align: center;
  padding: 64px 0;
}
.cta-band h2 { color: var(--white); margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,0.8); max-width: 560px; margin: 0 auto 32px; }

/* ---- STANDARD PAGE ---- */

.page-hero {
  background: var(--light-bg);
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { margin-bottom: 12px; }
.page-hero p { font-size: 18px; color: var(--dark-alt); max-width: 680px; }

.page-body { padding: 0; }
.page-body .richtext { /* no max-width — image-text-blocks fill container */ }
.page-body .richtext p { margin-bottom: 20px; }
.page-body .richtext h2 { margin: 40px 0 16px; }
.page-body .richtext h3 { margin: 32px 0 12px; }
.page-body .richtext ul { margin: 16px 0 16px 24px; }
.page-body .richtext li { margin-bottom: 8px; }

/* Prose pages (mission, imprint, privacy) keep a readable max-width */
.prose { max-width: 780px; }
.prose p { margin-bottom: 20px; }
.prose h2 { margin: 40px 0 16px; }
.prose h3 { margin: 32px 0 12px; }
.prose ul { margin: 16px 0 16px 24px; }
.prose li { margin-bottom: 8px; }

/* ---- MAP BLOCK ---- */
.map-block { margin: 48px 0; }
.map-heading { font-size: 36px; font-weight: 900; margin-bottom: 24px; color: var(--dark); }
.map-viewport { height: 520px; border-radius: 8px; overflow: hidden; }

/* ---- CONTACT PAGE ---- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  padding: 64px 0;
}

.contact-info h2 { margin-bottom: 24px; }
.contact-info address { font-style: normal; line-height: 28px; margin-bottom: 24px; }
.contact-info .detail-row { display: flex; gap: 8px; margin-bottom: 8px; font-size: 15px; }
.contact-info .detail-label { color: var(--gray); min-width: 80px; }

.contact-form h2 { margin-bottom: 24px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.form-group label .req { color: var(--orange); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 15px;
  color: var(--dark);
  background: var(--white);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #cdcdcd;
}
.form-group textarea { min-height: 140px; resize: vertical; }

.consent-row { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 20px; }
.consent-row input[type="checkbox"] { margin-top: 4px; flex-shrink: 0; }
.consent-row label { font-size: 12px; color: var(--gray); }
.consent-row label a { color: var(--orange); }

.form-submit .btn-primary {
  background: var(--orange);
  color: var(--white);
  text-transform: none;
  letter-spacing: 0;
}
.form-submit .btn-primary:hover { background: var(--orange-hover); }

/* ---- FOOTER ---- */

.site-footer {
  background: var(--white);
  color: var(--dark-alt);
  padding: 24px 0 0;
}

.footer-grid {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.footer-brand { display: flex; justify-content: center; align-items: center; padding: 8px 0; }

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 16px 0;
  font-size: 13px;
  color: #828282;
}
.footer-right { display: flex; align-items: center; gap: 20px; justify-self: end; }
.footer-right a { color: #828282; text-decoration: none; transition: color 0.2s; font-size: 13px; }
.footer-right a:hover { color: #3b3537; }
.social-links a { color: #828282; display: flex; align-items: center; transition: color 0.2s; }
.social-links a:hover { color: #3b3537; }

.footer-legal-links { display: flex; gap: 20px; }
.social-links { display: flex; gap: 16px; }

/* ---- PAGE CTA ---- */
.page-cta { padding: 48px 0 64px; }

/* ---- IMAGE-TEXT BLOCKS ---- */

.image-text-block {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 48px;
  align-items: start;
  margin: 0 0 0 0;
}

.image-text-block.reverse {
  grid-template-columns: 45% 55%;
  margin-left: 0;
}

.image-text-block.reverse .image-text-content {
  order: 2;
}
.image-text-block.reverse .image-text-image {
  order: 1;
}

.image-text-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 6px 0 0 6px;
}

.image-text-block.reverse .image-text-image {
  border-radius: 0 6px 6px 0;
}

.image-text-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-text-content {
  padding: 56px 0 56px;
}

.image-text-content h2 {
  font-size: 36px;
  font-weight: 900;
  margin-bottom: 24px;
}

.check-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.check-item img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.check-item p {
  font-size: 15px;
  line-height: 24px;
  color: var(--dark-alt);
  margin: 0;
}

@media (max-width: 1024px) {
  .image-text-block,
  .image-text-block.reverse {
    grid-template-columns: 1fr;
  }
  .image-text-block.reverse .image-text-content { order: 1; }
  .image-text-block.reverse .image-text-image  { order: 2; }
}

/* ---- RESPONSIVE ---- */

@media (max-width: 1024px) {
  .layers-grid, .profile-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero-claim p, .hero-claim { font-size: 36px; }
  .hero-subtitle { font-size: 18px; }
  h1 { font-size: 36px; line-height: 44px; }
  h2 { font-size: 28px; line-height: 36px; }

  .main-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 20px 24px; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav li { margin: 0; }
  .hamburger { display: block; }

  .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .hero-claim p, .hero-claim { font-size: 28px; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { text-align: center; }
}
