/* ================================
   Header variables & base offsets
   ================================ */
:root {
  /* Fallback first (older browsers): use vh */
  --safe-top: env(safe-area-inset-top, 0px);
  --header-raw: clamp(72px, 12vh, 112px); /* visible header height */
  --header-height: calc(var(--header-raw) + var(--safe-top)); /* add notch */
}

/* Prefer the dynamic viewport when supported */
@supports (height: 1dvh) {
  :root {
    --header-raw: clamp(72px, 12dvh, 112px); /* taller than before -> bigger logo */
    --header-height: calc(var(--header-raw) + var(--safe-top));
  }
}

/* Push page content by visible header only (notch padding lives in the header) */
html { scroll-padding-top: var(--header-raw); }
[id] { scroll-margin-top: var(--header-raw); }
body { padding-top: var(--header-raw); }

/* ================================
   Header shell
   ================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  height: var(--header-height);
  padding-top: var(--safe-top);          /* shift content below notch */
  background: #fff;
  z-index: 1000;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
  box-sizing: border-box;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 0.75rem; /* or 1.5rem */
  min-height: var(--header-raw);         /* ensure inner matches visible height */
}

/* ================================
   Logo
   ================================ */
.logo-img {
  display: block;
  height: auto; width: auto;
  max-height: calc(var(--header-raw) - 12px); /* grow with header */
  padding-left: 1rem;
  padding-right: 1rem;
}

/* ================================
   Navigation (mobile overlay)
   ================================ */
.main-nav {
  position: absolute;
  top: var(--header-height);
  left: 0; right: 0;
  width: 100vw;
  background: #fff;
  box-shadow: none;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.28s cubic-bezier(0.4,0,0.2,1), opacity 0.18s;
  z-index: 1100;
  pointer-events: none;
}
.main-nav.open {
  max-height: 440px; /* a bit more room for taller header */
  opacity: 1;
  pointer-events: auto;
}
.main-nav ul {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0.5rem 0;
  list-style: none;
}
.main-nav li { border-bottom: 1px solid #eee; }
.main-nav li:last-child { border-bottom: none; }
.main-nav a {
  display: block;
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1.15rem;
  color: #0A5953;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover {
  color: #000;
}

/* ================================
   CTA
   ================================ */
.cta { margin-left: 1rem; display: none; }
.cta .btn {
  font-family: 'Eurostile', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.3rem 0.8rem;
  background: #0A5953; color: #fff;
  border: 2px solid #0A5953; border-radius: 0.25rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.cta .btn:hover { background: #fff; color: #0A5953; }

/* ================================
   Hamburger
   ================================ */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center; align-items: center;
  width: 44px; height: 44px;
  padding: 0; border: none; background: transparent;
  cursor: pointer; z-index: 1200;
  margin-right: 1.75rem; /* or 1rem */
}
.hamburger span {
  display: block;
  width: 28px; height: 4px;
  background: #0A5953;
  margin: 4px 0;
  border-radius: 2px;
  transition: all 0.2s;
}

/* ================================
   Tablet & up
   ================================ */
@media (min-width: 600px) {
  .header-inner { width: 90vw; padding: 0 1rem; }
  .hamburger { display: none !important; }

  .main-nav {
    position: static; width: auto; background: none; box-shadow: none;
    max-height: none; opacity: 1; pointer-events: auto; display: block;
     font-family: 'Eurostile', sans-serif;
    top: auto;
  }
  .main-nav ul { flex-direction: row; align-items: center; gap: 3rem; padding: 0; justify-content: center;}
  .main-nav li { border-bottom: none; }
  .main-nav a, .cta .btn { font-size: 1.25rem; }
  .main-nav .mobile-contact { display: none; }

  .cta { display: block; }
}

/* ================================
   Desktop wide
   ================================ */
@media (min-width: 1024px) {
  .header-inner { width: 90vw; }
}


