/* ============================================
   Springs Mold Solutions — Styles
   Rank & Rent Site — Mold Removal Colorado Springs
   ============================================ */

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

:root {
  --primary: #0a2e4d;
  --primary-dark: #061e33;
  --primary-light: #e8f0f7;
  --accent: #0d9488;
  --accent-dark: #0a7a70;
  --accent-light: #d4f4f0;
  --danger: #dc2626;
  --danger-light: #fef2f2;
  --surface: #ffffff;
  --bg: #f7fafa;
  --text: #0a2e4d;
  --text-muted: #506a7e;
  --text-light: #8ba3b5;
  --border: #d4e0ea;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 100px;
  --shadow-sm: 0 1px 3px rgba(10,46,77,0.06);
  --shadow-md: 0 4px 16px rgba(10,46,77,0.08);
  --shadow-lg: 0 8px 32px rgba(10,46,77,0.12);
  --shadow-xl: 0 16px 48px rgba(10,46,77,0.16);
  --container-max: 1200px;
  --transition: 0.3s ease;
  --transition-fast: 0.15s ease;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Sans', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

a { color: var(--accent); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--accent-dark); }

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

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 1.5rem; }

section { padding: 5rem 0; }

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title { margin-bottom: 1rem; }
.section-subtitle { color: var(--text-muted); font-size: 1.1rem; max-width: 640px; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

.skip-link {
  position: absolute; top: -100%; left: 1rem; padding: 0.75rem 1.5rem;
  background: var(--primary); color: #fff; border-radius: var(--radius-sm); z-index: 9999;
}
.skip-link:focus { top: 1rem; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; font-family: 'DM Sans', 'Inter', system-ui, sans-serif;
  font-size: 0.95rem; font-weight: 600; border-radius: var(--radius-full);
  border: 2px solid transparent; cursor: pointer; transition: all var(--transition);
  text-decoration: none; line-height: 1;
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-secondary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--border); }
.btn-outline:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-outline-white:hover { background: rgba(255,255,255,0.15); border-color: #fff; color: #fff; }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }

/* --- Urgency Banner --- */
.urgency-banner { background: var(--primary); color: #fff; text-align: center; padding: 10px 1rem; font-size: 0.88rem; font-weight: 500; }
.urgency-banner a { color: var(--accent-light); text-decoration: underline; }

/* --- Header --- */
.header {
  position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-md); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 70px; }

.logo { display: flex; align-items: center; gap: 10px; font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 1.25rem; color: var(--primary); text-decoration: none; }
.logo:hover { color: var(--primary); }
.logo-icon { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; background: var(--accent); color: #fff; border-radius: var(--radius-sm); font-size: 0.85rem; font-weight: 700; }

.nav-links { display: flex; align-items: center; gap: 1.5rem; list-style: none; }
.nav-links a { color: var(--text); font-size: 0.9rem; font-weight: 500; transition: color var(--transition-fast); }
.nav-links a:hover { color: var(--accent); }
.header-phone { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--accent) !important; }

.nav-dropdown { position: relative; }
.dropdown-menu { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); padding: 0.75rem 0; min-width: 220px; z-index: 100; list-style: none; }
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu li a { display: block; padding: 0.5rem 1.25rem; white-space: nowrap; }
.dropdown-menu li a:hover { background: var(--primary-light); }

.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--text); transition: var(--transition); }

@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .nav-links { display: none; position: absolute; top: 70px; left: 0; right: 0; background: var(--surface); flex-direction: column; padding: 1.5rem; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); }
  .nav-links.active { display: flex; }
  .dropdown-menu { position: static; transform: none; box-shadow: none; border: none; padding-left: 1rem; }
}

