/* ==========================================================================
   Baltimore Sound Guy — site styles
   Colors and fonts come from the brand brief. Change them here, once.
   ========================================================================== */

:root {
  --orange: #FF6600;
  --orange-dark: #D95500;
  --purple: #5A2D82;
  --purple-dark: #3E1E5C;
  --purple-deep: #24123A;
  --teal: #2BA6A6;           /* accent pulled from the logo's sound waves */
  --charcoal: #1F1F1F;
  --offwhite: #F9F9F9;
  --gray: #666666;
  --line: #E6E1EA;
  --white: #FFFFFF;

  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-tag: "Permanent Marker", "Comic Sans MS", cursive; /* graffiti accent — use sparingly */

  --radius: 14px;
  --shadow: 0 6px 24px rgba(36, 18, 58, 0.10);
  --max: 1160px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--offwhite);
}

img { max-width: 100%; display: block; }

a { color: var(--purple); }
a:hover { color: var(--orange-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 80px 0; }
.section--tight { padding: 56px 0; }
.section--white { background: var(--white); }

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}
.section-head p { color: var(--gray); }

.tag {
  font-family: var(--font-tag);
  color: var(--orange);
  font-size: 1.25rem;
  display: inline-block;
  transform: rotate(-2deg);
  margin-bottom: 6px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--white);
  padding: 8px 14px;
  z-index: 100;
}
.skip-link:focus { left: 8px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }

.btn--orange { background: var(--orange); color: var(--white); }
.btn--orange:hover { background: var(--orange-dark); color: var(--white); }

.btn--ghost { border-color: var(--white); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--purple-dark); }

.btn--purple { background: var(--purple); color: var(--white); }
.btn--purple:hover { background: var(--purple-dark); color: var(--white); }

.btn--white { background: var(--white); color: var(--purple-dark); }
.btn--white:hover { background: var(--offwhite); color: var(--orange-dark); }

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--purple-deep);
  border-bottom: 3px solid var(--orange);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}
.brand img { width: 48px; height: 48px; border-radius: 50%; }
.brand span b { color: var(--orange); font-weight: 800; }
.brand:hover { color: var(--white); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--orange); }
.nav-links .btn { padding: 10px 20px; font-size: 0.9rem; }
.nav-links .btn:hover { color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--white);
  cursor: pointer;
  padding: 8px;
}
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 75px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--purple-deep);
    padding: 8px 20px 20px;
    border-bottom: 3px solid var(--orange);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-links .btn { margin-top: 12px; justify-content: center; border-bottom: 0; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  text-align: center;
  background: linear-gradient(180deg, var(--purple-deep) 0%, var(--purple) 70%, var(--purple-dark) 100%);
  padding: 72px 0 0;
}

.hero__inner { position: relative; z-index: 2; padding-bottom: 200px; }

.hero__logo {
  width: 170px;
  height: 170px;
  margin: 0 auto 24px;
  border-radius: 50%;
  border: 4px solid var(--white);
  box-shadow: 0 10px 40px rgba(0,0,0,0.35);
}

.hero h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.6rem);
  font-weight: 800;
  max-width: 820px;
  margin: 0 auto 18px;
}
.hero h1 em { font-style: normal; color: var(--orange); }

.hero__services {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: rgba(255,255,255,0.88);
  max-width: 760px;
  margin: 0 auto 32px;
}
.hero__services span { white-space: nowrap; }
.hero__services .dot { color: var(--orange); padding: 0 6px; }

.hero__ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero__skyline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  width: 100%;
  height: 230px;
  z-index: 1;
}

@media (max-width: 600px) {
  .hero { padding-top: 48px; }
  .hero__logo { width: 130px; height: 130px; }
  .hero__inner { padding-bottom: 150px; }
  .hero__skyline { height: 160px; }
}

/* ---------- Trust bar ---------- */

.trust {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding: 40px 0;
}
.trust__item { display: flex; gap: 14px; align-items: flex-start; }
.trust__item h3 { font-size: 1.02rem; margin-bottom: 4px; }
.trust__item p { font-size: 0.92rem; color: var(--gray); margin: 0; }

.icon-badge {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 102, 0, 0.12);
  color: var(--orange);
}
.icon-badge svg { width: 24px; height: 24px; }
.icon-badge--purple { background: rgba(90, 45, 130, 0.12); color: var(--purple); }

