/* =============================================
   TERAMUS CONSTRUCTIONS - Static Site
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Lora:ital,wght@0,400;0,700;1,400&display=swap');

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

:root {
  --accent:  #6aa4c0;
  --accent2: #498dae;
  --dark:    #0f1a1e;
  --text:    #555555;
  --white:   #ffffff;
  --cream:   #fffce3;
  --border:  #e0e0e0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Lora', serif;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent2); }

h1,h2,h3,h4,h5,h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  color: #000;
}

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

.container { max-width: 1170px; margin: 0 auto; padding: 0 15px; }

/* ============ HEADER ============ */
#sp-header {
  background: #ffffff;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9999;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
  transition: box-shadow 0.3s;
}

/* inner pages: same style (no difference needed) */
#sp-header.header-inner {
  position: static;
}

@media screen and (max-width: 991px) {
  #sp-header {
    position: static;
  }
}

#sp-header > .container > .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
}

/* Logo */
#sp-logo {
  float: left;
  width: auto !important;
  margin: 19px 60px 0 0;
  transition: all 0.4s ease;
}
#sp-logo .logo h1 { margin: 0; font-size: 0; line-height: 1; }
#sp-logo .logo img { height: 50px; width: auto; }
#sp-header.affix #sp-logo { margin-top: 5px; }

/* Nav */
#sp-menu { float: left; }

.sp-megamenu-parent {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
}

.sp-megamenu-parent > li > a {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #000;
  padding: 24px 16px;
  transition: color .2s;
  white-space: nowrap;
}

.sp-megamenu-parent > li > a:hover,
.sp-megamenu-parent > li.active > a,
.sp-megamenu-parent > li.current-item > a {
  color: var(--accent) !important;
}

/* Social icons in header — always dark on white */
#sp-social-icons { float: right; }
.social-icons { list-style: none; display: flex; gap: 10px; padding: 0; margin: 0; }
.social-icons li a { color: #555; font-size: 16px; transition: color .2s; }
.social-icons li a:hover { color: var(--accent); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}
.nav-toggle span { display: block; width: 26px; height: 2px; background: #333; border-radius: 2px; }

/* ============ HERO / SLIDER ============ */
.hero-section {
  position: relative;
  width: 100%;
  height: 680px;
  overflow: hidden;
  background: #0f1a1e;
  margin-top: 70px; /* space for fixed header on homepage */
}

/* Inner pages have static header, no margin needed on their banners */
#sp-header.header-inner ~ .page-banner,
#sp-header.header-inner ~ * .page-banner {
  margin-top: 0;
}


.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center top;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }

.hero-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.25);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
}
.hero-caption h2 {
  color: #fff;
  font-size: clamp(26px, 4vw, 50px);
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
}

/* ============ PAGE BANNER (inner pages) ============ */
.page-banner {
  height: 380px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Title appears BELOW the banner */
.page-title-bar {
  background: #fff;
  border-bottom: 3px solid #e8e8e8;
  padding: 28px 0;
}
.page-title-bar h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #000;
  margin: 0;
}

/* ============ WHY CHOOSE US ============ */
#sp-why-choose-us-section {
  position: relative;
  overflow: hidden;
}

#sp-why-choose-us-section .reasons-col {
  background-color: var(--cream);
}

.why-choose-layout {
  display: flex;
  align-items: stretch;
}

.why-title-col {
  width: 25%;
  padding: 88px 30px 50px 0;
  flex-shrink: 0;
}

.jux-title {
  font-family: 'Montserrat', sans-serif;
  text-align: right;
}

.jux-title h2 {
  font-size: 52px;
  line-height: 64px;
  font-weight: 700;
  text-align: right;
  margin: 0;
  color: #000;
}

.reasons-col {
  background-color: var(--cream);
  flex: 1;
  padding: 50px 50px 50px 100px;
}

.reason-item {
  margin: 50px 0;
  overflow: hidden;
}
.reason-item:first-child { margin-top: 0; }
.reason-item::after { content: ''; clear: both; display: table; }

.reason-item > img {
  display: block;
  float: left;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  margin-right: 30px;
  transition: transform 0.4s ease;
  object-fit: cover;
}
.reason-item:hover > img { transform: scale(1.08); }

.reason-content { overflow: hidden; }

.reason-content h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 36px;
  color: #000;
  padding: 17px 0 0;
  margin: 0;
}

.reason-content p {
  padding: 6px 0;
  margin: 0;
  line-height: 27px;
  color: var(--text);
}

/* ============ INTRO ABOUT US ============ */
.intro-wrap {
  position: relative;
  overflow: hidden;
}

.background-left {
  position: absolute;
  left: 0; top: 0;
  width: 50%; height: 100%;
  background: #e3f6ff;
}

.intro-content-wrap { position: relative; z-index: 2; padding: 60px 0; }

.intro-grid {
  display: flex;
  gap: 40px;
  align-items: center;
}
.intro-grid .col-left { flex: 1; }
.intro-grid .col-right { flex: 1; }

.intro-image img {
  width: 100%;
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
}

.intro-content h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.intro-content h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

.intro-content p { margin-bottom: 12px; color: var(--text); }
.intro-content ul { padding-left: 20px; margin-bottom: 16px; color: var(--text); }
.intro-content ul li { margin-bottom: 5px; }

