/* Animal Birthday Predictor (ABP Pro) - Executive Design System */

:root {
  --bg-dark: #0a192f;
  --bg-card: #112240;
  --bg-surface: #1e293b;
  --bg-surface-elevated: #233554;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --gold-primary: #d4af37;
  --gold-light: #fef08a;
  --gold-dark: #996515;
  --gold-gradient: linear-gradient(135deg, #fde047 0%, #d4af37 60%, #b48a1c 100%);
  --gold-subtle: rgba(212, 175, 55, 0.1);
  --border-gold: rgba(212, 175, 55, 0.35);
  --border-gold-strong: rgba(212, 175, 55, 0.7);
  --emerald-success: #10b981;
  --emerald-subtle: rgba(16, 185, 129, 0.12);
  --crimson-risk: #f43f5e;
  --crimson-subtle: rgba(244, 63, 94, 0.15);
  --blue-accent: #38bdf8;
  --shadow-lg: 0 16px 36px -8px rgba(2, 6, 23, 0.6);
  --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.25);
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --container-max: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header & Sticky Nav */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 25, 47, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-gold);
  padding: 0.85rem 1.5rem;
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--text-primary);
}

.logo-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--gold-primary);
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.35);
  display: block;
  object-fit: cover;
  background: #061122;
}

.brand-title {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
  line-height: 1.15;
}

.brand-subtitle {
  font-size: 0.72rem;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  align-items: center;
  list-style: none;
}

.nav-links a:not(.btn-cta):not(.btn-secondary) {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.92rem;
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a:not(.btn-cta):not(.btn-secondary):hover,
.nav-links a:not(.btn-cta):not(.btn-secondary).active {
  color: var(--gold-primary);
}

.nav-links a:not(.btn-cta):not(.btn-secondary).active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold-gradient);
  border-radius: 2px;
}

/* Mobile Menu Button (Hidden on Desktop) */
.mobile-menu-btn {
  display: none !important;
  background: transparent;
  border: 1px solid var(--border-gold);
  color: var(--gold-primary);
  border-radius: 6px;
  padding: 0.5rem 0.65rem;
  cursor: pointer;
  font-size: 1.25rem;
}

/* Mobile Drawer Overlay & Drawer Container */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: var(--bg-card);
  border-left: 1px solid var(--border-gold);
  z-index: 2000;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 2rem 1.5rem;
  flex-direction: column;
  box-shadow: -8px 0 30px rgba(0,0,0,0.7);
}

.mobile-drawer.open {
  display: flex !important;
  right: 0;
}

.drawer-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  margin-bottom: 2rem;
}

.drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.drawer-links a {
  font-size: 1.05rem;
  color: var(--text-primary);
  font-weight: 600;
}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(2, 6, 23, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1999;
  display: none;
}

.drawer-overlay.active {
  display: block;
}

/* Common Buttons */
.btn-cta,
a.btn-cta,
.nav-links a.btn-cta,
.drawer-links a.btn-cta {
  background: var(--gold-gradient) !important;
  color: #061122 !important;
  padding: 0.65rem 1.4rem;
  border-radius: 8px;
  font-weight: 800 !important;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: var(--shadow-gold);
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  line-height: 1.2;
}

.btn-cta:hover,
a.btn-cta:hover,
.nav-links a.btn-cta:hover,
.drawer-links a.btn-cta:hover {
  color: #000000 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(212, 175, 55, 0.55);
  filter: brightness(1.05);
}

.btn-cta::after,
a.btn-cta::after,
.nav-links a.btn-cta::after {
  display: none !important;
}

.btn-secondary,
a.btn-secondary,
.nav-links a.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-gold);
  color: #ffffff !important;
  padding: 0.65rem 1.4rem;
  border-radius: 8px;
  font-weight: 700 !important;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none !important;
  line-height: 1.2;
}

.btn-secondary:hover,
a.btn-secondary:hover,
.nav-links a.btn-secondary:hover {
  background: var(--gold-subtle);
  border-color: var(--gold-primary);
  color: var(--gold-primary) !important;
}

