/* ============================================================
   TURNTABLE MEDIC — Design System
   Atomic/MCM palette, padded containers, teal/cream/orange
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Julius+Sans+One&family=Monda:wght@400;700&display=swap');

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

:root {
  --teal:        #2ab5a0;
  --teal-dark:   #1a8070;
  --teal-deeper: #1e3530;
  --teal-light:  #e0f7f3;
  --orange:      #e8622a;
  --orange-dark: #c94e1a;
  --cream:       #fdf8f0;
  --cream-warm:  #f5ede0;
  --gold:        #b8961e;
  --gold-light:  #fdf5dc;
  --ink:         #1e3530;
  --muted:       #5a7a74;
  --border:      #c8ddd9;
  --white:       #ffffff;
  --shadow-sm:   0 2px 8px rgba(26,128,112,.08);
  --shadow-md:   0 4px 20px rgba(26,128,112,.12);
  --shadow-lg:   0 8px 40px rgba(26,128,112,.16);
  --radius:      12px;
  --radius-sm:   7px;
  --max-w:       960px;
}

html { scroll-behavior: smooth; }

body {
  background: #c8d8d4;
  font-family: 'Monda', 'Segoe UI', sans-serif;
  color: var(--ink);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.6;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Julius Sans One', serif;
  font-weight: 400;
  line-height: 1.2;
}

a { color: var(--teal-dark); text-decoration: none; transition: color .15s; }
a:hover { color: var(--orange); }

/* ── Site Header ── */
.tm-header {
  background: var(--teal-dark);
  color: #fff;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}

.tm-logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  color: inherit;
}
.tm-logo-link:visited,
.tm-logo-link:hover,
.tm-logo-link:active,
.tm-logo-link:focus { color: inherit; text-decoration: none; }

/* Logo image — shown when set in site settings */
.tm-logo-link img {
  height: 42px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

/* Platter/tonearm logo mark — hidden when logo image present */
.tm-logo-link img ~ div .tm-logo-mark,
.tm-logo-link img + div .tm-logo-mark { display: none; }

.tm-logo-mark {
  position: relative;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.tm-logo-mark svg { width: 32px; height: 32px; }

.tm-logo-text { font-family: 'Julius Sans One', serif; font-size: 16px; color: #fff; letter-spacing: .04em; white-space: nowrap; }
.tm-logo-sub  { display: none; }

/* Desktop nav */
.tm-nav { display: flex; align-items: center; gap: 2px; }
.tm-nav a {
  color: rgba(255,255,255,.72);
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 5px;
  letter-spacing: .03em;
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.tm-nav a:hover    { color: #fff; background: rgba(255,255,255,.1); }
.tm-nav a.active   { color: var(--teal); }
.tm-nav a.cta-btn  {
  background: var(--orange);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 700;
  margin-left: 6px;
}
.tm-nav a.cta-btn:hover { background: var(--orange-dark); }

/* Hamburger */
.tm-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.tm-hamburger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: .3s; }

/* Mobile nav */
.tm-mobile-nav {
  display: none;
  background: var(--teal-deeper);
  padding: 12px 20px 20px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.tm-mobile-nav a {
  display: block;
  color: rgba(255,255,255,.8);
  font-size: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.tm-mobile-nav a:last-child { border-bottom: none; }
.tm-mobile-nav.open { display: block; }

@media (max-width: 860px) { .tm-nav { display: none; } .tm-hamburger { display: flex; } }

/* ── Hero Band ── */
.tm-hero {
  background: #d6f0eb;
  position: relative;
  overflow: hidden;
  padding: 40px 20px 0;
}
.tm-hero::before {
  content: '';
  position: absolute; right: -80px; top: -80px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: var(--teal);
  opacity: .07;
}
.tm-hero::after {
  content: '';
  position: absolute; left: -50px; bottom: -50px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: var(--orange);
  opacity: .06;
}
.tm-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  gap: 28px;
  position: relative;
  z-index: 1;
}
.tm-hero-text { flex: 1; padding-bottom: 32px; }
.tm-eyebrow {
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal-dark);
  font-weight: 700;
  margin-bottom: 10px;
}
.tm-hero h1 {
  font-size: clamp(26px, 4.5vw, 46px);
  color: var(--ink);
  margin-bottom: 12px;
}
.tm-hero h1 em { color: var(--orange); font-style: normal; }
.tm-hero p {
  font-size: 14px;
  color: #3a6060;
  max-width: 480px;
  line-height: 1.7;
}
.tm-hero-art {
  width: 140px;
  flex-shrink: 0;
  align-self: flex-end;
  opacity: .8;
}
@media (max-width: 540px) { .tm-hero-art { display: none; } }

/* ── How-It-Works Strip ── */
.tm-how-strip {
  background: #d6f0eb;
  border-bottom: 3px solid var(--teal-dark);
  padding: 12px 16px 16px;
}
.tm-how-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}
.tm-how-step {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--teal-dark);
  padding: 4px 12px;
  font-weight: 700;
}
.tm-step-num {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--teal-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}
.tm-how-arrow { color: var(--teal); opacity: .5; font-size: 16px; }
@media (max-width: 600px) { .tm-how-strip { display: none; } }

/* ── Page Body Wrapper ── */
.tm-body {
  background: var(--cream);
  padding: 28px 16px 56px;
}
.tm-container {
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ── Section Heading ── */
.tm-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.tm-section-title {
  font-family: 'Julius Sans One', serif;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
  position: relative;
}
.tm-section-title::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 2px;
  background: var(--orange);
  border-radius: 1px;
}
.tm-section-rule { flex: 1; height: 1px; background: var(--border); }

/* ── Cards ── */
.tm-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.tm-card-header {
  background: var(--teal-dark);
  padding: 16px 22px;
}
.tm-card-header h2,
.tm-card-header h3 {
  color: #fff;
  font-size: 18px;
}
.tm-card-header p { color: rgba(255,255,255,.6); font-size: 12px; margin-top: 3px; }
.tm-card-body { padding: 22px; }

/* ── Mediatext sections (image + text overlap card) ── */
.tm-mediatext {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 0;
  margin-bottom: 32px;
  position: relative;
  align-items: center;
}
.tm-mediatext.flip { grid-template-columns: 5fr 7fr; }
.tm-mediatext-img {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}
.tm-mediatext-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 280px;
}
.tm-mediatext-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 2;
  /* The overlap */
  width: 120%;
  margin-left: -20%;
}
.tm-mediatext.flip .tm-mediatext-card {
  margin-left: 0;
  margin-right: -20%;
  order: -1;
}
.tm-mediatext-card h2 {
  font-size: clamp(18px, 2.5vw, 26px);
  color: var(--teal-dark);
  margin-bottom: 8px;
}
.tm-mediatext-card .tm-sub {
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 10px;
}
.tm-mediatext-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 680px) {
  .tm-mediatext,
  .tm-mediatext.flip {
    grid-template-columns: 1fr;
  }
  .tm-mediatext-card,
  .tm-mediatext.flip .tm-mediatext-card {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    order: 0;
  }
  .tm-mediatext-img img { min-height: 200px; border-radius: var(--radius) var(--radius) 0 0; }
  .tm-mediatext-card { border-radius: 0 0 var(--radius) var(--radius); }
}

