/*
Author: Francisco Lopez
DCT Home Improvement LLC
*/

/* WPForms + Cloudflare Turnstile responsive */
.contact-form-card,
.quote-modal-dialog {
    overflow-x: hidden;
}

.wpforms-container {
    width: 100%;
    max-width: 100%;
}

.wpforms-container .cf-turnstile,
.wpforms-container iframe {
    max-width: 100% !important;
}

/* Evita que el botón quede encima de Turnstile */
.wpforms-submit-container {
    clear: both !important;
    display: block !important;
    width: 100% !important;
    margin-top: 20px !important;
}

.wpforms-submit {
    position: static !important;
}

/* Móviles */
@media (max-width: 600px) {

    .quote-modal {
        padding: 15px 10px;
    }

    .quote-modal-dialog {
        width: 100%;
        max-width: calc(100vw - 20px);
        padding: 24px 18px;
    }

    .quote-modal-copy h2 {
        font-size: 38px;
        line-height: 1.05;
    }

    .wpforms-container input,
    .wpforms-container textarea,
    .wpforms-container select {
        max-width: 100% !important;
    }

    .wpforms-submit {
        width: 100% !important;
        display: block !important;
        margin-top: 10px !important;
    }

    .wpforms-container .cf-turnstile {
        transform-origin: left top;
    }
}

.wpforms-container button[type="submit"] {
    position: relative !important;
    float: none !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;

    margin-top: 15px !important;

    background: #126f43 !important;
    border: 1px solid #126f43 !important;
    color: #fff !important;

    padding: 12px 28px !important;
    border-radius: 5px !important;
}

@media (max-width: 600px) {

    .quote-modal-dialog {
        max-height: 92vh;
        overflow-y: auto;
    }

    .quote-modal-copy h2 {
        font-size: 34px;
    }
}

:root{
  --green:#126f43;
  --green-dark:#0b5431;
  --green-deep:#083e25;
  --green-light:#38ab4b;
  --soft:#f4f7f4;
  --white:#ffffff;
  --text:#111111;
  --muted:#646464;
  --line:#e4e7e4;
  --shadow:0 12px 35px rgba(0,0,0,.09);
  --radius:8px;
}

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  padding:0;
  margin:0;
  font-family:Arial, Helvetica, sans-serif;
  color:var(--text);
  background:var(--white);
}

img{
  max-width:100%;
  display:block;
}

a{
  text-decoration:none;
  color:inherit;
}

button,
input,
textarea,
select{
  font:inherit;
}

.site-container{
  width:min(1180px, calc(100% - 40px));
  margin:0 auto;
}

/* WhatsApp */
.whatsapp-float{
  position:fixed;
  right:18px;
  bottom:22px;
  width:52px;
  height:52px;
  z-index:100;
  filter:drop-shadow(0 6px 12px rgba(0,0,0,.25));
}

.whatsapp-float img{
  width:100%;
  height:100%;
  object-fit:contain;
}

/* top bar */
.top-bar{
  background:var(--green-dark);
  color:#fff;
  font-size:12px;
}

.top-bar-inner{
  min-height:36px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

.top-contact{
  display:flex;
  align-items:center;
  gap:20px;
}

.top-contact a:hover{
  text-decoration:underline;
}

/* header */
.site-header{
  position:sticky;
  top:0;
  z-index:80;
  background:#fff;
  box-shadow:0 1px 0 rgba(0,0,0,.08);
}

.header-inner{
  min-height:90px;
  display:flex;
  align-items:center;
  gap:25px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:270px;
  color:var(--green);
}

.brand img{
  width:72px;
  height:64px;
  object-fit:contain;
}

.brand-copy strong{
  display:block;
  font-size:32px;
  line-height:1;
}

.brand-copy span{
  display:block;
  font-size:11px;
  font-weight:700;
  margin-top:4px;
}

.brand-copy small{
  display:block;
  margin-top:3px;
  color:#333;
  font-size:9px;
}

.main-nav{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:22px;
}

.main-nav a{
  position:relative;
  padding:35px 0 29px;
  color:#151515;
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
}

.main-nav a::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:22px;
  height:2px;
  background:var(--green);
  transform:scaleX(0);
  transition:.2s ease;
}

