/* ==========================================================================
   Alpen-Vest — Shared Stylesheet (Bootstrap 5 overrides + custom components)
   Layout, colours and spacing matched to alpen-vest.com screenshots.
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  --av-green: #21843b;          /* primary brand green (buttons, links, icons) */
  --av-green-dark: #1a6c30;     /* hover state */
  --av-green-soft: #eef8f0;     /* light tint backgrounds */
  --av-green-border: #cfe9d5;   /* tinted borders */
  --av-dark: #141414;           /* top bar / dark sections */
  --av-dark-2: #1b1b1b;
  --av-text: #111111;           /* headings */
  --av-body: #5d5d5d;           /* paragraph grey */
  --av-muted: #7a7a7a;
  --av-border: #e5e5e5;
  --av-radius: 14px;
  --font-head: 'Ubuntu', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
}

/* ---------- 2. Base ---------- */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--av-body);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  top: 0 !important;              /* keeps Google Translate from pushing body down */
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); color: var(--av-text); }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--av-green); }
img { max-width: 100%; }

/* Custom container widths taken from the screenshots */
.container-header { max-width: 1680px; }
.container-main   { max-width: 1290px; }
.container-narrow { max-width: 950px; }
.container-faq    { max-width: 780px; }

/* ---------- 3. Top bar ---------- */
.topbar { background: var(--av-dark); height: 40px; }
.topbar .btn-top {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  padding: 7px 18px;
  border-radius: 3px;
  letter-spacing: .2px;
}
.btn-top.register { background: var(--av-green); color: #fff; border: 1px solid var(--av-green); }
.btn-top.register:hover { background: var(--av-green-dark); color: #fff; }
.btn-top.login { color: #fff; border: 1px solid #fff; background: transparent; }
.btn-top.login:hover { background: #fff; color: var(--av-dark); }

/* ---------- 4. Header / navigation ---------- */
.site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: 0 4px 18px rgba(0,0,0,.06); }
.site-header .navbar { padding: 14px 0; }
.site-header .logo img { height: 52px; width: auto; }

.nav-pill {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 15px;
  color: var(--av-text);
  border: 1px solid var(--av-text);
  border-radius: 50px;
  padding: 4px 19px;
  line-height: 1.4;
  white-space: nowrap;
  transition: all .2s ease;
}
.nav-pill:hover,
.nav-pill.active { color: var(--av-green); border-color: var(--av-green); }
.navbar-nav { gap: 18px; }

/* Language switcher (styled like the live site, powered by Google Translate) */
.lang-switch .dropdown-menu {
  min-width: 92px;
  border-radius: 10px;
  border: 1px solid var(--av-border);
  box-shadow: 0 8px 22px rgba(0,0,0,.08);
  padding: 6px;
}
.lang-switch .dropdown-item {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 14px;
  border-radius: 6px;
  display: flex; align-items: center; gap: 6px;
}
.lang-switch .dropdown-item:active,
.lang-switch .dropdown-item:hover { background: var(--av-green-soft); color: var(--av-green); }
.flag { width: 16px; height: 11px; display: inline-block; vertical-align: -1px; border-radius: 1px; }
.lang-switch .dropdown-toggle::after { display: none; }

/* Hamburger */
.navbar-toggler { border: 1px solid var(--av-text); border-radius: 8px; width: 44px; height: 40px; padding: 0; display: grid; place-items: center; }
.navbar-toggler:focus { box-shadow: none; }
.hamburger { width: 22px; height: 2px; background: var(--av-text); display: block; position: relative; }
.hamburger::before, .hamburger::after {
  content: ''; position: absolute; left: 0; width: 22px; height: 2px; background: var(--av-text);
  transition: transform .25s ease;
}
.hamburger::before { top: -7px; }
.hamburger::after  { top: 7px; }

/* Hide Google Translate UI chrome */
#google_translate_element,
.goog-te-banner-frame,
iframe.skiptranslate,
.goog-te-gadget,
#goog-gt-tt, .goog-te-balloon-frame,
.VIpgJd-ZVi9od-ORHb-OEVmcd { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
font[style] { background: none !important; box-shadow: none !important; }

/* ---------- 5. Ticker ---------- */
.ticker-wrap { border-radius: 4px; overflow: hidden; background: #141414; min-height: 46px; }

/* ---------- 6. Page title (inner pages) ---------- */
.page-title {
  position: relative;
  text-align: center;
  padding: 72px 0 70px;
  overflow: hidden;
}
.page-title .leaf {
  position: absolute;
  width: 112px;
  left: 50%;
  top: 0;
  transform: translateX(-120px);
  opacity: .9;
  pointer-events: none;
}
.page-title h1 {
  position: relative;
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -.5px;
  margin-bottom: 8px;
}
.breadcrumb-av {
  font-size: 15px;
  color: var(--av-text);
  font-weight: 500;
}
.breadcrumb-av span.sep { margin: 0 6px; }

/* ---------- 7. Shared section helpers ---------- */
.section { padding: 80px 0; }
.tag-pill {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--av-green);
  background: var(--av-green-soft);
  border: 1px solid var(--av-green-border);
  border-radius: 50px;
  padding: 3px 18px;
  letter-spacing: .3px;
}
.section-title {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -.3px;
}
.btn-av {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 15px;
  background: var(--av-green);
  color: #fff;
  border: 1px solid var(--av-green);
  border-radius: 50px;
  padding: 12px 30px;
  transition: background .2s ease, transform .2s ease;
}
.btn-av:hover { background: var(--av-green-dark); color: #fff; transform: translateY(-2px); }

/* ---------- 8. Home hero ---------- */
.hero {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  min-height: 465px;
  display: flex;
  align-items: center;
  background: #2b2b2b center/cover no-repeat;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  z-index: 1;
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.18) 45%, rgba(0,0,0,0) 70%);
}
.hero-content { position: relative; z-index: 2; padding: 0 90px; max-width: 640px; }
.hero h1 {
  color: #fff;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 18px;
}
.hero p { color: #fff; font-size: 16px; line-height: 1.6; margin-bottom: 30px; max-width: 440px; }
.hero .btn-av { border-radius: 4px; font-size: 14px; padding: 10px 24px; }

/* ---------- 9. About block ---------- */
.about-title { font-size: 40px; font-weight: 700; line-height: 1.12; margin: 14px 0 32px; }
.about-text { font-size: 14px; line-height: 1.72; color: var(--av-body); }
.about-text p { margin: 0; }
.about-img { border-radius: 6px; width: 100%; object-fit: cover; aspect-ratio: 450 / 475; }

/* ---------- 10. Stats ---------- */
.stats-box {
  background: #f3fbf5;
  border: 1px solid var(--av-green-border);
  border-radius: 4px;
}
.stat-item { padding: 34px 40px 36px; }
.stat-item + .stat-item { border-left: 1px solid var(--av-green-border); }
.stat-num {
  font-family: var(--font-head);
  font-size: 50px;
  font-weight: 700;
  color: var(--av-green);
  line-height: 1;
}
.stat-label { font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--av-green); margin-left: 8px; }
.stat-item p { font-size: 14px; line-height: 1.7; margin: 22px 0 0; }

/* ---------- 11. Market cards ---------- */
.market-card {
  position: relative;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 6px 30px rgba(0,0,0,.07);
  padding: 50px 24px 26px;
  margin-top: 26px;
  height: calc(100% - 26px);
  transition: transform .25s ease, box-shadow .25s ease;
}
.market-card:hover { transform: translateY(-6px); box-shadow: 0 14px 36px rgba(0,0,0,.1); }
.market-icon {
  position: absolute;
  top: -22px; left: 24px;
  width: 46px; height: 46px;
  border-radius: 8px;
  background: var(--av-green);
  display: grid; place-items: center;
}
.market-icon svg { width: 24px; height: 24px; }
.market-card h3 { font-size: 20px; font-weight: 500; margin-bottom: 12px; }
.market-card p { font-size: 13px; line-height: 1.7; margin: 0; }

/* ---------- 12. Dark market overview ---------- */
.dark-section { background: var(--av-dark-2); }
.dark-section .section-title { color: #fff; }
.dark-section .tag-pill { background: transparent; border-color: #2d4d35; }
.tv-box { background: #fff; border-radius: 4px; overflow: hidden; height: 100%; min-height: 420px; }

/* ---------- 13. Process steps ---------- */
.step-card {
  border: 1px solid var(--av-border);
  border-radius: 4px;
  padding: 30px 24px 34px;
  display: flex;
  gap: 16px;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.step-card:hover { border-color: var(--av-green-border); box-shadow: 0 8px 26px rgba(0,0,0,.05); }
.step-card + .step-card { margin-top: 30px; }
.step-num {
  font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--av-text);
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--av-border);
  display: grid; place-items: center; flex-shrink: 0; margin-top: 4px;
}
.step-card h3 { font-size: 22px; font-weight: 500; margin-bottom: 14px; }
.step-card p { font-size: 15.5px; line-height: 1.7; margin: 0; max-width: 470px; }
.process-img { border-radius: 4px; width: 100%; height: 100%; object-fit: cover; min-height: 360px; }

/* ---------- 14. Feature (dark) cards ---------- */
.feature-dark {
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.035) 0 1px, transparent 1px) 0 0/6px 6px,
    #1a1a1a;
  padding: 90px 0;
}
.feature-card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  height: 100%;
  min-height: 500px;
  display: flex; flex-direction: column;
  text-align: center;
  transition: transform .25s ease;
}
.feature-card:hover { transform: translateY(-6px); }
.feature-card .fc-body { padding: 40px 28px 10px; }
.feature-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.feature-card p { font-size: 12.5px; line-height: 1.7; margin: 0; }
.feature-card img { margin-top: auto; width: 100%; display: block; }

/* ---------- 15. CTA band ---------- */
.cta-band {
  background-color: var(--av-green);
  background-image: radial-gradient(rgba(0,0,0,.08) 1.4px, transparent 1.5px);
  background-size: 9px 9px;
  color: #fff;
  overflow: hidden;
}
.cta-band .row { min-height: 420px; }
.cta-band h2 { color: #fff; font-size: 37px; font-weight: 700; line-height: 1.25; }
.cta-band p { font-size: 14px; margin: 18px 0 40px; }
.btn-white {
  font-family: var(--font-head); font-weight: 500; font-size: 14px;
  background: #fff; color: var(--av-green); border-radius: 4px; padding: 11px 24px; border: 0;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-white:hover { color: var(--av-green-dark); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.15); }
.cta-mockup { display: block; max-width: 440px; margin-left: auto; margin-top: 60px; }

/* ---------- 16. Account cards ---------- */
.acc-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 0 0 1px #f3f6f4, 0 2px 14px rgba(33,132,59,.06);
  padding: 44px 38px 30px;
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease;
}
.acc-card:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px var(--av-green-border), 0 16px 36px rgba(33,132,59,.10); }
.acc-card h3 { font-size: 20px; font-weight: 500; margin-bottom: 26px; }
.acc-price { font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--av-text); margin-bottom: 16px; }
.btn-acc {
  display: block; width: 100%; text-align: center;
  background: var(--av-green); color: #fff; border-radius: 50px; padding: 11px;
  font-family: var(--font-head); font-weight: 500; font-size: 14px;
  border: 1px solid #1a6c9a33;
  transition: background .2s ease;
}
.btn-acc:hover { background: var(--av-green-dark); color: #fff; }
.acc-divider {
  display: flex; align-items: center; gap: 10px;
  margin: 30px 0 28px; font-size: 14px; color: var(--av-text);
}
.acc-divider::before, .acc-divider::after { content: ''; flex: 1; height: 1px; background: #333; }
.acc-list { list-style: none; padding: 0; margin: 0; }
.acc-list li {
  display: flex; align-items: center; gap: 14px;
  font-size: 14.5px; color: var(--av-text);
  padding: 9.5px 0;
}
.acc-list svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ---------- 17. FAQ ---------- */
.faq-item { border-bottom: 1px solid #dcdcdc; padding: 22px 0 14px; }
.faq-q {
  width: 100%; background: none; border: 0; padding: 0; text-align: left;
  font-family: var(--font-body); font-weight: 600; font-size: 18px; color: var(--av-green);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q .chev { width: 16px; height: 16px; transition: transform .3s ease; flex-shrink: 0; opacity: .7; }
.faq-q.collapsed .chev { transform: rotate(-90deg); }
.faq-a { font-size: 14px; line-height: 1.85; color: var(--av-body); padding-top: 18px; }
.faq-a p { margin: 0; }

/* ---------- 18. Contact ---------- */
.contact-info { display: flex; gap: 14px; }
.ci-icon {
  width: 52px; height: 52px; border-radius: 50%; background: var(--av-green);
  display: grid; place-items: center; flex-shrink: 0;
}
.ci-icon svg { width: 22px; height: 22px; }
.contact-info h3 { font-size: 18px; font-weight: 700; margin: 2px 0 4px; }
.contact-info p { font-size: 14.5px; line-height: 1.6; margin: 0; }
.form-av label { font-size: 14.5px; color: var(--av-text); margin-bottom: 30px; }
.form-av label .req { color: var(--av-green); }
.form-av .form-control {
  border-radius: 50px; border: 1px solid #e3e3e3; height: 44px; padding: 8px 22px; font-size: 15px;
}
.form-av textarea.form-control { border-radius: 18px; height: 170px; resize: vertical; padding: 16px 22px; }
.form-av .form-control:focus { border-color: var(--av-green); box-shadow: 0 0 0 3px rgba(33,132,59,.12); }
.form-av .invalid-feedback { padding-left: 18px; }
.form-av .form-group { margin-bottom: 24px; }
.btn-send { border-radius: 50px; padding: 12px 26px; font-size: 15px; font-weight: 700; font-family: var(--font-body); }
.map-box { border-radius: 10px; overflow: hidden; background: #e5e3df; height: 440px; }
.map-box iframe { width: 100%; height: 100%; border: 0; }
.form-alert { display: none; border-radius: 12px; }

/* ---------- 19. Legal pages ---------- */
.legal { font-size: 15px; line-height: 1.85; }
.legal h2 { font-size: 24px; font-weight: 700; margin: 38px 0 14px; }
.legal h3 { font-size: 19px; font-weight: 500; margin: 26px 0 10px; }
.legal ul { padding-left: 0; list-style: none; }
.legal ul li { position: relative; padding-left: 22px; margin-bottom: 6px; }
.legal ul li::before {
  content: ''; position: absolute; left: 2px; top: 11px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--av-green);
}
.legal .lead-note { font-size: 16px; color: var(--av-text); }

/* ---------- 20. Footer ---------- */
.site-footer { padding: 90px 0 10px; background: #fff; }
.site-footer .container-narrow { max-width: 1290px; }
.site-footer h4 { font-size: 20px; font-weight: 500; margin-bottom: 18px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-links a, .footer-contact li { font-size: 16px; color: #3a3a3a; }
.footer-links a:hover { color: var(--av-green); }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 12px; line-height: 1.55; }
.footer-contact svg { width: 16px; height: 16px; margin-top: 4px; flex-shrink: 0; }
.footer-legal {
  font-size: 14px; line-height: 1.8; color: #7a7a7a;
  border-bottom: 1px solid #e3e3e3; padding: 28px 0 18px; margin-top: 20px;
}
.footer-legal p { margin: 0; }
.copyright { font-size: 14.5px; color: #7a7a7a; text-align: center; padding: 22px 0 14px; }

/* Back to top */
.to-top {
  position: fixed; right: 22px; bottom: 22px; width: 42px; height: 42px; border-radius: 50%;
  background: var(--av-green); color: #fff; display: grid; place-items: center; border: 0;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s ease; z-index: 1040;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }

/* ---------- 21. Scroll animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 22. Responsive ---------- */
@media (max-width: 1199.98px) {
  .navbar-nav { gap: 10px; }
  .nav-pill { padding: 4px 14px; font-size: 14px; }
}
@media (max-width: 991.98px) {
  .site-header .navbar-collapse {
    background: #fff; padding: 16px 0 8px;
  }
  .navbar-nav { gap: 10px; align-items: flex-start !important; }
  .nav-pill { font-size: 15px; }
  .hero-content { padding: 0 40px; }
  .hero h1 { font-size: 40px; }
  .stat-item + .stat-item { border-left: 0; border-top: 1px solid var(--av-green-border); }
  .section-title { font-size: 34px; }
  .page-title h1 { font-size: 46px; }
  .cta-mockup { margin: 40px auto 0; }
  .cta-band .row { min-height: 0; padding-top: 70px; }
}
@media (max-width: 575.98px) {
  .topbar .btn-top { padding: 6px 12px; font-size: 13px; }
  .site-header .logo img { height: 42px; }
  .hero { min-height: 420px; }
  .hero-content { padding: 0 22px; }
  .hero h1 { font-size: 32px; }
  .section { padding: 60px 0; }
  .about-title, .section-title, .cta-band h2 { font-size: 28px; }
  .page-title { padding: 56px 0 50px; }
  .page-title h1 { font-size: 36px; }
  .stat-item { padding: 28px 24px; }
  .acc-card { padding: 34px 26px 24px; }
  .step-card { padding: 24px 18px; }
  .feature-card { min-height: 0; }
  .map-box { height: 320px; }
}