@media (max-width: 900px) { .trust__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .trust__grid { grid-template-columns: 1fr; gap: 22px; } }

/* ---------- Service cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}
.card {
  grid-column: span 2;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--orange);
  transition: transform 0.15s ease;
}
.card:nth-child(even) { border-top-color: var(--purple); }
.card:hover { transform: translateY(-4px); }
/* five cards: center the bottom two on desktop */
.card:nth-child(4) { grid-column: 2 / span 2; }
.card .icon-badge { margin-bottom: 16px; }
.card p { color: var(--gray); margin: 0; font-size: 0.97rem; }

@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card, .card:nth-child(4) { grid-column: auto; }
  .card:nth-child(5) { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .cards { grid-template-columns: 1fr; }
}

.center { text-align: center; }
.mt-40 { margin-top: 40px; }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--orange);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  /* subtle spray-paint speckle */
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(90,45,130,0.18) 1.5px, transparent 1.6px);
  background-size: 18px 18px;
  pointer-events: none;
}
.cta-band .container { position: relative; }
.cta-band h2 { max-width: 760px; margin: 0 auto 24px; }

/* ---------- Page header (inner pages) ---------- */

.page-head {
  background: linear-gradient(135deg, var(--purple-deep), var(--purple));
  color: var(--white);
  padding: 64px 0 56px;
  text-align: center;
}
.page-head h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; }
.page-head p { color: rgba(255,255,255,0.85); max-width: 640px; margin: 0 auto; }

/* ---------- Services page ---------- */

.service-detail {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  scroll-margin-top: 96px;
}
.service-detail .icon-badge { width: 72px; height: 72px; border-radius: 18px; }
.service-detail .icon-badge svg { width: 34px; height: 34px; }
.service-detail h2 { font-size: 1.6rem; }
.service-detail ul { margin: 0 0 1em; padding-left: 1.2em; color: var(--gray); }
.service-detail li { margin-bottom: 4px; }
.service-detail .good-for { font-size: 0.95rem; color: var(--gray); margin: 0; }
.service-detail .good-for b { color: var(--charcoal); }

@media (max-width: 600px) {
  .service-detail { grid-template-columns: 1fr; padding: 24px; }
}

/* ---------- About page ---------- */

.story {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.08rem;
}
.story p { margin-bottom: 1.2em; }
.story .lead {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.6vw, 1.5rem);
  line-height: 1.4;
  color: var(--purple-dark);
}

.timeline {
  list-style: none;
  margin: 40px 0 0;
  padding: 0 0 0 28px;
  border-left: 3px solid var(--line);
}
.timeline li { position: relative; margin-bottom: 28px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -37px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--orange);
  border: 3px solid var(--offwhite);
}
.timeline li:nth-child(even)::before { background: var(--purple); }
.timeline h3 { margin-bottom: 4px; }
.timeline p { color: var(--gray); margin: 0; }

.values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.values .card { grid-column: auto; }
@media (max-width: 860px) { .values { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: start;
}
.contact-grid > * { min-width: 0; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .panel { padding: 22px; } }

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: minmax(0, 1fr); } }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 6px;
}
.field .opt { font-weight: 400; color: var(--gray); }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--offwhite);
  color: var(--charcoal);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--purple);
  background: var(--white);
}
.field textarea { min-height: 130px; resize: vertical; }

.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.checks label { font-family: var(--font-body); font-weight: 400; display: flex; gap: 8px; align-items: center; margin: 0; }
.checks input { width: auto; }
@media (max-width: 520px) { .checks { grid-template-columns: 1fr; } }

.form-note { font-size: 0.88rem; color: var(--gray); margin-top: 12px; }
.hp { position: absolute; left: -9999px; }
.form-status { margin-top: 14px; font-weight: 600; }
.form-status.ok { color: #1B7F4B; }
.form-status.err { color: #B3261E; }

.contact-list { list-style: none; padding: 0; margin: 0 0 24px; }
.contact-list li { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.contact-list a { font-weight: 600; text-decoration: none; }
.contact-list small { display: block; color: var(--gray); font-size: 0.85rem; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--purple-deep);
  color: rgba(255,255,255,0.8);
  padding: 56px 0 28px;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 36px;
}
.footer-brand img { width: 88px; height: 88px; margin-bottom: 14px; border-radius: 50%; }
.site-footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(255,255,255,0.85); text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
