/* ============================================================
   DoctorsDME — Shared Stylesheet
   --primary is set per-page via inline <style> for clinic branding.
   All other variables are defined here as defaults.
   ============================================================ */

/* --- Custom Properties ------------------------------------ */
:root {
  --primary:       #2563a8;   /* default; overridden per clinic page */
  --primary-dark:  #1a4a80;   /* darker shade for hover/active states */
  --text:          #1a1a1a;
  --text-muted:    #6b6b6b;
  --bg:            #f7f8fa;
  --card-bg:       #ffffff;
  --border:        #dde1e7;
  --amazon-orange: #FF9900;
  --amazon-hover:  #e68a00;

  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                Helvetica, Arial, sans-serif, "Apple Color Emoji";

  --radius:        6px;
  --shadow-card:   0 1px 4px rgba(0, 0, 0, 0.08), 0 2px 12px rgba(0, 0, 0, 0.05);
  --max-width:     1120px;
  --spacing-section: 3rem;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-stack);
  line-height: 1.6;
}

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

a {
  color: var(--primary);
  text-decoration: underline;
}

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

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.25;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

ul, ol {
  margin: 0 0 1em;
  padding-left: 1.4em;
}

/* --- Layout Utilities ------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --- Site Header ------------------------------------------ */
.site-header {
  background: var(--primary);
  color: #ffffff;
  padding: 0.875rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.site-header__logo {
  height: 40px;
  width: auto;
  flex-shrink: 0;
}

.site-header__name {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin: 0;
}

.site-header nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.site-header nav a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.site-header nav a:hover {
  color: #ffffff;
}

/* --- Hero ------------------------------------------------- */
.hero {
  background: var(--primary);
  color: #ffffff;
  padding: 3.5rem 0 3rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.88);
  max-width: 640px;
  margin: 0 auto;
}

/* --- Sections --------------------------------------------- */
.section {
  padding: var(--spacing-section) 0;
}

.section--alt {
  background: #ffffff;
}

.section__title {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

/* --- How It Works (3-step) -------------------------------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  counter-reset: step-counter;
}

.step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.step__number {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--primary);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  margin-top: 0.125rem;
}

.step__body h3 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.step__body p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.9375rem;
}

/* --- Feature List ----------------------------------------- */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  padding: 0.5rem 0 0.5rem 1.75rem;
  position: relative;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}

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

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* --- Pricing Block ---------------------------------------- */
.pricing-block {
  background: var(--primary);
  color: #ffffff;
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  max-width: 420px;
  margin: 0 auto;
}

.pricing-block__price {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.pricing-block__period {
  font-size: 1.1rem;
  opacity: 0.85;
  margin-bottom: 1rem;
}

.pricing-block__note {
  font-size: 0.9rem;
  opacity: 0.75;
  margin-bottom: 1.5rem;
}

/* --- Product Grid ----------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

/* --- Product Card ----------------------------------------- */
.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.product-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.product-card__image-wrap {
  background: #f0f2f5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  min-height: 180px;
}

.product-card__image-wrap img {
  max-height: 160px;
  width: auto;
  margin: 0 auto;
  object-fit: contain;
}

.product-card__body {
  padding: 1rem 1.125rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card__category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.375rem;
}

.product-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text);
  line-height: 1.35;
}

.product-card__note {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  flex: 1;
  line-height: 1.5;
}

/* --- Amazon Button ---------------------------------------- */
.btn-amazon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--amazon-orange);
  color: #111111;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
  align-self: flex-start;
  line-height: 1.2;
}

.btn-amazon:hover {
  background: var(--amazon-hover);
  color: #111111;
}

.btn-amazon::after {
  content: "→";
  font-size: 0.85em;
}

/* --- Generic CTA Button ----------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--amazon-orange);
  color: #111111;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  transition: background 0.15s ease;
}

.btn-primary:hover {
  background: var(--amazon-hover);
  color: #111111;
}

/* --- Disclosure ------------------------------------------- */
.disclosure {
  background: #f0f2f5;
  border-top: 1px solid var(--border);
  padding: 1rem 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

/* --- Site Footer ------------------------------------------ */
.site-footer {
  background: #1a1a1a;
  color: rgba(255, 255, 255, 0.65);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.875rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.75);
}

.site-footer a:hover {
  color: #ffffff;
}

/* --- Responsive: Tablet (≥ 640px) ------------------------- */
@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

/* --- Responsive: Desktop (≥ 960px) ------------------------ */
@media (min-width: 960px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .hero {
    padding: 5rem 0 4rem;
  }
}