.btn-secondary::after,
a.btn-secondary::after,
.nav-links a.btn-secondary::after {
  display: none !important;
}

/* App Store Official Badges */
.store-badges {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.app-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #000000;
  border: 1px solid #334155;
  border-radius: 9px;
  padding: 0.55rem 1.2rem;
  color: #fff;
  transition: border-color 0.2s, transform 0.2s;
  min-width: 175px;
}

.app-badge-btn:hover {
  border-color: var(--gold-primary);
  transform: translateY(-2px);
}

.app-badge-btn svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.badge-subtext {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.5px;
  line-height: 1;
}

.badge-maintext {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
}

/* Hero Section */
.hero {
  padding: 5rem 1.5rem 4rem;
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold-subtle);
  border: 1px solid var(--gold-primary);
  padding: 0.4rem 1rem;
  border-radius: 24px;
  color: var(--gold-primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3rem;
  line-height: 1.18;
  font-weight: 900;
  margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
}

.hero-title span {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-preview-card {
  background: var(--bg-card);
  border: 2px solid var(--gold-primary);
  border-radius: 16px;
  padding: 2.25rem;
  box-shadow: var(--shadow-lg), 0 0 25px rgba(212, 175, 55, 0.15);
  position: relative;
  overflow: hidden;
}

.hero-preview-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gold-gradient);
}

.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.card-kicker {
  font-size: 0.8rem;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 800;
  line-height: 1.2;
}

.cert-stamp {
  display: inline-flex;
  align-items: center;
  background: var(--emerald-subtle);
  border: 1px solid var(--emerald-success);
  color: var(--emerald-success);
  padding: 0.35rem 0.8rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.cert-stamp-gold {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  background: var(--gold-subtle);
}

.cert-stamp-blue {
  border-color: var(--blue-accent);
  color: var(--blue-accent);
  background: rgba(56, 189, 248, 0.15);
}

/* Warm Breeder Hero Preview & Photo Components */
.hero-card-img-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border-gold);
}

.hero-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-card-img-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(to top, rgba(10, 25, 47, 0.95) 0%, rgba(10, 25, 47, 0.4) 60%, transparent 100%);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.hero-card-countdown-badge {
  background: var(--gold-gradient);
  color: #061122;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.4);
}

.countdown-progress-bar {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  height: 8px;
  overflow: hidden;
  margin: 0.75rem 0 1rem;
  position: relative;
}

.countdown-progress-fill {
  background: var(--gold-gradient);
  height: 100%;
  border-radius: 10px;
  transition: width 0.5s ease;
}

.hero-milestone-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.85rem;
  background: rgba(10, 25, 47, 0.65);
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  margin-bottom: 0.5rem;
  font-size: 0.84rem;
}

.hero-milestone-step.done {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.08);
}

.hero-milestone-step.active-step {
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.1);
}

.hero-milestone-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.warm-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin: 2.5rem 0;
}

.warm-photo-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-gold);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  position: relative;
}

.warm-photo-card img {
  width: 100%;
  height: 100%;
  max-height: 380px;
  object-fit: cover;
  display: block;
}

.warm-photo-card-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(to top, rgba(10, 25, 47, 0.95) 0%, rgba(10, 25, 47, 0.6) 70%, transparent 100%);
  font-size: 0.85rem;
  color: #f8fafc;
}

@media (max-width: 900px) {
  .warm-photo-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Calculator Section */
.calculator-section {
  padding: 5rem 1.5rem;
  background: rgba(17, 34, 64, 0.45);
  border-top: 1px solid var(--border-gold);
  border-bottom: 1px solid var(--border-gold);
}

.calc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 950px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold-primary);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  background: #091322;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.form-control:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.25);
}

.calc-timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.milestone-item {
  background: rgba(10, 25, 47, 0.7);
  border-left: 3px solid var(--gold-primary);
  border-radius: 0 8px 8px 0;
  padding: 0.85rem 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.milestone-item.alert-danger {
  border-left-color: var(--crimson-risk);
  background: var(--crimson-subtle);
}

.milestone-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.milestone-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.milestone-date {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--gold-primary);
  text-align: right;
  white-space: nowrap;
}

