/* 
 * Anhanguera Serviços - Limpeza Técnica e Ambiental
 * Design System: "Rich Aesthetics" & Modern UI
 * Adapted from Hidrojato Project for consistency
 */

:root {
  /* Colors - Keeping consistency but maybe a slight shift if needed, sticking to the successful palette for now */
  --primary: #0f172a;
  /* Deep Navy */
  --secondary: #334155;
  /* Slate */
  --accent: #06b6d4;
  /* Cyan/Teal - slightly greener than the previous #22d3ee for "Sanitary/Environmental" feel */
  --accent-hover: #0891b2;
  --text-dark: #0f172a;
  --text-light: #f8fafc;
  --text-gray: #64748b;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --success: #22c55e;

  /* Gradients */
  --hero-gradient: linear-gradient(135deg, #0f172a 0%, #115e59 100%);
  /* Slight teal tint for environmental */
  --card-gradient: linear-gradient(to bottom right, #ffffff, #f8fafc);

  /* Typography */
  --font-main: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;

  /* Spacing */
  --container-width: 1200px;
  --section-padding: 5rem 0;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 15px rgba(6, 182, 212, 0.3);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--bg-light);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

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

/* Container */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  gap: 5px;
}

/* Utilities */
.text-center {
  text-align: center;
}

.text-accent {
  color: var(--accent);
}

.text-white {
  color: var(--text-light);
}

.mb-1 {
  margin-bottom: 1rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.mb-3 {
  margin-bottom: 3rem;
}

.mb-4 {
  margin-bottom: 4rem;
}

.mt-1 {
  margin-top: 1rem;
}

.mt-2 {
  margin-top: 2rem;
}

.mt-3 {
  margin-top: 3rem;
}

.mt-4 {
  margin-top: 4rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

@media (max-width: 768px) {
  .btn {
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    width: 100%;
    justify-content: center;
    text-align: center;
    line-height: 1.3;
  }
}

.btn-primary {
  background-color: var(--accent);
  color: white;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.5);
}

.btn-whatsapp {
  background-color: var(--success);
  color: white;
}

.btn-whatsapp:hover {
  background-color: #16a34a;
  transform: translateY(-2px);
}

/* Header */
header {
  background-color: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.phone-link {
  color: white;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0.6rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  transition: all 0.3s ease;
  line-height: 1.1;
  white-space: nowrap;
}

.phone-link span {
  white-space: nowrap;
}

.phone-status {
  font-size: 0.65rem;
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.phone-link:hover {
  background: rgba(6, 182, 212, 0.2);
  border-color: var(--accent);
  color: var(--accent);
}

@media (max-width: 992px) {
  .header-contact {
    flex-direction: column;
    width: auto;
    align-items: flex-end;
    gap: 0.4rem;
  }

  .phone-link span {
    display: inline;
  }

  .phone-link {
    width: 100%;
    max-width: 180px;
    padding: 0.5rem 0.8rem;
    font-size: 1rem;
    line-height: 1.1;
  }

  .phone-status {
    font-size: 0.7rem;
  }

  .header-contact .btn {
    width: 100%;
    max-width: 180px;
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
    white-space: nowrap;
    justify-content: center;
  }

  /* General mobile buttons support wrapping */
  .btn {
    white-space: normal;
  }

  .logo img {
    height: 80px;
    background: white;
    padding: 5px;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
    border-radius: 10px;
  }

  .intro-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
}

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

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 125px;
  width: auto;
  object-fit: contain;
  background: white;
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.nav-desktop {
  display: none;
}

@media (min-width: 992px) {
  .nav-desktop {
    display: flex;
    gap: 2rem;
  }

  .nav-desktop a {
    color: #e2e8f0;
    font-size: 0.95rem;
    font-weight: 500;
  }

  .nav-desktop a:hover {
    color: var(--accent);
  }
}

/* Hero Section */
.hero {
  padding-top: 220px;
  /* Increased to clear larger header */
  padding-bottom: 100px;
  background: var(--hero-gradient), url('../img/hero_bg.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  min-height: 60vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.125rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-features {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--accent);
}

@media (min-width: 768px) {
  .hero {
    min-height: 80vh;
    background-attachment: fixed;
  }

  .hero h1 {
    font-size: 4rem;
  }
}

/* Intro and Standard Sections */
.intro {
  padding: var(--section-padding);
}

.intro-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.intro-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.intro-img {
  border-radius: 1rem;
  box-shadow: var(--shadow-xl);
  width: 100%;
  height: auto;
  object-fit: cover;
}

@media (min-width: 992px) {
  .intro-grid {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }
}

.intro h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.intro p,
.section-text p {
  margin-bottom: 1.5rem;
  color: var(--text-gray);
  font-size: 1.1rem;
}

/* Services Section */
.services {
  padding: var(--section-padding);
  background-color: white;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
    margin: 3rem auto 0;
  }
}

.service-card {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 1rem;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(6, 182, 212, 0.3);
  background: white;
}

.service-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.service-icon {
  width: 50px;
  height: 50px;
  background: rgba(6, 182, 212, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-hover);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.service-card h3 {
  margin-bottom: 1rem;
  color: var(--primary);
}

.service-card p {
  color: var(--text-gray);
  font-size: 0.95rem;
}

/* Neighborhoods Section */
.neighborhoods {
  padding: var(--section-padding);
  background-color: var(--primary);
  color: white;
}

.neighborhoods h2 {
  color: white;
}

.neighborhood-list {
  column-count: 2;
  column-gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .neighborhood-list {
    column-count: 4;
  }
}

.neighborhood-list li {
  margin-bottom: 0.75rem;
}

.neighborhood-list a {
  color: #cbd5e1;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.neighborhood-list a::before {
  content: '•';
  color: var(--accent);
}

.neighborhood-list a:hover {
  color: var(--accent);
  padding-left: 5px;
}

/* Features / Why Choose Us */
.features {
  padding: var(--section-padding);
  background-color: white;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-item {
  text-align: center;
  padding: 2rem;
}

.feature-icon-lg {
  font-size: 3rem;
  color: var(--accent-hover);
  margin-bottom: 1.5rem;
}

/* Footer */
footer {
  background-color: #020617;
  color: #94a3b8;
  padding: 4rem 0 2rem;
}

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

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-col h4 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.footer-col p {
  margin-bottom: 1rem;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
}

/* SEO Content & Navigation Links */
.links-wrapper {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.btn-outline {
  display: inline-block;
  padding: 10px 25px;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  font-weight: 500;
  background-color: transparent;
}

.btn-outline:hover {
  background-color: var(--accent);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.seo-text-area h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.seo-text-area h3 {
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
  color: var(--secondary);
}

.seo-text-area p {
  margin-bottom: 1.5rem;
  color: var(--text-gray);
  font-size: 1.1rem;
}

.seo-text-area ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  list-style: disc;
}

.seo-text-area li {
  margin-bottom: 0.5rem;
  color: var(--text-gray);
}

/* Floating Whatsapp */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25D366;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 35px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 999;
  transition: all 0.3s ease;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.5);
}

/* Helper for lists inside cards */
.service-list {
  list-style: disc;
  padding-left: 1.2rem;
  margin-top: 1rem;
  color: #64748b;
  font-size: 0.9rem;
}