@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=DM+Sans:wght@400;500;600;700&display=swap');

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

:root {
  --bg: #FEFBF7;
  --bg-clay: #F7F3EE;
  --surface: #FFFFFF;
  --terra: #E86A33;
  --terra-dark: #D45A25;
  --earth: #5C3D2E;
  --text: #2A2A2A;
  --text-secondary: #7A7267;
  --text-muted: #B5ADA3;
  --border: #E8E2DA;
  --border-light: #F0EBE3;
  --accent-green: #4A6741;
  --accent-blue: #7BA7BC;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; }

/* Navbar */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 72px;
  background: rgba(40, 28, 18, 0.82);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}
.navbar.scrolled {
  background: rgba(40, 28, 18, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { text-decoration: none; display: flex; align-items: center; gap: 6px; flex-shrink: 0; white-space: nowrap; }
.nav-logo span { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 18px; color: #ffffff; line-height: 1; }
.nav-logo small { font-size: 9px; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.8px; line-height: 1; }

.nav-links { display: flex; align-items: center; gap: 0; list-style: none; margin: 0; padding: 0; }
.nav-links li { display: flex; }
.nav-links a {
  padding: 6px 10px;
  border-radius: 9999px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  transition: all 0.25s ease;
  white-space: nowrap;
}
.nav-links a:hover { background: rgba(255,255,255,0.15); color: #ffffff; }
.nav-links a.active { background: var(--terra); color: #fff; }

.nav-cta {
  padding: 8px 16px;
  background: var(--terra);
  color: #fff;
  text-decoration: none;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 500;
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-cta:hover { background: #D45A25; }

.mobile-toggle { display: none; background: none; border: none; cursor: pointer; color: #ffffff; }

@media (max-width: 1100px) {
  .nav-links a { padding: 6px 8px; font-size: 11px; }
  .nav-logo span { font-size: 16px; }
}

@media (max-width: 1024px) {
  .nav-links, .nav-cta { display: none; }
  .mobile-toggle { display: block; }
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 80vw; max-width: 320px;
  background: #1a1208;
  z-index: 1001;
  padding: 80px 24px 24px;
  box-shadow: -4px 0 24px rgba(0,0,0,0.3);
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 12px 20px;
  border-radius: 9999px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  margin-bottom: 4px;
}
.mobile-menu a.active { background: var(--terra); color: #fff; }
.mobile-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(42,42,42,0.3);
  z-index: 1000;
}
.mobile-overlay.open { display: block; }

/* Hero */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--earth);
}
.hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--earth) 0%, #8B6914 50%, var(--earth) 100%);
  opacity: 0.3;
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.35);
}
.hero-content { position: relative; z-index: 2; }
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  color: #fff;
  line-height: 1.05;
}
.hero-small {
  min-height: 50vh;
}
.hero-small h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* Section */
.section { padding: 80px 24px; }
.section-clay { background: var(--bg-clay); }
.container { max-width: 1200px; margin: 0 auto; }
.container-sm { max-width: 900px; margin: 0 auto; }

/* Overline */
.overline {
  font-size: 11px;
  font-weight: 600;
  color: var(--terra);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}

/* Headings */
.heading-lg {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  line-height: 1.15;
  color: var(--text);
}
.heading-xl {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
  color: var(--text);
}

/* Body text */
.text-secondary { color: var(--text-secondary); line-height: 1.7; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 9999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}
.btn-terra { background: var(--terra); color: #fff; }
.btn-terra:hover { background: var(--terra-dark); transform: translateY(-2px); box-shadow: 0 4px 20px rgba(232,106,51,0.25); }
.btn-outline { border: 1.5px solid var(--earth); color: var(--earth); background: transparent; }
.btn-outline:hover { background: var(--earth); color: #fff; }

/* Grid layouts */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(92,61,46,0.1);
}
.card-img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.card-body { padding: 20px; }
.card-title { font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 600; color: var(--text); }
.card-text { font-size: 13px; color: var(--text-secondary); margin-top: 6px; line-height: 1.6; }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--border-light);
  border-radius: 9999px;
  font-size: 11px;
  color: var(--earth);
}
.badge-green { color: var(--accent-green); }

/* Tabs/Filter */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 10px 20px;
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}
.filter-btn:hover { background: var(--border-light); }
.filter-btn.active { background: var(--earth); color: #fff; }

/* Stats */
.stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  color: var(--earth);
  line-height: 1;
}
.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* Team member */
.team-member { text-align: center; }
.team-avatar {
  width: 140px; height: 140px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto;
  border: 4px solid #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-name { font-size: 16px; font-weight: 600; margin-top: 16px; color: var(--text); font-family: 'DM Sans', sans-serif; }
.team-role { font-size: 14px; color: var(--text-secondary); }

/* Dark CTA section */
.section-dark {
  background: var(--earth);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.section-dark .heading-xl,
.section-dark h2 { color: #fff; }
.section-dark .text-secondary { color: #D4C5B9; }

/* Contact info */
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  font-size: 14px;
  color: var(--text-secondary);
}
.contact-info-item svg { color: var(--terra); flex-shrink: 0; margin-top: 3px; }
.contact-info-item a { color: var(--text-secondary); text-decoration: none; }
.contact-info-item a:hover { color: var(--terra); }

/* Form */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; color: var(--text); }
.form-input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.2s ease;
}
.form-input:focus { outline: none; border-color: var(--earth); box-shadow: 0 0 0 3px rgba(92,61,46,0.08); }
select.form-input { padding-left: 14px; appearance: auto; }
textarea.form-input { padding-left: 38px; resize: vertical; }
.input-wrap { position: relative; }
.input-wrap svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); width: 16px; height: 16px; }
.input-wrap textarea ~ svg { top: 14px; transform: none; }

