/* Pet Groomer Insurance - Custom Styles */
/* Built with Bootstrap 5 - Mobile First */

:root {
  --primary: #2c5f2d;
  --primary-dark: #1e4620;
  --primary-light: #e8f5e9;
  --accent: #c0a375;
  --accent-dark: #a08955;
  --text-dark: #2d3436;
  --text-muted: #636e72;
  --bg-light: #f8f9fa;
  --bg-cream: #faf8f5;
  --white: #ffffff;
  --border: #dee2e6;
  --shadow: 0 2px 15px rgba(0,0,0,0.08);
  --shadow-lg: 0 5px 30px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 12px;
}

* { box-sizing: border-box; }

/* ── SELF-CONTAINED GRID (replaces Bootstrap dependency) ── */
.container {
  width: 100%;
  max-width: 1160px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 1.25rem;
  padding-left: 1.25rem;
}
.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -0.75rem;
  margin-left: -0.75rem;
}
.row > * {
  padding-right: 0.75rem;
  padding-left: 0.75rem;
  width: 100%;
}
.g-4 { gap: 1.5rem; }
.g-5 { gap: 2rem; }
.row.g-4, .row.g-5 { margin: 0; }
.row.g-4 > *, .row.g-5 > * { padding: 0; }

/* Column widths — mobile-first (all 100% by default) */
@media (min-width: 768px) {
  .col-md-4 { width: 33.3333%; }
  .col-md-6 { width: 50%; }
  .col-md-8 { width: 66.6667%; }
}
@media (min-width: 992px) {
  .col-lg-1  { width: 8.3333%;  }
  .col-lg-2  { width: 16.6667%; }
  .col-lg-3  { width: 25%;      }
  .col-lg-4  { width: 33.3333%; }
  .col-lg-5  { width: 41.6667%; }
  .col-lg-6  { width: 50%;      }
  .col-lg-7  { width: 58.3333%; }
  .col-lg-8  { width: 66.6667%; }
  .col-lg-9  { width: 75%;      }
  .col-lg-10 { width: 83.3333%; }
  .col-lg-11 { width: 91.6667%; }
  .col-lg-12 { width: 100%;     }
  .align-items-center { align-items: center; }
}
.col-12 { width: 100%; }

/* Common utility classes */
.d-flex  { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.list-unstyled { list-style: none; padding-left: 0; }
.img-fluid { max-width: 100%; height: auto; }
.rounded, .rounded-3 { border-radius: var(--radius); }
.shadow { box-shadow: var(--shadow); }
.w-100 { width: 100%; }
.gap-3 { gap: 1rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.me-1 { margin-right: 0.25rem; }
.me-2 { margin-right: 0.5rem; }
.ms-auto { margin-left: auto; }
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.text-success { color: var(--primary); }
.btn-lg { font-size: 1.1rem; padding: 0.75rem 2rem; }
.btn-sm { font-size: 0.85rem; padding: 0.4rem 1rem; }
.btn-outline-success {
  display: inline-block;
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
  font-weight: 600;
  border-radius: 50px;
  padding: 0.6rem 1.75rem;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.btn-outline-success:hover { background: var(--primary); color: #fff; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-dark);
}

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

/* === NAVBAR === */
.navbar {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  padding: 0.75rem 0;
  transition: all 0.3s;
}
.navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}
.navbar-brand {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary) !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.navbar-brand img {
  height: 40px;
  width: auto;
}
.nav-link {
  font-weight: 500;
  color: var(--text-dark) !important;
  padding: 0.5rem 1rem !important;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav-link:hover, .nav-link.active { color: var(--primary) !important; }
.nav-phone {
  font-weight: 600;
  color: var(--primary) !important;
  font-size: 0.95rem;
  white-space: nowrap;
}
.btn-quote {
  background: var(--accent);
  color: var(--white) !important;
  font-weight: 600;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  border: none;
  transition: all 0.3s;
  text-decoration: none;
  font-size: 0.95rem;
}
.btn-quote:hover {
  background: var(--accent-dark);
  color: var(--white) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(192,163,117,0.4);
}

/* === HERO === */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 6rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: 0;
  right: 0;
  height: 100px;
  background: var(--white);
  transform: skewY(-2deg);
}
.hero h1 {
  font-size: 2.5rem;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.hero p {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 600px;
}
.hero-img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* === HERO VARIANTS === */
.hero-sm {
  padding: 5rem 0 3rem;
}
.hero-sm h1 { font-size: 2rem; }

.hero-overlay {
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(44,95,45,0.88) 0%, rgba(30,70,32,0.92) 100%);
}
.hero-overlay > * { position: relative; z-index: 1; }

/* === SECTIONS === */
section { padding: 4rem 0; }
.section-light { background: var(--bg-light); }
.section-cream { background: var(--bg-cream); }
.section-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}
.section-subtitle {
  color: var(--text-muted);
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
}

/* === CARDS === */
.card-feature {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  height: 100%;
  transition: transform 0.3s, box-shadow 0.3s;
}
.card-feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card-feature .icon {
  width: 56px;
  height: 56px;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
  color: var(--primary);
}
.card-feature h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}
.card-feature p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* === COVERAGE LIST === */
.coverage-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.coverage-item .check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 0.85rem;
  margin-top: 2px;
}

