/* ===========================
   DESIGN SYSTEM
   =========================== */
:root {
  --brown:       #6f5037;   /* anchor brown */
  --brown-dark:  #3d2a17;   /* deep brown — header, footer */
  --brown-light: #9a7450;   /* lighter brown for accents */
  --blue:        #658fab;   /* dusty blue */
  --blue-dark:   #2e4a62;   /* deep blue — dark sections */
  --blue-deeper: #1a2e40;   /* very deep blue — contact */
  --amber:       #f07820;   /* CTA / highlight */
  --cream:       #f0e6d3;   /* light section bg */
  --cream-dark:  #ddd0b8;   /* alternate light bg */
  --text-dark:   #1e1008;   /* on light backgrounds */
  --text-mid:    #4a3520;   /* secondary text on light */
  --text-light:  #f0e6d3;   /* on dark backgrounds */

  --font-heading: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body:    'IBM Plex Sans', system-ui, sans-serif;

  --transition: 200ms ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--brown-dark);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* ===========================
   TYPOGRAPHY
   =========================== */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 0.6rem;
}

.section-subtitle {
  max-width: 56ch;
  margin-bottom: 3rem;
  font-size: 1.05rem;
}

/* ===========================
   UTILITIES
   =========================== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hidden { display: none; }

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-block;
  padding: 0.85rem 2.25rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  border: 3px solid transparent;
  text-align: center;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.btn-primary {
  background: var(--amber);
  color: #fff;
  border-color: var(--amber);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: transparent;
  color: var(--amber);
}

.btn-full {
  width: 100%;
  display: block;
}

/* ===========================
   HEADER / NAV
   =========================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--brown-dark);
  border-bottom: 4px solid var(--brown);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 44px;
  width: auto;
  display: block;
  transition: opacity var(--transition);
}

.logo:hover .logo-img { opacity: 0.85; }

.nav-links {
  display: flex;
  gap: 0;
  align-items: center;
}

.nav-links a {
  color: var(--text-light);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 1.25rem;
  border-left: 1px solid rgba(240, 230, 211, 0.12);
  transition: background var(--transition), color var(--transition);
}

.nav-links a:last-child {
  border-right: 1px solid rgba(240, 230, 211, 0.12);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--brown);
  color: var(--cream);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-light);
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===========================
   HERO  — type-first, no shapes
   =========================== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: var(--brown-dark);
  border-bottom: 6px solid var(--brown);
  padding: 6rem 1.5rem;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-logo {
  height: clamp(56px, 8vw, 88px);
  width: auto;
  margin-bottom: 0;
}

.hero-rule {
  width: 100%;
  height: 5px;
  background: var(--amber);
  margin: 1.75rem 0 2rem;
}

.hero-title {
  display: block;
  font-size: clamp(4rem, 10vw, 8rem);
  line-height: 0.88;
  color: var(--cream);
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.hero-body {
  color: var(--cream);
  opacity: 0.85;
  font-size: 1.1rem;
  max-width: 50ch;
  margin-bottom: 2.75rem;
  line-height: 1.75;
}

/* ===========================
   SERVICES — cream block
   =========================== */
.services {
  background: var(--cream);
  padding: 5.5rem 0;
  border-bottom: 4px solid var(--cream-dark);
}

.services .section-title { color: var(--brown-dark); }
.services .section-subtitle { color: var(--text-mid); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 3px solid var(--brown);
}

.service-card {
  background: var(--cream);
  padding: 2.25rem 1.75rem;
  border-right: 3px solid var(--brown);
  transition: background var(--transition);
}

.service-card:last-child {
  border-right: none;
}

.service-card:hover {
  background: var(--brown-dark);
}

.service-card:hover h3,
.service-card:hover p,
.service-card:hover .service-icon {
  color: var(--cream);
}

.service-icon {
  width: 44px;
  height: 44px;
  color: var(--brown);
  margin-bottom: 1.25rem;
  transition: color var(--transition);
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--brown-dark);
  margin-bottom: 0.6rem;
  transition: color var(--transition);
}

.service-card p {
  color: var(--text-mid);
  font-size: 0.93rem;
  line-height: 1.7;
  transition: color var(--transition);
}

/* ===========================
   ABOUT — blue block
   =========================== */
.about {
  background: var(--blue-dark);
  padding: 5.5rem 0;
  border-bottom: 4px solid var(--blue-deeper);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 5rem;
  align-items: center;
}

.about-text .section-title { color: var(--cream); }

.about-text p {
  color: var(--cream);
  opacity: 0.88;
  margin-bottom: 1.25rem;
  font-size: 1.02rem;
  line-height: 1.8;
}

.about-accent-inner {
  background: var(--blue-deeper);
  border: 3px solid var(--brown);
  padding: 2.5rem 2rem;
  position: relative;
}

.about-accent-inner::before {
  content: '\201C';
  position: absolute;
  top: -1rem;
  left: 1.5rem;
  font-family: Georgia, serif;
  font-size: 5rem;
  color: var(--brown);
  line-height: 1;
}

