/* =========================================================
   Cadmus Handpiece Repair — Styles
   ========================================================= */

:root {
  /* Palette pulled from the Cadmus logo — red dragon, orange flames, black meander */
  --red: #c41e25;          /* primary dragon red */
  --red-dark: #9a181e;     /* hover / emphasis */
  --orange: #ef6c1b;       /* flame orange */
  --orange-light: #f39531; /* gradient accent */
  --teal: #ef6c1b;         /* legacy alias → now orange (for any stray refs) */
  --blue: #c41e25;         /* legacy alias → now red */
  --blue-dark: #9a181e;
  --dark: #1a1a1a;         /* logo black */
  --light: #fdf7f3;        /* warm off-white */
  --white: #ffffff;
  --border: #ece3dd;
  --text: #1a1a1a;
  --muted: #5c5c5c;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.08);
  --max: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  color: var(--dark);
  margin: 0 0 0.5em;
  line-height: 1.2;
}

h1 { font-size: 48px; font-weight: 700; }
h2 { font-size: 36px; font-weight: 700; }
h3 { font-size: 24px; font-weight: 600; }
h4 { font-size: 20px; font-weight: 600; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--orange); }

ul { padding-left: 20px; }
li { margin-bottom: 0.4em; }

/* =====  Layout helpers  ===== */

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

.section {
  padding: 80px 0;
}

.section--alt { background: var(--light); }
.section--dark { background: var(--dark); color: var(--white); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }
.section--blue { background: var(--red); color: var(--white); }
.section--blue h1, .section--blue h2, .section--blue h3 { color: var(--white); }
.section--flame { background: linear-gradient(135deg, var(--red), var(--orange)); color: var(--white); }
.section--flame h1, .section--flame h2, .section--flame h3 { color: var(--white); }

.text-center { text-align: center; }
.narrow { max-width: 720px; margin-left: auto; margin-right: auto; }

/* =====  Announcement bar  ===== */

.promo-bar {
  background: var(--dark);
  color: var(--white);
  font-size: 14px;
  padding: 10px 16px;
  text-align: center;
}
.promo-bar strong { color: var(--orange-light); }

.promo-bar strong { font-weight: 600; }

/* =====  Header / Nav  ===== */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max);
  margin: 0 auto;
  gap: 16px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--dark);
  font-size: 20px;
}

.nav__logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: transparent;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.5px;
  overflow: hidden;
}
.nav__logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.nav__logo {
  font-size: 18px;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__menu a {
  color: var(--dark);
  font-weight: 500;
  font-size: 15px;
  padding: 6px 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.nav__menu a:hover,
.nav__menu a.active {
  color: var(--red);
  border-bottom-color: var(--orange);
}

.nav__cta {
  margin-left: 8px;
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  margin: 5px 0;
  transition: 0.2s;
}

@media (max-width: 960px) {
  .nav__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav__menu.open {
    max-height: 600px;
  }
  .nav__menu li {
    width: 100%;
    margin: 0;
  }
  .nav__menu a {
    display: block;
    padding: 14px 24px;
    border-bottom: 1px solid var(--border);
  }
  .nav__toggle { display: block; }
}

/* =====  Buttons  ===== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn--primary:hover {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

.btn--secondary {
  background: transparent;
  color: var(--red);
  border-color: var(--red);
}
.btn--secondary:hover {
  background: var(--red);
  color: var(--white);
}

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

.btn--sm { padding: 10px 18px; font-size: 14px; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn-row--center { justify-content: center; }

/* =====  Hero  ===== */

.hero {
  padding: 80px 0;
  background: var(--light);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0; }
}

.hero__tag {
  display: inline-block;
  background: rgba(196, 30, 37, 0.08);
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
  letter-spacing: 0.3px;
}

.hero__sub {
  font-size: 19px;
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 560px;
}

.hero__image {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--red), var(--orange));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__image--contain { background: var(--white); }
.hero__image--contain img { object-fit: contain; padding: 16px; }

.hero__image-placeholder {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  padding: 24px;
  opacity: 0.9;
}