/* ── Pricing circles ── */
.tm-price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}
@media (max-width: 640px) { .tm-price-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 380px) { .tm-price-grid { grid-template-columns: 1fr; } }

.tm-price-item {
  text-align: center;
  padding: 24px 16px;
  position: relative;
}
.tm-price-ring {
  width: 90px; height: 90px;
  border-radius: 50%;
  background: rgba(42,181,160,.1);
  margin: 0 auto 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}
.tm-price-ring::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(42,181,160,.2);
}
.tm-price-amount {
  font-family: 'Julius Sans One', serif;
  font-size: 22px;
  color: var(--ink);
}
.tm-price-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.3;
  text-align: center;
  margin-bottom: 6px;
}
.tm-price-desc { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* ── Info / Sidebar cards ── */
.tm-info-card { background: var(--white); border-radius: var(--radius); border: 1.5px solid var(--border); overflow: hidden; box-shadow: var(--shadow-sm); }
.tm-info-card-head {
  background: var(--teal-light);
  padding: 10px 16px;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal-dark);
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}
.tm-info-card-body { padding: 16px; }

.tm-info-item { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink); line-height: 1.6; margin-bottom: 12px; }
.tm-info-item:last-child { margin-bottom: 0; }
.tm-info-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }

/* ── Notice / Alert boxes ── */
.tm-notice {
  background: var(--gold-light);
  border: 1.5px solid #e8d080;
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: 20px;
}
.tm-alert {
  background: #fff0ee;
  border: 1.5px solid #f5c6bc;
  border-left: 4px solid var(--orange);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 13.5px;
  color: #7a1a00;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* ── Buttons ── */
.tm-btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, transform .1s, box-shadow .15s;
  text-decoration: none;
  letter-spacing: .02em;
}
.tm-btn:hover { transform: translateY(-1px); }
.tm-btn-primary { background: var(--orange); color: #fff; }
.tm-btn-primary:hover { background: var(--orange-dark); color: #fff; box-shadow: 0 4px 14px rgba(232,98,42,.3); }
.tm-btn-teal { background: var(--teal-dark); color: #fff; }
.tm-btn-teal:hover { background: var(--teal-deeper); color: #fff; }
.tm-btn-ghost { background: transparent; border: 2px solid var(--teal-dark); color: var(--teal-dark); }
.tm-btn-ghost:hover { background: var(--teal-dark); color: #fff; }
.tm-btn-full { display: block; width: 100%; text-align: center; padding: 14px; font-size: 15px; border: none; border-radius: var(--radius-sm); }

/* ── Text styles ── */
.tm-body-text { font-size: 14px; color: var(--ink); line-height: 1.75; }
.tm-body-text b, .tm-body-text strong { color: var(--teal-deeper); }
.tm-body-text a { color: var(--teal-dark); text-decoration: underline; }
.tm-muted { color: var(--muted); }
.tm-orange { color: var(--orange); }
.tm-teal { color: var(--teal-dark); }

/* ── Two-column layout ── */
.tm-two-col {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 720px) {
  .tm-two-col { grid-template-columns: 1fr; }
  .tm-two-col .tm-sidebar { order: -1; }
}

/* ── Grid layouts ── */
.tm-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tm-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 640px) { .tm-grid-2, .tm-grid-3 { grid-template-columns: 1fr; } }

/* ── Decorative record/platter SVG ── */
.tm-platter-art { opacity: .7; }

/* ── Footer ── */
.tm-footer {
  background: var(--teal-deeper);
  color: rgba(255,255,255,.7);
  padding: 32px 20px 20px;
}
.tm-footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}
@media (max-width: 640px) { .tm-footer-inner { grid-template-columns: 1fr; gap: 20px; } }
.tm-footer-head {
  font-family: 'Julius Sans One', serif;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 10px;
}
.tm-footer-links { display: flex; flex-direction: column; gap: 6px; }
.tm-footer-links a { color: rgba(255,255,255,.65); font-size: 13px; transition: color .15s; }
.tm-footer-links a:hover { color: var(--teal); }
.tm-footer-social { display: flex; gap: 12px; margin-top: 10px; }
.tm-footer-social a { color: rgba(255,255,255,.55); font-size: 13px; transition: color .15s; }
.tm-footer-social a:hover { color: var(--teal); }
.tm-footer-copy {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 11px;
  color: rgba(255,255,255,.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── Utility ── */
.mt-0  { margin-top: 0; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.text-center { text-align: center; }
.bold { font-weight: 700; }
hr.tm-rule { border: none; border-top: 1px solid var(--border); margin: 20px 0; }

/* ── Service Tiles (used with .tm-grid-3) ── */
.service-tile {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.service-tile:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.service-tile-icon { font-size: 28px; margin-bottom: 10px; }
.service-tile h3 { font-size: 14px; color: var(--teal-dark); margin-bottom: 6px; }
.service-tile p  { font-size: 12px; color: var(--muted); line-height: 1.55; }

/* ── Mobile responsive fixes ── */
@media (max-width: 480px) {
  .location-card-head { flex-wrap: wrap; }
  .location-card-head h3 { min-width: 0; word-break: break-word; font-size: 13px; }
  .tm-grid-2, .tm-grid-3 { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: flex-start; }
  .tm-hero h1 { font-size: clamp(22px, 6vw, 32px); word-break: break-word; }
  .tm-how-strip { display: none; }
}

/* ── Contact Form ── */
.tm-contact-form { display: flex; flex-direction: column; gap: 16px; }
.tm-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .tm-form-row { grid-template-columns: 1fr; } }
.tm-form-group { display: flex; flex-direction: column; gap: 6px; }
.tm-form-label { font-size: 11px; font-family: 'DM Mono', monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.tm-form-req { color: var(--orange); }
.tm-form-input { border: 1.5px solid var(--border); border-radius: var(--radius); padding: 10px 14px; font-size: 14px; font-family: 'DM Sans', sans-serif; color: var(--ink); background: #fff; transition: border-color .15s; outline: none; width: 100%; box-sizing: border-box; }
.tm-form-input:focus { border-color: var(--teal-dark); }
textarea.tm-form-input { resize: vertical; min-height: 120px; }
select.tm-form-input { cursor: pointer; }
.tm-form-submit { align-self: flex-start; margin-top: 4px; }
.tm-form-status { padding: 12px 16px; border-radius: var(--radius); font-size: 14px; margin-top: 4px; }
.tm-form-success { background: #d6f0eb; color: var(--teal-dark); border: 1.5px solid var(--teal); }
.tm-form-error { background: #fde8e8; color: #c04040; border: 1.5px solid #e09090; }