.about-quote {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--cream);
  line-height: 1.55;
  margin-bottom: 1rem;
}

.about-attr {
  font-size: 0.82rem;
  color: var(--amber);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ===========================
   WHY AMAN AUDIO — cream-dark block
   =========================== */
.why {
  background: var(--cream-dark);
  padding: 5.5rem 0;
  border-bottom: 4px solid var(--cream);
}

.why .section-title { color: var(--brown-dark); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 3rem;
  border: 3px solid var(--brown);
}

.why-item {
  text-align: center;
  padding: 2rem 1.5rem;
  border-right: 3px solid var(--brown);
}

.why-item:last-child {
  border-right: none;
}

.why-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 1.25rem;
  color: var(--brown);
}

.why-item h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--brown-dark);
  margin-bottom: 0.5rem;
}

.why-item p {
  color: var(--text-mid);
  font-size: 0.91rem;
  line-height: 1.7;
}

/* ===========================
   CONTACT — deep blue block
   =========================== */
.contact {
  background: var(--blue-deeper);
  padding: 5.5rem 0;
  border-bottom: 4px solid var(--blue-dark);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 5rem;
  align-items: start;
}

.contact-info .section-title { color: var(--cream); }

.contact-info > p {
  color: var(--cream);
  opacity: 0.8;
  margin-bottom: 2.5rem;
  font-size: 1.02rem;
}

.contact-details p {
  color: var(--cream);
  opacity: 0.85;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.contact-details strong {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.2rem;
  font-weight: 700;
}

.contact-details a {
  color: var(--cream);
  transition: color var(--transition);
}

.contact-details a:hover { color: var(--amber); }

/* Form */
.contact-form {
  background: var(--blue-dark);
  border: 3px solid var(--brown);
  padding: 2.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.7;
  margin-bottom: 0.45rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--blue-deeper);
  border: 2px solid rgba(240, 230, 211, 0.2);
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 0.97rem;
  padding: 0.75rem 1rem;
  transition: border-color var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23f0e6d3' d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-group select option {
  background: var(--blue-deeper);
  color: var(--text-light);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(240, 230, 211, 0.3);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--amber);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ===========================
   FOOTER — brown-dark block
   =========================== */
.site-footer {
  background: var(--brown-dark);
  border-top: 4px solid var(--brown);
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(240, 230, 211, 0.12);
}

.footer-brand .logo {
  margin-bottom: 0.5rem;
}

.footer-logo-img {
  height: 48px;
  width: auto;
}

.footer-tagline {
  color: var(--cream);
  opacity: 0.45;
  font-style: italic;
  font-size: 0.88rem;
}

.footer-nav {
  display: flex;
  gap: 0;
  align-items: center;
  flex-wrap: wrap;
  align-self: flex-start;
}

.footer-nav a {
  color: var(--cream);
  opacity: 0.6;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-left: 1px solid rgba(240, 230, 211, 0.15);
  transition: opacity var(--transition), color var(--transition);
}

.footer-nav a:first-child { border-left: none; }

.footer-nav a:hover {
  opacity: 1;
  color: var(--amber);
}

.footer-copy {
  color: var(--cream);
  opacity: 0.3;
  font-size: 0.8rem;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 960px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-card:nth-child(2) { border-right: none; }
  .service-card:nth-child(3) { border-right: 3px solid var(--brown); border-top: 3px solid var(--brown); }
  .service-card:nth-child(4) { border-right: none; border-top: 3px solid var(--brown); }

  .why-grid {
    grid-template-columns: 1fr 1fr;
  }

  .why-item:nth-child(2) { border-right: none; }
  .why-item:nth-child(3) { border-right: 3px solid var(--brown); border-top: 3px solid var(--brown); }
  .why-item:nth-child(4) { border-right: none; border-top: 3px solid var(--brown); }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    background: var(--brown-dark);
    flex-direction: column;
    padding: 0;
    border-bottom: 4px solid var(--brown);
  }

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

  .nav-links a {
    border-left: none;
    border-right: none;
    border-top: 1px solid rgba(240, 230, 211, 0.1);
    padding: 1rem 1.5rem;
    text-align: left;
  }

  .nav-inner {
    position: relative;
  }

  .hero {
    min-height: 80vh;
    padding: 5rem 1.5rem;
  }

  .services,
  .about,
  .why,
  .contact {
    padding: 4rem 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    border-right: none;
    border-bottom: 3px solid var(--brown);
  }

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

  /* Reset nth-child overrides at mobile */
  .service-card:nth-child(3) { border-top: none; }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .why-item {
    border-right: none;
    border-bottom: 3px solid var(--brown);
  }

  .why-item:last-child { border-bottom: none; }

  .why-item:nth-child(3) { border-top: none; }

  .contact-form { padding: 1.75rem; }

  .footer-inner {
    flex-direction: column;
    gap: 1.5rem;
  }

  .footer-nav {
    gap: 0;
  }

  .footer-nav a:first-child {
    border-left: 1px solid rgba(240, 230, 211, 0.15);
  }
}
