/* Diamond Remodeling & Repair - static rebuild.
   Sizes and colors match the computed styles of the old WordPress (Astra + Elementor) site. */

:root {
  --blue: #0067ff;
  --light: #e7f6ff;
  --ink: #0f172a;
  --text: #364151;
  --white: #fff;
  --overlay: rgb(7, 6, 20);
  --inner: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Barlow, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--light);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: none; }
p { margin: 0 0 1.6em; }
h1, h2, h3, h4, h5, h6, .h3, .h4, .h5, .h6 { margin: 0; font-weight: 700; color: var(--ink); }
h1 { font-size: 80px; line-height: 1.08; }
h2 { font-size: 42px; line-height: 1.3; }
h3, .h3 { font-size: 32px; line-height: 1.5; }
h4, .h4 { font-size: 25px; line-height: 1.2; }
h5, .h5 { font-size: 20px; line-height: 1.2; }
h6, .h6 { font-size: 16px; line-height: 1.2; }
.sr-only, .skip-link:not(:focus) {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; background: #fff; padding: 8px 14px; }
.inner { width: 100%; max-width: var(--inner); margin: 0 auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue); color: var(--light);
  font: 400 16px/1 Barlow, sans-serif;
  padding: 14px 40px; border: 0; border-radius: 50px; cursor: pointer;
  transition: background .3s, color .3s;
}
.btn:hover, .btn:focus-visible { background: #0052cc; color: #fff; }
.btn .ico { width: 16px; height: 16px; fill: currentColor; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover, .btn-ghost:focus-visible { background: transparent; color: var(--blue); }
.btn-sm { font-size: 15px; padding: 10px 40px; }
.btn-wrap { margin: 0; }
.ico { width: 1em; height: 1em; fill: currentColor; flex: none; }

/* ---------- header ---------- */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 50; }
.hdr-wrap {
  max-width: 1240px; margin: 0 auto; padding: 0 20px; height: 122px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo img { width: 238px; height: auto; }
.logo .logo-dark { display: none; }
.main-nav { display: flex; align-items: center; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; }
.main-nav li a {
  display: block; padding: 0 17px; line-height: 70px;
  color: rgba(255, 255, 255, .76); font-size: 17px; transition: color .2s;
}
.main-nav li a:hover, .main-nav li a.current { color: #fff; }
.hdr-btn { margin-left: 19px; }
.menu-toggle { display: none; }

/* ---------- shared overlays ---------- */
.overlay-80, .overlay-75, .overlay-65 { position: relative; background-size: cover; background-repeat: no-repeat; }
.overlay-80::before, .overlay-75::before, .overlay-65::before {
  content: ""; position: absolute; inset: 0; background: var(--overlay); pointer-events: none;
}
.overlay-80::before { opacity: .8; }
.overlay-75::before { opacity: .75; }
.overlay-65::before { opacity: .65; }
.overlay-80 > .inner, .overlay-75 > .inner, .overlay-65 > .inner { position: relative; }

/* ---------- call box ---------- */
.call-box { background: var(--blue); padding: 35px; width: 400px; display: flex; flex-direction: column; gap: 20px; }
.call-box h5 { color: var(--light); }
.call-num { color: var(--light); font-size: 32px; line-height: 1.5; font-weight: 700; }
.call-num:hover { color: #fff; }

/* ---------- home hero ---------- */
.hero-home { background: url('/images/window-home-banner.webp') 50% 50% / cover no-repeat; }
.hero-home .inner { padding-top: 11%; }
.hero-row { display: flex; }
.hero-text { width: 66.666%; padding-right: 100px; display: flex; flex-direction: column; gap: 20px; }
.hero-text .kicker { color: #fff; }
.hero-text h1 { color: #fff; }
.hero-text p { color: #fff; }
.hero-text .hero-btn { padding-top: 23px; }
.form-box { width: 33.334%; background: #fff; padding: 30px 35px 10px; display: flex; flex-direction: column; gap: 20px; }
.divider { display: block; width: 50px; border-top: 4px solid var(--light); }
.hero-row2 { display: flex; justify-content: flex-end; }

/* ---------- forms ---------- */
.enquiry .field { padding: 10px 0; }
.enquiry input, .enquiry select, .enquiry textarea {
  width: 100%; display: block; background: #fafafa; border: 1px solid #ddd; border-radius: 2px;
  font: 400 17px/1.3 Barlow, sans-serif; color: #666; padding: 12.75px; height: 56px;
}
.enquiry select { appearance: auto; }
.enquiry textarea { height: 112px; resize: vertical; }
.enquiry input:focus, .enquiry select:focus, .enquiry textarea:focus { outline: 2px solid var(--blue); outline-offset: -1px; background: #fff; }
.enquiry input::placeholder, .enquiry textarea::placeholder { color: #666; opacity: .85; }
.enquiry .submit { padding: 10px 0 20px; }
.enquiry .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0 0 10px; font-size: 16px; line-height: 1.4; }
.form-status:empty { display: none; }
.form-status.ok { color: #0a7a33; font-weight: 700; }
.form-status.err { color: #b42318; font-weight: 700; }
.cf-turnstile { min-height: 65px; }

/* ---------- about ---------- */
.about .inner { display: flex; padding-bottom: 100px; }
.about-text { width: 66.666%; margin-top: 100px; padding: 70px; display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.about-text p { margin-bottom: 27.2px; }
.about-img { width: 33.334%; }
.about-img img { width: 100%; height: 634px; object-fit: cover; }

/* ---------- CTA bands ---------- */
.cta-band .inner { padding: 120px 0; }
.cta-col { width: 60%; padding-right: 100px; display: flex; flex-direction: column; gap: 20px; }
.cta-col .cta-h { color: #fff; }
.cta-col .cta-h-sm { color: #f9fdff; font-size: 31px; line-height: 1.5; }
.page-services .cta-col .cta-h, .page-portfolio .cta-col .cta-h { color: var(--light); }
.cta-col p { color: var(--light); }

/* ---------- home services ---------- */
.home-services .inner { max-width: 1300px; padding: 70px 0 100px; }
.sec-head { max-width: 600px; margin: 10px auto; text-align: center; }
.sec-head h2 { margin-bottom: 10px; }
.sec-head p { margin: 0; }
.cards { display: flex; margin-top: 50px; }
.svc-card {
  width: calc(25% - 24px); margin: 12px; border-radius: 15px; box-shadow: 0 0 15px rgba(64, 78, 92, .15);
  display: flex; flex-direction: column;
}
.svc-card img { width: 100%; aspect-ratio: 380 / 254; height: auto; object-fit: cover; border-radius: 15px 15px 0 0; }
.svc-card h3 { padding: 30px 30px 0; }
.svc-card p { padding: 10px 30px 0; margin-bottom: 27.2px; }
.svc-card .card-btn { margin: auto 0 0; padding: 0 30px 20px; }
.svc-card .btn-ghost { padding: 14px 40px; margin-left: -40px; }

.wave img { width: 100%; height: 58px; object-fit: fill; }

/* ---------- stories ---------- */
.stories .inner { display: flex; padding-top: 100px; }
.stories-img { width: 33.334%; }
.stories-img img { width: 100%; height: 826px; object-fit: cover; }
.stories-text { width: 65%; padding: 0 0 100px 100px; display: flex; flex-direction: column; justify-content: center; }
.stories-head { width: 69%; display: flex; flex-direction: column; gap: 20px; margin-bottom: 30px; }
.stories-head .stories-h { font-size: 39px; line-height: 1; color: var(--text); }
.stories-head p { margin-bottom: 27.2px; }
.testimonial { margin: 0; background: var(--light); padding: 30px; }
.testimonial.t1 { margin-left: 50px; }
.testimonial.t2 { margin: 50px 50px 0 0; }
.testimonial blockquote { margin: 0 0 20px; font-size: 22.1px; line-height: 28.05px; color: var(--text); }
.testimonial figcaption { display: flex; flex-direction: column; line-height: 1.5; }
.t-name { font-size: 17px; color: var(--text); }
.t-job { font-size: 14.45px; color: var(--text); }

/* ---------- reviews ---------- */
.reviews { padding: 0 10px; }
.reviews .inner { padding: 10px 0; display: flex; gap: 10px; }
.review { width: calc((100% - 20px) / 3); }
.review-hd { padding: 15px 15px 6px; display: flex; flex-direction: column; font-size: 14px; line-height: 1.5; }
.review-hd cite { font-style: normal; font-weight: 700; color: #1c2022; }
.stars { display: flex; gap: 2px; color: #f0ad4e; margin-top: 4px; }
.stars .ico { width: 14px; height: 14px; }
.review p { padding: 0 15px 15px; font-size: 14px; line-height: 20px; margin: 0; }

/* ---------- inner page hero ---------- */
.page-hero { background-size: cover; background-repeat: no-repeat; }
.page-hero .inner { padding-top: 15%; }
.page-hero h1 { color: #fff; line-height: 86.4px; }
.hero-call { display: flex; justify-content: flex-end; }

/* ---------- services page ---------- */
.svc-intro { background: var(--light); }
.svc-intro .inner { display: flex; }
.svc-intro-text, .svc-intro-acc { width: 33.333%; padding: 100px 50px 100px 0; display: flex; flex-direction: column; gap: 20px; }
.svc-intro-text p { margin-bottom: 27.2px; }
.svc-intro-img { width: 33.334%; padding-bottom: 100px; }
.svc-intro-img img { width: 100%; height: 634px; object-fit: cover; }
.eyebrow { font-size: 16px; line-height: 1.2; font-weight: 700; color: var(--ink); margin: 0; }
.svc-intro-acc { gap: 0; }
.toggle { background: #fff; }
.toggle summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px;
  padding: 15px; border-bottom: 1px solid var(--light); font-weight: 700; color: var(--text); line-height: 1.65;
}
.toggle summary::-webkit-details-marker { display: none; }
.toggle summary .ico { width: 17px; height: 17px; fill: #000; transition: transform .2s; }
.toggle[open] summary .ico { transform: rotate(-90deg); }
.toggle-body { padding: 15px; border-bottom: 1px solid var(--light); }
.toggle-body p { margin: 0; }
.svc-row .inner { display: flex; }
.svc-img { width: 33.333%; padding: 50px 50px 50px 0; }
.svc-img img { width: 100%; aspect-ratio: 380 / 254; object-fit: cover; }
.svc-text { width: 46%; padding: 50px 40px 50px 0; display: flex; flex-direction: column; gap: 20px; }
.svc-text p { margin: 0; }

/* ---------- portfolio ---------- */
.pf-intro .inner { display: flex; }
.pf-text { width: 46.666%; padding: 180px 0; display: flex; flex-direction: column; gap: 20px; }
.pf-text p { margin-bottom: 27.2px; }
.pf-gap { width: 20%; }
.pf-img { width: 33.4%; background-size: cover; background-position: 50% 0%; min-height: 400px; }
.gallery-sec { background: var(--light); }
.gallery-sec .inner { padding: 100px 0; }
.gallery { display: flex; flex-wrap: wrap; margin-right: -20px; }
.g-item { width: 33.333%; margin: 0; padding: 0 20px 20px 0; }
.g-item img { width: 100%; aspect-ratio: 387 / 272; object-fit: cover; }

/* ---------- contact ---------- */
.contact-main .inner { display: flex; }
.contact-info { width: 48.83%; padding: 100px 50px 100px 0; }
.contact-info > p { margin: 20px 0 27.2px; }
.ib-row { display: flex; gap: 14px; margin-top: 30px; }
.icon-box { width: 50%; display: flex; align-items: center; gap: 15px; padding-right: 30px; }
.ib-icon { width: 45px; height: 45px; border-radius: 50%; background: var(--blue); color: var(--light); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ib-icon .ico { width: 15px; height: 15px; }
.icon-box h3 a { color: var(--ink); word-break: break-word; }
.icon-box h3 a:hover { color: var(--blue); }
.follow { margin-top: 60px; display: flex; flex-direction: column; gap: 20px; }
.socials { display: flex; gap: 8px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.socials .ico { width: 14px; height: 14px; }
.contact-gap { width: 16.25%; }
.contact-form { width: 33.25%; background: rgb(209, 218, 229); padding: 100px 35px; display: flex; flex-direction: column; gap: 20px; }
.contact-form h2 { color: #fff; }
.map iframe { display: block; width: 100%; height: 480px; border: 0; }

/* ---------- simple pages (thank you / 404) ---------- */
.simple .inner { padding: 100px 0; display: flex; flex-direction: column; gap: 20px; }
.simple p { margin: 0; }
.links404 { margin: 0; padding-left: 20px; }

/* ---------- footer ---------- */
.site-footer { background: var(--blue); padding: 35.7px 17px; }
.ftr-wrap { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; gap: 50px; }
.site-footer p { color: #fff; margin: 0; }
.ftr-right { text-align: right; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, .87); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 90vw; max-height: 90vh; text-align: center; }
.lightbox img { max-width: 90vw; max-height: 80vh; width: auto; height: auto; margin: 0 auto; }
.lightbox figcaption { color: #fff; margin-top: 12px; font-size: 16px; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; font-size: 48px; line-height: 1; padding: 10px 16px; }
.lb-close { top: 10px; right: 10px; }
.lb-close .ico { width: 24px; height: 24px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }

/* ---------- laptop / tablet ---------- */
@media (max-width: 1240px) {
  .inner, .home-services .inner { padding-left: 20px; padding-right: 20px; }
  .hero-home .inner { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 1024px) {
  h1 { font-size: 60px; }
  .hero-text { padding-right: 40px; }
  .about-text { padding: 40px; margin-top: 60px; }
  .cta-col { width: 80%; padding-right: 0; }
  .cards { flex-wrap: wrap; }
  .svc-card { width: calc(50% - 24px); }
  .stories-text { padding-left: 40px; }
  .stories-head { width: 100%; }
  .svc-intro .inner { flex-wrap: wrap; }
  .svc-intro-text { width: 100%; padding-bottom: 0; }
  .svc-intro-acc, .svc-intro-img { width: 50%; padding-top: 40px; }
  .svc-intro-img { padding-left: 20px; }
  .svc-text { width: 66.666%; }
  .pf-gap { display: none; }
  .pf-text { width: 60%; padding: 100px 40px 100px 0; }
  .pf-img { width: 40%; }
  .contact-gap { display: none; }
  .contact-info { width: 55%; padding-right: 30px; }
  .contact-form { width: 45%; padding: 60px 30px; }
  .ib-row { flex-direction: column; }
  .icon-box { width: 100%; }
}

/* ---------- mobile header (Astra breakpoint 921px) ---------- */
@media (max-width: 921px) {
  .site-header { position: relative; background: #fff; }
  .hdr-wrap { height: 91px; flex-wrap: wrap; }
  .logo .logo-light { display: none; }
  .logo .logo-dark { display: block; width: 162px; }
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; background: #fff; border: 1px solid var(--blue); border-radius: 2px; color: var(--blue); cursor: pointer; padding: 0;
  }
  .menu-toggle .ico { width: 18px; height: 18px; }
  .menu-toggle .ico + .ico, .menu-toggle[aria-expanded="true"] .ico:first-child { display: none; }
  .menu-toggle[aria-expanded="true"] .ico + .ico { display: block; }
  .main-nav {
    display: none; position: absolute; top: 91px; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: stretch; box-shadow: 0 6px 12px rgba(0, 0, 0, .08); padding-bottom: 20px;
  }
  .main-nav.open { display: flex; }
  .main-nav ul { flex-direction: column; }
  .main-nav li a { color: var(--text); line-height: 1.5; padding: 12px 20px; border-top: 1px solid #eaeaea; }
  .main-nav li a.current, .main-nav li a:hover { color: var(--blue); }
  .hdr-btn { margin: 15px 20px 0; align-self: flex-start; }
  .hero-home .inner { padding-top: 40px; }
  .page-hero .inner { padding-top: 80px; }
}

/* ---------- phones (Elementor breakpoint 767px) ---------- */
@media (max-width: 767px) {
  body { font-size: 15.5px; }
  h1 { font-size: 48px; line-height: 1.08; }
  h2 { font-size: 35px; }
  h3, .h3 { font-size: 26px; }
  .cta-col .cta-h-sm { font-size: 26px; }
  .page-hero h1 { line-height: 1.08; }
  .hero-row, .about .inner, .stories .inner, .svc-intro .inner, .svc-row .inner, .pf-intro .inner, .contact-main .inner { flex-direction: column; }
  .hero-text, .form-box, .about-text, .about-img, .stories-img, .stories-text, .svc-intro-text, .svc-intro-acc, .svc-intro-img,
  .svc-img, .svc-text, .pf-text, .pf-img, .contact-info, .contact-form, .cta-col, .call-box { width: 100%; }
  .hero-text { padding: 0 0 30px; }
  .form-box { padding: 30px 20px 10px; }
  .hero-row2 { margin-bottom: 30px; }
  .call-box { padding: 30px 20px; }
  .call-num { font-size: 26px; }
  .about .inner { padding-bottom: 30px; }
  .about-text { margin-top: 0; padding: 30px 0; }
  .about-img img, .svc-intro-img img { height: auto; }
  .cta-band .inner { padding: 30px 20px; }
  .home-services .inner { padding-top: 30px; padding-bottom: 30px; }
  .cards { margin-top: 20px; }
  .svc-card { width: 100%; margin: 12px 0; }
  .wave img { height: 26px; }
  .stories .inner { padding-top: 30px; }
  .stories-img img { height: auto; }
  .stories-text { padding: 30px 0; }
  .stories-head .stories-h { font-size: 32px; line-height: 1.1; }
  .testimonial.t1, .testimonial.t2 { margin: 20px 0 0; }
  .testimonial blockquote { font-size: 20px; }
  .reviews .inner { flex-direction: column; }
  .review { width: 100%; }
  .page-hero .inner { padding-top: 60px; }
  .hero-call { margin-top: 30px; }
  .svc-intro-text, .svc-intro-acc { padding: 40px 0 0; }
  .svc-intro-img { padding: 30px 0; }
  .svc-img { padding: 30px 0 0; }
  .svc-text { padding: 20px 0 30px; }
  .pf-text { padding: 40px 0; }
  .pf-img { min-height: 500px; }
  .gallery-sec .inner { padding: 40px 20px; }
  .g-item { width: 50%; }
  .contact-info { padding: 40px 0; }
  .contact-form { padding: 40px 20px; margin-bottom: 40px; }
  .ftr-wrap { flex-direction: column; gap: 10px; text-align: center; }
  .ftr-right { text-align: center; }
  .simple .inner { padding: 40px 20px; }
}
@media (max-width: 480px) {
  .g-item { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