/* Our work section */
.our-work-wrap {
  position: relative;
  overflow: hidden;
  background: #f4f8fb;
  padding: 60px 0;
}
.background-right {
  position: absolute;
  right: 0; top: 0;
  width: 50%; height: 100%;
  background: var(--cream);
}
.our-work-content-wrap { position: relative; z-index: 2; }

.our-work-grid {
  display: flex;
  gap: 40px;
  align-items: center;
}
.our-work-grid .col-left { flex: 1; }
.our-work-grid .col-right { flex: 1; }

.our-work-images { display: flex; gap: 16px; }
.our-work-images img { flex: 1; object-fit: cover; }

.our-work-content h4 { color: var(--accent); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 8px; }
.our-work-content h2 { font-size: 28px; margin-bottom: 16px; }
.our-work-content p, .our-work-content ul { color: var(--text); }
.our-work-content ul { padding-left: 20px; }
.our-work-content ul li { margin-bottom: 5px; }

/* ============ SERVICES ============ */
.services-page section { padding: 60px 0; }

.services-list { max-width: 800px; margin: 0 auto; }

.service-item {
  display: flex; gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.service-item:last-child { border-bottom: none; }

.service-num {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: var(--accent);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
}
.service-item h4 { font-size: 16px; margin-bottom: 4px; }
.service-item p { font-size: 13px; color: #666; margin: 0; }

/* ============ CONSTRUCTION CARDS ============ */
.construction-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.const-card { background: #f9f9f9; border-radius: 4px; padding: 30px; box-shadow: 0 2px 12px rgba(0,0,0,.07); }
.const-card h3 { font-size: 20px; margin-bottom: 14px; color: var(--accent); }
.const-card p { margin-bottom: 10px; font-size: 14px; }
.const-card ul { padding-left: 18px; }
.const-card ul li { margin-bottom: 6px; font-size: 14px; }

/* ============ GALLERY ============ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 6px;
}
.gallery-item {
  position: relative; aspect-ratio: 4/3; overflow: hidden; cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-overlay {
  position: absolute; inset: 0; background: rgba(106,164,192,.75);
  opacity: 0; transition: opacity .3s;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 30px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* Lightbox */
.lightbox { display: none; position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.9); align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 88vh; border-radius: 3px; }
.lb-close { position: absolute; top: 14px; right: 20px; color: #fff; font-size: 38px; background: none; border: none; cursor: pointer; line-height: 1; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.1); border: none; color: #fff; font-size: 28px; padding: 12px 16px; cursor: pointer; border-radius: 3px; transition: background .2s; }
.lb-prev:hover, .lb-next:hover { background: var(--accent); }
.lb-prev { left: 14px; } .lb-next { right: 14px; }

/* ============ CONTACT ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info h3 { font-size: 22px; margin-bottom: 28px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.info-icon { width: 38px; height: 38px; flex-shrink: 0; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; }
.info-text strong { display: block; font-family: 'Montserrat', sans-serif; font-size: 12px; margin-bottom: 2px; }
.map-wrap { border-radius: 4px; overflow: hidden; min-height: 360px; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

/* ============ SECTION TITLE ============ */
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 32px; margin-bottom: 12px; }
.section-title .sep { display: inline-block; width: 60px; height: 2px; background: var(--accent); border-radius: 1px; }
.section-title p { margin-top: 12px; color: #666; max-width: 600px; margin-inline: auto; }

section.padded { padding: 70px 0; }
section.padded.bg-light { background: #f7f9fa; }

/* ============ FOOTER ============ */
#sp-footer-copyright {
  background: #222;
  color: rgba(255,255,255,.6);
  text-align: center;
  padding: 20px;
  font-size: 13px;
  font-family: 'Montserrat', sans-serif;
}
#sp-footer-copyright a { color: var(--accent); }
#sp-footer-copyright a:hover { color: #fff; }

/* Back to top */
#back-to-top {
  position: fixed; bottom: 22px; right: 22px;
  width: 40px; height: 40px;
  background: var(--accent); color: #fff;
  border: none; border-radius: 50%; cursor: pointer;
  font-size: 16px; display: none; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.2); z-index: 999;
  transition: background .2s;
}
#back-to-top.show { display: flex; }
#back-to-top:hover { background: var(--accent2); }

/* ============ RESPONSIVE ============ */
@media (max-width: 991px) {
  .why-choose-layout { flex-direction: column; }
  .why-title-col { width: 100%; padding: 40px 15px 20px; text-align: center; }
  .jux-title { text-align: center; }
  .jux-title h2 { text-align: center; font-size: 36px; }
  .reasons-col { padding: 30px 20px; }
  .intro-grid, .our-work-grid { flex-direction: column; }
  .contact-grid { grid-template-columns: 1fr; }
  .construction-grid { grid-template-columns: 1fr; }
  .background-left { display: none; }
}

@media (max-width: 767px) {
  .sp-megamenu-parent { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: #fff; box-shadow: 0 4px 10px rgba(0,0,0,.1); padding: 10px 0; }
  .sp-megamenu-parent.open { display: flex; }
  .sp-megamenu-parent > li { width: 100%; }
  .sp-megamenu-parent > li > a { color: #333 !important; padding: 12px 20px; }
  .nav-toggle { display: flex; }
  .hero-section { height: 380px; }
  .page-banner { height: 260px; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