/* =====  Grids / Cards  ===== */

.grid {
  display: grid;
  gap: 24px;
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 960px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.card h3 { margin-bottom: 8px; }

.card__price {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--red);
  margin: 8px 0 14px;
}

.card__muted {
  color: var(--muted);
  font-size: 15px;
}

.card__link {
  display: inline-block;
  margin-top: 14px;
  font-weight: 600;
  font-size: 15px;
}

.card__link::after {
  content: " →";
  transition: margin 0.15s;
}

.card__link:hover::after { margin-left: 3px; }

/* Step card (numbered) */

.step-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow);
  position: relative;
  text-align: left;
}

.step-card__num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--orange));
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.step-card h4 { margin: 0 0 4px; font-size: 16px; }
.step-card p { font-size: 14px; color: var(--muted); margin: 0; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

@media (max-width: 960px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }

/* Trust bar */

.trust-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-bar__item {
  text-align: center;
  font-weight: 500;
  color: var(--muted);
}

.trust-bar__item strong {
  display: block;
  color: var(--dark);
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

@media (max-width: 720px) { .trust-bar { grid-template-columns: 1fr; gap: 20px; } }

/* =====  Table  ===== */

.price-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.price-table th,
.price-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.price-table th {
  background: var(--light);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--dark);
  font-size: 15px;
}

.price-table tbody tr:last-child td { border-bottom: none; }

.price-table .price {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--red);
  white-space: nowrap;
}

.price-table .sub {
  padding-left: 32px;
  color: var(--muted);
  font-size: 15px;
}

@media (max-width: 640px) {
  .price-table thead { display: none; }
  .price-table, .price-table tbody, .price-table tr, .price-table td { display: block; width: 100%; }
  .price-table tr { border-bottom: 1px solid var(--border); padding: 16px; }
  .price-table td { padding: 4px 0; border: none; }
  .price-table td.price { color: var(--red); }
  .price-table .sub { padding-left: 16px; }
}

/* =====  Form  ===== */

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

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }

.form__field {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.form__field label {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--dark);
}

.form__field input,
.form__field textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form__field input:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(196, 30, 37, 0.15);
}

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

.form__help {
  font-size: 14px;
  color: var(--muted);
  margin-top: 12px;
}

/* =====  Contact block  ===== */

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

@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.info-block {
  background: var(--light);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
}

.info-block h3 { margin-top: 0; }

.info-list { list-style: none; padding: 0; margin: 0; }

.info-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
}

.info-list li:last-child { border-bottom: none; }

.info-list strong {
  display: inline-block;
  min-width: 100px;
  color: var(--dark);
  font-weight: 600;
}

/* Map placeholder */

.map-placeholder {
  margin-top: 20px;
  border-radius: var(--radius);
  overflow: hidden;
  height: 260px;
  background: linear-gradient(135deg, #e4ebee, #c9d9de);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 500;
  font-size: 14px;
  text-align: center;
  padding: 20px;
  border: 1px dashed #b8c7cc;
}

/* =====  Footer  ===== */

.site-footer {
  background: var(--dark);
  color: #c9d5dc;
  padding: 56px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

.footer-grid h4 {
  color: var(--white);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
}

.footer-grid a {
  color: #c9d5dc;
  display: inline-block;
  padding: 4px 0;
}
.footer-grid a:hover { color: var(--teal); }

.footer-grid ul { list-style: none; padding: 0; margin: 0; }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 12px;
}

.footer-tag {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 16px;
  max-width: 360px;
}

.social-row a {
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  transition: background 0.15s;
}
.social-row a:hover { background: var(--orange); color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
}

.pay-methods {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pay-chip {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--white);
}

/* =====  Responsive type  ===== */

@media (max-width: 640px) {
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  h3 { font-size: 20px; }
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .hero__sub { font-size: 17px; }
}

/* =====  Utility  ===== */

.mt-0 { margin-top: 0; }
.mt-lg { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-lg { margin-bottom: 32px; }
