/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Montserrat:wght@500;600;700;800&display=swap');

/* Variables */
:root {
  --primary: #FFB703; /* Sunburst Yellow */
  --primary-dark: #FB8500;
  --secondary: #023047; /* Deep Navy Blue */
  --accent: #219EBC; /* Cyan */
  --light-bg: #F8F9FA;
  --dark-bg: #121212;
  --text-dark: #333333;
  --text-light: #F5F5F5;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
  --radius: 8px;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background-color: #FFFFFF;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  color: var(--secondary);
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section {
  padding: 80px 0;
}

/* Typography Utilities */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--primary);
  border-radius: 2px;
}

.section-kicker {
  max-width: 650px;
  margin: 0 auto;
  color: #5e6670;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--secondary);
  box-shadow: 0 4px 15px rgba(255, 183, 3, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 183, 3, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: var(--light-bg);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background-color: var(--primary);
  color: var(--secondary);
  transform: translateY(-3px);
}

/* Navigation */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(2, 48, 71, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 15px 0;
  transition: var(--transition);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo span {
  color: var(--light-bg);
}

.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
}

.nav-links li a {
  color: var(--light-bg);
  font-weight: 500;
  font-size: 0.96rem;
}

.nav-links li a:hover {
  color: var(--primary);
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  color: var(--light-bg);
  cursor: pointer;
  background: transparent;
  border: 0;
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  position: relative;
  background-color: var(--secondary);
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(2, 48, 71, 0.92), rgba(2, 48, 71, 0.58) 52%, rgba(2, 48, 71, 0.2));
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 3;
}

.hero-content {
  max-width: 600px;
  animation: fadeUp 1s ease forwards;
}

.hero h1 {
  color: var(--light-bg);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero p {
  color: #EEF5F8;
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.hero-btns {
  display: flex;
  gap: 15px;
}

/* Trust Bar */
.trust-bar {
  background-color: var(--primary);
  padding: 20px 0;
}
.trust-bar .container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}
.trust-item {
  color: var(--secondary);
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Recent Work */
.recent-work {
  background: #fff;
}

.work-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 34px;
}

.work-intro .section-title {
  margin-bottom: 18px;
}

.work-intro p,
.portfolio-intro p {
  color: #5e6670;
  max-width: 680px;
}

.work-link {
  color: var(--secondary);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  white-space: nowrap;
}

.work-link i {
  color: var(--primary-dark);
  margin-left: 8px;
}

.work-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.75fr);
  gap: 18px;
}

.work-gallery figure {
  position: relative;
  overflow: hidden;
  background: #e8edf0;
  border-radius: var(--radius);
}

.work-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-main {
  aspect-ratio: 16 / 10;
}

.work-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 18px;
}

.work-stack figure {
  min-height: 0;
}

.work-gallery figcaption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  max-width: calc(100% - 36px);
  padding: 9px 12px;
  background: rgba(2, 48, 71, 0.92);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 5px;
}

/* Services Preview */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  background: #FFF;
  padding: 40px 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
  border: 1px solid rgba(2, 48, 71, 0.06);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.service-icon {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 20px;
}

/* About / Why Choose Us */
.about-section {
  background-color: var(--light-bg);
}
.about-flex {
  display: flex;
  align-items: center;
  gap: 50px;
}
.about-img {
  flex: 1;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.about-text {
  flex: 1;
}
.about-list li {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.about-list li i {
  color: var(--primary);
  margin-top: 5px;
}

.page-header {
  padding: 150px 0 80px;
  background:
    linear-gradient(90deg, rgba(2, 48, 71, 0.94), rgba(2, 48, 71, 0.78)),
    url('../assets/images/residential-rooftop-array.jpg') center 38%/cover;
  color: var(--light-bg);
  text-align: center;
}

.page-header h1 {
  color: var(--light-bg);
  font-size: 3rem;
  margin-bottom: 20px;
}

.page-header p {
  font-size: 1.2rem;
  opacity: 0.92;
  max-width: 800px;
  margin: 0 auto;
}

.projects-header {
  background:
    linear-gradient(90deg, rgba(2, 48, 71, 0.92), rgba(2, 48, 71, 0.62)),
    url('../assets/images/large-residential-roof-array.jpg') center 36%/cover;
}

.services-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
}

.service-row {
  display: flex;
  align-items: flex-start;
  gap: 25px;
  padding: 30px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(2, 48, 71, 0.06);
}

.service-row i {
  font-size: 2.5rem;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 5px;
}

.contact-info-card,
.quote-form {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(2, 48, 71, 0.06);
}

.portfolio-intro {
  max-width: 760px;
  margin-bottom: 42px;
}

.portfolio-intro .section-title {
  margin-bottom: 20px;
}

.portfolio-showcase {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

.project-photo {
  grid-column: span 6;
  margin: 0;
  background: #fff;
  border-bottom: 3px solid var(--primary);
}

.project-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e8edf0;
}

.project-featured {
  grid-column: span 8;
}

.project-featured img {
  aspect-ratio: 16 / 9;
}

.project-square {
  grid-column: span 4;
}

.project-square img {
  aspect-ratio: 1 / 1;
}

.project-wide {
  grid-column: span 7;
}

.project-tall {
  grid-column: span 5;
}

.project-light {
  grid-column: 4 / span 5;
}

.project-tall img {
  aspect-ratio: 4 / 5;
  object-position: center;
}

.project-photo figcaption {
  padding: 20px 2px 22px;
}

.project-photo strong,
.project-photo span {
  display: block;
}

.project-photo strong {
  color: var(--secondary);
  font-family: 'Montserrat', sans-serif;
  font-size: 1.12rem;
  margin-bottom: 5px;
}

.project-photo span {
  color: #5e6670;
  font-size: 0.94rem;
}

.service-range {
  background: var(--light-bg);
}

.service-range-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: 70px;
  align-items: center;
}

