/* =============================================
   AXENT GmbH — Shared Stylesheet
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Jost:wght@300;400;500;600;700&display=swap');

:root {
  --primary:        #1c2b3a;
  --primary-light:  #2d4459;
  --primary-mid:    #243547;
  --accent:         #b8935a;
  --accent-light:   #d4ae7c;
  --accent-dark:    #8f6e3f;
  --bg:             #f7f6f3;
  --bg-alt:         #eeecea;
  --white:          #ffffff;
  --text:           #1c2b3a;
  --text-mid:       #4a5568;
  --text-muted:     #8492a6;
  --border:         #dddad3;
  --border-light:   #edebe6;
  --shadow:         0 4px 24px rgba(28,43,58,0.08);
  --shadow-lg:      0 12px 48px rgba(28,43,58,0.14);
  --radius:         6px;
  --radius-lg:      12px;
  --transition:     all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-head:      'Cormorant Garamond', Georgia, serif;
  --font-body:      'Jost', system-ui, sans-serif;
  --max-w:          1200px;
  --nav-h:          80px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── TYPOGRAPHY ───────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  color: var(--primary);
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: 1.25rem; font-weight: 500; }
h5 { font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; }

p { color: var(--text-mid); line-height: 1.8; }

.label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* ── LAYOUT ───────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 5rem 0; }

.section-header {
  max-width: 640px;
  margin-bottom: 3.5rem;
}

.section-header.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-header p {
  margin-top: 1rem;
  font-size: 1.05rem;
}

/* ── NAVBAR ───────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: rgba(247,246,243,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(247,246,243,0.98);
  box-shadow: 0 2px 20px rgba(28,43,58,0.07);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
}

.nav-logo span { color: var(--accent); }

.nav-logo-icon {
  width: 36px; height: 36px;
  background: var(--primary);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
}

.nav-logo-icon svg { width: 22px; height: 22px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-mid);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: var(--bg-alt);
}

.nav-links a.nav-cta {
  background: var(--primary);
  color: var(--white);
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius);
}

.nav-links a.nav-cta:hover {
  background: var(--primary-light);
  color: var(--white);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none; border: none;
}

.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem;
  z-index: 999;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: var(--shadow);
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-mid);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  transition: var(--transition);
  display: block;
}

.mobile-menu a:hover, .mobile-menu a.active {
  color: var(--primary);
  background: var(--bg);
}

/* ── BUTTONS ──────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(28,43,58,0.2);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(184,147,90,0.3);
}

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

/* ── CARDS ────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border);
}

.card-body { padding: 2rem; }
.card-img { width: 100%; height: 220px; object-fit: cover; }

/* ── GRID HELPERS ─────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ── FORMS ────────────────────────────────── */
.form-group {
  margin-bottom: 1.25rem;
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--primary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

input, textarea, select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
  transition: var(--transition);
  outline: none;
  appearance: none;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(28,43,58,0.08);
}

textarea { min-height: 140px; resize: vertical; }

/* ── DIVIDER ──────────────────────────────── */
.divider {
  width: 48px; height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 1rem 0 1.5rem;
}

.divider.centered { margin-left: auto; margin-right: auto; }

/* ── STAT BLOCK ───────────────────────────── */
.stat-num {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.stat-unit {
  display: inline;
  color: var(--accent);
}

/* ── ICON BOX ─────────────────────────────── */
.icon-box {
  width: 56px; height: 56px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  transition: var(--transition);
  flex-shrink: 0;
}

.card:hover .icon-box {
  background: var(--primary);
}

.icon-box svg { transition: var(--transition); }
.card:hover .icon-box svg path,
.card:hover .icon-box svg rect,
.card:hover .icon-box svg circle,
.card:hover .icon-box svg polyline,
.card:hover .icon-box svg line { stroke: var(--white); }

/* ── HERO BASE ────────────────────────────── */
.hero {
  min-height: 100vh;
  padding-top: var(--nav-h);
  background: var(--primary);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.page-hero {
  padding: calc(var(--nav-h) + 4rem) 0 4rem;
  background: var(--primary);
  position: relative;
  overflow: hidden;
}

.page-hero h1,
.page-hero .breadcrumb { color: var(--white); }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.5rem;
}

.breadcrumb a { color: rgba(255,255,255,0.6); transition: var(--transition); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: var(--accent-light); }

/* ── TAGS ─────────────────────────────────── */
.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  background: var(--bg-alt);
  color: var(--text-mid);
}

.tag.accent { background: rgba(184,147,90,0.12); color: var(--accent-dark); }
.tag.primary { background: rgba(28,43,58,0.08); color: var(--primary); }

/* ── TOAST NOTIFICATION ───────────────────── */
#toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 280px;
  max-width: 400px;
  font-size: 0.9rem;
  animation: slideInToast 0.3s ease;
}

.toast.success { border-left: 4px solid #10b981; }
.toast.error   { border-left: 4px solid #ef4444; }
.toast.info    { border-left: 4px solid var(--accent); }

@keyframes slideInToast {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

@keyframes fadeOutToast {
  from { transform: translateX(0); opacity: 1; }
  to   { transform: translateX(100%); opacity: 0; }
}

/* ── FOOTER ───────────────────────────────── */
footer {
  background: var(--primary);
  color: var(--white);
  padding: 5rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-brand p { color: rgba(255,255,255,0.6); margin-top: 1rem; font-size: 0.9rem; line-height: 1.8; }

.footer-logo {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  display: block;
}

.footer-logo span { color: var(--accent); }

.footer-col h5 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.25rem;
}

.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--white); padding-left: 4px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p { color: rgba(255,255,255,0.4); font-size: 0.82rem; margin: 0; }

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  color: rgba(255,255,255,0.6);
}

.social-link:hover {
  background: var(--accent);
  color: var(--white);
}

/* ── BG DECORATION ────────────────────────── */
.bg-deco {
  position: absolute;
  pointer-events: none;
  opacity: 0.06;
}

/* ── UTILITY ──────────────────────────────── */
.text-center { text-align: center; }
.text-white  { color: var(--white) !important; }
.text-accent { color: var(--accent) !important; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.bg-white  { background: var(--white); }
.bg-dark   { background: var(--primary); }
.bg-alt    { background: var(--bg-alt); }

/* ── ANIMATIONS ───────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ───────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-h: 68px; }
  section { padding: 3.5rem 0; }

  .nav-links { display: none; }
  .hamburger { display: flex; }

  .grid-2,
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn { padding: 0.75rem 1.5rem; }
}
