/* Matt Demarle — site hi-fi · shared styles */
:root {
  --ink: #1a1a1a;
  --ink-soft: #2c2c2c;
  --muted: #6e6a62;
  --muted-soft: #a8a39a;
  --paper: #faf8f3;
  --paper-2: #f0ede5;
  --paper-3: #e8e3d6;
  --accent: #2e6ec8;
  --accent-soft: #92b4e8;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.serif { font-family: "DM Serif Display", "Georgia", serif; font-weight: 400; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }
.hand { font-family: "Caveat", cursive; }

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

/* layout */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 960px; margin: 0 auto; padding: 0 32px; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26, 26, 26, 0.08);
}
.nav.menu-open {
  backdrop-filter: none;
  background: var(--paper);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px; max-width: 1240px; margin: 0 auto;
}
.logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink);
}
.logo-mark {
  width: auto; height: 50px; border-radius: 0; border: none;
  display: flex; align-items: center; justify-content: center;
  background: transparent; overflow: hidden;
}
.logo-mark img { height: 100%; width: auto; object-fit: contain; }
.logo-name { font-family: "DM Serif Display", serif; font-size: 22px; line-height: 1; }
.logo-tag { font-size: 11px; color: var(--muted); margin-top: 2px; letter-spacing: 0.05em; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--ink-soft);
  font-size: 14px; font-weight: 500;
  padding: 8px 0; border-bottom: 1.5px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}
.nav-links a:hover { color: var(--ink); border-bottom-color: var(--accent); }
.nav-links a.active { color: var(--ink); border-bottom-color: var(--ink); }
.nav-cta {
  background: var(--ink); color: var(--paper);
  padding: 10px 18px; border-radius: 999px;
  text-decoration: none; font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform 0.12s;
}
.nav-cta:hover { transform: translateY(-1px); }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font-size: 15px; font-weight: 600; text-decoration: none;
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
  transition: transform 0.12s, box-shadow 0.12s;
  cursor: pointer;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(0,0,0,0.15); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(46,110,200,0.25); }
.btn-large { padding: 16px 30px; font-size: 16px; }

/* HEADINGS */
.eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}
h1.title {
  font-family: "DM Serif Display", serif; font-weight: 400;
  font-size: clamp(40px, 6vw, 76px); line-height: 1.0;
  letter-spacing: -0.02em; margin: 0;
}
h2.section-title {
  font-family: "DM Serif Display", serif; font-weight: 400;
  font-size: clamp(32px, 4vw, 48px); line-height: 1.1;
  letter-spacing: -0.01em; margin: 0;
}
em.accent { color: var(--accent); font-style: italic; }

/* PAGE HEADER (for sub-pages) */
.page-header {
  padding: 80px 0 60px;
  border-bottom: 1px solid rgba(26,26,26,0.1);
  background: var(--paper-2);
}
.page-header h1 {
  font-family: "DM Serif Display", serif; font-weight: 400;
  font-size: clamp(40px, 5.5vw, 64px); line-height: 1.05;
  letter-spacing: -0.02em; margin: 12px 0 16px;
}
.page-header p { font-size: 18px; color: var(--ink-soft); max-width: 640px; margin: 0; }
.page-header--watermark { overflow: hidden; }
.page-header--watermark .page-header-inner {
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
}
.page-header-watermark {
  opacity: 0.28; max-height: 280px; width: auto;
  pointer-events: none; user-select: none;
}

