:root {
  --dark: #181818;
  --dark-2: #232323;
  --accent: #d8432c;
  --accent-dark: #b8341f;
  --gray: #6b6b6b;
  --light-bg: #f6f5f3;
  --border: #e7e5e1;
  --font-head: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: #2b2b2b;
  line-height: 1.65;
  background: #fff;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); font-weight: 700; line-height: 1.25; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.section { padding: 5rem 0; }

.btn {
  display: inline-block;
  padding: 0.85rem 1.8rem;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-outline { border-color: var(--dark); color: var(--dark); background: transparent; }
.btn-outline:hover { background: var(--dark); color: #fff; }

/* Topbar */
.topbar { background: var(--dark); color: #cfcfcf; font-size: 0.85rem; }
.topbar-inner { display: flex; justify-content: flex-end; gap: 1.75rem; padding: 0.5rem 24px; flex-wrap: wrap; }
.topbar-contact span { margin-right: 0; }
.topbar-contact a { color: #cfcfcf; }
.topbar-contact a:hover { color: var(--accent); }
.topbar-address-link { color: #cfcfcf; }
.topbar-address-link:hover { color: var(--accent); }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; gap: 2rem; padding: 0.8rem 24px; }
.logo img { height: 52px; width: auto; }
.main-nav { flex: 1; }
.main-nav ul { list-style: none; display: flex; gap: 1.75rem; align-items: center; }
.main-nav > ul > li { position: relative; }
.main-nav a { font-weight: 600; font-size: 0.95rem; color: var(--dark); padding: 0.5rem 0; display: block; }
.main-nav > ul > li > a:hover, .main-nav > ul > li.active > a { color: var(--accent); }
.main-nav .dropdown {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  background: #fff;
  min-width: 220px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
  border-top: 3px solid var(--accent);
  padding: 0.5rem 0;
  list-style: none;
  z-index: 50;
}
.main-nav .has-dropdown:hover .dropdown { display: block; }
.main-nav .dropdown li a { padding: 0.6rem 1.25rem; font-weight: 500; }
.main-nav .dropdown li a:hover { background: var(--light-bg); color: var(--accent); }
.header-cta { white-space: nowrap; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; }

/* Hero */
.hero-slider { position: relative; height: 88vh; min-height: 520px; overflow: hidden; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1s ease;
  display: flex; align-items: center;
}
.hero-slide.active { opacity: 1; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,10,0.75) 0%, rgba(10,10,10,0.35) 60%, rgba(10,10,10,0.15) 100%); }
.hero-content { position: relative; z-index: 2; color: #fff; max-width: 640px; }
.hero-content h1, .hero-content h2 { font-size: 3rem; margin-bottom: 1rem; font-family: var(--font-head); font-weight: 700; line-height: 1.25; }
.hero-content h1 span, .hero-content h2 span { display: block; color: var(--accent); }
.hero-content p { font-size: 1.15rem; margin-bottom: 1.75rem; color: #eee; }
.hero-dots { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.6rem; z-index: 3; }
.hero-dots button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; padding: 0; }
.hero-dots button.active { background: var(--accent); border-color: var(--accent); }

/* Page banner */
.page-banner { background: var(--dark); color: #fff; padding: 3.5rem 0; text-align: center; }
.page-banner h1 { font-size: 2.4rem; margin-bottom: 0.5rem; }
.breadcrumb { color: #aaa; font-size: 0.95rem; }
.breadcrumb a { color: #ddd; }
.breadcrumb a:hover { color: var(--accent); }

/* Section heading */
.section-heading { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-heading h2 { font-size: 2.1rem; margin-bottom: 0.75rem; }
.section-heading p { color: var(--gray); font-size: 1.05rem; }
.section-heading.light h2, .section-heading.light p { color: #fff; }
.section-heading.light p { color: #cfcfcf; }

/* Intro / service highlight */
.intro-section .intro-grid { text-align: center; max-width: 780px; margin: 0 auto 3rem; }
.intro-section h1, .intro-section h2 { font-size: 2rem; margin-bottom: 1rem; }
.intro-section p { color: var(--gray); }
.intro-section-hero { padding-top: 2rem; padding-bottom: 0.5rem; background: var(--light-bg); }
.cert-section-tight { padding-top: 0.5rem; padding-bottom: 1.5rem; }
.service-highlight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.service-highlight-card { background: var(--light-bg); border: 1px solid var(--border); padding: 2rem; border-radius: 6px; text-align: center; display: flex; flex-direction: column; height: 100%; }
.service-highlight-card h3 { margin-bottom: 0.75rem; }
.service-highlight-card p { color: var(--gray); margin-bottom: 1.25rem; }
.service-highlight-card .btn { margin-top: auto; align-self: center; }

/* About */
.about-section, .about-page { background: var(--light-bg); }
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3rem; align-items: center; }
.about-media img { border-radius: 8px; }
.about-copy h2 { font-size: 2rem; margin-bottom: 1rem; }
.about-copy p { margin-bottom: 1rem; color: #3a3a3a; }
.about-copy .btn { margin-top: 0.5rem; }

/* Small services */
.small-services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.small-service-card { border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.small-service-card img { height: 180px; width: 100%; object-fit: cover; }
.small-service-card p { padding: 1rem 1.25rem 0.25rem; color: var(--gray); font-size: 0.95rem; }
.small-service-card a { display: block; padding: 0 1.25rem 1.25rem; font-weight: 600; color: var(--accent); }

/* Video section */
.video-section { position: relative; background-size: cover; background-position: center; padding: 6rem 0; }
.video-overlay { position: absolute; inset: 0; background: rgba(10,10,10,0.68); }
.video-content { position: relative; z-index: 2; color: #fff; text-align: center; max-width: 720px; margin: 0 auto; }
.video-content h2 { font-size: 2.2rem; margin-bottom: 1rem; }
.video-content p { color: #ddd; font-size: 1.1rem; }

/* Project slideshow */
.project-slideshow-section { padding-top: 0; }
.slideshow { position: relative; height: 620px; border-radius: 8px; overflow: hidden; background: #101010; }
.slideshow-slide {
  position: absolute; inset: 0;
  background-size: contain; background-repeat: no-repeat; background-position: center;
  opacity: 0; transition: opacity 1s ease;
}
.slideshow-slide.active { opacity: 1; }
.slideshow-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(20,20,20,0.55); color: #fff; border: none;
  font-size: 1.1rem; cursor: pointer; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease;
}
.slideshow-arrow:hover { background: var(--accent); }
.slideshow-arrow.prev { left: 1.25rem; }
.slideshow-arrow.next { right: 1.25rem; }
.slideshow-dots { position: absolute; bottom: 1.25rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.6rem; z-index: 3; }
.slideshow-dots button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; padding: 0; }
.slideshow-dots button.active { background: var(--accent); border-color: var(--accent); }
@media (max-width: 720px) {
  .slideshow { height: 360px; }
}

/* Difference */
.difference-section, .difference-section-light { background: var(--dark); }
.difference-section-light { background: var(--light-bg); padding: 5rem 0; }
.difference-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.difference-card { background: var(--dark-2); padding: 2rem; border-radius: 6px; border-top: 3px solid var(--accent); }
.difference-section-light .difference-card { background: #fff; border: 1px solid var(--border); border-top: 3px solid var(--accent); }
.difference-card h3 { color: #fff; margin-bottom: 0.75rem; font-size: 1.2rem; }
.difference-section-light .difference-card h3 { color: var(--dark); }
.difference-card p { color: #c9c9c9; margin-bottom: 1rem; font-size: 0.95rem; }
.difference-section-light .difference-card p { color: var(--gray); }
.difference-card a { color: var(--accent); font-weight: 600; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.gallery-grid-4up { grid-template-columns: repeat(4, 1fr); }
.gallery-card { position: relative; border-radius: 6px; overflow: hidden; }
.gallery-card img { height: 260px; width: 100%; object-fit: cover; }
.gallery-card h3, .gallery-card p { padding: 0 0.25rem; }
.gallery-card h3 { margin-top: 0.9rem; }
.gallery-card p { color: var(--gray); font-size: 0.9rem; }
a.gallery-card { display: block; color: inherit; text-decoration: none; transition: transform 0.2s ease; }
a.gallery-card:hover { transform: translateY(-4px); }
a.gallery-card:hover img { opacity: 0.9; }
a.gallery-card h3 { color: var(--accent); }

/* Testimonials */
.testimonials-section { background: var(--light-bg); }
.testimonials-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.testimonial-card { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 1.75rem; text-align: center; display: flex; flex-direction: column; height: 100%; }
.testimonial-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem; }
.testimonial-card p { color: #3a3a3a; margin-bottom: 1rem; font-style: italic; }
.testimonial-card h4 { color: var(--accent); font-size: 0.95rem; margin-top: auto; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--light-bg); border: 1px solid var(--border); border-radius: 6px; padding: 1.1rem 1.4rem; margin-bottom: 1rem; }
.faq-item summary { font-weight: 600; cursor: pointer; font-size: 1.05rem; }
.faq-item p, .faq-item ol { margin-top: 0.85rem; color: #3a3a3a; }
.faq-item ol { padding-left: 1.25rem; }
.faq-item li { margin-bottom: 0.4rem; }

/* Brands */
.brands-section { padding: 3rem 0; }
.brands-row { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; opacity: 0.85; }
.brands-row img { height: 42px; width: auto; object-fit: contain; filter: grayscale(20%); }
.brand-link { display: inline-block; transition: transform 0.2s ease; cursor: pointer; }
.brand-link:hover { transform: translateY(-3px); }
.brand-link:hover img { filter: grayscale(0%); }

/* Certified installer badges */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.cert-card { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 1.5rem; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; text-decoration: none; color: inherit; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.cert-card:hover { transform: translateY(-3px); box-shadow: 0 4px 14px rgba(0,0,0,0.08); }
.cert-card img { max-height: 110px; width: auto; max-width: 100%; margin: 0 auto; }
.cert-badge { width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 1.3rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.cert-card h3 { margin-bottom: 0.25rem; }
.cert-card p { color: var(--gray); font-size: 0.9rem; margin: 0; }

/* Footer KPMF badge */
.footer-kpmf { display: inline-block; margin-top: 0.85rem; }
.footer-kpmf-logo { height: 38px; width: auto; background: #fff; padding: 4px 8px; border-radius: 4px; }

/* Service detail pages */
.service-subnav { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 2rem auto 3rem; }
.service-subnav a { padding: 0.6rem 1.1rem; border: 1px solid var(--border); border-radius: 3px; font-weight: 600; font-size: 0.9rem; color: var(--dark); }
.service-subnav a.active, .service-subnav a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.service-detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; }
.service-hero-img { border-radius: 6px; margin-bottom: 1.75rem; height: 320px; width: 100%; object-fit: cover; }
.service-detail-main h2 { font-size: 1.9rem; margin-bottom: 1rem; }
.service-detail-main p { margin-bottom: 1rem; color: #3a3a3a; }
.check-list { list-style: none; margin: 1.25rem 0; columns: 2; column-gap: 2rem; }
.check-list li { padding: 0.35rem 0 0.35rem 1.3rem; position: relative; color: #3a3a3a; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.divider-img { margin: 2rem 0; opacity: 0.5; }
.cta-line { font-weight: 600; }
.callback-box { background: var(--dark); color: #fff; padding: 2rem; border-radius: 6px; text-align: center; }
.callback-box h4 { margin-bottom: 0.5rem; }
.callback-box p { color: #ccc; margin-bottom: 1.25rem; }
.callback-form input { width: 100%; padding: 0.75rem 1rem; border-radius: 3px; border: none; margin-bottom: 0.85rem; }
.callback-form .btn { width: 100%; }
.quality-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 3rem; }
.quality-card { background: var(--light-bg); border-top: 3px solid var(--accent); border-radius: 6px; padding: 1.75rem; }
.quality-card h3 a { color: var(--dark); }
.quality-card p { color: var(--gray); margin-top: 0.6rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; }
.contact-info-card { background: var(--light-bg); border-left: 3px solid var(--accent); padding: 1.25rem 1.5rem; border-radius: 4px; margin-bottom: 1.25rem; }
.contact-info-card h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.contact-info-card a { color: var(--accent); font-weight: 600; }
.contact-form, .application-copy form { display: flex; flex-direction: column; gap: 0.9rem; margin-top: 1.25rem; }
.contact-form input, .contact-form textarea,
.application-copy input, .application-copy textarea {
  padding: 0.85rem 1rem; border: 1px solid var(--border); border-radius: 4px; font-family: var(--font-body); font-size: 0.95rem;
}
.contact-form .btn, .application-copy .btn { align-self: flex-start; }
.contact-map-col iframe { border-radius: 6px; min-height: 450px; }

/* Application */
.application-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3rem; align-items: start; }
.application-media img { border-radius: 6px; }
.application-copy h2 { font-size: 2rem; margin-bottom: 0.5rem; }
.checkbox-label { font-weight: 600; margin-top: 0.5rem; }
.checkbox-row { display: flex; align-items: center; gap: 0.6rem; font-weight: 500; }
.checkbox-row input { width: auto; }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.blog-card { border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.blog-card img { height: 190px; width: 100%; object-fit: cover; }
.blog-card h3 { padding: 1.1rem 1.25rem 0; font-size: 1.1rem; }
.blog-card p { padding: 0.6rem 1.25rem 0; color: var(--gray); font-size: 0.92rem; }
.blog-card a { display: block; padding: 0.9rem 1.25rem 1.25rem; font-weight: 600; color: var(--accent); }

/* Footer */
.site-footer { background: var(--dark); color: #c9c9c9; padding-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-logo { height: 46px; margin-bottom: 1rem; }
.footer-phone a { color: var(--accent); font-weight: 700; font-size: 1.1rem; }
.footer-email { margin-bottom: 0.4rem; }
.footer-email a { color: #c9c9c9; }
.footer-email a:hover { color: var(--accent); }
.footer-address-link { color: #c9c9c9; }
.footer-address-link:hover { color: var(--accent); }
.footer-col h6 { color: #fff; font-size: 1rem; margin-bottom: 1.1rem; text-transform: uppercase; letter-spacing: 0.04em; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.65rem; }
.footer-col a:hover { color: var(--accent); }
.footer-note p { font-size: 0.9rem; margin-bottom: 1rem; }
.footer-bottom { border-top: 1px solid #333; padding: 1.25rem 0; text-align: center; font-size: 0.85rem; color: #999; }
.btn-facebook {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #1877f2; color: #fff; font-weight: 600; font-size: 0.85rem;
  padding: 0.55rem 1.1rem; border-radius: 3px; transition: background 0.2s ease;
  margin-top: 1rem; align-self: flex-start;
}
.btn-facebook::before { content: "f"; font-family: Georgia, serif; font-weight: 700; font-style: italic; }
.btn-facebook:hover { background: #145dbf; color: #fff; }

/* Responsive */
@media (max-width: 980px) {
  .about-grid, .application-grid, .service-detail-grid, .contact-grid { grid-template-columns: 1fr; }
  .service-highlight-grid, .small-services-grid, .difference-grid, .gallery-grid, .testimonials-grid, .blog-grid, .footer-grid, .quality-row, .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .check-list { columns: 1; }
}
@media (max-width: 720px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    z-index: 90;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .main-nav > ul > li { width: 100%; border-bottom: 1px solid var(--border); }
  .main-nav a { padding: 0.9rem 1.5rem; }
  .main-nav .dropdown {
    display: none;
    position: static;
    box-shadow: none;
    border-top: none;
    padding: 0;
    min-width: 0;
    background: var(--light-bg);
  }
  .main-nav .has-dropdown.open > .dropdown { display: block; }
  .main-nav .dropdown li a { padding-left: 2.25rem; }
  .header-inner { position: relative; justify-content: center; }
  .nav-toggle { display: block; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); }
  .header-cta { display: none; }
  .hero-content h1, .hero-content h2 { font-size: 2.1rem; }
  .service-highlight-grid, .small-services-grid, .difference-grid, .gallery-grid, .testimonials-grid, .blog-grid, .footer-grid, .quality-row, .cert-grid { grid-template-columns: 1fr; }
  .topbar-inner { flex-direction: column; justify-content: center; text-align: center; gap: 0.3rem; }
  .topbar-address-link { white-space: nowrap; font-size: 0.7rem; }
  .brands-row { justify-content: center; text-align: center; }
}
