/* Theme: October Mist + dark brown + white/off-white */
/* Colors */
:root {
  --bg: #BFC7B2;
  --text: #4A3F35;
  --text-strong: #3A3028;
  --surface: #FFFFFF;
  --surface-2: #F7F7F5;
  --border: rgba(74,63,53,0.8);
  --shadow: 0 12px 30px rgba(0,0,0,0.08);
  --shadow-soft: 0 8px 20px rgba(0,0,0,0.06);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --container: 1120px;
}

* { box-sizing: border-box; }
html, body { height: 100%; 
  font-family: 'IBM Plex Serif', Georgia, serif;
  text-align: left;
}

body {
  font-family: 'IBM Plex Serif', Georgia, serif;
}


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

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(188,255,217,0.3);
  backdrop-filter: blur(5px);
  border-bottom: 1px solid rgba(74,63,53,0.10);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
  flex-wrap: nowrap;
  min-width: 0;
}
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
  width: 220px;
  min-height: 240px;
  text-decoration: none;
}
.brand svg { width: 120px; height: 120px; flex-shrink: 0; }
.brand img.brand-logo { width: 120px; height: 120px; object-fit: contain; flex-shrink: 0; display: block; }
.brand-name {
  font-family: 'IBM Plex Serif', Georgia, serif;
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0.2px;
  color: var(--text-strong);
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  max-width: 220px;
  text-align: center;
  line-height: 1.3;
  display: block;
}
.nav {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: nowrap;
  flex-shrink: 0;
  white-space: nowrap;
  font-family: 'Noto Sans', sans-serif;
}
.nav a {
  padding: 8px 10px;
  border-radius: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav a.active {
  background: rgba(191,199,178,0.45);
  text-decoration: none;
}
/* Mobile hamburger menu (hidden by default) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-strong);
  border-radius: 2px;
  transition: all 0.25s;
}
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(74,63,53,0.25);
  color: var(--text-strong);
  background: var(--surface);
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}
.cta.primary {
  background: var(--text);
  color: var(--surface);
  border-color: rgba(74,63,53,0.35);
}
.cta.primary:hover { background: #F5C518; color: var(--text-strong); border-color: #E0B000; filter: none; }
.cta:hover { text-decoration: none; }

.hero {
  padding: 44px 0 24px;
}
.hero-card {
  background: linear-gradient(90deg, rgba(247,247,245,0.70), rgba(247,247,245,0.45));
  border: 1px solid rgba(74,63,53,0.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0;
  min-height: 420px;
}
.hero-copy {
  padding: 44px 42px;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(191,199,178,0.55);
  border: 1px solid rgba(74,63,53,0.10);
  font-size: 14px;
  color: var(--text-strong);
}
h1 {
  margin: 16px 0 10px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.08;
  color: var(--text-strong);
  letter-spacing: -0.5px;
}
.lead {
  font-size: 18px;
  max-width: 58ch;
}
.hero-actions {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-media {
  position: relative;
  background:
    radial-gradient(circle at 20% 30%, rgba(191,199,178,0.55), transparent 60%),
    radial-gradient(circle at 80% 20%, rgba(74,63,53,0.10), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,0.25), rgba(247,247,245,0.65));
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='700'%3E%3Cdefs%3E%3CradialGradient id='g' cx='50%25' cy='50%25' r='60%25'%3E%3Cstop offset='0%25' stop-color='%23FFFFFF' stop-opacity='.65'/%3E%3Cstop offset='100%25' stop-color='%23FFFFFF' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='620' cy='220' r='240' fill='url(%23g)'/%3E%3Ccircle cx='580' cy='420' r='180' fill='url(%23g)'/%3E%3Ccircle cx='700' cy='520' r='140' fill='url(%23g)'/%3E%3C/svg%3E");
  background-size: cover;
  opacity: 0.65;
  pointer-events: none;
}
.hero-media-inner {
  position: absolute;
  inset: 22px;
  border-radius: 18px;
  border: 1px solid rgba(74,63,53,0.10);
  background: rgba(255,255,255,0.32);
  box-shadow: var(--shadow-soft);
}

.section {
  padding: 26px 0 54px;
}
.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 14px;
}
.section-title h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: 26px;
}
.section-title p {
  margin: 0;
  opacity: 0.9;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: rgba(247,247,245,0.82);
  border: 1px solid rgba(74,63,53,0.12);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 18px 18px 16px;
}
.card h3 {
  margin: 10px 0 8px;
  color: var(--text-strong);
}
.card p { margin: 0 0 14px; }
.card .mini {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(74,63,53,0.14);
  background: rgba(255,255,255,0.55);
}
.icon {
  width: 30px;
  height: 30px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(191,199,178,0.55);
  border: 1px solid rgba(74,63,53,0.10);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}
.panel {
  background: rgba(247,247,245,0.86);
  border: 1px solid rgba(74,63,53,0.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 20px;
}
.panel h3 {
  margin: 0 0 10px;
  color: var(--text-strong);
}
ul.clean {
  margin: 10px 0 0;
  padding-left: 18px;
}
ul.clean li { margin: 8px 0; }

.form {
  display: grid;
  gap: 12px;
}
.field {
  display: grid;
  gap: 6px;
}
label {
  font-size: 14px;
  color: var(--text-strong);
}
input, textarea, select {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(74,63,53,0.18);
  background: rgba(255,255,255,0.80);
  color: var(--text-strong);
  outline: none;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, textarea:focus, select:focus {
  border-color: rgba(74,63,53,0.35);
  box-shadow: 0 0 0 4px rgba(191,199,178,0.35);
}

.footer {
  padding: 14px 0;
  background: rgba(247,247,245,0.75);
  border-top: 1px solid rgba(74,63,53,0.10);
  font-family: 'Noto Sans', sans-serif;
}
.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 240px;
  flex-wrap: nowrap;
}
.small {
  font-size: 13px;
  opacity: 0.9;
}

.notice {
  font-size: 13px;
  opacity: 0.95;
  background: rgba(255,255,255,0.55);
  border: 1px dashed rgba(74,63,53,0.20);
  padding: 10px 12px;
  border-radius: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(74,63,53,0.14);
  font-size: 13px;
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { min-height: 300px; }
  .cards { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  /* Header: show hamburger, hide nav by default */
  .header-inner {
    flex-wrap: wrap;
    position: relative;
  }
  .brand-name {
    font-size: 14px;
    white-space: normal;
    line-height: 1.3;
    text-align: center;
  }
  .nav-toggle {
    display: flex;
  }
  .header-inner > .cta.primary {
    display: none; /* hide top CTA on mobile, it's also in hero */
  }
  .nav {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 4px;
    padding: 8px 0 12px;
    border-top: 1px solid rgba(74,63,53,0.10);
  }
  .nav.open {
    display: flex;
  }
  .nav a {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
  }

  /* Hero */
  .hero { padding: 20px 0 16px; }
  .hero-copy { padding: 24px 20px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { min-height: 260px; }
  .hero-media-inner {
    width: 180px;
    height: 180px;
  }
  .lead { font-size: 15px; }

  /* Cards */
  .cards { grid-template-columns: 1fr; }

  /* Split panels */
  .split { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { flex-direction: column; align-items: flex-start; min-height: unset; }
  .footer { padding: 20px 0 30px; }
}

@media (max-width: 480px) {
  .brand-name { font-size: 12px; text-align: center; }
  .hero-copy { padding: 16px 14px; }
  h1 { font-size: 26px; }
  .lead { font-size: 14px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .cta { width: 100%; justify-content: center; }
  .section { padding: 16px 0 32px; }
  .section-title { flex-direction: column; gap: 4px; }
  .panel { padding: 14px; }
  .card { padding: 14px; }
}

/* Typography tweaks */
p, li, .lead {
  text-align: center;
  line-height: 1.6;
}

h1, h2, h3 {
  font-style: italic;
}

/* Keep navigation/buttons from stretching with center */
.nav, .nav a, .cta, .kicker, .mini, .badge, .notice, label, input, textarea, select, button {
  text-align: left;
}

/* Noto Sans for cards, panels, footer */
.card,
.card h3,
.card p,
.card .mini,
.panel,
.panel h3,
.panel p,
.panel li,
.footer,
.footer p,
.footer .brand-name,
.footer .notice,
.footer .small {
  font-family: 'Noto Sans', sans-serif;
}

/* About page photo */
.hero-media-inner {
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

/* About page photo – fixed 250x250 */
.hero-media-inner {
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
  position: absolute;
  inset: 22px;
}

.about-hero .hero-media-inner {
  position: absolute;
  inset: unset;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 260px;
  padding: 0;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Map iframe fills hero-media-inner fully */
.contact-hero .hero-media-inner {
  padding: 0;
  overflow: hidden;
  border-radius: 18px;
}
.contact-hero .hero-media-inner iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.bio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 18px;
  display: block;
}

.logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}


/* Welcome image in hero-media */
.hero-media-inner img.welcome-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 0;
}


/* Services hero — welcome-img fills edge to edge, no padding */
.services-hero .hero-media-inner {
  padding: 0;
  overflow: hidden;
  border-radius: 18px;
}
.services-hero .hero-media-inner img.welcome-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 0;
  position: absolute;
  inset: 0;
}

/* Language switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 4px 8px;
  border-radius: 999px;
  border: 2px solid #E0B000;
  background: #F5C518;
  font-family: 'Noto Sans', sans-serif;
  font-size: 20px;
  color: var(--text-strong);
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 1;
}
.lang-switch:hover { background: #FFD83A; border-color: #C89A00; text-decoration: none; transform: scale(1.08); transition: all 0.15s; }
.lang-switch .flag { font-size: 22px; line-height: 1; }

/* Noto Sans for cards, panels, footer, nav */
.card, .card h3, .card p, .card .mini,
.panel, .panel h3, .panel p, .panel li,
.footer, .footer p, .footer .brand-name, .footer .notice, .footer .small,
.nav, .nav a {
  font-family: 'Noto Sans', sans-serif;
}
