/* Base site style (restored refined look) */
:root {
  --main-bg: #0d2018;
  --surface: #13271f;
  --main-text: #e6efe9;
  --muted-text: #b8c6bf;
  --accent: #33cc66;
  --border: rgba(255,255,255,0.12);
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--main-bg);
  color: var(--main-text);
  text-align: left;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Prevent layout overflow on small screens */
html, body { width: 100%; overflow-x: hidden; }
*, *::before, *::after { box-sizing: border-box; }

header.site-header {
  background-color: var(--surface);
  padding: 1.5rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
  padding-left: 12px;
  padding-right: 12px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-text { flex: 1; min-width: 0; }
.brand-text h1 { margin: 0; color: var(--accent); }
.brand-text p { margin: 2px 0 0; color: var(--muted-text); }

/* Top navigation + mobile drawer */
.top-nav { margin-left: auto; display: none; }
.top-nav ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 0.75rem; }
.top-nav a { color: var(--main-text); text-decoration: none; padding: 0.5rem 0.75rem; border-radius: 8px; }
.top-nav a:hover { background-color: rgba(255,255,255,0.08); }
.disabled { opacity: 0.7; }

.hamburger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px; /* larger touch target */
  padding: 8px; /* ensure icon sits well within the button */
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.28);
  background-color: rgba(255,255,255,0.14);
  color: var(--accent);
  cursor: pointer;
  position: absolute; /* anchor to header corner */
  top: 12px;
  right: 6px; /* nudge closer to the right edge */
  z-index: 1001; /* above overlay */
  box-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.hamburger:hover { background-color: rgba(255,255,255,0.22); }
.hamburger:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.hamburger svg { width: 28px; height: 28px; display: block; }

.nav-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  z-index: 999;
}

.nav-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 280px; height: 100%;
  background: var(--surface);
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform .25s ease;
  z-index: 1000;
  padding: 1rem;
}
.nav-drawer.open { transform: translateX(0); }
.nav-drawer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .75rem; }
.nav-drawer a { color: var(--main-text); text-decoration: none; padding: .5rem .75rem; border-radius: 8px; }
.nav-drawer a:hover { background-color: rgba(255,255,255,0.08); }

body.nav-open { overflow: hidden; }

/* Desktop: show top-nav, hide hamburger */
@media (min-width: 768px) {
  .top-nav { display: block; }
  .hamburger { display: none; }
}

/* Contact section */
.contact-list { list-style: none; padding: 0; margin: 0.5rem auto; max-width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.contact-list li { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 0.75rem 1rem; }
.email-link { color: var(--accent); text-decoration: none; font-weight: 600; }
.email-link:hover { text-decoration: underline; }

/* Header logo */
img.logo { image-rendering: auto; }
.header-inner .logo + .logo { display: none; }
.logo { width: 120px; height: auto; filter: drop-shadow(0 0 6px rgba(0,0,0,0.4)); }

/* Buttons */
button { background-color: var(--accent); border: none; color: #000; padding: 0.8rem 1.5rem; margin-top: 1rem; border-radius: 8px; cursor: pointer; font-weight: bold; }
button:hover { background-color: #2db85c; }

/* Anchor buttons for consistent look */
.button { display: inline-block; background-color: var(--accent); color: #000; padding: 0.6rem 1rem; border-radius: 8px; text-decoration: none; font-weight: 700; }
.button:hover { background-color: #2db85c; }

/* Footer */
footer { margin-top: auto; background-color: #0b1a14; padding: 1rem; font-size: 0.9rem; color: #bfb; }

/* Small mobile optimizations */
@media (max-width: 480px) {
  .logo { width: 88px; }
  .brand-text h1 { font-size: 1.25rem; line-height: 1.2; }
  .brand-text p { font-size: 0.95rem; }
}

@media (max-width: 460px) {
  .contact-list { grid-template-columns: 1fr; }
}
