:root {
  /* Colors */
  --bg-body: #ffffff;
  --bg-surface: #f8f9fa;
  --bg-dark: #1e293b;
  
  --text-main: #1f2937;
  --text-muted: #4b5563;
  --text-light: #f3f4f6;

  --primary: #c0392b; /* Brick Red - professional & energetic */
  --primary-hover: #a93226;
  --secondary: #2c3e50; /* Dark Blue/Slate - trustworthy */
  
  --border: #e5e7eb;
  
  /* Dimensions */
  --container-width: 1200px;
  --header-height: 80px;
  --radius: 4px; /* More angular, "construction" feel */
}

/* Base */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-body);
  line-height: 1.5;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--primary-hover);
}

/* Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  padding: 10px;
  background: var(--primary);
  color: white;
  z-index: 100;
  transform: translateY(-100%);
  transition: transform 0.2s;
}
.skip-link:focus {
  transform: translateY(0);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.btn--primary {
  background-color: var(--primary);
  color: white;
}
.btn--primary:hover {
  background-color: var(--primary-hover);
  color: white;
}

.btn--outline {
  background-color: transparent;
  border-color: white;
  color: white;
}
.btn--outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.btn--secondary {
  background-color: var(--bg-surface);
  color: var(--text-main);
  border-color: var(--border);
}
.btn--secondary:hover {
  background-color: #e2e8f0;
  color: var(--text-main);
}

/* Header */
.header {
  height: var(--header-height);
  background: white;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--secondary);
  font-weight: 800;
  font-size: 1.25rem;
}

.brand__logo {
  height: 64px;
  width: auto;
}

.nav {
  display: flex;
  gap: 24px;
}

.nav__link {
  color: var(--text-main);
  font-weight: 600;
  padding: 8px 0;
  position: relative;
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--primary);
}

.nav__link.is-active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
}

.header__cta {
  display: flex;
  align-items: center;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
}

/* Mobile Nav Styles */
@media (max-width: 900px) {
  .nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }
  
  .header[data-nav-open="true"] .nav {
    display: flex;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .header__cta {
    display: none; /* Hide CTA button on mobile header to save space */
  }
}

/* Hero Section */
.hero {
  position: relative;
  background-color: var(--secondary);
  color: white;
  /* Full bleed background image handling */
  background-image: linear-gradient(rgba(30, 41, 59, 0.85), rgba(30, 41, 59, 0.75)), url('/img/hero-roof-copper.jpg');
  background-size: cover;
  background-position: center;
  padding: 100px 0;
}

.hero__content {
  max-width: 700px;
}

.hero__subtitle {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fbbf24; /* Amber accent for subtitle */
  margin-bottom: 16px;
}

.hero__title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 24px 0;
}

.hero__lead {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Sections */
.section {
  padding: 80px 0;
}

.section--bg {
  background-color: var(--bg-surface);
}

.section__header {
  text-align: center;
  margin-bottom: 48px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section__title {
  font-size: 2.25rem;
  color: var(--secondary);
  margin: 0 0 16px 0;
}

.section__title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* Cards (Services) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.service-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  border-color: var(--primary);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  color: var(--primary);
  margin-bottom: 16px;
}

.service-card__icon svg {
  width: 100%;
  height: 100%;
}

.service-card__title {
  font-size: 1.5rem;
  color: var(--secondary);
  margin: 0 0 12px 0;
}

.service-card__text {
  color: var(--text-muted);
  margin: 0;
}

/* Content Area */
.content-block {
  display: flex;
  gap: 40px;
  align-items: center;
}

@media (max-width: 800px) {
  .content-block {
    flex-direction: column;
  }
}

.content-block__text {
  flex: 1;
}

.content-block__image {
  flex: 1;
}

.content-block__image img {
  border-radius: var(--radius);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Certificates */
.certificates {
  display: flex;
  gap: 16px;
  margin: 24px 0;
}

.certificates a {
  display: block;
  transition: transform 0.2s;
}

.certificates a:hover {
  transform: scale(1.05);
}

.certificates img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

@media (max-width: 600px) {
  .certificates img {
    width: 80px;
    height: 80px;
  }
}

/* Footer */
.footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 60px 0 20px;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.footer__col h3 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 24px;
}

.footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__list li {
  margin-bottom: 12px;
}

.footer__list a {
  color: #9ca3af;
}

.footer__list a:hover {
  color: white;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  color: #6b7280;
  font-size: 0.875rem;
}

/* Sticky Phone Button (Mobile) */
.sticky-phone {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--primary);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(233, 75, 60, 0.4);
  z-index: 99;
  font-size: 24px;
}

