/* styles.css
   Modern construction company styling — dark gray, gold, white, yellow.
   Comments throughout to make customization easy.
*/

/* ---------- Root / Theme ---------- */
:root{
  --bg:#0f1720;            /* deep background (dark gray) */
  --card:#111418;          /* card / panel background */
  --muted:#9aa5ad;         /* muted text */
  --white:#ffffff;
  --gold:#c9a43b;          /* gold accent */
  --yellow:#f5c21a;        /* bright yellow accent */
  --accent:#e9d8a6;        /* pale gold for highlights */
  --max-width:1200px;
  --radius:8px;
  --glass: rgba(255,255,255,0.03);
  --container-padding:24px;
}

/* ---------- Reset & base ---------- */
*{box-sizing:border-box}
html{
  scroll-behavior:smooth; /* smooth anchor scrolling without JS */
  font-size:16px;
}
body{
  margin:0;
  font-family:"Poppins",system-ui,-apple-system,Segoe UI,Roboto,"Helvetica Neue",Arial;
  background:linear-gradient(180deg, #071018 0%, #0f1720 80%);
  color:var(--white);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.5;
}

/* ---------- Utilities ---------- */
.container{
  width:100%;
  max-width:var(--max-width);
  margin:0 auto;
  padding:0 var(--container-padding);
}

/* Button styles */
.btn{
  display:inline-block;
  padding:12px 18px;
  border-radius:6px;
  text-decoration:none;
  font-weight:600;
  letter-spacing:0.2px;
  transition:all .18s ease;
  border:2px solid transparent;
}
.btn-primary{
  background:linear-gradient(180deg,var(--gold),var(--yellow));
  color:#0a0a0a;
  box-shadow:0 6px 20px rgba(201,164,59,0.16);
}
.btn-primary:hover{ transform:translateY(-3px); box-shadow:0 10px 28px rgba(201,164,59,0.22); }

.btn-outline{
  background:transparent;
  color:var(--white);
  border-color:rgba(255,255,255,0.08);
}
.btn-outline:hover{ background:rgba(255,255,255,0.03); transform:translateY(-2px); }

/* Headings */
h1, h2, h3, h4 { margin:0 0 12px 0; font-weight:600; color:var(--white); }
.section { padding:72px 0; }
.section-header p { color:var(--muted); margin-top:6px; }

/* ---------- Header / Nav ---------- */
.site-header{
  position:sticky;
  top:0;
  z-index:60;
  backdrop-filter: blur(6px);
  background:linear-gradient(180deg, rgba(10,12,15,0.6), rgba(8,10,11,0.35));
  border-bottom:1px solid rgba(255,255,255,0.03);
}
.nav-container{
  display:flex;
  gap:16px;
  align-items:center;
  justify-content:space-between;
  padding:18px var(--container-padding);
}

/* Brand */
.brand a{ display:flex; align-items:center; gap:12px; text-decoration:none; color:var(--white); }
.brand img{
  width:44px; height:44px; object-fit:cover; border-radius:8px; box-shadow:0 6px 20px rgba(0,0,0,0.6);
}
.brand-text{ font-size:1.05rem; font-weight:700; letter-spacing:0.4px; }

/* Nav links (desktop) */
.main-nav{
  display:flex;
  gap:18px;
  align-items:center;
}
.main-nav a{
  color:var(--white);
  text-decoration:none;
  padding:8px 10px;
  border-radius:6px;
  font-weight:600;
  opacity:0.88;
  transition:all .15s;
}
.main-nav a:hover{ background:rgba(255,255,255,0.03); transform:translateY(-2px); }

/* Desktop CTA */
.desktop-cta{ display:inline-block; margin-left:12px; }

/* ---------- Responsive nav (CSS only) ---------- */
/* Hide checkbox off-screen */
.nav-toggle{ display:none; }

/* Label for hamburger */
.nav-toggle-label{
  display:none;
  width:46px;
  height:36px;
  border-radius:8px;
  cursor:pointer;
  align-items:center;
  justify-content:center;
}
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after{
  display:block;
  width:22px;
  height:2px;
  background:var(--white);
  border-radius:2px;
  position:relative;
  transition:all .2s ease;
}
.nav-toggle-label span::before,
.nav-toggle-label span::after{
  content:"";
  position:absolute;
  left:0;
}
.nav-toggle-label span::before{ top:-7px; }
.nav-toggle-label span::after{ top:7px; }

/* Transform when checked */
.nav-toggle:checked + .nav-toggle-label span{
  background:transparent;
}
.nav-toggle:checked + .nav-toggle-label span::before{
  transform:rotate(45deg); top:0;
}
.nav-toggle:checked + .nav-toggle-label span::after{
  transform:rotate(-45deg); top:0;
}

/* ---------- HERO ---------- */
.hero{
  position:relative;
  min-height:72vh;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  color:var(--white);
  background-image: url('./images/header_image.jpg');
  background-size:cover;
  background-position:center;
}
.hero-overlay{
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(2,6,9,0.6), rgba(4,6,7,0.6));
  mix-blend-mode:multiply;
}
.hero-content{
  position:relative;
  z-index:2;
  max-width:980px;
  padding:40px;
}
.company-name{
  font-size:2.6rem;
  letter-spacing:1px;
  margin-bottom:8px;
}
.hero-sub{ color:var(--accent); font-weight:500; margin-bottom:20px; font-size:1.125rem; }
.hero-actions .btn{ margin:0 8px; }