/* Feature Grid */
.features-section {
  padding: 5rem 1.5rem;
}

.section-container {
  max-width: var(--container-max);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title {
  font-size: 2.35rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.5px;
}

.section-title span {
  color: var(--gold-primary);
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 720px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 14px;
  padding: 2.25rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-primary);
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--gold-subtle);
  border: 1px solid rgba(212, 175, 55, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.35rem;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  color: var(--text-primary);
}

.feature-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

.feature-tag {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Certificate Specimen Section */
.cert-section {
  padding: 5rem 1.5rem;
  background: rgba(17, 34, 64, 0.4);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.cert-specimen-card {
  background: var(--bg-card);
  border: 3px double var(--gold-primary);
  border-radius: 12px;
  padding: 2rem;
  position: relative;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.cert-specimen-header {
  border-bottom: 1px solid var(--border-gold);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cert-specimen-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gold-primary);
}

.cert-specimen-body {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.cert-field-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.82rem;
  padding: 0.45rem 0;
  border-bottom: 1px dashed rgba(255,255,255,0.08);
}

.cert-field-label {
  color: var(--text-muted);
  flex-shrink: 0;
}

.cert-field-val {
  color: var(--text-primary);
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

/* Pricing Section */
.pricing-section {
  padding: 5rem 1.5rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1050px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s ease;
}

.pricing-card.featured {
  border: 2px solid var(--gold-primary);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
  transform: scale(1.02);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold-gradient);
  color: #0a192f;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.pricing-tier {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.pricing-price {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--gold-primary);
  margin-bottom: 0.5rem;
}

.pricing-price span {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.pricing-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.pricing-features li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pricing-features li.included {
  color: var(--text-primary);
}

/* Legal & Policy Styling */
.legal-container {
  max-width: 900px;
  margin: 3.5rem auto;
  padding: 0 1.5rem;
}

.legal-header {
  margin-bottom: 2rem;
}

.legal-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--gold-primary);
  margin-bottom: 0.5rem;
}

.legal-meta {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.legal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  padding: 2.5rem;
  line-height: 1.8;
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
}

.legal-card h2,
.legal-content h2 {
  font-size: 1.35rem;
  color: var(--gold-primary);
  margin: 2rem 0 0.75rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding-bottom: 0.4rem;
}

.legal-card h3,
.legal-content h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin: 1.25rem 0 0.5rem;
}

.legal-card p,
.legal-content p {
  color: #cbd5e1;
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.legal-card ul,
.legal-content ul,
.legal-card ol,
.legal-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1.25rem;
  color: #cbd5e1;
}

.legal-card li,
.legal-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.legal-content a {
  color: var(--gold-primary);
  text-decoration: underline;
}

.legal-content a:hover {
  color: var(--gold-light);
}

.stud-book-name {
  display: inline;
}

/* Callout Alert */
.alert-box {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin: 1.5rem 0;
  font-size: 0.92rem;
  line-height: 1.6;
}

.alert-warning {
  background: rgba(245, 158, 11, 0.12);
  border-left: 4px solid #f59e0b;
  color: #fde68a;
}

.alert-danger {
  background: var(--crimson-subtle);
  border-left: 4px solid var(--crimson-risk);
  color: #fecdd3;
}

.alert-success {
  background: var(--emerald-subtle);
  border-left: 4px solid var(--emerald-success);
  color: #a7f3d0;
}

/* Contact / Support Form */
.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.support-channels {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.support-channel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 1.75rem;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 10px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  text-align: left;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: inherit;
}

.faq-question:hover {
  color: var(--gold-primary);
}

.faq-icon {
  color: var(--gold-primary);
  transition: transform 0.25s ease;
  font-size: 1.2rem;
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* Trimester & Fetal Timeline */
.trimester-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.trimester-card {
  background: var(--bg-card);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 14px;
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.trimester-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-primary);
}

