@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800&family=Playfair+Display:ital,wght@1,600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;1,600;1,700&display=swap');

:root{
  --main:#9D93C4;
  --main-hover:#7E74B8;
  --main-dark:#6F63B7;
  --dark:#07041a;
  --light:#ffffff;
  --muted:rgba(255,255,255,0.85);

  --offer-width:360px;
  --section-padding-x:5%;
  --service-card-width:360px;
}

body{
  font-family:"Poppins",sans-serif;
  margin:0;
  padding:0;
}

.caldry-container{
  width:100%;
  max-width:1200px;
  margin:auto;
  padding-left:var(--section-padding-x);
  padding-right:var(--section-padding-x);
  box-sizing:border-box;
}

/* HERO */
.caldry-hero{
  height:95vh;
  min-height:650px;
  position:relative;
  display:flex;
  align-items:center;
  background-image:url("https://caldryroofing.com/wp-content/uploads/2026/01/medium-shot-men-working-roof-together-scaled.jpg");
  background-size:cover;
  background-position:center;
}

.caldry-hero-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(
    90deg,
    rgba(5,3,15,0.92) 0%,
    rgba(5,3,15,0.75) 45%,
    rgba(5,3,15,0.45) 100%
  );
  z-index:1;
}

/* HEADER */
.caldry-header{
  position:absolute;
  top:0;
  width:100%;
  z-index:999;
  padding:28px 0;
  background:transparent;
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.caldry-logo img{
  height:52px;
  width:auto;
}

/* NAV */
.caldry-nav{
  display:flex;
  gap:28px;
}

.caldry-nav a{
  text-decoration:none;
  color:var(--light);
  font-weight:600;
  font-size:16px;
  transition:0.2s;
  position:relative;
}

.caldry-nav a:hover{
  color:var(--main);
}

.caldry-nav a.active,
.caldry-mobile-nav a.active{
  color:var(--main);
}

.caldry-nav a.active::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-10px;
  height:3px;
  width:100%;
  background:var(--main);
  border-radius:999px;
}

/* HEADER ICONS */
.caldry-icons{
  display:flex;
  gap:12px;
  align-items:center;
}

.header-icon{
  width:50px;
  height:50px;
  background:var(--main);
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:0.25s;
  box-shadow:0 10px 25px rgba(157,147,196,0.25);
}

.header-icon img{
  width:24px;
  height:24px;
  filter:brightness(0) invert(1);
}

.header-icon:hover{
  transform:translateY(-2px);
  background:var(--main-hover);
  box-shadow:0 14px 34px rgba(157,147,196,0.35);
}

/* BURGER */
.caldry-burger{
  display:none;
  background:transparent;
  border:none;
  cursor:pointer;
}

.caldry-burger span{
  display:block;
  width:26px;
  height:2px;
  background:white;
  margin:6px 0;
}

/* MOBILE NAV */
.caldry-mobile-nav{
  display:none;
  flex-direction:column;
  gap:12px;
  padding:16px;
  background:rgba(7,4,26,0.95);
}

.caldry-mobile-nav a{
  color:white;
  text-decoration:none;
  font-weight:600;
  padding:10px 0;
  border-bottom:1px solid rgba(255,255,255,0.1);
}

/* HERO CONTENT */
.caldry-hero-content{
  position:relative;
  z-index:2;
  width:92%;
  max-width:720px;
  margin-left:0;
  margin-right:auto;
  padding-top:150px;
  padding-left:6%;
  text-align:left;
}

.caldry-hero-content h1{
  font-size:clamp(38px,4.6vw,72px);
  font-weight:800;
  color:white;
  line-height:1.05;
  margin:0 0 18px;
  text-shadow:0 10px 28px rgba(0,0,0,0.65);
}

.highlight-word{
  color:var(--main);
  text-shadow:0 10px 26px rgba(157,147,196,0.35);
}