/* ---------- ABOUT ---------- */
.about-grid{
  display:grid;
  grid-template-columns:1fr 420px;
  gap:28px;
  align-items:start;
}
.about-text p{ color:var(--muted); margin-bottom:14px; }
.about-values{ list-style:none; padding:0; margin:12px 0 18px 0; color:var(--muted); }
.about-values li{ margin-bottom:8px; }
.about-images{ display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
.about-images img{
  width:100%; height:170px; object-fit:cover; border-radius:8px;
  box-shadow:0 8px 28px rgba(0,0,0,0.6);
}

/* ---------- SERVICES ---------- */
.services-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:20px;
  margin-top:18px;
}
.service-card{
  background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius:12px;
  padding:22px;
  min-height:170px;
  transition:transform .18s ease, box-shadow .18s ease;
  border:1px solid rgba(255,255,255,0.03);
}
.service-card:hover{ transform:translateY(-8px); box-shadow:0 20px 40px rgba(2,6,9,0.6); }
.service-card .icon-wrap{
  font-size:28px;
  width:56px;height:56px;
  background:linear-gradient(180deg, rgba(201,164,59,0.12), rgba(245,194,26,0.03));
  color:var(--gold);
  display:flex; align-items:center; justify-content:center;
  border-radius:10px;
  margin-bottom:14px;
}

/* ---------- PROJECTS GRID ---------- */
.projects-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
  margin-top:18px;
}
.project-item{
  position:relative;
  overflow:hidden;
  border-radius:10px;
  background:var(--card);
  cursor:default;
}
.project-item img{
  width:100%; height:220px; object-fit:cover; display:block; transition:transform .4s ease;
}
.project-item figcaption{
  position:absolute; left:0; right:0; bottom:0;
  padding:12px 14px;
  background:linear-gradient(180deg, transparent, rgba(2,6,9,0.6));
  color:var(--white);
  font-weight:600;
}
.project-item:hover img{ transform:scale(1.06); }
/* ---------- PROJECT PROPOSALS GRID ---------- */
.proposals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.proposal-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: var(--card);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.proposal-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
  border-radius: 10px;
}

.proposal-item:hover img {
  transform: scale(1.06);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.proposal-item a {
  display: block;
  text-decoration: none;
}




/* ---------- CONTACT ---------- */
.contact-grid{
  display:grid;
  grid-template-columns:420px 1fr;
  gap:28px;
  align-items:start;
}
.contact-info{
  background:var(--card);
  padding:20px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.03);
}
.contact-info p{ color:var(--muted); margin:8px 0; }
.contact-info a{ color:var(--white); text-decoration:none; }
.hours{ margin-top:12px; color:var(--muted); }
.social{ margin-top:18px; display:flex; gap:12px; align-items:center; }
.social a{
  display:inline-flex; align-items:center; justify-content:center;
  width:44px; height:44px; border-radius:8px; color:white;
  background:rgba(255,255,255,0.05); text-decoration:none; transition:transform .15s;
}
.social a:hover{ transform:translateY(-3px); }