.trimester-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--gold-primary);
  background: var(--gold-subtle);
  border: 1px solid var(--border-gold);
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: fit-content;
}

.trimester-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.trimester-day {
  font-size: 0.88rem;
  color: var(--gold-primary);
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.trimester-milestones {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.trimester-milestones li {
  border-left: 2px solid var(--border-gold);
  padding-left: 0.75rem;
  line-height: 1.5;
}

.trimester-milestones strong {
  color: var(--text-primary);
}

/* Protocol & Data Tables */
.protocol-table-wrapper {
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  margin-top: 2rem;
}

.protocol-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
  min-width: 650px;
}

.protocol-table th {
  background: rgba(10, 25, 47, 0.9);
  color: var(--gold-primary);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.8px;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border-gold);
}

.protocol-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  vertical-align: middle;
}

.protocol-table tr:hover td {
  background: rgba(212, 175, 55, 0.03);
}

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

.protocol-tag {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
}

.protocol-tag.core {
  background: var(--emerald-subtle);
  color: var(--emerald-success);
  border: 1px solid var(--emerald-success);
}

.protocol-tag.risk {
  background: var(--crimson-subtle);
  color: var(--crimson-risk);
  border: 1px solid var(--crimson-risk);
}

/* Comparative Matrix */
.comparison-table-wrapper {
  overflow-x: auto;
  background: var(--bg-card);
  border: 2px solid var(--border-gold);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  margin-top: 2.5rem;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
  min-width: 700px;
}

.comparison-table th {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-gold);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.comparison-table th.col-feature {
  color: var(--text-primary);
  width: 40%;
}

.comparison-table th.col-abp {
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-primary);
  text-align: center;
  width: 30%;
  border-left: 1px solid var(--border-gold);
  border-right: 1px solid var(--border-gold);
}

.comparison-table th.col-others {
  color: var(--text-muted);
  text-align: center;
  width: 30%;
}

.comparison-table td {
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
}

.comparison-table td.col-abp {
  background: rgba(212, 175, 55, 0.04);
  color: #fff;
  font-weight: 600;
  text-align: center;
  border-left: 1px solid var(--border-gold);
  border-right: 1px solid var(--border-gold);
}

.comparison-table td.col-others {
  text-align: center;
  color: var(--text-muted);
}

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

/* Testimonial & Case Study Cards */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 14px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.testimonial-quote {
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1rem;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--gold-primary);
  background: var(--bg-surface-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.testimonial-name {
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
}

.testimonial-role {
  font-size: 0.78rem;
  color: var(--gold-primary);
}

/* Schema Grid */
.schema-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.schema-card {
  background: rgba(10, 25, 47, 0.8);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 10px;
  padding: 1.25rem;
  transition: border-color 0.2s;
}

.schema-card:hover {
  border-color: var(--gold-primary);
}

.schema-card-title {
  font-weight: 800;
  color: var(--gold-primary);
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.schema-card-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Footer */
footer {
  background: #050c1a;
  border-top: 1px solid var(--border-gold);
  padding: 4.5rem 1.5rem 2.5rem;
  margin-top: 5rem;
}

.footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 1rem;
  max-width: 360px;
  line-height: 1.65;
}

.footer-col h4 {
  color: var(--gold-primary);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-col a {
  color: var(--text-secondary);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--gold-primary);
}

.footer-bottom {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.store-legal-notices {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.5;
  border-top: 1px dashed rgba(255,255,255,0.06);
  padding-top: 1rem;
}

/* ==========================================================================
   Expanded Clinical & Technical Component Styles (2x Expansion)
   ========================================================================== */

/* Species Tab Switcher for Gestation Calculator */
.species-tab-bar {
  display: inline-flex;
  background: rgba(10, 25, 47, 0.9);
  padding: 0.35rem;
  border-radius: 9999px;
  border: 1px solid var(--border-gold);
  margin-bottom: 2rem;
  gap: 0.5rem;
}

.species-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-family);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.65rem 1.5rem;
  border-radius: 9999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
}