.caldry-hero-content p{
  color:var(--muted);
  font-size:16px;
  line-height:1.75;
  margin:0 0 30px;
  max-width:600px;
  text-shadow:0 8px 22px rgba(0,0,0,0.55);
}

/* HERO BUTTONS */
.caldry-hero-buttons{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
}

.btn-primary,
.btn-secondary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  font-weight:700;
  border-radius:10px;
  padding:14px 26px;
  font-size:15px;
  transition:0.25s;
  min-width:200px;
}

.btn-primary{
  background:var(--main);
  color:white;
}

.btn-primary:hover{
  transform:translateY(-3px);
  box-shadow:0 14px 32px rgba(157,147,196,0.3);
  background:var(--main-hover);
}

.btn-primary .arrow{
  margin-left:10px;
  font-size:14px;
}

.btn-secondary{
  border:2px solid rgba(255,255,255,0.5);
  color:white;
  background:rgba(255,255,255,0.05);
}

.btn-secondary:hover{
  border-color:var(--main);
  color:var(--main);
}

/* SECTIONS */
.caldry-section{
  padding:58px 0;
  background:#f4f4fa;
}

.about-centered{
  text-align:center;
  width:100%;
  margin:0 auto;
}

.section-title{
  font-size:42px;
  font-weight:650;
  margin-bottom:14px;
  color:var(--dark);
  max-width:650px;
  margin-left:auto;
  margin-right:auto;
}

#services .section-title{
  text-align:center;
  color:var(--dark);
}

.title-divider{
  width:70px;
  height:4px;
  background:var(--main);
  margin:16px auto 28px;
  border-radius:999px;
}

.section-paragraph{
  font-size:15px;
  line-height:1.85;
  color:#333;
  margin:0 auto;
  max-width:980px;
  text-align:center;
}

/* OFFER */
.offer-grid{
  display:grid;
  grid-template-columns:1.3fr 1fr;
  gap:24px;
  align-items: start;
}

.offer-slider{
  position:relative;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 20px 55px rgba(0,0,0,0.15);
  margin-bottom: 18px;
}

.offer-left {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.slider-wrapper{
  position:relative;
  height:420px;
}

.slide{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0;
  transition:opacity 0.4s ease;
}

.slide.active{ opacity:1; }

.slider-btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:44px;
  height:44px;
  border-radius:999px;
  border:none;
  cursor:pointer;
  background:rgba(0,0,0,0.45);
  color:white;
  font-size:18px;
  transition:0.25s;
}

.slider-btn:hover{ background:rgba(0,0,0,0.70); }

.slider-btn.prev{ left:14px; }
.slider-btn.next{ right:14px; }

.offer-card{
  background:#ffffff;
  border-radius:22px;
  padding:22px 20px;
  box-shadow:0 20px 55px rgba(0,0,0,0.08);
  text-align:center;
}

.offer-badge{
  position:relative;
  background:#172F4D;
  color:white;
  font-weight:800;
  padding:20px 14px;
  border-radius:18px;
  font-size:16px;
  line-height:1.3;
  width:100%;
  max-width:var(--offer-width);
  margin:0 auto 20px;
}

.offer-badge::after{
  content:"";
  position:absolute;
  bottom:-14px;
  left:50%;
  transform:translateX(-50%);
  border-left:16px solid transparent;
  border-right:16px solid transparent;
  border-top:16px solid #172F4D;
}

.offer-buttons{
  margin-top:14px;
  display:flex;
  flex-direction:column;
  gap:14px;
}

.offer-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  text-decoration:none;
  padding:16px 14px;
  border-radius:16px;
  font-weight:700;
  font-size:15px;
  width:100%;
  max-width:var(--offer-width);
  margin:0 auto;
  box-shadow:0 10px 0 rgba(7,4,26,0.20),0 20px 34px rgba(7,4,26,0.18);
  transition:0.25s;
}

.offer-btn:hover{ transform:translateY(-3px); }

.offer-btn.primary{
  background:var(--main);
  color:white;
}

.offer-btn.primary:hover{ background:var(--main-hover); }