.service-range-copy .section-title {
  margin-bottom: 28px;
}

.service-range-copy > p {
  margin-bottom: 26px;
}

.service-poster {
  max-width: 460px;
  justify-self: end;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.service-poster img {
  width: 100%;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.career-card {
  background: #fff;
  padding: 34px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(2, 48, 71, 0.06);
}

.career-card + .career-card {
  margin-top: 24px;
}

.career-meta {
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}

.career-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.contact-info-card,
.quote-form {
  padding: 40px;
}

.contact-info-card h3 {
  margin-bottom: 20px;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 10px;
  display: inline-block;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.contact-method i {
  color: var(--primary);
  font-size: 1.5rem;
  width: 30px;
  text-align: center;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #d9e1e5;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 183, 3, 0.2);
}

/* CTA Section */
.cta-section {
  background-color: var(--secondary);
  color: var(--light-bg);
  text-align: center;
  padding: 100px 0;
}
.cta-section h2 {
  color: var(--light-bg);
  font-size: 2.5rem;
}
.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

/* Footer */
footer {
  background-color: var(--dark-bg);
  color: #AAA;
  padding: 60px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h3 {
  color: var(--light-bg);
  margin-bottom: 20px;
  font-size: 1.2rem;
}
.footer-col p {
  margin-bottom: 10px;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a:hover {
  color: var(--primary);
}
.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
}

/* Floating WhatsApp */
.floating-whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  z-index: 9999;
  transition: var(--transition);
}
.floating-whatsapp i {
  color: white;
  font-size: 35px;
}
.floating-whatsapp:hover {
  transform: scale(1.1);
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
  .section-title {
      display: block;
      font-size: 2rem;
      line-height: 1.22;
  }
  .nav-links {
      position: fixed;
      top: 70px;
      left: -100%;
      width: 100%;
      height: calc(100vh - 70px);
      background-color: var(--secondary);
      flex-direction: column;
      justify-content: center;
      gap: 24px;
      transition: var(--transition);
  }
  .nav-links.active {
      left: 0;
  }
  .mobile-menu-btn {
      display: block;
  }
  .hero h1 { font-size: 2.5rem; }
  .hero {
      min-height: 680px;
  }
  .hero::after {
      background: linear-gradient(180deg, rgba(2, 48, 71, 0.94), rgba(2, 48, 71, 0.72));
  }
  .hero-btns {
      flex-direction: column;
      align-items: stretch;
  }
  .about-flex { flex-direction: column; }
  .work-intro {
      align-items: flex-start;
      flex-direction: column;
  }
  .work-gallery {
      grid-template-columns: 1fr;
  }
  .work-stack {
      grid-template-columns: 1fr 1fr;
      grid-template-rows: none;
  }
  .work-stack figure {
      aspect-ratio: 4 / 3;
  }
  .page-header h1 { font-size: 2.2rem; }
  .service-row {
      flex-direction: column;
      align-items: center;
      text-align: center;
  }
  .contact-grid {
      grid-template-columns: 1fr;
  }
  .portfolio-showcase {
      grid-template-columns: 1fr;
  }
  .portfolio-intro {
      margin-bottom: 32px;
  }
  .portfolio-intro .section-title {
      font-size: 2rem;
  }
  .project-photo,
  .project-featured,
  .project-square,
  .project-wide,
  .project-tall,
  .project-light {
      grid-column: 1;
  }
  .project-photo img,
  .project-featured img,
  .project-square img,
  .project-wide img {
      aspect-ratio: 4 / 3;
  }
  .project-tall img {
      aspect-ratio: 4 / 5;
  }
  .service-range-layout {
      grid-template-columns: 1fr;
      gap: 40px;
  }
  .service-poster {
      justify-self: center;
  }
  .contact-info-card,
  .quote-form {
      padding: 28px;
  }
  .career-card {
      padding: 28px;
  }
  .career-actions {
      flex-direction: column;
  }
}

@media (max-width: 520px) {
  .work-stack {
      grid-template-columns: 1fr;
  }
  .work-main,
  .work-stack figure {
      aspect-ratio: 4 / 3;
  }
  .work-gallery figcaption {
      left: 12px;
      bottom: 12px;
      max-width: calc(100% - 24px);
      font-size: 0.8rem;
  }
}