.species-tab-btn:hover {
  color: var(--text-primary);
}

.species-tab-btn.active {
  background: var(--gold-gradient);
  color: #061122;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.4);
}

/* Parturition 1-2-3 Rule Triage Grid */
.triage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.triage-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.triage-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-primary);
}

.triage-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.triage-hour-badge {
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  background: var(--gold-subtle);
  color: var(--gold-primary);
  border: 1px solid var(--border-gold);
}

.triage-urgency-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-success);
}

.triage-urgency-tag.emergency {
  background: rgba(244, 63, 94, 0.15);
  color: var(--crimson-risk);
}

.triage-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.triage-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.triage-checklist {
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: rgba(10, 25, 47, 0.6);
  padding: 1rem;
  border-radius: 8px;
  border-left: 3px solid var(--gold-primary);
}

.triage-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.red-bag-banner {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.18) 0%, rgba(17, 34, 64, 0.95) 100%);
  border: 2px solid var(--crimson-risk);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.red-bag-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

/* ART / Breeding Modalities 4-Column Grid */
.art-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.art-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.art-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-primary);
}

.art-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.art-pill {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  background: var(--gold-subtle);
  color: var(--gold-primary);
}

.art-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.art-card-summary {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  min-height: 50px;
}

.art-spec-list {
  background: rgba(10, 25, 47, 0.7);
  border-radius: 8px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.82rem;
  margin-top: auto;
}

.art-spec-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 0.45rem;
}

.art-spec-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.art-spec-label {
  color: var(--text-muted);
}

.art-spec-val {
  font-weight: 700;
  color: var(--gold-primary);
  text-align: right;
}

/* Canine Progesterone Curve & Whelping Roadmap */
.p4-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.p4-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.p4-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.p4-level-tag {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--blue-accent);
  background: rgba(56, 189, 248, 0.12);
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.p4-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
}

.p4-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.p4-action-box {
  background: rgba(10, 25, 47, 0.8);
  border-left: 3px solid var(--blue-accent);
  padding: 0.75rem;
  border-radius: 6px;
  font-size: 0.82rem;
  color: var(--text-primary);
}

/* Stock Blueprint & Tri-View Markings Architecture */
.blueprint-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.blueprint-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}

.blueprint-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--gold-subtle);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.blueprint-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.65rem;
}

.blueprint-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.blueprint-taxonomy {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: auto;
}

.taxonomy-tag {
  background: rgba(10, 25, 47, 0.7);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-primary);
  font-size: 0.78rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

/* 4-Ring Biosecurity Shield Protocol */
.biosecurity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.bio-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.bio-ring-badge {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  background: var(--gold-subtle);
  color: var(--gold-primary);
  margin-bottom: 1rem;
}

.bio-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.65rem;
}

.bio-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.bio-protocol-box {
  background: rgba(10, 25, 47, 0.8);
  border-left: 3px solid var(--emerald-success);
  padding: 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--text-primary);
}

/* 24-Hour Barn Operations Routine Timeline */
.routine-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.routine-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.routine-time {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--gold-primary);
  margin-bottom: 0.35rem;
  letter-spacing: 0.5px;
}

.routine-phase {
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.routine-title {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
}

.routine-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Cryptographic Document Integrity 4-Layer Engine */
.crypto-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.crypto-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.crypto-layer-tag {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--gold-primary);
  background: var(--gold-subtle);
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  align-self: flex-start;
  margin-bottom: 1rem;
}

.crypto-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
}

.crypto-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.crypto-hash-snippet {
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--emerald-success);
  background: rgba(10, 25, 47, 0.95);
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
  border: 1px dashed rgba(16, 185, 129, 0.35);
  word-break: break-all;
}