.main-nav a:hover{
  color:var(--green);
}

.main-nav a:hover::after{
  transform:scaleX(1);
}

.mobile-menu-btn{
  display:none;
  margin-left:auto;
  border:0;
  background:transparent;
  padding:8px;
  cursor:pointer;
}

.mobile-menu-btn span{
  display:block;
  width:28px;
  height:2px;
  margin:6px 0;
  background:#111;
}

/* buttons */
.btn-primary-site,
.btn-outline-site{
  min-height:45px;
  padding:0 24px;
  border-radius:5px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  transition:.2s ease;
}

.btn-primary-site{
  border:1px solid var(--green);
  color:#fff;
  background:var(--green);
}

.btn-primary-site:hover{
  background:var(--green-dark);
  border-color:var(--green-dark);
}

.btn-outline-site{
  border:1px solid var(--green);
  color:var(--green);
  background:#fff;
}

.btn-outline-site:hover{
  color:#fff;
  background:var(--green);
}

.header-estimate{
  white-space:nowrap;
}

/* hero */
.hero{
  background:#f8f8f8;
}

.hero-grid{
  min-height:505px;
  display:grid;
  grid-template-columns:.92fr 1.28fr;
  padding:0;
}

.hero-copy{
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:48px 45px 48px 0;
}

.section-kicker{
  color:var(--green);
  font-size:14px;
  line-height:1.2;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  margin:0 0 12px;
}

.hero h1{
  margin:0 0 20px;
  font-size:56px;
  line-height:1.03;
  letter-spacing:-.045em;
  font-weight:800;
}

.hero h1 span{
  color:var(--green);
}

.hero-description{
  margin:0;
  font-size:17px;
  line-height:1.55;
  color:#333;
}

.hero-points{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
  margin:30px 0;
}

.hero-points div{
  border-left:3px solid var(--green);
  padding-left:12px;
}

.hero-points strong{
  display:block;
  font-size:12px;
}

.hero-points span{
  display:block;
  margin-top:4px;
  color:var(--muted);
  font-size:10px;
}

.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}

.hero-image{
  min-height:505px;
  background-position:center;
  background-size:cover;
  background-repeat:no-repeat;
}

/* sections */
.section{
  padding:68px 0;
}

.section-soft{
  background:var(--soft);
}

.section-heading{
  max-width:760px;
  margin:0 auto 34px;
  text-align:center;
}

.section-heading h2{
  margin:0 0 8px;
  font-size:32px;
  line-height:1.15;
  letter-spacing:-.03em;
}

.section-heading > p:last-child{
  margin:0;
  color:var(--muted);
  font-size:14px;
}

/* services */
.services-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
}

.service-card{
  min-height:250px;
  padding:26px 22px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:0 4px 18px rgba(0,0,0,.04);
  transition:.2s ease;
}

.service-card:hover{
  transform:translateY(-4px);
  box-shadow:var(--shadow);
}

.service-number{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  margin-bottom:18px;
  border-radius:50%;
  background:#eef7f1;
  color:var(--green);
  font-size:12px;
  font-weight:700;
}

.service-card h3{
  margin:0 0 12px;
  font-size:17px;
}

.service-card p{
  margin:0;
  color:#515151;
  font-size:13px;
  line-height:1.6;
}

/* projects */
.projects-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}

.project-card{
  overflow:hidden;
  border-radius:var(--radius);
  background:#fff;
  box-shadow:0 5px 20px rgba(0,0,0,.06);
}

.project-carousel{
  position:relative;
  background:#e8e8e8;
}

.project-carousel .carousel-inner{
  background:#e8e8e8;
}

