/*
 * Upstate Sound & Repair – Stylesheet
 *
 * This file defines the visual style for the one‑page site.  It
 * draws on mid‑century modern influences with a limited colour
 * palette, generous white space and geometric accents.  The
 * layout is responsive, collapsing the navigation into a hamburger
 * menu on small screens.  Colours are defined as CSS custom
 * properties so they can be easily tweaked in one place.
 */

:root {
  --dark: #0a0a0a;
  --light: #f5f0e8;
  --green: #2e5d50;
  --teal: #457c6a;
  --accent: #73967e;
}

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

body {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--dark);
  background: var(--light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: -0.5px;
}

h1 {
  font-size: 2.8rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 0.6em;
}

h3 {
  font-size: 1.3rem;
  margin-bottom: 0.4em;
}

/* Hero section */
#hero {
  position: relative;
  background-image: var(--hero-bg-image, url('assets/background-light.svg'));
  background-size: cover;
  background-position: center;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--dark);
  padding: 5rem 1rem;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* lightly tint the patterned background for readability */
  background: var(--hero-overlay, rgba(245, 240, 232, 0.92));
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.logo {
  display: block;
  width: 500px;          /* desktop target */
  max-width: 90%;        /* shrink on small screens */
  height: auto;
  margin: 0 auto 1rem;   /* center horizontally */
}

.tagline {
  font-size: 1.4rem;
  font-weight: 400;
  margin-top: 0.5rem;
  color: var(--green);
}

/* Navigation */
nav {
  position: absolute;
  top: 1.5rem;
  right: 1rem;
  z-index: 2;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.2rem;
}

nav a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

nav a:hover {
  border-color: var(--green);
}

/* Hamburger toggle (hidden on desktop) */
#nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--dark);
  cursor: pointer;
}

@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    position: absolute;
    top: 3rem;
    right: 0;
    background: rgba(245, 240, 232, 0.97);
    padding: 1rem;
    border: 1px solid var(--accent);
    border-radius: 4px;
    display: none;
    width: 200px;
  }
  nav ul.show {
    display: block;
  }
  #nav-toggle {
    display: block;
  }
}

/* Sections */
.section {
  padding: 4rem 1rem;
  max-width: 960px;
  margin: 0 auto;
}

.about-section {
  background: var(--light);
  color: var(--dark);
}

.services-section {
  background: var(--dark);
  color: var(--light);
}
.services-section h2 {
  color: var(--light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  background: var(--light);
  color: var(--dark);
  padding: 2rem;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 10px rgba(0,0,0,0.05);
}

.service-card h3 {
  margin-top: 0.5rem;
  color: var(--green);
}

.service-card p {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.service-icon {
  margin-bottom: 1rem;
}

.service-card::before {
  content: "";
  position: absolute;
  top: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.15;
}

.work-section {
  background: var(--light);
  color: var(--dark);
}

.work-list {
  list-style: none;
  padding-left: 0;
  margin-top: 1.5rem;
}

.work-list li {
  margin-bottom: 1rem;
  position: relative;
  padding-left: 1.5rem;
  line-height: 1.4;
}

.work-list li::before {
  content: "\25C6"; /* diamond shape */
  position: absolute;
  left: 0;
  top: 0.2rem;
  color: var(--green);
  font-size: 1rem;
}

.contact-section {
  background: var(--dark);
  color: var(--light);
  text-align: center;
}

.contact-section p {
  max-width: 600px;
  margin: 0.5rem auto;
}

.contact-section a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  transition: color 0.2s, border-color 0.2s;
}

.contact-section a:hover {
  color: var(--green);
  border-color: var(--green);
}

.footer {
  background: var(--light);
  color: var(--dark);
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
}