/* Homepage FAQ Accordion */
.faq-accordion-wrap {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-accordion-item:hover {
  border-color: var(--gold-primary);
}

.faq-accordion-trigger {
  width: 100%;
  background: transparent;
  border: none;
  padding: 1.25rem 1.5rem;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  gap: 1rem;
}

.faq-icon-arrow {
  color: var(--gold-primary);
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  transition: transform 0.25s ease;
  flex-shrink: 0 !important;
  display: inline-block !important;
  vertical-align: middle;
}

.faq-accordion-item.active .faq-icon-arrow {
  transform: rotate(180deg);
}

.faq-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.5rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
  background: rgba(10, 25, 47, 0.45);
}

.faq-accordion-item.active .faq-accordion-content {
  max-height: 500px;
  padding: 0 1.5rem 1.25rem 1.5rem;
}

/* Simple 3-Step Guide Styles */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: 2.25rem 1.75rem;
  text-align: center;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-primary);
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: #061122;
  font-weight: 900;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: var(--shadow-gold);
}

.step-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.65rem;
}

.step-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Warm Photo Grid & Photo Card Component System */
.warm-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 18px;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.warm-photo-grid:hover {
  border-color: var(--border-gold-strong);
  box-shadow: 0 20px 40px -10px rgba(2, 6, 23, 0.8), 0 0 25px rgba(212, 175, 55, 0.2);
}

.warm-photo-card {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--border-gold);
  background: #081224;
}

.warm-photo-card img {
  width: 100%;
  height: 100%;
  max-height: 340px;
  object-fit: cover;
  display: block;
  border-radius: 13px 13px 0 0;
  transition: transform 0.4s ease;
}

.warm-photo-card:hover img {
  transform: scale(1.03);
}

.warm-photo-card-caption {
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: rgba(10, 25, 47, 0.95);
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.split-grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* ==========================================================================
   Comprehensive Responsive System & Breakpoints (All Device Sizes)
   ========================================================================== */

/* 1. Large Laptops & Desktops (<= 1200px) */
@media (max-width: 1200px) {
  .art-grid,
  .p4-grid,
  .biosecurity-grid,
  .crypto-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .routine-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-container {
    gap: 2rem;
  }
}

/* 2. Tablets & iPad Pro (<= 1024px) */
@media (max-width: 1024px) {
  .nav-links {
    display: none !important;
  }
  .mobile-menu-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
  .warm-photo-grid,
  .split-grid-container {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding: 1.5rem;
  }
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .section-container[style*="grid-template-columns: 1fr 1fr"],
  div[style*="grid-template-columns: 1fr 1fr"],
  div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
}

/* 3. Mid-size Tablets (<= 992px) */
@media (max-width: 992px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
    padding-top: 3.5rem;
  }
  .hero-buttons {
    justify-content: center;
  }
  .store-badges {
    justify-content: center;
  }
  .calc-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .support-grid {
    grid-template-columns: 1fr;
  }
  .triage-grid,
  .blueprint-grid {
    grid-template-columns: 1fr;
  }
  .routine-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .red-bag-banner {
    flex-direction: column;
    text-align: center;
  }
}

