@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=DM+Mono:wght@400;500;700&family=Instrument+Serif:ital@0;1&display=swap');

:root {
    --background: 40 33% 94%;
    --foreground: 164 29% 14%;
    --border: 38 20% 82%;
    --input: 38 20% 78%;
    --ring: 28 71% 48%;
    --card: 39 30% 97%;
    --card-foreground: 164 29% 14%;
    --card-border: 38 20% 82%;
    --popover: 39 30% 97%;
    --popover-foreground: 164 29% 14%;
    --popover-border: 38 20% 82%;
    --primary: 164 29% 14%;
    --primary-foreground: 40 33% 94%;
    --secondary: 34 36% 86%;
    --secondary-foreground: 164 29% 14%;
    --muted: 37 22% 88%;
    --muted-foreground: 165 10% 41%;
    --accent: 28 71% 48%;
    --accent-foreground: 40 33% 94%;
    --destructive: 4 56% 43%;
    --destructive-foreground: 40 33% 94%;
    --sidebar: 164 29% 14%;
    --sidebar-foreground: 40 33% 94%;
    --sidebar-border: 165 18% 24%;
    --sidebar-primary: 28 71% 48%;
    --sidebar-primary-foreground: 40 33% 94%;
      --bg: #f3efe7;
  --panel: #f9f5ee;
  --card: #fffdf9;
  --ink: #1d2d25;
  --muted: #587066;
  --line: rgba(18, 34, 28, 0.12);
  --brand: #244d3a;
  --brand-strong: #163c30;
  --brand-soft: #dfeee2;
  --gold: #d0a76a;
  --shadow: 0 18px 38px rgba(20, 42, 31, 0.12);
    --app-font-sans: 'DM Sans', sans-serif;
    --app-font-serif: 'Instrument Serif', Georgia, serif;
    --app-font-mono: 'DM Mono', monospace;
    --radius: 12px;

}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: 'DM Sans', Arial, sans-serif;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

h1, h2, h3, .brand, .display, .title-serif {
  font-family: 'Instrument Serif', Georgia, serif;
  letter-spacing: -0.05em;
  font-weight: 400;
  margin: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 253, 249, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid hsl(var(--border));
}

.container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
    display: flex;
    gap: 10px;
    font-size: 1.2rem;
    justify-content: center;
  
}

.brand-mark {
  width: 200px;
  height: 200px;
  position:absolute;
  top:-50%;
  object-fit: contain;

}


.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  color: hsl(var(--muted-foreground));
  font-size: 0.98rem;
}

.nav a,
.nav-dropdown-toggle {
  position: relative;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
  padding: 10px 12px;
  border-radius: 8px;
  transition: color 180ms ease, background-color 180ms ease;
}

.nav a:hover,
.nav a:focus-visible,
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle:focus-visible {
  background: hsl(var(--secondary));
  color: hsl(var(--primary));
  outline: none;
}

.nav > a:not(.nav-cta)::after,
.nav-dropdown-toggle::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 5px;
  left: 12px;
  height: 2px;
  border-radius: 2px;
  background: hsl(var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav > a:not(.nav-cta):hover::after,
.nav > a:not(.nav-cta):focus-visible::after,
.nav-dropdown-toggle:hover::after,
.nav-dropdown-toggle:focus-visible::after,
.nav-dropdown.is-open .nav-dropdown-toggle::after { transform: scaleX(1); }

.nav-dropdown { position: relative; }

.nav-dropdown-toggle span {
  display: inline-block;
  margin-left: 4px;
  transition: transform 180ms ease;
}

.nav-dropdown.is-open .nav-dropdown-toggle span { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 190px;
  display: grid;
  gap: 4px;
  padding: 8px;
  background: hsl(var(--popover));
  border: 1px solid hsl(var(--popover-border));
  border-radius: 8px;
  box-shadow: 0 16px 30px rgba(26, 43, 35, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.nav-dropdown.is-open .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
  color: hsl(var(--primary));
  background: hsl(var(--secondary));
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 1px solid hsl(var(--border));
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: hsl(var(--foreground));
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-cta {
    border: 0;
    border-radius: 999px;
    background: var(--brand-strong);
    color: hsl(var(--background));
    padding: 13px 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .03em;
    transition: transform .2s ease, background-color .2s ease;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  transform: translateY(-1px);
  outline: none;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  padding: 6px 10px;
}

.lang-switcher label {
  color: hsl(var(--muted-foreground));
  font: 0.72rem var(--app-font-mono);
  text-transform: uppercase;
}

.lang-switcher select { border: 0; background: transparent; font: inherit; }

@media (max-width: 820px) {
  .topbar-inner { position: relative; min-height: 76px; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    gap: 4px;
    padding: 12px 0 16px;
    background: hsl(var(--card));
    border-bottom: 1px solid hsl(var(--border));
  }
  .nav.is-open { display: grid; }
  .nav a, .nav-dropdown-toggle { width: 100%; text-align: left; }
  .nav-dropdown-menu {
    position: static;
    min-width: 0;
    margin: 2px 0 4px 12px;
    padding: 4px 0 4px 10px;
    border: 0;
    border-left: 2px solid hsl(var(--accent));
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }
  .nav-dropdown:not(.is-open) .nav-dropdown-menu { display: none; }
  .nav-cta { width: auto !important; margin-top: 6px; text-align: center !important; }
}
