*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #111827;
  background-color: #f3f4f6;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.section {
  padding: 5rem 0;
  background: #ffffff;
  color: #111827;
}

.section-muted {
  background: #e5edf7;
}

.section-split .section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.section-header.centered {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: #fbbf24;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

h1,
h2,
h3 {
  margin: 0 0 0.8rem;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.4rem, 3vw + 1.2rem, 3.4rem);
  color: #111827;
}

h2 {
  font-size: clamp(1.8rem, 1.5vw + 1.1rem, 2.4rem);
  color: #111827;
}

h3 {
  font-size: 1.1rem;
  color: #111827;
}

p {
  margin: 0 0 1rem;
  color: #111827;
}

.small {
  font-size: 0.8rem;
  color: #4b5563;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease,
    border-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #0f3460, #fbbf24);
  border-color: rgba(15, 23, 42, 0.4);
  color: #ffffff;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 45px rgba(15, 52, 96, 0.55);
}

.btn-outline {
  border-color: rgba(148, 163, 184, 0.8);
  background: #ffffff;
  color: #0f3460;
}

.btn-outline:hover {
  background: #f3f4f6;
  border-color: #0f3460;
}

.btn-small {
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
}

.btn-block {
  width: 100%;
}

.btn-hero {
  font-size: 1.05rem;
  padding: 1rem 2rem;
}

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: linear-gradient(
    to bottom,
    rgba(15, 52, 96, 0.98),
    rgba(15, 52, 96, 0.94),
    transparent
  );
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  height: 64px;
  width: auto;
  object-fit: contain;
  background: transparent;
  padding: 0;
  filter: drop-shadow(0 6px 14px rgba(15, 23, 42, 0.45));
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 0.98rem;
  font-weight: 600;
  color: #f9fafb;
}

.brand-tagline {
  font-size: 0.7rem;
  color: #e5e7eb;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: 0.9rem;
  color: #f9fafb;
}

.main-nav a {
  position: relative;
}

.main-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #fbbf24, #facc15);
  transition: width 0.2s ease;
}

.main-nav a:not(.btn):hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.9);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.2rem;
  height: 2px;
  background: #e5e7eb;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  margin-inline: auto;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 7rem 0 5rem;
  overflow: hidden;
  color: #f9fafb;
  background-color: #0f172a;
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image: url("assets/roof-hero.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  filter: none;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.75));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  background: rgba(249, 250, 251, 0.96);
  border-radius: 1.25rem;
  padding: 1.75rem 2rem 2rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.55);
  color: #111827;
}