/* 4. Small Tablets & Landscape Mobile (<= 868px) */
@media (max-width: 868px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* 5. Tablets Portrait & Mobile Devices (<= 768px) */
@media (max-width: 768px) {
  header {
    padding: 0.75rem 1rem;
  }
  .hero-title {
    font-size: 2.25rem;
  }
  .section-title {
    font-size: 1.85rem;
  }
  .section-subtitle {
    font-size: 1rem;
  }
  .pricing-card.featured {
    transform: none;
    margin-top: 1rem;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .card-header-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* 6. Standard Mobile Phones (<= 600px) */
@media (max-width: 600px) {
  .art-grid,
  .p4-grid,
  .biosecurity-grid,
  .crypto-grid,
  .routine-grid,
  div[style*="minmax("] {
    grid-template-columns: 1fr !important;
  }
  .species-tab-bar {
    width: 100%;
    flex-direction: column;
    border-radius: 14px;
    padding: 0.5rem;
  }
  .species-tab-btn {
    width: 100%;
    justify-content: center;
    border-radius: 10px;
  }
  .hero-preview-card,
  .cert-specimen-card,
  .calc-card,
  .feature-card,
  .legal-card,
  .step-card {
    padding: 1.35rem 1rem;
    border-radius: 14px;
  }
  .brand-title {
    font-size: 0.95rem;
  }
  .brand-subtitle {
    font-size: 0.6rem;
    letter-spacing: 0.8px;
  }
  .logo-badge {
    width: 36px;
    height: 36px;
  }
  .milestone-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
  .milestone-date {
    text-align: left;
  }
}

/* 7. Extra Small Smartphones (<= 480px) */
@media (max-width: 480px) {
  header {
    padding: 0.65rem 0.75rem;
  }
  .hero {
    padding: 2rem 0.75rem 1.5rem;
    gap: 2rem;
  }
  .hero-title {
    font-size: 1.75rem;
    line-height: 1.25;
  }
  .hero-description {
    font-size: 0.95rem;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  .hero-buttons .btn-cta,
  .hero-buttons .btn-secondary {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .store-badges {
    flex-direction: column;
    width: 100%;
  }
  .app-badge-btn {
    width: 100%;
    justify-content: center;
  }
  .section-title {
    font-size: 1.55rem;
  }
  .section-container {
    padding: 0 0.85rem;
  }
  .hero-card-img-wrap {
    height: 160px;
  }
  .hero-milestone-step {
    flex-wrap: wrap;
  }
}

/* 8. Micro Screens & Tiny Viewports (<= 360px) */
@media (max-width: 360px) {
  .brand-subtitle {
    display: none;
  }
  .brand-title {
    font-size: 0.88rem;
  }
  .hero-title {
    font-size: 1.5rem;
  }
  .calc-card {
    padding: 1rem 0.65rem;
  }
}

/* 9. Pre-Launch Notice Modal */
#abp-prelaunch-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.prelaunch-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(8px);
}

.prelaunch-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-card);
  border: 2px solid var(--gold-primary);
  border-radius: 16px;
  padding: 2.25rem 2rem;
  max-width: 520px;
  width: 90%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), var(--shadow-gold);
  text-align: center;
  z-index: 10000;
  animation: modalFadeIn 0.25s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translate(-50%, -46%) scale(0.96); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.prelaunch-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.35rem;
  cursor: pointer;
  line-height: 1;
}
.prelaunch-close:hover {
  color: var(--gold-primary);
}

/* Inline Loading Spinner */
.spinner-inline {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
  margin-right: 6px;
  vertical-align: middle;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Coming Soon Pill on Store Badges */
.badge-coming-soon-pill {
  display: inline-block;
  background: var(--gold-subtle);
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

/* ABP Pro Subscription Card on Pricing Page */
.pro-subscription-card {
  background: linear-gradient(145deg, rgba(17, 34, 64, 0.95), rgba(10, 25, 47, 0.98));
  border: 2px solid var(--gold-primary);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), 0 0 30px rgba(212, 175, 55, 0.18);
  position: relative;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto 3.5rem;
}

.pro-subscription-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: var(--gold-gradient);
  color: #0a192f;
  font-weight: 900;
  font-size: 0.72rem;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* 10. Certificates Page Strict Mobile Guard (<= 600px & 375px screens) */
@media (max-width: 600px) {
  .cert-specimen-card {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 1.25rem 0.85rem !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  .cert-specimen-card > div[style*="padding: 1.25rem"],
  .cert-specimen-card > div[style*="padding:1.25rem"] {
    padding: 0.85rem 0.65rem !important;
  }
  .cert-stamp {
    white-space: normal !important;
    text-align: center !important;
    font-size: 0.65rem !important;
    padding: 0.25rem 0.5rem !important;
    letter-spacing: 0.2px !important;
    max-width: 100% !important;
  }
  .cert-field-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.2rem !important;
    word-break: break-word !important;
  }
  .cert-field-val {
    word-break: break-word !important;
    max-width: 100% !important;
  }
}

@media (max-width: 480px) {
  section[id="scan45"],
  section[id="foal"],
  section[id="puppy"],
  .cert-section {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
  .section-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}