@media (min-width: 900px) {
  .sticky-phone { display: none; }
}

/* Page Header */
.page-header {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 80px 0;
  margin-bottom: 60px;
  text-align: center;
  background-size: cover;
  background-position: center;
}

.page-header__title {
  font-size: 3rem;
  color: var(--secondary);
  margin: 0 0 16px 0;
}

.page-header__desc {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin: 0 auto;
  max-width: 600px;
  font-weight: 500;
}

/* Subpage Content */
.content {
  max-width: 960px; /* Wider to accommodate split layout */
  padding-bottom: 60px;
}

.content h2 {
  font-size: 1.75rem;
  color: var(--secondary);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.content h3 {
  font-size: 1.25rem;
  color: var(--secondary);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.content p {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* Split Layout */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin: 40px 0;
}

.split-layout img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  margin: 0;
}

@media (max-width: 768px) {
  .split-layout {
    grid-template-columns: 1fr;
  }
  .split-layout img {
    order: -1; /* Image on top on mobile */
    max-height: 300px;
    object-fit: cover;
  }
}

/* Styled Lists */
.list-check {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}

.list-check li {
  position: relative;
  padding-left: 32px;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.list-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  background: rgba(192, 57, 43, 0.1);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.8rem;
}

/* CTA Box */
.cta-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  margin-top: 60px;
}

.cta-box h3 {
  margin-top: 0;
  font-size: 1.5rem;
  color: var(--secondary);
}

.cta-box p {
  margin-bottom: 24px;
}

/* Media Grid for Certificates/Gallery */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.certificate-item {
  text-align: center;
}

.certificate-caption {
  margin-top: 12px;
  font-weight: 700;
  color: var(--secondary);
  font-size: 0.95rem;
}

.media-grid a {
  display: block;
  transition: transform 0.2s;
}

.media-grid a:hover {
  transform: translateY(-4px);
}

.media-grid img {
  margin: 0;
  width: 100%;
  height: auto;
  aspect-ratio: 1; /* Keep them square-ish if possible, or object-fit */
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* Partners Grid */
.partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px 60px;
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.2s, transform 0.2s;
  filter: grayscale(100%);
}

.partner-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.05);
}

.partner-logo img {
  max-height: 65px;
  max-width: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
}

@media (max-width: 600px) {
  .partners-grid {
    gap: 30px 40px;
  }
  .partner-logo img {
    max-height: 40px;
    max-width: 120px;
  }
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-question {
  display: block;
  padding: 20px 40px 20px 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--secondary);
  cursor: pointer;
  position: relative;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform 0.2s;
}

.faq-item[open] .faq-question::after {
  content: '−';
}

.faq-question:hover {
  color: var(--primary);
}

.faq-answer {
  padding: 0 0 20px 0;
}

.faq-answer p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-main);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #9ca3af;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.lightbox[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.lightbox__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}

.lightbox__content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  z-index: 1001;
  opacity: 0;
  transform: scale(0.95);
  transition: transform 0.3s, opacity 0.3s;
}

.lightbox[aria-hidden="false"] .lightbox__content {
  opacity: 1;
  transform: scale(1);
}

.lightbox__image {
  max-width: 100%;
  max-height: 90vh;
  display: block;
  border-radius: 4px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.lightbox__close {
  position: absolute;
  top: -40px;
  right: -40px;
  background: transparent;
  border: none;
  color: white;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 10px;
  transition: transform 0.2s;
}

.lightbox__close:hover {
  transform: scale(1.1);
}

@media (max-width: 600px) {
  .lightbox__close {
    top: -40px;
    right: 0;
  }
}