.img-service-container{
  height:300px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.img-service{
  width:100%;
  height:100%;
  object-fit:cover;
}

.project-card-body{
  padding:18px;
}

.project-card-body h3{
  margin:0;
  font-size:16px;
}

.project-card-actions{
  display:flex;
  justify-content:space-between;
  gap:10px;
  margin-top:15px;
}

.project-card-actions button{
  min-height:38px;
}

.full-img{
  position:fixed !important;
  top:0;
  left:0;
  width:100vw;
  height:100vh;
  z-index:150;
  background:#111;
}

.full-img .img-service-container{
  height:100vh !important;
}

.full-img .img-service{
  object-fit:contain;
}

.close-full-img{
  display:none;
  position:fixed;
  right:20px;
  top:20px;
  z-index:160;
}

.full-img .close-full-img{
  display:block;
}

/* why */
.why-section{
  background:#fff;
}

.why-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
}

.why-card{
  padding:27px 22px;
  text-align:center;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:#fff;
}

.why-icon{
  width:52px;
  height:52px;
  display:grid;
  place-items:center;
  margin:0 auto 15px;
  border-radius:50%;
  background:#edf6f0;
  color:var(--green);
  font-weight:800;
}

.why-card h3{
  margin:0 0 9px;
  font-size:16px;
}

.why-card p{
  margin:0;
  color:#555;
  font-size:13px;
  line-height:1.55;
}

/* about */
.about-section{
  background:#f8faf8;
}

.about-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:55px;
  align-items:center;
}

.about-image{
  min-height:440px;
  background-size:cover;
  background-position:center;
  border-radius:var(--radius);
}

.about-copy h2{
  margin:0 0 20px;
  font-size:38px;
  line-height:1.12;
  letter-spacing:-.03em;
}

.about-copy > p{
  color:#444;
  font-size:15px;
  line-height:1.7;
}

.about-goal{
  margin:24px 0;
  padding:18px 20px;
  border-left:4px solid var(--green);
  background:#fff;
}

.about-goal strong{
  display:block;
  margin-bottom:6px;
}

.about-goal p{
  margin:0;
  color:#444;
  line-height:1.6;
}

/* reviews */
.reviews-plugin{
  padding:24px;
  border-radius:var(--radius);
  background:#fff;
  box-shadow:0 5px 18px rgba(0,0,0,.05);
}

/* contact */
.contact-section{
  color:#fff;
  background:linear-gradient(135deg,var(--green-dark),var(--green-deep));
}

.contact-grid{
  display:grid;
  grid-template-columns:.9fr 1.1fr;
  gap:55px;
  align-items:start;
}

.light-kicker{
  color:#c8eed6;
}

.contact-copy h2{
  margin:0 0 13px;
  font-size:36px;
}

.contact-copy > p{
  max-width:520px;
  color:#ecf3ef;
  line-height:1.65;
}

.contact-list{
  display:grid;
  gap:16px;
  margin-top:28px;
}