.offer-btn.secondary{
  background:#fff;
  border:2px solid rgba(7,4,26,0.25);
  color:var(--dark);
}

.offer-text{
  margin-top:18px;
  color:#333;
  line-height:1.7;
  font-size:15px;
  text-align:center;
  max-width:var(--offer-width);
  margin-left:auto;
  margin-right:auto;
}

/* SERVICES */
.services-grid{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:28px;
  margin-top:40px;
}

.service-card{
  grid-column:span 2;
  width:100%;
  max-width:var(--service-card-width);
  height:260px;
  position:relative;
  border-radius:16px;
  overflow:hidden;
  background-size:cover;
  background-position:center;
  cursor:pointer;
  box-shadow:0 18px 34px rgba(0,0,0,0.18);
  transition:0.35s ease;
  border-style:solid;
  border-color:transparent;
  border-width:0;
}

.services-grid .service-card:nth-child(4){ grid-column:2/span 2; }
.services-grid .service-card:nth-child(5){ grid-column:4/span 2; }

.service-overlay{
  position:absolute;
  inset:0;
  background:rgba(7,4,26,0.65);
  transition:0.35s ease;
}

.service-content{
  position:absolute;
  inset:0;
  z-index:2;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  padding:22px;
  transition:0.35s ease;
}

.service-content h3{
  margin:0;
  font-size:22px;
  font-weight:800;
  color:rgba(255,255,255,0.92);
  transition:0.35s ease;
}

.service-content p{
  margin-top:14px;
  font-size:14px;
  line-height:1.6;
  color:rgba(255,255,255,0.85);
  max-width:280px;
  opacity:0;
  transform:translateY(12px);
  transition:0.35s ease;
}

.service-card:hover{
  box-shadow:0 30px 70px rgba(0,0,0,0.30);
  transform:translateY(-6px);
  border-left:3px solid var(--main-dark);
  border-right:3px solid var(--main-dark);
  border-top:3px solid var(--main-dark);
  border-bottom:6px solid var(--main-dark);
}

.service-card:hover .service-overlay{
  background:rgba(7,4,26,0.80);
}

.service-card:hover .service-content{
  justify-content:flex-start;
  padding-top:40px;
}

.service-card:hover .service-content p{
  opacity:1;
  transform:translateY(0);
}

/* FOOTER */
.caldry-footer{
  background:#1c1c1c;
  padding:70px 0 40px;
  color:white;
  text-align:center;
}

.footer-inner{
  display:flex;
  flex-direction:column;
  align-items:center;
}

.footer-logo img{
  width:320px;
  height:auto;
  margin-bottom:20px;
}

.footer-title{
  font-size:30px;
  font-weight:800;
  color:white;
  margin:0 0 55px;
  letter-spacing:1px;
}

.footer-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:60px;
  width:100%;
  max-width:1100px;
  margin-bottom:55px;
}

.footer-box{
  display:flex;
  flex-direction:column;
  align-items:center;
}

.footer-icon{
  width:70px;
  height:70px;
  border-radius:18px;
  background:rgba(157,147,196,0.18);
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:18px;
  transition:0.25s;
}

.footer-icon img{
  width:32px;
  height:32px;
  object-fit:contain;
  filter:brightness(0) invert(1);
}

.footer-box h3{
  margin:0 0 12px;
  font-size:18px;
  font-weight:800;
  color:var(--main);
  letter-spacing:0.5px;
}

.footer-box p{
  margin:4px 0;
  font-size:15px;
  color:rgba(255,255,255,0.85);
  line-height:1.6;
}

.footer-bottom{
  border-top:1px solid rgba(255,255,255,0.15);
  padding-top:25px;
  width:100%;
  max-width:1000px;
}

.footer-bottom p{
  margin:10px 0;
  font-size:14px;
  color:rgba(255,255,255,0.7);
}

.footer-bottom a{
  color:var(--main);
  text-decoration:underline;
  font-weight:600;
  transition:0.2s;
}