/* Social brand colors (approximate / official tone) */
.social-ig{ background:linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.social-x{ background:#1DA1F2; }      /* Twitter/X blue */
.social-li{ background:#0A66C2; }     /* LinkedIn */
.social-fb{ background:#1877F2; }     /* Facebook */
.social-tt{ background: #000000; }    /* TikTok (black) */

.social-ig i  { color: #E1306C !important; font-size:32px;}  /* Instagram */
.social-x i   { color: #000000 !important; font-size:32px;}  /* X / Twitter */
.social-li i  { color: #0A66C2 !important; font-size:32px;}  /* LinkedIn */
.social-fb i  { color: #1877F2 !important; font-size:32px;}  /* Facebook */
.social-tt i  { color: #010101 !important; font-size:32px;}  /* TikTok */

/* Contact form styling */
.contact-form form{
  background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.02));
  padding:20px; border-radius:10px; border:1px solid rgba(255,255,255,0.03);
}
.form-row{ margin-bottom:12px; display:flex; flex-direction:column; }
.form-row label{ font-size:0.9rem; color:var(--muted); margin-bottom:6px; }
.form-row input, .form-row textarea, .form-row select{
  background:transparent;
  border:1px solid rgba(255,255,255,0.06);
  padding:10px 12px;
  color:var(--white);
  border-radius:8px;
  outline:none;
  transition:border-color .12s;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus{
  border-color:var(--gold);
  box-shadow:0 6px 18px rgba(201,164,59,0.08);
}
.form-actions{ display:flex; gap:12px; justify-content:flex-start; margin-top:6px; }

/* ---------- FOOTER ---------- */
.site-footer{
  padding:22px 0;
  border-top:1px solid rgba(255,255,255,0.03);
  background:transparent;
}
.footer-grid{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  color:var(--muted);
}
.footer-right a{ color:var(--muted); text-decoration:none; margin-left:14px; font-weight:600; }
.footer-right a:hover{ color:var(--white); }

/* ---------- LIGHTBOX ---------- */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  inset: 0;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 20px;
}

.lightbox-img {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(0,0,0,0.6);
}

.lightbox-caption {
  margin-top: 12px;
  color: #fff;
  font-size: 1rem;
  text-align: center;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 28px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.2s;
}
.close-btn:hover {
  opacity: 0.7;
}

.project-slider {
  background: rgba(3, 4, 28, 0.85);
  padding-top: 60px;
  padding-bottom: 60px;
}

/* Make the swiper go full width */
.mySwiper {
  width: 100%;
  max-width: 1200px;   /* or any width you like */
  margin: 0 auto;      /* centers it in the section */
  height: 80vh;        /* adjust as you wish */
  border-radius: 16px; /* optional: soft rounded edges */
  overflow: hidden;    /* keeps edges clean */
}


/* Ensure slides fill fully */
.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;     /* make sure it fills nicely */
  display: block;
}

/* White pagination dots */
.swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.7);
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background: #fff;
}

.swiper-slide .caption {
  text-align: center;
  font-weight: 500;
  margin-top: 10px;
  color: #333;
}


/* ---------- Featured Projects Grid ---------- */
.featured-gallery .featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* three images per row */
  gap: 14px;
  margin-top: 18px;
}

.featured-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: var(--card);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-item img {
  width: 100%;
  height: 220px;         /* same as your projects grid */
  object-fit: cover;
  display: block;
  border-radius: 10px;
  transition: transform 0.4s ease;
}

.featured-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 14px;
  background: linear-gradient(180deg, transparent, rgba(2,6,9,0.6));
  color: var(--white);
  font-weight: 600;
}

.featured-item:hover img {
  transform: scale(1.06);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6);
}


/* ---------- Responsive rules ---------- */
@media (max-width:1024px){
  .about-grid{ grid-template-columns:1fr; }
  .contact-grid{ grid-template-columns:1fr; }
  .services-grid{ grid-template-columns:repeat(2,1fr); }
  .projects-grid{ grid-template-columns:repeat(2,1fr); }
  .main-nav a{ padding:8px 10px; }
}

@media (max-width:800px){
  .nav-container{ padding:12px var(--container-padding); }
  .brand-text{ font-size:0.98rem; }
  /* Show hamburger and hide desktop nav */
  .nav-toggle-label{ display:flex; }
  .main-nav, .desktop-cta{ display:none; }

  /* When checkbox is checked show nav as full-screen dropdown */
  .nav-toggle:checked ~ .main-nav,
  .nav-toggle:checked ~ .desktop-cta { display:block; }
  .main-nav{
    position:absolute;
    left:12px; right:12px;
    top:72px;
    background:linear-gradient(180deg, rgba(10,12,14,0.98), rgba(5,6,7,0.96));
    border-radius:10px;
    padding:14px;
    flex-direction:column;
    gap:6px;
    box-shadow:0 20px 50px rgba(2,6,9,0.6);
  }
  .main-nav a{ padding:12px; border-radius:8px; }
  .desktop-cta{
    position:absolute;
    top:76px; right:18px;
    display:inline-block;
    transform:translateY(54px);
  }

  .hero-content{ padding:32px; }
  .company-name{ font-size:2.1rem; }
  .projects-grid{ grid-template-columns:1fr; }
  .services-grid{ grid-template-columns:1fr; }
  .about-images img{ height:140px; }
}

@media (max-width:420px){
  .container{ padding:0 14px; }
  .company-name{ font-size:1.6rem; }
  .hero{ min-height:58vh; }
  .brand img{ width:40px; height:40px; }
  .about-images{ grid-template-columns:1fr; }
}
/* Responsive layout */
@media (max-width: 1024px) {
  .proposals-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .proposals-grid {
    grid-template-columns: 1fr;
  }
  .proposal-item img {
    height: 180px;
  }
}


/* Responsive adjustments */
@media (max-width:1024px){
  .featured-gallery .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width:600px){
  .featured-gallery .featured-grid {
    grid-template-columns: 1fr;
  }
  .featured-item img {
    height: 180px;
  }
}