.contact-list a,
.contact-list div{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.contact-list strong{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.contact-list span{
  color:#e5f0e9;
  font-size:14px;
}

.contact-form-card{
  min-height:220px;
  padding:26px;
  color:#111;
  background:#fff;
  border-radius:var(--radius);
}

/* map */
.map-section{
  line-height:0;
}

/* quote modal */
.quote-modal{
  display:none;
  position:fixed;
  inset:0;
  z-index:200;
  padding:30px 15px;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,.68);
}

.quote-modal.open{
  display:flex;
}

.quote-modal-dialog{
  position:relative;
  width:min(690px,100%);
  max-height:90vh;
  overflow:auto;
  padding:32px;
  background:#fff;
  border-radius:var(--radius);
}

.quote-close{
  position:absolute;
  right:12px;
  top:8px;
  border:0;
  background:transparent;
  color:#333;
  font-size:34px;
  line-height:1;
  cursor:pointer;
}

.quote-modal-copy h2{
  margin:0 0 20px;
  font-size:28px;
}

/* footer */
.site-footer{
  padding:38px 0 14px;
  color:#fff;
  background:var(--green-deep);
}

.footer-grid{
  display:grid;
  grid-template-columns:1fr 1.55fr 1fr;
  gap:48px;
}

.brand-footer{
  color:#fff;
}

.brand-footer .brand-copy small{
  color:#fff;
}

.site-footer h3{
  margin:0 0 14px;
  font-size:13px;
  text-transform:uppercase;
}

.footer-links{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:7px 20px;
}

.site-footer p,
.site-footer a{
  font-size:11px;
  line-height:1.5;
}

.site-footer a:hover{
  text-decoration:underline;
}

.footer-bottom{
  display:flex;
  justify-content:space-between;
  gap:20px;
  margin-top:30px;
  padding-top:14px;
  border-top:1px solid rgba(255,255,255,.18);
  font-size:10px;
}

/* compatibility with previous classes */
.text-green{color:var(--green)}
.border-green{border:1.5px solid var(--green)}
.bg-white{background:#fff}
.bg-light-gray{background:#e9e9e9}
.bg-light-green{background:#85ca8e}
.bg-middle-green{background:var(--green-light)}
.bg-dark-green{background:var(--green)}
.center-x{display:flex;justify-content:center}
.center-y{display:flex;align-items:center}

/* responsive */
@media (max-width:1050px){
  .main-nav{
    gap:13px;
  }

  .main-nav a{
    font-size:10px;
  }

  .header-estimate{
    display:none;
  }

  .hero h1{
    font-size:48px;
  }

  .services-grid,
  .why-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .projects-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

@media (max-width:820px){
  .site-container{
    width:min(100% - 28px,1180px);
  }

  .top-bar-inner{
    justify-content:center;
    text-align:center;
  }

  .top-contact{
    display:none;
  }

  .header-inner{
    min-height:75px;
  }

  .brand{
    min-width:0;
  }

  .brand img{
    width:54px;
    height:48px;
  }

  .brand-copy strong{
    font-size:25px;
  }

  .brand-copy span{
    font-size:8px;
  }

  .brand-copy small{
    display:none;
  }

  .mobile-menu-btn{
    display:block;
  }

  .main-nav{
    display:none;
    position:absolute;
    left:0;
    right:0;
    top:75px;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    padding:12px 20px 20px;
    background:#fff;
    box-shadow:0 12px 25px rgba(0,0,0,.12);
  }

  .main-nav.open{
    display:flex;
  }

  .main-nav a{
    padding:13px 4px;
    font-size:12px;
    border-bottom:1px solid #eee;
  }

  .main-nav a::after{
    display:none;
  }

  .hero-grid{
    grid-template-columns:1fr;
  }

  .hero-copy{
    order:2;
    padding:38px 0 45px;
  }

  .hero-image{
    order:1;
    min-height:330px;
  }

  .hero h1{
    font-size:45px;
  }

  .about-grid,
  .contact-grid{
    grid-template-columns:1fr;
  }

  .about-image{
    min-height:350px;
  }

  .footer-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width:560px){
  .section{
    padding:50px 0;
  }

  .hero-image{
    min-height:260px;
  }

  .hero h1{
    font-size:38px;
  }

  .hero-description{
    font-size:15px;
  }

  .hero-points{
    grid-template-columns:1fr;
  }

  .hero-actions{
    flex-direction:column;
  }

  .hero-actions .btn-primary-site,
  .hero-actions .btn-outline-site{
    width:100%;
  }

  .services-grid,
  .projects-grid,
  .why-grid{
    grid-template-columns:1fr;
  }

  .section-heading h2{
    font-size:27px;
  }

  .about-copy h2,
  .contact-copy h2{
    font-size:30px;
  }

  .footer-links{
    grid-template-columns:1fr;
  }

  .footer-bottom{
    flex-direction:column;
  }
}