/* Success message */
.success-box {
  text-align: center;
  padding: 48px;
}
.success-box h3 { font-size: 24px; margin-top: 16px; }

/* Footer */
.footer { background: var(--bg-clay); border-top: 1px solid var(--border-light); padding: 64px 24px 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.5fr 1fr; gap: 40px; max-width: 1200px; margin: 0 auto; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand span { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 20px; color: var(--earth); }
.footer-brand small { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.footer-heading { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 14px; color: var(--text-secondary); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--terra); }
.footer-bottom { max-width: 1200px; margin: 48px auto 0; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); }

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards;
}
.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.2s; }
.fade-up-3 { animation-delay: 0.3s; }
.fade-up-4 { animation-delay: 0.4s; }

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

/* Utility */
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mb-4 { margin-bottom: 16px; }
.mb-12 { margin-bottom: 48px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.justify-center { justify-content: center; }
.gap-4 { gap: 16px; }
.gap-8 { gap: 32px; }
.max-w-600 { max-width: 600px; margin-left: auto; margin-right: auto; }
.max-w-700 { max-width: 700px; margin-left: auto; margin-right: auto; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.italic { font-style: italic; }
img { max-width: 100%; height: auto; }
a { color: var(--terra); }


/* FINMA mobile responsive refinement */
html { width: 100%; overflow-x: hidden; }
body { width: 100%; }
video, iframe { max-width: 100%; }

.card-img { background: var(--bg-clay); }

@media (max-width: 1024px) {
  .nav-container { padding: 0 18px; }
  .section { padding: 64px 20px; }
  .hero { min-height: 72vh; }
  .hero-small { min-height: 34vh; padding-top: 72px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}

@media (max-width: 768px) {
  .navbar { height: 64px; }
  .nav-logo span { font-size: 17px; }
  .nav-logo small { font-size: 8px; }
  .mobile-menu { width: 86vw; padding-top: 78px; }

  .hero { min-height: 60vh; padding: 96px 20px 56px; }
  .hero-small { min-height: 28vh; padding: 96px 20px 44px; }
  .hero h1 { font-size: clamp(2rem, 11vw, 3.2rem); }
  .hero-content { width: 100%; padding: 0 10px; }

  .section { padding: 48px 18px; }
  .container, .container-sm { width: 100%; max-width: 100%; }
  .heading-xl { font-size: clamp(2rem, 10vw, 3rem); }
  .heading-lg { font-size: clamp(1.55rem, 7vw, 2.1rem); }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 22px; }
  .card { border-radius: 18px; }
  .card-img { aspect-ratio: 4 / 3; }
  .card-body { padding: 18px; }

  .filter-bar { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; margin-left: -4px; margin-right: -4px; }
  .filter-btn { flex: 0 0 auto; padding: 9px 16px; font-size: 13px; }

  .footer { padding: 48px 20px 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; }

  .success-box { padding: 28px 18px; }
  .form-input { font-size: 16px; }
}

@media (max-width: 480px) {
  .section { padding: 40px 14px; }
  .hero { min-height: 54vh; }
  .hero-small { min-height: 24vh; }
  .btn { width: 100%; justify-content: center; }
  .card-title { font-size: 16px; }
  .card-text { font-size: 13px; }
  .badge { font-size: 10px; padding: 4px 9px; }

  [style*="padding:140px 24px 60px"] { padding: 104px 16px 42px !important; }
  [style*="font-size:18px"] { font-size: 16px !important; }
  [style*="font-size:16px"] { font-size: 15px !important; }
  [style*="gap:8px"] { gap: 6px !important; }
}
.cert-readmore{
    display:inline-block;
    margin-top:12px;
    color:#E86A33;
    font-weight:600;
    text-decoration:none;
    transition:0.3s;
}

.cert-readmore:hover{
    opacity:0.7;
}

