@font-face {
  font-family: 'Abuget';
  src: url('Abuget.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

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

html {
  height: auto;
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
}

body {
  background: #ffffff;
  font-family: 'Nunito', sans-serif;
  color: #222;
  display: flex;
  flex-direction: column;
  opacity: 0;
}

body.loaded {
  animation: riseFade 1s ease-out forwards;
}

/* ── Top bar ── */
#top-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 18px 36px 8px 36px;
}

#site-title {
  font-family: 'Abuget', sans-serif;
  font-size: 2.4rem;
  font-weight: normal;
  color: #0a6b50;
  letter-spacing: 0.02em;
  cursor: pointer;
}

/* ── Banner wrapper (full width) ── */
#banner-wrapper {
  position: relative;
  padding: 0 36px 0 36px;
}

/* ── Main layout (sidebar + content below banner) ── */
#layout {
  display: flex;
  margin-top: 130px;
}

/* ── Sidebar ── */
#sidebar {
  width: 210px;
  flex-shrink: 0;
  padding: 0 8px 32px 36px;
  border-right: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#sidebar button {
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0a6b50;
  padding: 10px 14px;
  border-radius: 12px;
  transition: background 0.3s, color 0.3s, transform 0.2s;
}

/* Hover indents on the page menu */
#sidebar button:hover {
  background: #ecfdf5;
  transform: translateX(6px);
}

#sidebar button.active {
  background: none;
  color: #ea580c;
  transform: translateX(6px);
}

/* ── Content area ── */
#content-area {
  flex: 1;
  padding: 0 36px 36px 20px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Keyframes */
@keyframes riseFade {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Banner ── */
#banner {
  position: relative;
  border: 1.5px solid #0a6b50;
  border-radius: 20px;
  overflow: hidden;
  line-height: 0;
  height: 240px;
}

#banner img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

#banner-flower-anchor {
  position: absolute;
  left: 160px;
  top: 115px;
  width: 480px;
  height: 480px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

#banner-flower {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0px 4px 12px rgba(0, 0, 0, 0.25));
  animation: spinSlow 384s linear infinite;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

#banner-placeholder {
  width: 100%;
  height: 160px;
  background: #ecfdf5;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 0.9rem;
  font-family: 'Nunito', sans-serif;
}

/* ── Page sections ── */
.page {
  display: none;
}

.page.active {
  display: block;
  animation: fadeIn 0.4s ease-in-out forwards;
}

.page h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #0a6b50;
  margin-bottom: 20px;
}

.page p {
  font-size: 1rem;
  line-height: 1.5;
  color: #444;
  max-width: none;
  margin-bottom: 8px;
}

.page p.intro {
  font-size: 1.15rem;
  font-weight: 600;
  color: #0a6b50;
}

.page ul {
  list-style: none;
  max-width: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.page ul li {
  position: relative;
  padding-left: 20px;
  font-size: 1rem;
  line-height: 1.5;
  color: #444;
}

.page ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0a6b50;
}

.page ul li.section-heading {
  padding-left: 0;
  margin-top: 20px;
}

.page ul li.section-heading::before {
  display: none;
}

.page ul ul {
  margin-top: 8px;
}

.page ul ul li::before {
  width: 4px;
  height: 4px;
  top: 13px;
  background: #6ee7b7;
}

/* ── Contact page ── */
.contact-cards {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.contact-card {
  flex: 1;
  min-width: 220px;
  background: #f0fdf4;
  border: 1px solid #d1fae5;
  border-radius: 16px;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0a6b50;
  margin: 0;
}

.contact-card h2 a {
  color: inherit;
  font-size: inherit;
  text-decoration: none;
  cursor: pointer;
}

.contact-card h2 a:hover {
  text-decoration: underline;
}

.contact-card .credentials {
  font-size: 0.8rem;
  color: #6b7280;
  font-style: italic;
}

.contact-card .contact-role {
  font-size: 0.9rem;
  font-weight: 600;
  color: #065f46;
}

.contact-card p,
.contact-card a {
  font-size: 0.9rem;
  color: #444;
  text-decoration: none;
}

.contact-card a:hover {
  color: #0a6b50;
  text-decoration: underline;
}

.bio-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: none;
  margin-top: 24px;
}

/* ── Gallery ── */
.gallery-grid {
  columns: 4;
  column-gap: 28px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 28px;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}


/* ── Footer ── */
#site-footer {
  margin-top: 60px;
  padding: 24px 36px;
  border-top: 1px solid #e5e7eb;
  text-align: center;
  font-size: 0.85rem;
  color: #9ca3af;
}

.bio-section h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0a6b50;
  padding-bottom: 6px;
  border-bottom: 1px solid #d1fae5;
}

/* ── Mobile (portrait) ── */
@media (max-width: 768px) {

  /* Center and shrink the site title */
  #top-bar {
    justify-content: center;
    padding: 12px 16px 6px;
  }

  #site-title {
    font-size: 1.8rem;
  }

  /* Narrow banner margins */
  #banner-wrapper {
    padding: 0 16px;
  }

  /* Shorter banner (half desktop height) */
  #banner {
    height: 120px;
  }

  /* Flower: a bit smaller, repositioned to match */
  #banner-flower-anchor {
    left: 80px;
    top: 58px;
    width: 180px;
    height: 180px;
  }

  /* Stack layout vertically; margin accounts for flower drooping ~28px below banner */
  #layout {
    flex-direction: column;
    margin-top: 34px;
  }

  /* Sidebar becomes a horizontal scrollable tab strip */
  #sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
    padding: 6px 12px 2px;
  }

  /* 3-column grid so all 6 buttons are always visible */
  #sidebar nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
  }

  #sidebar button {
    padding: 7px 6px;
    font-size: 0.78rem;
    white-space: nowrap;
    border-radius: 20px;
    text-align: center;
  }

  /* No horizontal slide on mobile */
  #sidebar button:hover {
    transform: none;
  }

  #sidebar button.active {
    background: #fff7ed;
    color: #ea580c;
    transform: none;
  }

  /* Content area: full width with comfortable padding */
  #content-area {
    padding: 16px 16px 24px;
  }

  /* Slightly smaller page headings */
  .page h1 {
    font-size: 1.5rem;
    margin-bottom: 14px;
  }

  /* Gallery: 2 columns */
  .gallery-grid {
    columns: 2;
    column-gap: 12px;
  }

  .gallery-item {
    margin-bottom: 12px;
  }

  /* Contact cards: stack vertically */
  .contact-cards {
    flex-direction: column;
  }

  .contact-card {
    min-width: unset;
  }

  /* Footer */
  #site-footer {
    margin-top: 32px;
    padding: 16px;
  }
}