.footer-bottom a:hover{
  color:var(--main-hover);
}

/* MODAL */
.caldry-modal{
  position:fixed;
  inset:0;
  background:rgba(7,4,26,0.85);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:999999;
  padding:20px;
}

.caldry-modal-box{
  width:100%;
  max-width:520px;
  background:#ffffff;
  border-radius:18px;
  padding:28px 24px;
  position:relative;
  box-shadow:0 30px 80px rgba(0,0,0,0.35);
  animation:modalFade 0.25s ease;
}

.caldry-modal-title{
  margin:0 0 6px;
  font-size:26px;
  font-weight:800;
  color:var(--dark);
  text-align:center;
}

.caldry-modal-subtitle{
  margin:0 0 20px;
  text-align:center;
  font-size:14px;
  color:#444;
}

.caldry-modal-close{
  position:absolute;
  top:14px;
  right:16px;
  border:none;
  background:transparent;
  font-size:30px;
  cursor:pointer;
  color:#333;
  transition:0.2s;
}

.caldry-modal-close:hover{
  color:var(--main);
  transform:scale(1.1);
}

.caldry-modal-form{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.caldry-modal-form input,
.caldry-modal-form textarea{
  width:100%;
  padding:14px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,0.15);
  font-size:14px;
  font-family:"Poppins",sans-serif;
  outline:none;
  transition:0.2s;
}

.caldry-modal-form input:focus,
.caldry-modal-form textarea:focus{
  border-color:var(--main);
  box-shadow:0 0 0 3px rgba(157,147,196,0.25);
}

.caldry-modal-submit{
  margin-top:6px;
  padding:14px 16px;
  border:none;
  border-radius:14px;
  font-size:15px;
  font-weight:800;
  cursor:pointer;
  background:var(--main);
  color:white;
  transition:0.25s;
}

.caldry-modal-submit:hover{
  background:var(--main-hover);
  transform:translateY(-2px);
  box-shadow:0 16px 30px rgba(157,147,196,0.35);
}

@keyframes modalFade{
  from{opacity:0;transform:translateY(12px);}
  to{opacity:1;transform:translateY(0);}
}

/* RESPONSIVE */
@media (max-width:900px){
  .caldry-nav{display:none;}
  .caldry-burger{display:block;}

  .offer-grid{
    grid-template-columns:1fr;
    gap:26px;
  }

  .slider-wrapper{height:320px;}

  .services-grid{
    grid-template-columns:1fr !important;
    justify-items:center;
  }

  .service-card{
    grid-column:auto !important;
    max-width:100% !important;
    width:100% !important;
  }

  .services-grid .service-card:nth-child(4),
  .services-grid .service-card:nth-child(5){
    grid-column:auto !important;
  }

  .service-content p{
    opacity:1;
    transform:translateY(0);
  }

  .footer-grid{
    grid-template-columns:1fr;
    gap:40px;
  }

  .footer-title{
    font-size:26px;
    margin-bottom:40px;
  }
  
  .caldry-trust-card {
  text-align: center;
  }

  .trust-footer {
  justify-content: center;
  }
}

@media (max-width:600px){
  .caldry-logo img{height:52px;}

  .header-icon{
    width:44px;
    height:44px;
    border-radius:12px;
  }

  .slider-wrapper{height:280px;}

  .btn-primary,
  .btn-secondary{
    width:100%;
    min-width:unset;
  }

  .caldry-footer{
    padding:55px 0 35px;
  }

  .footer-logo img{width:135px;}
  .footer-title{font-size:22px;}
  .footer-box h3{font-size:16px;}
  .footer-box p{font-size:14px;}

  .caldry-modal-box{
    padding:24px 18px;
  }

  .caldry-modal-title{
    font-size:22px;
  }
}

/* ✅ Spinner */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.45);
  border-top-color: white;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ✅ Success/Error Boxes */