/* FOOTER */
.footer {
  background: linear-gradient(135deg, #5c5dc0, #707fd0);
  color: #fff;
  padding: 60px 0 30px; margin-top: 0;
  border-top: 1px solid rgba(255,255,255,0.2);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.35fr; gap: 40px;
  max-width: 1240px; margin: 0 auto; padding: 0 32px;
}
.footer h4 {
  font-family: "JetBrains Mono", monospace; font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.1em; color: #fff;
  margin: 0 0 16px;
}
.footer a {
  color: #fff; text-decoration: none; font-size: 14px; font-weight: 400;
  display: block; padding: 6px 0; line-height: 1.5; opacity: 1;
}
.footer .footer-contact-item {
  display: flex; padding: 4px 0; font-size: inherit;
}
.footer a:hover { text-decoration: underline; }
.footer-brand .logo-mark { background: transparent; }
.footer-brand .logo-name { color: #fff; font-weight: 500; }
.footer-brand p {
  color: #fff; font-size: 14px; font-weight: 400; line-height: 1.55;
  max-width: 300px; margin: 16px 0 0;
}
.footer-bottom {
  max-width: 1240px; margin: 50px auto 0; padding: 24px 32px 0;
  border-top: 1px solid rgba(255,255,255,0.3);
  display: flex; justify-content: space-between;
  font-family: "JetBrains Mono", monospace; font-size: 12px; font-weight: 400;
  color: rgba(255,255,255,0.9); letter-spacing: 0.06em;
}

/* BURGER BUTTON */
.burger-btn {
  display: none; background: none; border: none; cursor: pointer;
  width: 32px; height: 24px; position: relative; z-index: 1000; padding: 0;
}
.burger-btn span {
  display: block; position: absolute; left: 0; width: 100%; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.burger-btn span:nth-child(1) { top: 0; }
.burger-btn span:nth-child(2) { top: 11px; }
.burger-btn span:nth-child(3) { top: 22px; }
.burger-btn.open span:nth-child(1) { top: 11px; transform: rotate(45deg); }
.burger-btn.open span:nth-child(2) { opacity: 0; }
.burger-btn.open span:nth-child(3) { top: 11px; transform: rotate(-45deg); }

/* MOBILE MENU */
.mobile-menu {
  display: none; position: fixed; top: 71px; left: 0; right: 0; bottom: 0;
  z-index: 999; background: var(--paper);
  flex-direction: column; padding: 32px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-menu.open { display: flex; }
.mobile-menu-links {
  display: flex; flex-direction: column;
  border-top: 1px solid rgba(26,26,26,0.1);
}
.mobile-menu-links a {
  display: block; padding: 18px 0;
  font-family: "DM Serif Display", serif; font-size: 28px;
  text-decoration: none; color: var(--ink);
  border-bottom: 1px solid rgba(26,26,26,0.1);
}
.mobile-menu-links a.active { color: var(--accent); }
.mobile-menu-cta { margin-top: 24px; width: 100%; justify-content: center; }
.mobile-menu-social {
  display: flex; gap: 16px; margin-top: auto; padding-top: 32px;
}
.mobile-menu-social a {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid rgba(26,26,26,0.2);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; transition: all 0.2s; padding: 0;
}
.mobile-menu-social a:hover { background: var(--ink); border-color: var(--ink); }
.mobile-menu-social a:hover svg { fill: var(--paper); }
.mobile-menu-social svg { width: 20px; height: 20px; fill: var(--ink); }

/* FOOTER CONTACT LIST */
.footer-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
}
.footer-contact-list {
  list-style: none; margin: 0; padding: 0;
}
.footer-contact-item {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 0; min-height: 32px;
  text-decoration: none; color: #fff; opacity: 1;
}
.footer-contact-item:hover { text-decoration: none; }
.footer-contact-item:hover .footer-contact-text {
  text-decoration: underline;
}
.footer-contact-icon {
  flex: 0 0 28px; width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.35);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 7px;
}
.footer-contact-icon svg {
  width: 14px; height: 14px; fill: #fff;
}
.footer-contact-text {
  font-size: 14px; font-weight: 400; line-height: 1.45;
}
.footer-contact-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; font-weight: 400; letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 1; margin-right: 6px;
}

/* STICKY BAR */
.sticky-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 40; padding: 12px 16px;
  background: var(--paper); border-top: 1.5px solid var(--ink);
  gap: 10px;
}
.sticky-btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px; border-radius: 999px;
  font-size: 14px; font-weight: 700; text-decoration: none;
  font-family: "Inter", sans-serif;
}
.sticky-btn svg { width: 18px; height: 18px; }
.sticky-btn--wa { background: #25D366; color: #fff; }
.sticky-btn--wa svg { fill: #fff; }
.sticky-btn--tel { background: var(--ink); color: var(--paper); }
.sticky-btn--tel svg { fill: var(--paper); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .burger-btn { display: block; }
  .nav-links, .nav-cta { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .page-header-watermark { display: none; }
  .page-header--watermark .page-header-inner { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .sticky-bar { display: flex; }
  .footer { padding-bottom: 80px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; }
  .footer-contact-grid { grid-template-columns: 1fr; gap: 0; }
}
