/* Theme tokens — light default; system dark via media query;
   explicit override via html.light / html.dark (Hugo root class).
   https://gohugo.io/content-management/syntax-highlighting/ */
:root {
  color-scheme: light;
  --hamro-bg: #eef1f4;
  --hamro-bg-alt: #ffffff;
  --hamro-surface: #ffffff;
  --hamro-nav: #ffffff;
  --hamro-text: #1d242b;
  --hamro-text-muted: #5a6570;
  --hamro-heading: #15202b;
  --hamro-border: rgba(21, 32, 43, 0.12);
  --hamro-accent: #2a9ea0;
  --hamro-accent-soft: rgba(42, 158, 160, 0.18);
  --hamro-btn-text: #ffffff;
  --hamro-hero-overlay: rgba(12, 16, 22, 0.45);
  --hamro-preloader: #eef1f4;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --hamro-bg: #353b43;
    --hamro-bg-alt: #242930;
    --hamro-surface: #2b3038;
    --hamro-nav: #1d2024;
    --hamro-text: #ffffff;
    --hamro-text-muted: #c5ced6;
    --hamro-heading: #afbac4;
    --hamro-border: rgba(255, 255, 255, 0.1);
    --hamro-accent: #57cbcc;
    --hamro-accent-soft: rgba(87, 203, 204, 0.35);
    --hamro-btn-text: #ffffff;
    --hamro-hero-overlay: rgba(0, 0, 0, 0.4);
    --hamro-preloader: #2c2f36;
  }
}

html.dark {
  color-scheme: dark;
  --hamro-bg: #353b43;
  --hamro-bg-alt: #242930;
  --hamro-surface: #2b3038;
  --hamro-nav: #1d2024;
  --hamro-text: #ffffff;
  --hamro-text-muted: #c5ced6;
  --hamro-heading: #afbac4;
  --hamro-border: rgba(255, 255, 255, 0.1);
  --hamro-accent: #57cbcc;
  --hamro-accent-soft: rgba(87, 203, 204, 0.35);
  --hamro-btn-text: #ffffff;
  --hamro-hero-overlay: rgba(0, 0, 0, 0.4);
  --hamro-preloader: #2c2f36;
}

html.light {
  color-scheme: light;
  --hamro-bg: #eef1f4;
  --hamro-bg-alt: #ffffff;
  --hamro-surface: #ffffff;
  --hamro-nav: #ffffff;
  --hamro-text: #1d242b;
  --hamro-text-muted: #5a6570;
  --hamro-heading: #15202b;
  --hamro-border: rgba(21, 32, 43, 0.12);
  --hamro-accent: #2a9ea0;
  --hamro-accent-soft: rgba(42, 158, 160, 0.18);
  --hamro-btn-text: #ffffff;
  --hamro-hero-overlay: rgba(12, 16, 22, 0.45);
  --hamro-preloader: #eef1f4;
}

html,
body {
  background-color: var(--hamro-bg) !important;
  color: var(--hamro-text-muted) !important;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--hamro-heading) !important;
}

p {
  color: var(--hamro-text-muted) !important;
}

div {
  font-size: 14pt !important;
}

a {
  color: var(--hamro-text);
}

.bg-one,
.section-bg,
#footer {
  background-color: var(--hamro-bg) !important;
}

.about .block,
.counters-item {
  background: var(--hamro-bg-alt) !important;
}

.navigation {
  background-color: var(--hamro-nav) !important;
  border-bottom: 1px solid var(--hamro-border);
}

