@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;600;700;800&display=swap');

:root {
  /* Colors */
  --primary: #0033a0;
  /* Azul AM Calhas */
  --primary-dark: #002273;
  --secondary: #1a1a1a;
  --accent: #25D366;
  /* WhatsApp Green */
  --accent-hover: #128C7E;
  --text-dark: #333333;
  --text-light: #666666;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;

  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --section-pad: 5rem 2rem;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.12);
  --shadow-hover: 0 12px 32px rgba(0, 51, 160, 0.15);

  /* Transitions */
  --trans-fast: 0.3s ease;
  --trans-smooth: 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100%;
}

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

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

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

/* ================= UTILS ================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-center {
  text-align: center;
}

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

.text-white {
  color: #fff;
}

.fw-bold {
  font-weight: 700;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 800;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ================= BUTTONS ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.125rem;
  border-radius: 50px;
  cursor: pointer;
  border: none;
  transition: var(--trans-smooth);
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 51, 160, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 51, 160, 0.4);
  color: #fff;
}

.btn-whatsapp {
  background-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  animation: pulse-green 2s infinite;
}

.btn-whatsapp:hover {
  background-color: var(--accent-hover);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  color: #fff;
}

@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* ================= HEADER ================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: var(--trans-smooth);
}

.header.scrolled {
  padding: 0.5rem 0;
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.95);
}

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

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

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-left: 0.75rem;
}

.logo img {
  height: 60px;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
  transition: var(--trans-fast);
}

.header.scrolled .logo img {
  height: 50px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  position: relative;
  color: var(--secondary);
  font-weight: 600;
  padding-bottom: 4px;
}

.nav-links a:not(.btn-whatsapp)::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--primary);
  transition: width 0.3s ease, left 0.3s ease;
}

.nav-links a:not(.btn-whatsapp):hover::after {
  width: 100%;
  left: 0;
}

.nav-links a:not(.btn-whatsapp):hover {
  color: var(--primary);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--secondary);
  cursor: pointer;
}

/* ================= HERO ================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  /* Space for fixed header */
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-color: #000;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: slideFade 15s infinite;
}

.hero-slide:nth-child(1) {
  background-image: url('../img/telhado_metalico_1778696714840.png');
  animation-delay: 0s;
}

.hero-slide:nth-child(2) {
  background-image: url('../img/coifa_inox_1778696694230.png');
  animation-delay: 5s;
}

.hero-slide:nth-child(3) {
  background-image: url('../img/calhas_instalacao_1778696663882.png');
  animation-delay: 10s;
}

@keyframes slideFade {
  0% {
    opacity: 0;
    transform: scale(1.05);
  }

  10% {
    opacity: 1;
    transform: scale(1);
  }

  33% {
    opacity: 1;
    transform: scale(1);
  }

  43% {
    opacity: 0;
    transform: scale(1.05);
  }

  100% {
    opacity: 0;
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 34, 115, 0.7), rgba(0, 0, 0, 0.85));
  z-index: 1;
}

.hero-content {
  max-width: 800px;
  color: #fff;
  z-index: 2;
  position: relative;
}

.badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero h1 {
  font-size: 4rem;
  color: #fff;
  margin-bottom: 1.5rem;
  font-weight: 800;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero h1 span {
  color: #4da6ff;
  background: linear-gradient(90deg, #4facfe, #00f2fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: #f1f1f1;
  max-width: 600px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item h4 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.stat-item p {
  font-size: 0.875rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

/* ================= SERVICES ================= */
.services {
  padding: var(--section-pad);
  background-color: var(--bg-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(0, 51, 160, 0.1);
}

.service-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--trans-smooth);
}

.service-card:hover .service-img {
  transform: scale(1.05);
}

.service-content {
  padding: 2rem;
  position: relative;
  background: #fff;
  z-index: 2;
}

.service-icon {
  width: 50px;
  height: 50px;
  background: var(--bg-light);
  color: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
}

.service-card p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.service-link {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.service-link:hover {
  color: var(--primary-dark);
}

/* ================= GALLERY ================= */
.gallery {
  padding: var(--section-pad);
  background-color: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: var(--trans-smooth);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gallery-item:hover .gallery-img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 51, 160, 0.85), rgba(0, 0, 0, 0.2));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h4 {
  color: #fff;
  margin: 0;
  font-size: 1.25rem;
  transform: translateY(15px);
  transition: transform 0.4s ease;
}

.gallery-overlay p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  font-size: 0.9rem;
  transform: translateY(15px);
  transition: transform 0.4s ease 0.1s;
}

.gallery-item:hover .gallery-overlay h4,
.gallery-item:hover .gallery-overlay p {
  transform: translateY(0);
}

/* ================= BENEFITS ================= */
.benefits {
  padding: var(--section-pad);
  background-color: #fff;
}

.benefits-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.benefits-img-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: float-img 6s ease-in-out infinite;
}

@keyframes float-img {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0px);
  }
}

