/* ========== Base / reset ========== */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background: #fff;
  color: #111;
  line-height: 1.5;
}

/* ========== Layout helpers ========== */
.container {
  width: min(1100px, 100% - 32px);
  margin: 0 auto;
}

/* ========== Header ========== */
.site-header {
  position: relative;
  min-height: 88px;
  overflow: visible; /* allow logo to escape */
}
/* Background layer (ONLY this flips, not the text/logo) */
.header-bg {
  position: absolute;
  inset: 0;

  background-image: url("assets/header.jpeg");
  background-size: cover;
  background-repeat: no-repeat;

  /* Desktop default focal point */
  background-position: center -40px;

  /* Readability: adjust if you want darker/lighter */
  filter: brightness(1.00);

  z-index: 0;

  /* Flip background image left-right */
  transform: scaleX(-1);
  transform-origin: center;
}

/* Foreground layer */
.header-inner {
  position: relative;
  z-index: 1;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 16px;
  padding: 12px 16px;
}

/* Logo */
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  height: 220px;
  width: auto;
  display: block;
  
  transform: translateY(60px);
}

/* Nav (desktop default = visible) */
.nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 8px;
}

.nav a:hover {
  text-decoration: underline;
}

/* Hamburger button (desktop default = hidden) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 10px;
}

/* ========== Hero ========== */
.hero {
  padding: 56px 0;
  margin-top: -60px;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.1;
}

.hero p {
  margin: 0 0 18px;
  font-size: 16px;
  color: #333;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 14px;
  border-radius: 10px;
}

.btn.primary {
  background: #111;
  color: #fff;
}

.btn.ghost {
  border: 2px solid #111;
  color: #111;
}

/* ========== Sections / footer ========== */
.section {
  padding: 44px 0;
}

.section.alt {
  background: #f5f5f5;
}

.footer {
  padding: 18px 0;
  background: #f5f5f5;
  color: #333;
  text-align: center;
}

/* ========== Mobile adjustments (hamburger + dropdown) ========== */
@media (max-width: 600px) {
  .site-header {
    min-height: 78px;
    overflow: visible; /* CRITICAL: allows dropdown to be seen */
  }

  .header-inner {
    position: relative; /* anchor dropdown */
    padding: 10px 12px;
    gap: 10px;
  }

  .brand-logo {
    height: 180px;
    transform: translateY(40px);
  }

  /* Show hamburger on mobile */
  .nav-toggle {
    display: block;
  }

  /* Turn nav into dropdown */
  .nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 12px;

    display: none;            /* hidden until opened */
    flex-direction: column;
    align-items: flex-start;

    background: rgba(0, 0, 0, 0.92);
    padding: 10px;
    border-radius: 12px;
    gap: 8px;

    z-index: 10;
    min-width: 180px;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    width: 100%;
    font-size: 13px;
    padding: 10px 10px;
  }
  .hero {
    margin-top: -40px;
  }

  /* Mobile focal point: THIS is the line to tune */
  .header-bg {
    background-position: center -70px; /* more negative = image moves up */
  }
}
/* ========== Mobile landscape adjustments ========== */
@media (max-width: 900px) and (orientation: landscape) {
  .header-bg {
    background-position: center -50px;
  }

  .hero {
    margin-top: -30px;
  }
}
/* ========== Desktop enhancements ========== */
@media (min-width: 900px) {
  .site-header {
    min-height: 104px;
  }

  .brand-logo {
    height: 260px;
  }

  .nav a {
    font-size: 15px;
  }

  .hero {
    padding: 72px 0;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero p {
    font-size: 18px;
  }
}
