/* ========== 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 ========== */
/* Header height is fixed (unchanged). Overflow is visible so the larger logo is never cut off. */
.site-header {
  position: relative;
  height: 88px;        /* DO NOT CHANGE (your “perfect” size baseline) */
  overflow: visible;   /* allows big logo to be fully visible */
}

/* 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 focal point */
  background-position: center -40px;

  filter: brightness(1.00);
  z-index: 0;

  transform: scaleX(-1);
  transform-origin: center;

  pointer-events: none;
}

/* Foreground layer */
.header-inner {
  position: relative;
  z-index: 1;

  height: 100%;
  display: flex;
  align-items: center;          /* logo/nav vertically centered within the header */
  justify-content: space-between;

  gap: 16px;
  padding: 0 16px;              /* left gap stays consistent */
}

/* Logo */
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

/*
  BIG LOGO WITHOUT AFFECTING HEADER SIZE:
  - Header stays fixed height
  - Logo is taller and overflows visually (not clipped)
  - Still vertically centered relative to header
*/
.brand-logo {
  height: 240px;                /* BIG (adjust if you want even larger) */
  width: auto;
  display: block;
}

/* 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;
}

.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 {
    height: 78px;        /* unchanged from your “perfect” mobile size */
    overflow: visible;   /* keep logo + dropdown visible */
  }

  .header-inner {
    position: relative;
    padding: 0 12px;     /* keep left gap stable on mobile */
    gap: 10px;
  }

  /* Big logo on mobile too (fully visible) */
  .brand-logo {
    height: 200px;
  }

  /* Show hamburger on mobile */
  .nav-toggle {
    display: block;
  }

  /* Turn nav into dropdown */
  .nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 12px;

    display: none;
    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;
  }

  /* Mobile portrait focal point */
  .header-bg {
    background-position: center -70px;
  }
}

/* ========== Portrait-only: shift logo 25px left (landscape stays “perfect”) ========== */
@media (max-width: 600px) and (orientation: portrait) {
  .brand {
    transform: translateX(-25px);
  }
}

/* ========== Mobile landscape adjustments ========== */
/* “Raised another 40px” from your previous -90px => now -130px */
@media (max-width: 900px) and (orientation: landscape) {
  .header-bg {
    background-position: center -130px;
  }
}

/* ========== Desktop enhancements ========== */
@media (min-width: 900px) {
  .site-header {
    height: 104px; /* unchanged from before */
  }

  .header-inner {
    padding: 0 16px;
  }

  /* Keep the big logo on desktop (fully visible) */
  .brand-logo {
    height: 260px;
  }

  .nav a {
    font-size: 15px;
  }

  .hero {
    padding: 72px 0;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero p {
    font-size: 18px;
  }
}