/* --- Hero --- */
.hero { background: linear-gradient(135deg, var(--primary) 0%, #0d3d66 60%, var(--accent-dark) 100%); color: #fff; padding: 0; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 40%; background: rgba(13,148,136,0.1); clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%); }
.hero-content { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; min-height: 560px; position: relative; z-index: 1; max-width: var(--container-max); margin: 0 auto; padding: 4rem 1.5rem; }
.hero-label { display: inline-block; font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; color: var(--accent-light); margin-bottom: 1rem; }
.hero h1 { color: #fff; margin-bottom: 1.25rem; }
.hero h1 span { color: var(--accent-light); }
.hero-desc { font-size: 1.05rem; color: rgba(255,255,255,0.85); line-height: 1.8; margin-bottom: 2rem; max-width: 540px; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.hero-trust-item { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: rgba(255,255,255,0.8); }
.hero-image { display: flex; align-items: center; justify-content: center; }
.hero-image-placeholder { width: 100%; max-width: 480px; aspect-ratio: 4/3; background: rgba(255,255,255,0.08); border-radius: var(--radius-lg); border: 2px dashed rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.4); font-size: 1rem; }
@media (max-width: 768px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-trust { justify-content: center; }
  .hero-image { display: none; }
}

/* --- Trust Bar --- */
.trust-bar { background: var(--surface); border-bottom: 1px solid var(--border); padding: 1.25rem 0; }
.trust-bar-inner { display: flex; justify-content: center; flex-wrap: wrap; gap: 2rem; }
.trust-bar-item { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 600; color: var(--text-muted); }
.trust-bar-item svg { color: var(--accent); flex-shrink: 0; }

/* --- Trust Badges --- */
.trust-badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 2rem; padding: 2rem 0; }
.trust-badge { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.trust-badge-icon { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; }
.trust-badge-icon.green { background: #dcfce7; color: #16a34a; }
.trust-badge-icon.blue { background: #dbeafe; color: #2563eb; }
.trust-badge-icon.amber { background: #fef3c7; color: #d97706; }
.trust-badge-icon.teal { background: var(--accent-light); color: var(--accent); }
.trust-badge-label { font-size: 0.82rem; font-weight: 600; color: var(--text-muted); }

/* --- Cards --- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 2rem; transition: all var(--transition); }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }

/* --- Services Grid --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.service-card { text-align: left; position: relative; }
.service-card .service-icon { width: 56px; height: 56px; background: var(--accent-light); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; color: var(--accent); }
.service-card h3 { margin-bottom: 0.75rem; }
.service-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1rem; }
.service-price { display: inline-block; background: var(--primary-light); color: var(--primary); padding: 4px 12px; border-radius: var(--radius-full); font-size: 0.85rem; font-weight: 600; margin-bottom: 0.5rem; }
.learn-more { font-weight: 600; font-size: 0.9rem; color: var(--accent); }
.learn-more:hover { color: var(--accent-dark); }
.high-margin-badge { position: absolute; top: 1rem; right: 1rem; background: var(--accent); color: #fff; padding: 3px 10px; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 600; }

/* --- CTA Section --- */
.cta-section { background: linear-gradient(135deg, var(--primary) 0%, var(--accent-dark) 100%); color: #fff; padding: 4rem 0; text-align: center; }
.cta-section h2 { color: #fff; margin-bottom: 1rem; }
.cta-section p { color: rgba(255,255,255,0.85); margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-phone { display: inline-flex; align-items: center; gap: 10px; font-size: 1.6rem; font-weight: 700; color: #fff; margin-bottom: 1rem; }
.cta-phone:hover { color: var(--accent-light); }

/* --- Testimonials --- */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.testimonial-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 2rem; }
.testimonial-stars { color: #f59e0b; font-size: 1.1rem; margin-bottom: 0.75rem; }
.testimonial-text { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; margin-bottom: 1rem; font-style: italic; }
.testimonial-author { font-weight: 600; color: var(--primary); font-size: 0.9rem; }
.testimonial-location { color: var(--text-light); font-size: 0.82rem; }

/* --- Process / Steps --- */
.process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; margin-top: 3rem; }
.process-step { text-align: center; padding: 1.5rem; }
.step-number { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: var(--accent); color: #fff; border-radius: 50%; font-weight: 700; font-size: 1.1rem; margin-bottom: 1rem; }
.process-step h3 { margin-bottom: 0.5rem; }
.process-step p { color: var(--text-muted); font-size: 0.9rem; }

/* --- FAQ --- */
.faq-list { max-width: 800px; margin: 2rem auto 0; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 1rem; background: var(--surface); overflow: hidden; }
.faq-question { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 1.25rem 1.5rem; background: none; border: none; cursor: pointer; font-family: 'DM Sans', sans-serif; font-size: 1.05rem; font-weight: 600; color: var(--primary); text-align: left; gap: 1rem; }
.faq-question:hover { color: var(--accent); }
.faq-toggle { font-size: 1.5rem; color: var(--accent); transition: transform var(--transition); flex-shrink: 0; }
.faq-item.active .faq-toggle { transform: rotate(45deg); }
.faq-answer { display: none; padding: 0 1.5rem 1.25rem; color: var(--text-muted); line-height: 1.7; }
.faq-item.active .faq-answer { display: block; }

/* --- Contact Form --- */
.contact-form { max-width: 600px; margin: 0 auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 480px) { .form-grid { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 1rem; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 0.4rem; color: var(--primary); }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-family: inherit; font-size: 0.95rem; transition: border-color var(--transition-fast); background: var(--surface); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(13,148,136,0.1); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* --- Location Pages --- */
.location-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.location-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 2rem; text-align: center; transition: all var(--transition); }
.location-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.location-card h3 { margin-bottom: 0.5rem; }
.location-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; }

/* --- Cost Guide Table --- */
.cost-table { width: 100%; border-collapse: collapse; margin: 2rem 0; background: var(--surface); border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); }
.cost-table th { background: var(--primary); color: #fff; padding: 1rem 1.25rem; text-align: left; font-weight: 600; font-size: 0.9rem; }
.cost-table td { padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.cost-table tr:last-child td { border-bottom: none; }
.cost-table tr:nth-child(even) td { background: var(--bg); }

/* --- Page Header --- */
.page-header { background: linear-gradient(135deg, var(--primary) 0%, #0d3d66 100%); color: #fff; padding: 4rem 0 3rem; text-align: center; }
.page-header h1 { color: #fff; margin-bottom: 0.75rem; }
.page-header p { color: rgba(255,255,255,0.8); max-width: 600px; margin: 0 auto; }
.breadcrumb { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-bottom: 1.5rem; font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.breadcrumb a { color: var(--accent-light); }
.breadcrumb span { color: rgba(255,255,255,0.4); }

/* --- Footer --- */
.footer { background: var(--primary-dark); color: rgba(255,255,255,0.7); padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }
.footer h3 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer p { font-size: 0.9rem; line-height: 1.7; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 3rem; padding: 1.5rem 0; text-align: center; font-size: 0.82rem; color: rgba(255,255,255,0.4); }

/* --- Sticky Mobile CTA --- */
.mobile-cta { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 999; background: var(--accent); }
.mobile-cta a { display: flex; align-items: center; justify-content: center; gap: 10px; color: #fff; font-weight: 700; font-size: 1.1rem; padding: 16px; text-decoration: none; }
.mobile-cta a:hover { background: var(--accent-dark); color: #fff; }
@media (max-width: 768px) { .mobile-cta { display: block; } body { padding-bottom: 56px; } }

/* --- Content Sections --- */
.content-section { padding: 4rem 0; }
.content-section p { margin-bottom: 1rem; }
.content-section ul { margin: 1rem 0; padding-left: 1.5rem; }
.content-section li { margin-bottom: 0.5rem; color: var(--text-muted); }

/* --- About --- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; margin-top: 2rem; }
@media (max-width: 768px) { .about-grid { grid-template-columns: 1fr; } }
.about-image-placeholder { width: 100%; aspect-ratio: 4/3; background: var(--primary-light); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; color: var(--text-light); }

/* --- 404 --- */
.error-page { text-align: center; padding: 6rem 1.5rem; }
.error-page h1 { font-size: clamp(4rem, 10vw, 8rem); color: var(--accent); margin-bottom: 1rem; }
.error-page p { color: var(--text-muted); margin-bottom: 2rem; }

/* --- Inline Form --- */
.inline-form { background: var(--primary-light); border-radius: var(--radius-md); padding: 2rem; margin-top: 2rem; }
.inline-form h3 { margin-bottom: 1rem; }

/* --- Service Detail --- */
.service-detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; margin-top: 2rem; }
@media (max-width: 768px) { .service-detail-grid { grid-template-columns: 1fr; } }
.service-sidebar { position: sticky; top: 90px; }
.sidebar-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.5rem; margin-bottom: 1.5rem; }
.sidebar-card h3 { margin-bottom: 1rem; font-size: 1.1rem; }
.sidebar-links { list-style: none; }
.sidebar-links li { margin-bottom: 0.5rem; }
.sidebar-links a { display: block; padding: 8px 12px; border-radius: var(--radius-sm); color: var(--text); font-size: 0.9rem; transition: all var(--transition-fast); }
.sidebar-links a:hover, .sidebar-links a.active { background: var(--accent-light); color: var(--accent); }

/* --- Alert Box --- */
.alert-box { background: var(--danger-light); border-left: 4px solid var(--danger); border-radius: var(--radius-sm); padding: 1.25rem 1.5rem; margin: 1.5rem 0; }
.alert-box p { color: var(--text); margin: 0; }
.alert-box strong { color: var(--danger); }

/* === NUCLEAR: Force all content visible === */
.reveal, .fade-up, .slide-in-left, .slide-in-right,
[data-aos], [data-aos="fade-up"], [data-aos="fade-in"],
.gallery-grid > *, .testimonials-grid > *, .about-stats > *,
.split-text .char {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}