/* === FORMS === */
.form-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.form-section h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.form-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
}
.form-label .required {
  color: #e74c3c;
  margin-left: 2px;
}
.form-control, .form-select {
  border-radius: var(--radius);
  border: 1.5px solid #b0bec5;
  padding: 0.65rem 0.9rem;
  font-size: 0.95rem;
  background-color: #f7f9fc;
  color: var(--text-dark);
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(44,95,45,0.12);
  outline: none;
}
.form-control::placeholder { color: #9eaab3; }
.form-check-input {
  width: 1.15em;
  height: 1.15em;
  border: 1.5px solid #b0bec5;
  cursor: pointer;
}
.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}
.form-check-label { cursor: pointer; }
.form-text { font-size: 0.82rem; color: var(--text-muted); }

/* Form section headers */
.form-section-header {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.6rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  font-family: 'Montserrat', sans-serif;
}

.btn-submit {
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
  padding: 0.75rem 2.5rem;
  border-radius: 50px;
  border: none;
  font-size: 1.05rem;
  transition: all 0.3s;
  width: 100%;
}
.btn-submit:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(44,95,45,0.3);
}
.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.form-step { display: none; }
.form-step.active { display: block; }

.step-indicator {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.step-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.3s;
}
.step-dot.active { background: var(--primary); }
.step-dot.completed { background: var(--accent); }

/* === THANK YOU === */
.thank-you-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.thank-you-card .checkmark {
  width: 80px;
  height: 80px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.5rem;
  color: var(--primary);
}
.additional-services {
  background: var(--bg-cream);
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 2rem;
  text-align: left;
}

/* === QUOTE WIDGET === */
.quote-widget {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 2px solid var(--primary-light);
  margin-top: 2rem;
}
.quote-widget h3 { font-size: 1.2rem; color: var(--primary); }

/* === ARTICLES === */
.article-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  height: 100%;
  transition: transform 0.3s, box-shadow 0.3s;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.article-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.article-card-body {
  padding: 1.5rem;
}
.article-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}
.article-card-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Article page */
.article-content {
  max-width: 800px;
  margin: 0 auto;
}
.article-content h2 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  text-align: left;
}
.article-content h3 {
  font-size: 1.2rem;
  margin: 1.5rem 0 0.75rem;
  text-align: left;
}
.article-content p { margin-bottom: 1rem; }
.article-content ul, .article-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}
.article-content li { margin-bottom: 0.5rem; }

/* === FOOTER === */
.footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 1.5rem;
}
.footer h5 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1rem;
}
.footer a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
}
.footer a:hover { color: var(--accent); }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { font-size: 0.9rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 2rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
}
.footer .hours { font-size: 0.9rem; }

/* === CTA BANNER === */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 3.5rem 0;
  text-align: center;
}
.cta-banner h2 { color: var(--white); font-size: 1.75rem; margin-bottom: 1rem; }
.cta-banner p { opacity: 0.9; margin-bottom: 1.5rem; font-size: 1.05rem; }
.cta-banner .btn-quote {
  font-size: 1.1rem;
  padding: 0.75rem 2.5rem;
}

/* === TRUST BADGES === */
.trust-bar {
  background: var(--bg-light);
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}
.trust-item i { color: var(--primary); font-size: 1.1rem; }

/* === BREADCRUMB === */
.breadcrumb-nav {
  background: var(--bg-light);
  padding: 0.75rem 0;
  font-size: 0.85rem;
}
.breadcrumb-nav a { text-decoration: none; }

/* === CLAIMS === */
.claim-example {
  background: var(--white);
  border-left: 4px solid var(--accent);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
}
.claim-example h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}
.claim-example p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* === SPINNER === */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: spin 0.6s linear infinite;
  margin-right: 0.5rem;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* === ALERT CUSTOM === */
.alert-form {
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

/* === RESPONSIVE === */
@media (max-width: 991.98px) {
  .hero { padding: 5rem 0 3rem; }
  .hero h1 { font-size: 2rem; }
  section { padding: 3rem 0; }
  .section-title { font-size: 1.6rem; }
  .form-section { padding: 1.5rem; }
  .navbar-brand { font-size: 0.95rem; }
}

@media (max-width: 767.98px) {
  .hero { padding: 4.5rem 0 2.5rem; }
  .hero h1 { font-size: 1.6rem; }
  .hero p { font-size: 1rem; }
  .hero-img { margin-top: 2rem; }
  section { padding: 2.5rem 0; }
  .section-title { font-size: 1.4rem; }
  .form-section { padding: 1.25rem; }
  .thank-you-card { padding: 2rem 1.25rem; }
  .cta-banner h2 { font-size: 1.4rem; }
  .footer { text-align: center; }
  .nav-phone { display: none; }
}

@media (max-width: 575.98px) {
  .hero h1 { font-size: 1.4rem; }
  .btn-submit { font-size: 0.95rem; padding: 0.7rem 1.5rem; }
}

/* === SKIP NAV (A11y) === */
.skip-nav {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: var(--white);
  padding: 0.5rem 1rem;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-nav:focus { top: 0; }

/* === PRINT === */
@media print {
  .navbar, .footer, .cta-banner, .btn-quote { display: none !important; }
  .hero { padding: 1rem 0; background: none; color: var(--text-dark); }
  .hero::after { display: none; }
  .hero h1 { color: var(--text-dark); }
}