.navbar-dark .navbar-nav .nav-link {
  color: var(--hamro-text-muted) !important;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .active > .nav-link,
.navbar-dark .navbar-nav .nav-link.active {
  color: var(--hamro-accent) !important;
}

.navbar-dark .navbar-toggler {
  border-color: var(--hamro-border);
}

.navbar-dark .navbar-toggler-icon {
  filter: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(29, 36, 43, 0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

html.dark .navbar-dark .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (prefers-color-scheme: dark) {
  html:not(.light) .navbar-dark .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  }
}

html.light .navbar-dark .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(29, 36, 43, 0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* White logo → dark mark in light mode */
.site-logo,
.copyright img,
.preloader img {
  filter: brightness(0) saturate(100%);
}

html.dark .site-logo,
html.dark .copyright img,
html.dark .preloader img {
  filter: none;
}

@media (prefers-color-scheme: dark) {
  html:not(.light) .site-logo,
  html:not(.light) .copyright img,
  html:not(.light) .preloader img {
    filter: none;
  }
}

html.light .site-logo,
html.light .copyright img,
html.light .preloader img {
  filter: brightness(0) saturate(100%);
}

.color {
  color: var(--hamro-accent) !important;
}

.border-meghna {
  background: var(--hamro-accent) !important;
}

.btn,
.btn-primary {
  color: var(--hamro-btn-text) !important;
}

.btn-primary {
  background-color: var(--hamro-accent) !important;
  border-color: var(--hamro-accent) !important;
}

.btn-transparent {
  border-color: #fff !important;
  color: #fff !important;
}

.hero-area:before {
  background: var(--hamro-hero-overlay);
}

.fdl-bright {
  color: var(--hamro-text);
}

.preloader {
  background-color: var(--hamro-preloader) !important;
  transition: opacity 0.2s ease;
}

body.js-ready .preloader,
.preloader.is-done {
  display: none !important;
}

.copyright p,
.copyright div {
  color: var(--hamro-text-muted) !important;
}

.social-icon ul li a {
  color: var(--hamro-text-muted);
}

/* Shorter hero — was full viewport (100vh) */
.hero-area {
  height: auto !important;
  min-height: 0 !important;
  padding: 3.25rem 1.25rem 3rem;
  background-position: center;
  background-size: cover;
}
.hero-area .block h1 {
  font-size: 2.25rem !important;
  margin-bottom: 0.6rem;
  color: #fff !important;
}
.hero-area .block p {
  width: 100%;
  max-width: 28rem;
  font-size: 1rem;
  color: #fff !important;
}
.hero-area .block .btn-transparent {
  margin-top: 1.25rem;
  padding: 0.7rem 1.5rem;
}
@media (min-width: 768px) {
  .hero-area {
    padding: 4.5rem 1.5rem 4rem;
  }
  .hero-area .block h1 {
    font-size: 3rem !important;
  }
}
@media (min-width: 1200px) {
  .hero-area {
    padding: 5.5rem 1.5rem 5rem;
  }
  .hero-area .block h1 {
    font-size: 3.5rem !important;
  }
}

/* Keep logo + hamburger on one row on mobile */
.navigation .navbar-brand {
  max-width: calc(100% - 64px);
  margin-right: 0.5rem;
  order: 1;
}
.navigation .site-logo {
  max-height: 42px;
  width: auto;
  max-width: 100%;
  height: auto;
}
.navigation .navbar-toggler {
  flex-shrink: 0;
  margin-left: auto;
  order: 2;
}
.navigation .navbar-collapse {
  order: 3;
  flex-basis: 100%;
}
@media (min-width: 992px) {
  .navigation .navbar-brand {
    max-width: none;
    order: 0;
  }
  .navigation .navbar-toggler {
    order: 0;
  }
  .navigation .navbar-collapse {
    order: 0;
    flex-basis: auto;
  }
  .navigation .site-logo {
    max-height: 52px;
  }
}

/* Theme toggle */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-left: 0.35rem;
  padding: 0;
  border: 1px solid var(--hamro-border);
  background: transparent;
  color: var(--hamro-text);
  cursor: pointer;
  line-height: 1;
}
.theme-toggle:hover {
  color: var(--hamro-accent);
  border-color: var(--hamro-accent);
}
.theme-toggle-icon {
  display: none;
}
html:not(.dark) .theme-toggle-moon {
  display: block;
}
html.dark .theme-toggle-sun {
  display: block;
}
@media (prefers-color-scheme: dark) {
  html:not(.light):not(.dark) .theme-toggle-sun {
    display: block;
  }
  html:not(.light):not(.dark) .theme-toggle-moon {
    display: none;
  }
}
html.light .theme-toggle-moon {
  display: block;
}
html.light .theme-toggle-sun {
  display: none;
}

/* Google Maps embed */
.google-map #map,
.google-map iframe#map {
  display: block;
  height: 370px;
  width: 100%;
  border: 0;
}

/* Menu page banner */
.menu-banner {
  background:
    linear-gradient(rgba(12, 16, 22, 0.58), rgba(12, 16, 22, 0.58)),
    url("/images/gallery/p6.jpg") center/cover no-repeat;
  padding: 2.5rem 0 2.25rem;
  margin-bottom: 0.5rem;
}
.menu-banner-inner h1 {
  color: #fff !important;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.menu-banner-inner p {
  color: rgba(255, 255, 255, 0.9) !important;
  max-width: 36rem;
  margin: 0 auto 1.5rem;
}
.menu-banner .btn-primary {
  padding: 0.7rem 1.6rem;
  font-size: 1rem;
}
.menu-page {
  padding-bottom: 5rem;
  background: var(--hamro-bg);
}
.menu-cat-title {
  color: var(--hamro-accent) !important;
  border-bottom: 1px solid var(--hamro-accent-soft);
  padding-bottom: 0.35rem;
  margin-bottom: 0.75rem;
}
.menu-cat-desc,
.menu-item-desc {
  color: var(--hamro-text-muted) !important;
  font-size: 0.95rem !important;
}
.menu-item-name {
  color: var(--hamro-text) !important;
}
.menu-jump {
  background-color: var(--hamro-nav) !important;
}
.menu-jump select {
  background: var(--hamro-surface);
  color: var(--hamro-text);
  border: 1px solid var(--hamro-accent);
  padding: 0.5rem;
}
