/* ========== 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 (no photo modifiers) ========== */
.site-header {
  position: relative;
  height: 88px;
  overflow: visible;
}

.header-bg {
  position: absolute;
  inset: 0;

  background-image: url("assets/header.jpeg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center -40px;

  transform: scaleX(-1);
  z-index: 0;
}

.header-inner {
  position: relative;
  z-index: 1;

  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 16px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  height: 240px;
  width: auto;
  display: block;
}

/* Nav */
.nav {
  display: flex;
  gap: 14px;
}

.nav a {
  color: #fff;
  font-weight: bold;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  color: #fff;
  cursor: pointer;
}

/* ========== 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;
}

/* ========== Image sections ("cards") ========== */
.section {
  position: relative;
  padding: 80px 0; /* default “card height” driver */
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  z-index: 0;
}

.section > .container {
  position: relative;
  z-index: 1;
}

/* PRODUCTS — white text */
.section-products { color: #fff; }
.section-products::before { background-image: url("assets/products.jpg"); }

/* ABOUT — black text */
.section-about { color: #111; }
.section-about::before { background-image: url("assets/about.jpeg"); }

/* CONTACT — white text */
.section-contact { color: #fff; }
.section-contact::before { background-image: url("assets/contact.jpeg"); }

/* Make ALL text in the cards bold (not only titles) */
.section-products,
.section-about,
.section-contact {
  font-weight: 700;
}

/* ========== Footer ========== */
.footer {
  background: #f5f5f5;
  padding: 18px;
  text-align: center;
  color: #333;
}

/* ========== Mobile ========== */
@media (max-width: 600px) {
  .site-header { height: 78px; }

  .header-inner {
    padding: 0 12px;
    gap: 10px;
  }

  .brand-logo { height: 200px; }

  .nav-toggle { display: block; }

  .nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 12px;

    background: rgba(0,0,0,0.9);
    flex-direction: column;
    display: none;
    padding: 10px;
    gap: 8px;

    border-radius: 12px;
    z-index: 10;
    min-width: 180px;
  }

  .nav.is-open { display: flex; }

  .nav a {
    width: 100%;
    font-size: 13px;
    padding: 10px 10px;
  }

  .header-bg {
    background-position: center -70px;
  }
}

/* Portrait-only logo shift (keeps landscape “perfect”) */
@media (max-width: 600px) and (orientation: portrait) {
  .brand { transform: translateX(-25px); }
}

/* ========== Portrait: card height reduced (another 1/5 from prior 60 -> 48) ========== */
@media (orientation: portrait) {
  .section {
    padding: 48px 0;
  }
}

/* ========== Landscape header image raise ========== */
@media (max-width: 900px) and (orientation: landscape) {
  .header-bg {
    background-position: center -170px;
  }
}

/* ========== Desktop ========== */
@media (min-width: 900px) {
  .site-header { height: 104px; }
  .brand-logo { height: 260px; }

  /* Double the main HERO height on desktop (the "Built for abuse" area) */
  .hero {
    min-height: 200vh;
  }

  .hero {
    padding: 72px 0;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero p {
    font-size: 18px;
  }
}