.hero-subtitle {
  font-size: 1rem;
  color: #111827;
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.4rem 0 2.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.stat {
  padding: 0.9rem 1rem;
  border-radius: 1.2rem;
  background: #f9fafb;
  border: 1px solid rgba(209, 213, 219, 0.9);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
}

.stat-number {
  display: block;
  font-size: 1.4rem;
  font-weight: 600;
  color: #0f3460;
}

.stat-label {
  font-size: 0.8rem;
  color: #6b7280;
}

.image-stack {
  position: relative;
}

.image-main {
  border-radius: 1.4rem;
  border: 1px solid rgba(209, 213, 219, 0.9);
  box-shadow:
    0 14px 30px rgba(15, 23, 42, 0.35),
    0 0 0 1px rgba(15, 23, 42, 0.05);
}

.image-main.tall {
  max-height: 520px;
  object-fit: cover;
}

.image-secondary {
  position: absolute;
  right: -10%;
  bottom: -10%;
  width: 55%;
  border-radius: 1rem;
  border: 1px solid rgba(209, 213, 219, 0.9);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.35);
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.pill {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: #f3f4f6;
  border: 1px solid rgba(209, 213, 219, 0.9);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}

.feature-card {
  padding: 1.3rem 1.3rem 1.5rem;
  border-radius: 1.4rem;
  background: #ffffff;
  border: 1px solid rgba(209, 213, 219, 0.9);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.service-card {
  position: relative;
  padding: 1.6rem 1.4rem 1.6rem;
  border-radius: 1.4rem;
  background: #ffffff;
  border: 1px solid rgba(209, 213, 219, 0.9);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at top, rgba(251, 191, 36, 0.2), transparent 55%);
  opacity: 0;
  transform: translateY(15%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.service-card:hover::before {
  opacity: 1;
  transform: translateY(0);
}

.service-icon {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(145deg, #0f3460, #fbbf24);
  margin-bottom: 0.8rem;
  box-shadow: 0 10px 25px rgba(15, 52, 96, 0.5);
}

.process-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  display: grid;
  gap: 1rem;
}

.process-list li {
  padding: 1rem 1rem 1.1rem;
  border-radius: 1.1rem;
  background: #ffffff;
  border: 1px solid rgba(209, 213, 219, 0.9);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.project-card {
  position: relative;
  border-radius: 1.4rem;
  overflow: hidden;
  border: 1px solid rgba(209, 213, 219, 0.9);
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.project-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-card figcaption {
  padding: 1.1rem 1.2rem 1.3rem;
}

.section-cta {
  background: linear-gradient(135deg, #0f3460, #1d4ed8);
  color: #f9fafb;
}

.section-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: start;
}

.contact-details p {
  margin-bottom: 0.5rem;
}

.contact-form {
  padding: 1.6rem 1.8rem 1.8rem;
  border-radius: 1.4rem;
  background: #ffffff;
  border: 1px solid rgba(209, 213, 219, 0.9);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.9rem;
}

.form-field label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #374151;
}

input,
select,
textarea {
  font: inherit;
  color: #111827;
  background: #f9fafb;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 0.55rem 0.8rem;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #fbbf24;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.45);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.form-note {
  margin-top: 0.6rem;
}

.site-footer {
  padding: 1.5rem 0 2rem;
  background: #111827;
  color: #e5e7eb;
  border-top: 1px solid rgba(31, 41, 55, 1);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
  background: transparent;
  padding: 0;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideLeft {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideRight {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes zoomInSoft {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.animate-fade-up,
.animate-slide-left,
.animate-slide-right,
.animate-zoom-in,
.animate-slide-up {
  opacity: 0;
  transform: translateY(10px);
  will-change: transform, opacity;
}

.in-view.animate-fade-up {
  animation: fadeUp 0.6s ease both;
}

.in-view.animate-slide-left {
  animation: slideLeft 0.6s ease both;
}

.in-view.animate-slide-right {
  animation: slideRight 0.6s ease both;
}

.in-view.animate-zoom-in {
  animation: zoomInSoft 0.6s ease both;
}

.in-view.animate-slide-up {
  animation: fadeUp 0.6s ease both;
}

@media (max-width: 1024px) {
  .section-split .section-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr);
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-grid,
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .brand {
    gap: 0.45rem;
  }

  .brand-logo {
    height: 52px;
    width: auto;
  }

  .brand-name {
    font-size: 0.85rem;
  }

  .brand-tagline {
    font-size: 0.62rem;
  }

  .header-inner {
    padding-inline: 0.25rem;
  }

  .main-nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    padding: 0.75rem 1.1rem 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(209, 213, 219, 0.9);
    transform-origin: top;
    transform: scaleY(0.9);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  .main-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: scaleY(1);
    color: #111827;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero {
    min-height: 80vh;
    padding-top: 6.2rem;
  }

  .hero-content {
    text-align: left;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-hero {
    width: 100%;
    justify-content: center;
    padding: 0.95rem 1.3rem;
    font-size: 1rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3.7rem 0;
  }

  .section-split .section-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .image-secondary {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 1rem;
    width: 80%;
  }

  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-grid,
  .project-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-logo {
    height: 32px;
    width: auto;
  }
}
