/* ==========================================================================
   BAASA ACOUSTICS — Stylesheet
   Design tokens: cool neutral paper, teal-charcoal deep, acoustic teal + amber
   ========================================================================== */

:root {
  --paper: #F1F2EE;
  --paper-alt: #E7E8E1;
  --ink: #171B1A;
  --muted: #5B615C;
  --deep: #1C2B2A;
  --deep-alt: #243735;
  --teal: #3B7268;
  --teal-deep: #2A544D;
  --amber: #C9862F;
  --line: #D8D9D0;
  --line-deep: rgba(231, 232, 225, 0.16);
  --white: #FCFCFA;

  --font-head: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Source Serif 4', Georgia, 'Times New Roman', serif;

  --container: 1180px;
  --radius: 4px;
  --shadow-soft: 0 1px 2px rgba(23, 27, 26, 0.06);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, dl, dd, ul, figure { margin: 0; }
ul { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 4.4vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); }
h3 { font-size: 1.15rem; }

p { max-width: 62ch; }

.kicker {
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--teal);
  margin-bottom: 14px;
}
.kicker.light { color: #8FBDB4; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--teal);
  color: var(--white);
}
.btn-primary:hover { background: var(--teal-deep); }

.btn-ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.btn-small { padding: 10px 20px; font-size: 0.9rem; }
.btn-full { width: 100%; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(241, 242, 238, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-mark { color: var(--teal); display: flex; }
.logo-text {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  line-height: 1;
  display: flex;
  flex-direction: column;
}
.logo-sub {
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--teal);
  margin-top: 3px;
}
.logo-text.light .logo-sub { color: #8FBDB4; }

.main-nav ul {
  display: flex;
  gap: 34px;
}
.main-nav a {
  font-family: var(--font-head);
  font-size: 0.96rem;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  padding: 88px 0 96px;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 22px 0 32px;
  max-width: 52ch;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 52px; }

.hero-stats {
  display: flex;
  gap: 44px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}
.hero-stats dt {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 6px;
}
.hero-stats dd {
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--teal-deep);
}

.hero-visual {
  position: relative;
  background: var(--deep);
  border-radius: var(--radius);
  padding: 20px;
  overflow: hidden;
}
.hero-visual canvas {
  width: 100%;
  height: auto;
  display: block;
}
.hero-visual-caption {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  color: #B9C4C1;
  padding: 10px 4px 2px;
}
.hero-visual-caption .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(201,134,47,0.2);
}

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about { padding: 100px 0; }

.about-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}

.panel-graphic {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.about-copy p { color: var(--muted); margin-bottom: 18px; }
.about-copy h2 { color: var(--ink); margin-bottom: 20px; }

.about-points {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.about-points li {
  position: relative;
  padding-left: 26px;
  color: var(--ink);
  font-size: 0.98rem;
}
.about-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
}

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services {
  padding: 100px 0;
  background: var(--paper-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { margin-bottom: 16px; }
.section-lead { color: var(--muted); font-size: 1.05rem; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-card {
  background: var(--paper-alt);
  padding: 36px 32px;
  transition: background-color 0.2s ease;
}
.service-card:hover { background: var(--white); }

.service-icon {
  display: inline-flex;
  color: var(--teal);
  margin-bottom: 20px;
}

.service-card h3 { margin-bottom: 12px; color: var(--ink); }
.service-card p { color: var(--muted); font-size: 0.96rem; }

/* ==========================================================================
   WHY US
   ========================================================================== */
.why-us {
  background: var(--deep);
  color: var(--paper);
  padding: 100px 0;
}

.why-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
}

.why-copy h2 { color: var(--white); margin-bottom: 18px; }
.why-lead { color: #C7D0CD; margin-bottom: 34px; }

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 36px;
}

.why-icon {
  display: inline-flex;
  color: var(--amber);
  margin-bottom: 16px;
}

.why-item h3 { color: var(--white); margin-bottom: 10px; font-size: 1.08rem; }
.why-item p { color: #B9C4C1; font-size: 0.95rem; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact { padding: 100px 0; }

.contact-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
}

.contact-lead { color: var(--muted); margin: 20px 0 34px; }

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.contact-details dt {
  font-family: var(--font-head);
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 4px;
}
.contact-details dd {
  font-size: 1rem;
  color: var(--ink);
}
.contact-details a { color: var(--teal-deep); border-bottom: 1px solid var(--line); }
.contact-details a:hover { border-color: var(--teal-deep); }

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
}
.contact-form h3 { margin-bottom: 24px; }

.form-row { margin-bottom: 20px; display: flex; flex-direction: column; }
.form-row label {
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--ink);
}
.form-row .optional { color: var(--muted); font-weight: 400; }

.form-row input,
.form-row select,
.form-row textarea {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 0.98rem;
  transition: border-color 0.2s ease;
  resize: vertical;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--teal);
  outline: none;
}
.form-row.invalid input,
.form-row.invalid select,
.form-row.invalid textarea {
  border-color: #B8462F;
}

.form-error {
  font-family: var(--font-head);
  font-size: 0.78rem;
  color: #B8462F;
  margin-top: 6px;
  min-height: 1em;
}

.form-note {
  margin-top: 16px;
  font-family: var(--font-head);
  font-size: 0.9rem;
  text-align: center;
}
.form-note.success { color: var(--teal-deep); }
.form-note.error { color: #B8462F; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--deep);
  color: #C7D0CD;
  padding: 72px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line-deep);
}

.footer-brand p { margin-top: 16px; font-size: 0.92rem; color: #98A6A2; max-width: 32ch; }

.footer-col h4 {
  font-family: var(--font-head);
  font-size: 0.86rem;
  color: var(--white);
  margin-bottom: 16px;
  font-weight: 500;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; font-size: 0.92rem; }
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  padding: 24px 28px;
  font-size: 0.84rem;
  color: #7E8C88;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 980px) {
  .hero-inner,
  .about-inner,
  .why-inner,
  .contact-inner {
    grid-template-columns: 1fr;
  }
  .about-inner { display: flex; flex-direction: column-reverse; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

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

  .main-nav.open {
    display: block;
    position: absolute;
    top: 78px;
    left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 12px 28px 28px;
  }
  .main-nav.open ul { flex-direction: column; gap: 4px; }
  .main-nav.open a { display: block; padding: 12px 0; }

  .header-actions .btn-small { display: none; }

  .hero { padding: 56px 0 64px; }
  .hero-stats { flex-wrap: wrap; gap: 28px 40px; }

  .about, .services, .why-us, .contact { padding: 64px 0; }
  .service-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; padding-bottom: 40px; }
  .contact-form { padding: 26px; }
}
