/* Recovery 24/7 - Modern, Mobile-First CSS Design */

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-weight: 400;
  color: #1a202c;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #1a202c;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 2rem); }
h4 { font-size: clamp(1.125rem, 2.5vw, 1.5rem); }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
  margin-bottom: 1rem;
  color: #4a5568;
}

a {
  color: #3182ce;
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: #2c5282;
  text-decoration: underline;
}

/* ===== COLORS ===== */
:root {
  --primary: #1a365d;
  --primary-light: #2b6cb0;
  --primary-dark: #1a202c;
  --secondary: #38b2ac;
  --accent: #ed8936;
  --danger: #e53e3e;
  --success: #38a169;
  --warning: #d69e2e;

  --gray-50: #f7fafc;
  --gray-100: #edf2f7;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e0;
  --gray-400: #a0aec0;
  --gray-500: #718096;
  --gray-600: #4a5568;
  --gray-700: #2d3748;
  --gray-800: #1a202c;
  --gray-900: #171923;

  --white: #ffffff;
  --black: #000000;
}

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 576px) {
  .container { padding: 0 1.5rem; }
}

@media (min-width: 768px) {
  .container { padding: 0 2rem; }
}

@media (min-width: 992px) {
  .container { padding: 0 2.5rem; }
}

/* ===== HEADER ===== */
.header {
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1000;
}

.header-wrapper {
  padding: 1rem 0;
}

.logo-container-2 {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 50px;
  width: auto;
}

@media (min-width: 768px) {
  .logo-img {
    height: 60px;
  }
}

/* ===== NAVIGATION ===== */
.main-menu-container {
  background: var(--primary);
  padding: 1rem 0;
}

.navbar-nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.navbar-nav li {
  margin: 0 0.6rem 0.5rem 0;
}

.navbar-nav a {
  color: var(--white);
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  display: block;
}

.navbar-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  text-decoration: none;
}

.menu-btn-respons-container {
  display: none;
}

@media (max-width: 991px) {
  .navbar-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary);
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .navbar-nav.show {
    display: block;
  }

  .menu-btn-respons-container {
    display: block;
  }

  .navbar-toggle {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 1.5rem;
    padding: 0.5rem;
  }
}

/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(26, 54, 93, 0.8), rgba(56, 178, 172, 0.6));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.hero-content h1 {
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  font-size: 1rem;
  line-height: 1.5;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 6px rgba(26, 54, 93, 0.2);
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 8px rgba(26, 54, 93, 0.3);
  color: var(--white);
  text-decoration: none;
}

.btn-secondary {
  background: var(--secondary);
  color: var(--white);
}

.btn-secondary:hover {
  background: #319795;
  color: var(--white);
  text-decoration: none;
}

.btn-whatsapp {
  background: #25d366;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-whatsapp:hover {
  background: #128c7e;
  color: var(--white);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-call {
  background: var(--success);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-call:hover {
  background: #2f855a;
  color: var(--white);
  text-decoration: none;
  transform: translateY(-1px);
}

/* ===== FORMS ===== */
.quote-form {
  background: var(--white);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  margin: 2rem auto 0;
  border: 1px solid var(--gray-200);
}

.quote-form h3 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--gray-700);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all 0.2s ease;
  background: var(--white);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

.form-input::placeholder {
  color: var(--gray-400);
}

/* ===== CARDS & COMPONENTS ===== */
.card {
  background: var(--white);
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.card-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  margin-bottom: 1rem;
  color: var(--primary);
}

.card-text {
  color: var(--gray-600);
  line-height: 1.6;
}

/* ===== SERVICES GRID ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.service-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--gray-200);
  text-align: center;
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--white);
  font-size: 2rem;
}

.service-card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--gray-600);
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  background: var(--gray-50);
  padding: 4rem 0;
}

.testimonial-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
}

.testimonial-text {
  font-style: italic;
  color: var(--gray-600);
  margin-bottom: 1rem;
  position: relative;
}

.testimonial-text::before {
  content: '"';
  font-size: 3rem;
  color: var(--primary);
  position: absolute;
  top: -10px;
  left: -20px;
  line-height: 1;
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--gray-800);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--gray-300);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid var(--gray-700);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  color: var(--gray-400);
  font-size: 1.25rem;
  transition: color 0.2s ease;
}

.footer-social a:hover {
  color: var(--white);
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.fade-in-up:nth-child(1) { animation-delay: 0.1s; }
.fade-in-up:nth-child(2) { animation-delay: 0.2s; }
.fade-in-up:nth-child(3) { animation-delay: 0.3s; }
.fade-in-up:nth-child(4) { animation-delay: 0.4s; }
.fade-in-up:nth-child(5) { animation-delay: 0.5s; }

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }

@media (min-width: 768px) {
  .d-md-none { display: none; }
  .d-md-block { display: block; }
  .d-md-flex { display: flex; }
}

/* ===== ACCESSIBILITY ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== LOADER ===== */
#loader-overflow {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#loader-overflow.hide {
  opacity: 0;
  visibility: hidden;
}

#loader3 {
  font-size: 1.125rem;
  color: var(--primary);
  font-weight: 600;
}

/* ===== RESPONSIVE UTILITIES ===== */
@media (max-width: 576px) {
  .container { padding: 0 1rem; }
  .hero-content { padding: 1rem; }
  .quote-form { margin: 1rem; padding: 1.5rem; }
  .services-grid { grid-template-columns: 1fr; gap: 1rem; }
}

@media (max-width: 768px) {
  .hero-section { min-height: 60vh; }
  .hero-content h1 { font-size: 2rem; }
  .hero-content p { font-size: 1.1rem; }
  .card-body { padding: 1rem; }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
  body {
    background: var(--gray-900);
    color: var(--gray-100);
  }

  .card {
    background: var(--gray-800);
    border-color: var(--gray-700);
    color: var(--gray-100);
  }

  .card-header {
    background: var(--gray-700);
    border-color: var(--gray-600);
  }

  .quote-form {
    background: var(--gray-800);
    border-color: var(--gray-700);
  }

  .form-input,
  .form-select,
  .form-textarea {
    background: var(--gray-700);
    border-color: var(--gray-600);
    color: var(--gray-100);
  }

  .form-input::placeholder {
    color: var(--gray-400);
  }
}
