/*
Theme Name: Lazcano Roofing Theme
Theme URI: https://example.com
Author: Lazcano Roofing
Description: WordPress theme for a roofing company with a carousel header and tricolor animated border.
Version: 1.0
Text Domain: lazcano
*/

:root {
  --bg-dark: #05060a;
  --accent: #f97316;
  --text: #f9fafb;
  --muted: #9ca3af;
  --header-height: 90px;
}

/* Simple reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #020617;
  color: var(--text);
}

/* NAVBAR -------------------------------------------------- */

.site-header {
  position: relative;
  z-index: 20;
  background: #020617;
}

.top-bar {
  max-width: 1200px;
  margin: 0 auto;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--text);
  text-decoration: none;
}

.site-logo span.mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: radial-gradient(circle at 30% 30%, #facc15, #f97316);
}

.site-logo .text-upper {
  font-size: .75rem;
  text-transform: uppercase;
  color: var(--muted);
}

.site-logo .text-main {
  font-size: 1.05rem;
}

/* Menu */

.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.2rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  position: relative;
  padding-bottom: 4px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width .25s ease;
}

.main-nav a:hover,
.main-nav .current-menu-item > a {
  color: var(--text);
}

.main-nav a:hover::after,
.main-nav .current-menu-item > a::after {
  width: 100%;
}

/* Burger for mobile */

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid #1f2937;
  color: var(--text);
  padding: .4rem .7rem;
  border-radius: 999px;
}

/* HEADER HERO + CAROUSEL ---------------------------------- */

.hero-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 1.2rem auto 2.5rem;
  padding: 0;
}

/* Tricolor light border around the header */
.hero-wrapper::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 26px;
  padding: 2px; /* grosor de la línea de luces */
  background: linear-gradient(
    90deg,
    #ff0000,
    #ffffff,
    #00ff00,
    #ff0000
  );
  background-size: 300% 100%;
  z-index: 0;
  opacity: 0.95;
  /* Truco para que solo se vea el borde (centro transparente) */
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: border-lights 4s linear infinite;
}


.hero-inner {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  z-index: 1;
  background: #020617;
}

/* Carousel */

.hero-carousel {
  position: relative;
  width: 100%;
  /* Un poco más de altura para que el contenido respire */
  height: clamp(360px, 60vh, 560px);
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 25% 20%, rgba(251,191,36,.4), transparent 55%),
              linear-gradient(120deg, rgba(15,23,42,.9), rgba(15,23,42,.3));
}

/* Header content */

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 3rem;
  color: #f9fafb;
  max-width: 640px; /* limita el ancho del bloque para que no se desborde */
}

.hero-eyebrow {
  font-size: .85rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #facc15;
}

.hero-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  max-width: 18ch;
  margin: 0.7rem 0 0.8rem;
  line-height: 1.1;
  word-wrap: break-word;
}

.hero-text {
  max-width: 36ch;
  color: #e5e7eb;
  font-size: 0.98rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.hero-cta {
  display: flex;
  gap: .75rem;
  margin-top: 1.4rem;
}

.btn {
  border-radius: 999px;
  padding: .75rem 1.4rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: .95rem;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #f97316, #f59e0b);
  color: #111827;
}

.btn-outline {
  border-color: #9ca3af;
  color: #e5e7eb;
  background: rgba(15,23,42,.7);
}

/* Carousel dots */

.hero-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .4rem;
  z-index: 3;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(148,163,184,.7);
  border: none;
  cursor: pointer;
}

.hero-dot.active {
  background: #facc15;
}

/* Generic content section */

.page-section {
  max-width: 1200px;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
}

.page-section h1 {
  font-size: 2rem;
  margin-bottom: .2rem;
}

.page-section h2 {
  font-size: 1.6rem;
  margin-bottom: .75rem;
}

.section-intro {
  max-width: 48rem;
  color: var(--muted);
  margin-bottom: 1.8rem;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.service-card {
  background: #020617;
  border-radius: 18px;
  padding: 1.4rem 1.6rem;
  border: 1px solid #1f2937;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.gallery-item {
  background: #020617;
  border-radius: 18px;
  padding: 0.75rem;
  border: 1px solid #1f2937;
}

.gallery-item img {
  border-radius: 14px;
  max-width: 100%;
  height: auto;
  display: block;
}

.gallery-item figcaption {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--muted);
}


/* About */
.about-layout {
  display: grid;
  grid-template-columns: minmax(0,2fr) minmax(0,1.2fr);
  gap: 2rem;
}

.about-card {
  background: #020617;
  border-radius: 18px;
  padding: 1.4rem 1.6rem;
  border: 1px solid #1f2937;
}

.about-left {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-right {
  align-self: flex-start;
}

/* Projects */
.projects-list {
  display: grid;
  gap: 1.5rem;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0,1.6fr) minmax(0,1.1fr);
  gap: 2rem;
}
.contact-simple input,
.contact-simple textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #1f2937;
  background: #020617;
  padding: .8rem 1rem;
  color: var(--text);
  margin-bottom: .9rem;
}
.contact-simple .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem;
}
.contact-card {
  background: #020617;
  border-radius: 18px;
  padding: 1.4rem 1.6rem;
  border: 1px solid #1f2937;
}

.form-error {
  color: #f87171;
  font-size: 0.9rem;
  margin: 0 0 0.6rem;
}

.input-error {
  border-color: #f87171 !important;
}

/* Footer */
footer.page-section {
  border-top: 1px solid #111827;
  padding-top: 2rem;
  padding-bottom: 2.5rem;
  color: var(--muted);
}

/* Border animation: linea de luces que recorre el borde */
@keyframes border-lights {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 300% 50%;
  }
}


/* RESPONSIVE ------------------------------------------------ */

@media (max-width: 900px) {
  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    right: 1.2rem;
    background: #020617;
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(0,0,0,.6);
    padding: .8rem 1.1rem;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: .4rem;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero-content {
    padding: 2rem 1.7rem;
    max-width: 100%;
  }

  .hero-title {
    font-size: 1.6rem;
    max-width: 100%;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .contact-simple .form-row {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   SUCCESS MESSAGE - CENTER SCREEN MODAL STYLE
   ============================================ */

.lazcano-success-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  animation: fadeInOverlay 0.4s ease-out;
}

.lazcano-success-box {
  background: #0f172a;
  padding: 30px 40px;
  width: 90%;
  max-width: 480px;
  border-radius: 18px;
  text-align: center;
  color: white;
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255,255,255,0.12);
  animation: slideDown 0.5s ease-out;
}

.lazcano-success-box .icon {
  width: 65px;
  height: 65px;
  margin: 0 auto 15px;
  border-radius: 50%;
  background: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: bold;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(22,163,74,0.4);
}

.lazcano-success-box h3 {
  margin: 0 0 8px;
  font-size: 1.55rem;
  font-weight: 700;
}

.lazcano-success-box p {
  margin: 0;
  font-size: 1rem;
  color: #cbd5e1;
}

/* Animaciones */
@keyframes fadeInOverlay {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes slideDown {
  0% { opacity: 0; transform: translateY(-20px); }
  100% { opacity: 1; transform: translateY(0); }
}