.success-box {
  background: rgba(157,147,196,0.15);
  padding: 12px 14px;
  border-radius: 12px;
  margin-top: 10px;
  color: #2a2a2a;
  font-weight: 600;
  text-align: center;
  animation: popSuccess 0.4s ease;
}

.error-box {
  background: rgba(255, 90, 90, 0.12);
  padding: 12px 14px;
  border-radius: 12px;
  margin-top: 10px;
  color: #b00000;
  font-weight: 600;
  text-align: center;
}

@keyframes popSuccess {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Form status */
#formStatus{
  margin-top:14px;
  font-size:14px;
  text-align:center;
  line-height:1.5;
}

#formStatus.success{
  color:#157a2c;
}

#formStatus.error{
  color:#b00020;
}

/* Thank you animation */
.thankyou-wrap{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  animation:fadeUp 0.35s ease;
}

.checkmark{
  width:54px;
  height:54px;
  background:#2ecc71;
  color:white;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:26px;
  font-weight:800;
  animation:pop 0.35s ease;
}

@keyframes pop{
  from{transform:scale(0.4);opacity:0;}
  to{transform:scale(1);opacity:1;}
}

@keyframes fadeUp{
  from{transform:translateY(12px);opacity:0;}
  to{transform:translateY(0);opacity:1;}
}

/* ✅ INLINE FORM (Offer section only) */
.caldry-inline-form {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: var(--offer-width);
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.inline-form-title {
  font-size: 18px;
  font-weight: 800;
  margin: 12px 0 0;
  color: var(--dark);
  text-align: center;
}

.inline-form-subtitle {
  margin: 0 0 6px;
  font-size: 13px;
  color: #444;
  text-align: center;
}

.caldry-inline-form input,
.caldry-inline-form textarea {
  width: 100%;
  padding: 14px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.15);
  font-size: 14px;
  font-family: "Poppins", sans-serif;
  outline: none;
  transition: 0.2s;
}

.caldry-inline-form input:focus,
.caldry-inline-form textarea:focus {
  border-color: var(--main);
  box-shadow: 0 0 0 3px rgba(157,147,196,0.25);
}

.caldry-inline-submit {
  margin-top: 6px;
  padding: 14px 16px;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  background: var(--main);
  color: white;
  transition: 0.25s;
}

.caldry-inline-submit:hover {
  background: var(--main-hover);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(157,147,196,0.35);
}

/* ✅ TRUST CARD BELOW SLIDER */
.caldry-trust-card {
  margin-top: 28px; /* ✅ adds space from slider */
  background: #ffffff;
  border-radius: 22px;
  padding: 26px 22px;
  box-shadow: 0 20px 55px rgba(0,0,0,0.08);
  text-align: left;
}

.trust-title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
}

.trust-subtitle {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.7;
  color: #444;
}

.trust-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.trust-list li {
  font-size: 14px;
  font-weight: 600;
  color: #222;
  line-height: 1.5;
}

.trust-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 700;
  color: var(--main-dark);
  border-top: 1px solid rgba(0,0,0,0.08);
  padding-top: 14px;
}

.caldry-slogan {
  padding: 30px 0 40px;
  text-align: center;
  background: #f4f4fa; /* matches global section bg */
}

.caldry-slogan .slogan-text {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 380;
  font-size: 42px;
  color: var(--dark);
  margin: 0;
  line-height: 1.1;
  letter-spacing: 0.2px;
  
    /* subtle premium glow */
  text-shadow: 0 10px 30px rgba(157,147,196,0.25);
  position: relative;
  display: inline-block;
  padding-top: 24px;
}

.caldry-slogan .slogan-text::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 4px;
  border-radius: 999px;
  background: var(--main);
}

.caldry-slogan {
  opacity: 0;
  transform: translateY(10px);
  animation: sloganFade 0.9s ease forwards;
  animation-delay: 0.2s;
}

@keyframes sloganFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .caldry-slogan {
    padding: 28px 0 6px;
  }

  .caldry-slogan .slogan-text {
    font-size: 30px;
  }
}