.benefits-img-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(0, 51, 160, 0.2), transparent);
}

.benefit-list {
  list-style: none;
  margin-top: 2rem;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.benefit-icon {
  color: var(--primary);
  font-size: 1.5rem;
  margin-top: 0.25rem;
}

.benefit-text h4 {
  margin-bottom: 0.25rem;
  font-size: 1.25rem;
}

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

/* ================= REVIEWS ================= */
.reviews {
  padding: var(--section-pad);
  background-color: var(--bg-light);
  text-align: center;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.review-card {
  background: #fff;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.stars {
  color: #FFD700;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.review-text {
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  font-size: 1.125rem;
}

.reviewer {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.reviewer-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-heading);
}

.reviewer-info h5 {
  margin: 0;
  font-size: 1rem;
}

.reviewer-info span {
  color: var(--text-light);
  font-size: 0.875rem;
}

/* ================= CTA SECTION ================= */
.cta-section {
  padding: 6rem 2rem;
  background: var(--primary);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.cta-section h2 {
  color: #fff;
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.cta-section p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

/* ================= FOOTER ================= */
.footer {
  background-color: var(--secondary);
  color: #fff;
  padding: 4rem 2rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  margin-bottom: 3rem;
}

.footer-logo {
  height: 60px;
  margin-bottom: 1.5rem;
  border-radius: 6px;
  background-color: #fff;
  padding: 5px;
}

.footer-about p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
}

.footer-heading {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: #fff;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-contact p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

/* ================= FLOATING WHATSAPP ================= */
.float-wa {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transition: var(--trans-fast);
  animation: pulse-green 2s infinite;
}

.float-wa:hover {
  background-color: var(--accent-hover);
  transform: scale(1.1);
  color: #fff;
}

/* ================= ANIMATIONS (JS triggered) ================= */
.animate-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 3rem;
  }

  .benefits-wrapper {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: #fff;
    flex-direction: column;
    padding: 2rem;
    transition: var(--trans-smooth);
    align-items: center;
    justify-content: center;
    gap: 2rem;
  }

  .nav-links.active {
    left: 0;
  }

  .mobile-menu-btn {
    display: block;
  }

  .logo img {
    height: 45px;
  }

  .logo-text {
    font-size: 1.25rem;
    /* Reduz um pouco a fonte para caber bem na tela do celular */
  }

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

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }

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

/* ================= GALLERY ZOOM ICON ================= */
.gallery-zoom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.75rem;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-size: 1.1rem;
  transition: background 0.3s ease;
}

.gallery-item:hover .gallery-zoom {
  background: rgba(255, 255, 255, 0.35);
}

/* ================= LIGHTBOX ================= */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.25s ease;
}

.lightbox.active {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  text-align: center;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  display: block;
}

.lightbox-caption {
  color: rgba(255, 255, 255, 0.8);
  margin-top: 1rem;
  font-size: 0.95rem;
  font-family: var(--font-body);
}

.lightbox-close {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 10000;
}

.lightbox-close:hover {
  opacity: 1;
  transform: scale(1.1);
}

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.5rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ================= VIDEO SECTION ================= */
.video-section {
  padding: var(--section-pad);
  background-color: var(--secondary);
}

.video-section .section-title,
.video-section .section-subtitle {
  color: #fff;
}

.video-section .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.video-item {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000;
  aspect-ratio: 9/16;
  display: flex;
}

.video-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ================= LOCATION SECTION ================= */
.location-section {
  padding: var(--section-pad);
  background-color: var(--bg-light);
}

.location-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: center;
  margin-top: 3rem;
}

.location-info h3 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.location-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.location-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-dark);
  font-size: 1rem;
  line-height: 1.5;
}

.location-list li i {
  color: var(--primary);
  font-size: 1.2rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.location-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ================= REVIEWS CTA CARD ================= */
.review-card--cta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.google-rating-badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.google-rating-score {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

/* ================= RESPONSIVE (new sections) ================= */
@media (max-width: 992px) {
  .location-wrapper {
    grid-template-columns: 1fr;
  }

  .video-item {
    aspect-ratio: 16/9;
  }
}

@media (max-width: 768px) {
  .lightbox-prev {
    left: 0.25rem;
  }

  .lightbox-next {
    right: 0.25rem;
  }

  .location-btns {
    flex-direction: column;
  }

  .location-btns .btn {
    width: 100%;
    justify-content: center;
  }
}