/* ============================================================
   Bare Minimum Audio — Main Stylesheet
   Hosting: Netlify (free)  |  Repo: GitHub
   ============================================================ */

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

/* ── RESET & BASE ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:       #EFEDE8;
  --brand:    #E8522A;
  --text:     #1a1a1a;
  --muted:    #666;
  --border:   rgba(0,0,0,0.1);
  --white:    #ffffff;
  --max-w:    1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Raleway', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }


/* ── HEADER / NAV ── */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 5%;
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid var(--border);
}

.logo img {
  height: 52px;
  width: auto;
  display: block;
}

/* Fallback if logo image missing */
.logo-fallback {
  font-size: 1rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: 1px;
  text-transform: uppercase;
}

nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav a {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

nav a:hover,
nav a.active {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav-facebook svg {
  width: 18px;
  height: 18px;
  fill: var(--text);
  transition: fill 0.2s;
}

.nav-facebook:hover svg { fill: var(--brand); }

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 1.5rem 5%;
  gap: 1.25rem;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 199;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.mobile-nav a {
  font-size: 1rem;
  font-weight: 600;
}

.mobile-nav.open { display: flex; }


/* ── FOOTER ── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 3.5rem 5%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

footer h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 0.75rem;
  letter-spacing: 0.5px;
}

footer p {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.8;
}

footer a:hover { color: var(--brand); }


/* ── HERO (HOME) ── */
.hero {
  position: relative;
  width: 100%;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  /* Fallback dark bg if image not loaded */
  background: #1c1c1c url('../images/hero-bg.jpg') center/cover no-repeat;
}

/* Slight dark gradient so text is readable over bright spots */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.35) 0%, transparent 60%);
}

.hero-title {
  position: relative;
  z-index: 2;
  font-size: clamp(3rem, 8.5vw, 7.5rem);
  font-weight: 800;
  color: var(--brand);
  padding: 2.5rem 5%;
  line-height: 1;
  letter-spacing: -1px;
}


/* ── PAGE HEADING ── */
.page-heading {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--brand);
  padding: 2.5rem 5% 1.5rem;
  letter-spacing: -0.5px;
}


/* ── SERVICES PAGE ── */
.services-intro {
  max-width: var(--max-w);
  padding: 0 5% 4rem;
}

.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

.service-block:last-child { border-bottom: none; }

/* Text-only service blocks (no photo) */
.service-block.service-text-only {
  grid-template-columns: 1fr;
  max-width: 680px;
}

/* Alternate image left/right */
.service-block.flip { direction: rtl; }
.service-block.flip > * { direction: ltr; }

.service-img-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #c8c4bc;
}

.service-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Placeholder shown when no image */
.img-placeholder {
  width: 100%;
  height: 100%;
  background: #c8c4bc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.service-content h2 {
  font-size: 1.55rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.service-content p {
  line-height: 1.8;
  margin-bottom: 1rem;
  color: var(--text);
}

.service-tags {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.btn {
  display: inline-block;
  background: var(--brand);
  color: var(--white);
  padding: 0.75rem 2.25rem;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
}

.btn:hover { opacity: 0.88; transform: translateY(-1px); }


/* ── PORTFOLIO PAGE ── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 0.5rem 5% 5rem;
}

.portfolio-grid .grid-item {
  aspect-ratio: 1;
  overflow: hidden;
  background: #c8c4bc;
  cursor: pointer;
}

.portfolio-grid .grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.portfolio-grid .grid-item:hover img { transform: scale(1.04); }


/* ── GEAR PAGE ── */
.gear-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: stretch;
  max-width: var(--max-w);
  padding: 0.5rem 5% 5rem;
}

.gear-list { list-style: none; }

.gear-category { margin-bottom: 2.25rem; }

.gear-category h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gear-category ul { list-style: none; }

.gear-category ul li {
  padding: 0.3rem 0;
  font-size: 0.95rem;
  color: var(--muted);
  padding-left: 1.5rem;
}

.gear-photos {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}

.gear-photos .gear-photo {
  flex: 1;
  overflow: hidden;
  background: #c8c4bc;
  min-height: 0;
}

.gear-photos .gear-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* ── ABOUT PAGE ── */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: var(--max-w);
  padding: 0.5rem 5% 5rem;
  align-items: start;
}

.about-content h2 {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 1.5rem;
}

.about-content p {
  line-height: 1.85;
  margin-bottom: 2rem;
}

.reviews h3 {
  font-size: 1.1rem;
  font-weight: 700;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.review {
  margin-bottom: 1.4rem;
  font-size: 0.93rem;
  line-height: 1.55;
}

.review .stars {
  color: #f5a623;
  letter-spacing: 2px;
  font-size: 0.75rem;
  display: block;
  margin-bottom: 0.2rem;
}

.review blockquote {
  font-style: italic;
  margin-bottom: 0.2rem;
}

.review cite {
  font-size: 0.8rem;
  color: var(--muted);
  font-style: normal;
}

.about-img-wrap {
  position: sticky;
  top: 90px;
}

.about-img-wrap img,
.about-img-wrap .img-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}


/* ── CONTACT PAGE ── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: var(--max-w);
  padding: 0.5rem 5% 5rem;
}

.contact-info h2 {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 1.5rem;
}

.contact-info p {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.contact-info a:hover { color: var(--brand); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  background: transparent;
  border: 1px solid rgba(0,0,0,0.25);
  font-family: 'Raleway', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  border-radius: 0;
  -webkit-appearance: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--brand);
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-img-wrap {
  overflow: hidden;
  background: #c8c4bc;
}

.contact-img-wrap img,
.contact-img-wrap .img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 450px;
  object-fit: cover;
}


/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  nav { display: none; }
  .hamburger { display: flex; }

  .hero-title {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  .service-block,
  .service-block.flip,
  .gear-layout,
  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .gear-photos {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .gear-photos .gear-photo {
    flex: 1 1 45%;
  }

  .about-img-wrap { position: static; }

  footer {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .page-heading {
    font-size: 2rem;
    padding: 2rem 5% 1rem;
  }
}
