/* ============================================
   RIOS M&A Cleaning - Main Stylesheet
   ============================================ */

/* ---------- Variables ---------- */
:root {
  --primary: #008CBA;
  --primary-dark: #006a8e;
  --primary-light: #e6f4f8;
  --secondary: #2ECC71;
  --secondary-dark: #27ae60;
  --accent: #2ECC71;
  --text-dark: #1a2b3c;
  --text-muted: #6b7c8c;
  --text-light: #ffffff;
  --bg-light: #f7fafc;
  --bg-white: #ffffff;
  --border-color: #e1e8ed;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.15);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: 0.3s ease;
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--bg-light);
  -webkit-font-smoothing: antialiased;
}

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

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

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

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-dark);
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }

p { margin-bottom: 1rem; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 4rem 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  line-height: 1.2;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-light);
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--text-light);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--text-light);
  border-color: var(--secondary);
}

.btn-secondary:hover {
  background-color: var(--secondary-dark);
  border-color: var(--secondary-dark);
  color: var(--text-light);
  transform: translateY(-2px);
}

.btn-light {
  background-color: transparent;
  color: var(--text-light);
  border-color: var(--text-light);
}

.btn-light:hover {
  background-color: var(--text-light);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-dark);
  border-color: var(--border-color);
}

.btn-outline:hover {
  background-color: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-block {
  width: 100%;
  display: block;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--bg-white);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  display: flex;
  align-items: center;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-dark);
  white-space: nowrap;
}

.logo:hover {
  color: var(--primary);
}

.logo-icon {
  font-size: 1.5rem;
}

.logo-text {
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* ---------- Navigation ---------- */
.nav-list {
  display: flex;
  gap: 2rem;
}

.nav-list a {
  color: var(--text-dark);
  font-weight: 600;
  padding: 0.5rem 0;
  position: relative;
}

.nav-list a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width var(--transition);
}

.nav-list a:hover::after,
.nav-list a.active::after {
  width: 100%;
}

.nav-list a.active {
  color: var(--primary);
}

/* ---------- Mobile menu toggle ---------- */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background-color: var(--text-dark);
  border-radius: 2px;
  transition: all var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--primary-light) 0%, #ffffff 100%);
  padding: 4rem 0;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1 1 50%;
  min-width: 300px;
}

.hero-text h1 {
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.hero-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background-color: var(--secondary);
  color: var(--text-light);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
}

.hero-image {
  flex: 1 1 40%;
  min-width: 280px;
}

.hero-image img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ---------- Services preview ---------- */
.services-preview {
  background-color: var(--bg-white);
}

.section-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.services-preview h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.service-card {
  background-color: var(--bg-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.service-image {
  width: 100%;
}

.service-image img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
}

.service-card h3 {
  padding: 1.25rem 1.25rem 0.5rem;
}

.service-card p {
  padding: 0 1.25rem;
  color: var(--text-muted);
}

.service-card .btn {
  margin: 0.75rem 1.25rem 1.5rem;
  align-self: flex-start;
}

/* ---------- Why Us ---------- */
.why-us {
  background-color: var(--bg-light);
}

.why-us h2 {
  text-align: center;
  margin-bottom: 2.5rem;
}

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

.feature-item {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition);
}

.feature-item:hover {
  transform: translateY(-4px);
}

.feature-icon-wrapper {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-light);
  border-radius: 50%;
  font-size: 1.75rem;
}

.feature-item h3 {
  margin-bottom: 0.5rem;
}

.feature-item p {
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ---------- CTA section ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--text-light);
  text-align: center;
  padding: 4rem 0;
}

.cta-section h2 {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.cta-section p {
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
}

/* ---------- Contact section ---------- */
.contact-section {
  background-color: var(--bg-white);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 1rem;
}

.contact-info > p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.contact-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--text-dark);
}

.contact-item p {
  margin: 0;
  color: var(--text-muted);
}

/* ---------- Form ---------- */
.contact-form-wrapper {
  background-color: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  background-color: var(--bg-white);
  color: var(--text-dark);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 140, 186, 0.12);
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-row .form-group {
  flex: 1;
}

.form-checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.6rem;
}

.form-checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.form-checkbox label {
  font-weight: 400;
  font-size: 0.9rem;
  margin-bottom: 0;
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- Footer ---------- */
.footer {
  background-color: var(--text-dark);
  color: var(--text-light);
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-brand .logo-text {
  color: var(--text-light);
}

.footer-brand .logo-icon {
  font-size: 1.5rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links {
  display: contents;
}

.footer-column h4 {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.footer-column ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

.footer-column a:hover {
  color: var(--text-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

.footer-bottom .disclaimer {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--bg-white);
  box-shadow: var(--shadow-lg);
  border-top: 1px solid var(--border-color);
  padding: 1.5rem;
  z-index: 1500;
  transform: translateY(100%);
  transition: transform var(--transition);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-text h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

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

.cookie-buttons {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.cookie-buttons .btn {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
}

/* ---------- Cookie modal ---------- */
.cookie-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1rem;
}

.cookie-modal.show {
  display: flex;
}

.modal-content {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  margin: 0;
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition);
}

.modal-close:hover {
  color: var(--text-dark);
}

.modal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cookie-category {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.25rem;
}

.cookie-category:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

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

.category-header label {
  font-weight: 600;
}

.cookie-category p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.badge {
  background-color: var(--primary-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
}

/* Toggle switch */
.switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  cursor: pointer;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  inset: 0;
  background-color: var(--border-color);
  border-radius: 24px;
  transition: background-color var(--transition);
}

.slider::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  background-color: var(--bg-white);
  border-radius: 50%;
  transition: transform var(--transition);
}

.switch input:checked + .slider {
  background-color: var(--secondary);
}

.switch input:checked + .slider::before {
  transform: translateX(18px);
}

.modal-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-content {
    flex-direction: column;
  }

  .hero-image {
    order: -1;
    width: 100%;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }

  section { padding: 3rem 0; }

  /* Mobile nav */
  .mobile-menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-md);
    transform: translateY(-150%);
    transition: transform var(--transition);
    padding: 1rem 0;
  }

  .nav.active {
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
    padding: 0 1.5rem;
  }

  .nav-list li {
    border-bottom: 1px solid var(--border-color);
  }

  .nav-list a {
    display: block;
    padding: 0.85rem 0;
  }

  /* Contact */
  .contact-content {
    grid-template-columns: 1fr;
  }

  .cookie-content {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-buttons {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.4rem; }

  .container { padding: 0 1rem; }

  .btn {
    width: 100%;
    display: block;
  }

  .hero-image img {
    max-height: 280px;
  }

  .form-row {
    flex-direction: column;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: span 1;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
