@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;700&display=swap');

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body{
  background: #0b0b0b;
  color: #e6e6e6;
  font-family: 'Oswald', sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.7;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ===== BACKGROUND LAYERS ===== */
body::before{
  content: "";
  position: fixed;
  inset: 0;
  background: url("/images/Background line.png") center center no-repeat;
  background-size: cover;
  pointer-events: none;
  z-index: 0;
  filter: brightness(.05) contrast(.05);
}

body::after{
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.025'/%3E%3C/svg%3E");
}

/* Keep site content above background */
nav, main, footer{
  position: relative;
  z-index: 2;
}

a{
  color: inherit;
  text-decoration: none;
  transition: opacity 160ms ease;
}
a:hover{ opacity: 0.82; }

/* ===== LAYOUT ===== */
main{
  padding-top: 8.25rem;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.section{ margin-bottom: 4rem; }

h1, h2, h3{
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  margin: 0 0 1.2rem 0;
  letter-spacing: 0.12em;
}
h1{ font-size: 2.6rem; }
h2{ font-size: 1.6rem; }
h3{ font-size: 1.2rem; }

.muted{ opacity: 0.75; letter-spacing: 0.04em; }

/* ===== NAV ===== */
nav{
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.35rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(11,11,11,0.95);
  z-index: 1000;

  /* Make sure nav doesn't inherit global tracking weirdness */
  letter-spacing: normal;
}

.nav-left, .nav-right{
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo{
  height: 34px;
  filter: invert(1);
}

/* ===== HOME LINKS ===== */
.home-links{
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.home-links--center{
  justify-content: center;
}

.home-link{
  padding: 0.8rem 1.1rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(11,11,11,0.45);
  font-weight: 500;
  letter-spacing: 0.06em;
}

/* =========================
   INDEX ABOUT (EDITORIAL)
   ========================= */

/* Text background block */
.about-text-block{
  background: rgba(11,11,11,0.88);
  padding: 1.5rem 1.6rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.12);
}

/* Editorial blue highlight */
.highlight-blue{
  color: #6fa8dc;
}

/* Wide hero image */
.about-hero img{
  width: 100%;
  height: clamp(260px, 38vh, 420px);
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.12);
  background: #000;
}

/* Divider lines */
.about-lines{
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  text-align: center;
  letter-spacing: 0.10em;
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  background: rgba(11,11,11,0.75);
}

.about-services{
  margin-top: 0.85rem;
}

/* Wide stacked images */
.about-image-stack{
  display: grid;
  gap: 1rem;
}

.about-image-stack img{
  width: 100%;
  height: clamp(220px, 34vh, 380px);
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.12);
  background: #000;
}

/* =========================
   NAV + DROPDOWN (iOS + Mobile)
   ========================= */

/* iOS Safari: remove default button styling (blue pill) */
.dropdown-toggle{
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;

  color: inherit;
  font: inherit;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
  cursor: pointer;

  /* extra iOS guardrail */
  border-radius: 0;
}

/* Dropdown container positioning */
.dropdown{
  position: relative;
}

/* Dropdown menu: hidden by default */
.dropdown-content{
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0.6rem;

  min-width: 180px;
  background: rgba(11,11,11,0.98);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 0.4rem 0;
  z-index: 9999;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

/* Dropdown links */
.dropdown-content a{
  display: block;
  padding: 0.55rem 0.95rem;
  white-space: nowrap;
  opacity: 0.92;
  letter-spacing: 0.03em;
}
.dropdown-content a:hover{ opacity: 1; }

/* Open states (hover for desktop, focus for keyboard, is-open for mobile via site.js) */
.dropdown:hover .dropdown-content{ display: block; }
.dropdown:focus-within .dropdown-content{ display: block; }
.dropdown.is-open .dropdown-content{ display: block; }

/* ===== RESPONSIVE ===== */
@media (max-width: 700px){
  /* Keep your existing content sizing */
  main{
    padding-left: 1rem;
    padding-right: 1rem;
  }

  h1{ font-size: 2.05rem; }

  .about-hero img{ height: 240px; }
  .about-image-stack img{ height: 220px; }

  /* --- REPLACED: mobile nav should be one line, not stacked --- */
  nav{
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem;
    gap: 0.75rem;
  }

  .nav-left,
  .nav-right{
    width: auto;
    gap: 1rem;
  }

  .nav-right{
    justify-content: flex-end;
  }

  /* Dropdown aligns under the Work button on mobile */
  .dropdown-content{
    left: 0;
    transform: none;
  }
}
