

/* Coreline Civil Color Palette */
:root {
    --color-navy: #0B1D39;
    --color-olive: #556B2F;
    --color-white: #FFFFFF;
    --text-dark: #222;
  }
  
  /* Global */
  * { margin: 0; padding: 0; box-sizing: border-box; }
  body {
    font-family: Arial, sans-serif;
    color: var(--text-dark);
    background: var(--color-white);
  }
  .container { width: 90%; max-width: 1200px; margin: auto; }
  .flex { display: flex; align-items: center; }
  .between { justify-content: space-between; }
  .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
  .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
  img { max-width: 100%; display: block; }
  .img-rounded { border-radius: 12px; }
  
  /* Header */
header {
  width: 100%;
  background: var(--color-white);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  position: relative;
  top: 0;
  z-index: 999;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.5rem;
}

/* Logo */
.logo-container {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.logo {
  width: 60px;      /* adjust as needed */
  height: auto;     /* preserves aspect ratio */
  object-fit: contain;
}

.company-name {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--color-navy);
}

/* Navigation */
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links li a {
  text-decoration: none;
  color: var(--color-navy);
  font-weight: 600;
  transition: color 0.3s ease;
}

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

/* Mobile Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--color-navy);
  border-radius: 2px;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 1rem;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--color-white);
    width: 200px;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 8px;
  }
  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    background: url("hero1.jpg") center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(11, 29, 57, 0.7); /* Dark navy overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
  }
  
  .hero-content {
    color: var(--color-white);
    max-width: 800px;
    animation: fadeUp 1.5s ease forwards;
  }
  
  .hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #ddd;
  }
  
  .scroll-down {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: var(--color-olive);
    animation: bounce 2s infinite;
  }
  
  /* Animations */
  @keyframes fadeUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
  }
  @keyframes bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, -10px); }
  }
  
  
/* About Us Section */
.about-us {
  padding: 5rem 0;
  background: var(--color-white);
  text-align: center;
}

.about-us .section-title {
  font-size: 2rem;
  color: var(--color-navy);
  margin-bottom: 1rem;
}

.about-intro {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 3rem;
  color: #444;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
}

.about-text {
  text-align: left;
}
.about-text h4 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-olive);
}
.about-text ul {
  list-style: none;
  padding: 0;
}
.about-text li {
  margin-bottom: 0.8rem;
  font-weight: 500;
  color: var(--text-dark);
}

/* Photos collage */
.about-photos {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.photo-large {
  width: 70%;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.photo-small {
  position: absolute;
  width: 40%;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.photo-small.top {
  top: -20px;
  right: -30px;
}
.photo-small.bottom {
  bottom: -20px;
  left: -30px;
}
/* Reveal on Scroll */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

  
/* Services Section */
.services {
  padding: 5rem 0;
  background: var(--color-white);
  text-align: center;
}

.services-intro {
  max-width: 700px;
  margin: 0 auto 3rem;
  color: #555;
  font-size: 1.1rem;
}

.service-card {
  padding: 2rem 1.5rem;
  background: var(--color-olive);
  color: var(--color-white);
  border-radius: 12px;
  transition: all 0.3s ease;
  text-align: center;
}

.service-card h4 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.4;
}

.service-card:hover {
  transform: translateY(-8px);
  background: #475a23; /* slightly darker olive on hover */
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}


/* Projects Section */
.projects {
  padding: 5rem 0;
  background: var(--color-white);
  color: var(--color-navy);
  text-align: center;
}

.projects-intro {
  max-width: 700px;
  margin: 0 auto 3rem;
  color: olive;
  font-size: 1.1rem;
}

/* Project Cards */
.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.project-card img {
  width: 100%;
  display: block;
  border-radius: 12px;
  transition: transform 0.5s ease;
}

.project-card:hover img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(85, 107, 47, 0.85); /* olive overlay */
  padding: 1rem;
  text-align: center;
  transition: background 0.3s ease;
}

.project-card:hover .project-overlay {
  background: rgba(85, 107, 47, 1);
}

.project-overlay h4 {
  color: var(--color-white);
  margin: 0;
  font-size: 1.2rem;
}
/* Contact Section */
.contact {
  padding: 5rem 0;
  background: var(--color-white); /* changed from olive to navy */
  color: var(--color-navy);
  text-align: center;
}

.contact-intro {
  max-width: 700px;
  margin: 0 auto 2rem;
  color: olive;
  font-size: 1.1rem;
}

/* Form Wrapper */
.contact-form-wrapper {
  max-width: 600px;
  margin: 0 auto 2rem;
  background: var(--color-white); /* form card white */
  padding: 2.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  color: var(--color-navy);
}

.contact-form-wrapper form {
  display: grid;
  gap: 1rem;
}

.contact-form-wrapper input,
.contact-form-wrapper textarea {
  padding: 0.8rem;
  border-radius: 6px;
  border: 1px solid olive;
  width: 100%;
  font-size: 1rem;
  color: var(--color-navy);
}

.contact-form-wrapper input:focus,
.contact-form-wrapper textarea:focus {
  outline: none;
  border-color: var(--color-olive);
  box-shadow: 0 0 8px rgba(85,107,47,0.5);
}

.contact-form-wrapper button {
  padding: 0.9rem;
  border: none;
  border-radius: 6px;
  background: var(--color-olive);
  color: var(--color-white);
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.contact-form-wrapper button:hover {
  background: #475a23; /* darker olive on hover */
  transform: translateY(-2px);
}

.alt-contact {
  font-size: 0.95rem;
  color: olive;
  margin-top: 1rem;
}


/* Hero Section Buttons */
.hero-btn {
  display: inline-block;
  margin: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Primary Button */
.btn-primary.hero-btn {
  background: var(--color-olive);
  color: var(--color-white);
  border: none;
}

.btn-primary.hero-btn:hover {
  background: #475a23; /* slightly darker olive */
}

/* Outline Button */
.btn-outline.hero-btn {
  border: 2px solid var(--color-white);
  color: var(--color-white);
  background: transparent;
}

.btn-outline.hero-btn:hover {
  background: var(--color-white);
  color: var(--color-navy);
}

/* Contact Info Grid */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 3rem auto 0;
  text-align: center;
}

.contact-box {
  background: var(--color-white);
  color: var(--color-navy);
  padding: 1.8rem 1.5rem;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.contact-box h4 {
  margin-bottom: 0.8rem;
  color: var(--color-olive);
}

.contact-box p {
  font-size: 0.95rem;
  line-height: 1.4;
}

.contact-box a {
  color: var(--color-navy);
  text-decoration: none;
  font-weight: bold;
}

.contact-box a:hover {
  color: var(--color-olive);
}

/* FAQ Section */
.faq {
  padding: 5rem 0;
  background: #f8f9fa; /* light background to contrast navy */
  text-align: center;
}

.faq-item {
  max-width: 800px;
  margin: 1rem auto;
  text-align: left;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0,0,0,0.05);
}

.faq-question {
  width: 100%;
  padding: 1rem 1.5rem;
  background: var(--color-olive);
  color: var(--color-white);
  border: none;
  text-align: left;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  outline: none;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: #475a23; /* darker olive */
}

.faq-answer {
  background: var(--color-white);
  color: var(--color-navy);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.5rem;
}

.faq-answer p {
  margin: 1rem 0;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem; /* more space between logo and text */
}


.logo {
  width: 180px;    /* increase size */
  height: auto;    /* maintain aspect ratio */
  object-fit: contain; /* prevent distortion */
}


.company-name {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--color-navy);
}

@media (max-width: 768px) {
  .logo {
    width: 90px; /* smaller on mobile */
  }
}

/* Testimonials Section */
.testimonials {
  padding: 5rem 0;
  background: #f8f9fa; /* light background */
  text-align: center;
}

.testimonial-slider {
  display: flex;
  overflow-x: auto;
  gap: 1.5rem;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
}

.testimonial-card {
  flex: 0 0 300px;
  background: var(--color-white);
  color: var(--color-navy);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  scroll-snap-align: start;
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.testimonial-card p {
  font-size: 1rem;
  margin-bottom: 1rem;
  font-style: italic;
}

.testimonial-card h4 {
  margin-bottom: 0.2rem;
  font-weight: bold;
}

.testimonial-card span {
  font-size: 0.9rem;
  color: #666;
}

/* Optional: Hide scrollbar */
.testimonial-slider::-webkit-scrollbar {
  display: none;
}
.testimonial-slider {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

html {
  scroll-behavior: smooth;
}

/* =========================
   Responsive Media Queries
========================= */

/* Tablets and small laptops */
@media screen and (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
}

/* Tablets / large phones */
@media screen and (max-width: 768px) {
  /* Navbar collapse */
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 1rem;
    background: var(--color-white);
    position: absolute;
    top: 70px;
    right: 20px;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  }
  .nav-links.active { display: flex; }
  .hamburger { display: flex; }

  /* Single column grids */
  .grid-4, .grid-3, .contact-info-grid { grid-template-columns: 1fr; }

  /* About photos stack */
  .about-photos {
    grid-template-areas:
      "large"
      "top"
      "bottom";
  }
}

/* Mobile phones */
@media screen and (max-width: 480px) {
  .hero-title { font-size: 1.7rem; }
  .hero-subtitle { font-size: 0.95rem; }
  .actions { flex-direction: column; gap: 0.75rem; }
  header .logo { width: 100px; }
}

.success-message {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 5px;
}
.partners .section-title {
  text-align: center;
  margin-bottom: 1rem;
}
.partners-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2rem auto;
}

.partners-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  align-items: center;
  justify-items: center;
  margin-top: 2rem;
}

.partner-card img {
  max-width: 180px;
  height: auto;
  transition: transform 0.3s ease;
}

.partner-card img:hover {
  transform: scale(1.05);
}
.projects .project-card img {
  width: 100%;
  height: 450px; /* adjust height as you prefer */
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.partners-logos {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  overflow-x: auto;  /* allows horizontal scrolling */
  padding: 1rem 0;
  scroll-behavior: smooth; /* smooth scroll effect */
}

.partners-logos::-webkit-scrollbar {
  display: none; /* hide scroll bar */
}

.partners-logos img {
  max-width: 120px;   /* shrink logos */
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.partners-logos img:hover {
  transform: scale(1.1); /* small hover zoom effect */
}


/* ===============================
   Force hero content to the BOTTOM
   Paste this at the end of style.css
   =============================== */

   .hero {
    position: relative;     /* keep existing background-image intact */
    min-height: 60vh;       /* adjust (60-100vh) to control hero height */
    overflow: hidden;
  }
  
  /* full-size overlay placed on top of the background image */
  .hero-overlay {
    position: absolute;
    inset: 0;               /* top:0; right:0; bottom:0; left:0; */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* push children to bottom */
    align-items: center;       /* center horizontally */
    padding-bottom: 48px;      /* how far above the bottom the text sits */
    background: rgba(0,0,0,0.28); /* subtle darkening; remove if you don't want it */
    z-index: 2;
  }
  
  /* the inner container with text/buttons */
  .container.hero-content {
    width: calc(100% - 40px);
    max-width: 1200px;
    text-align: center;    /* change to left if you prefer left-aligned */
    padding: 0 20px;       /* horizontal breathing room */
    color: #fff;
    z-index: 3;
    /* make sure the content doesn't get vertically centered by other rules */
    margin: 0;
  }
  
  /* keep the scroll arrow visually at the very bottom */
  .scroll-down {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    font-size: 22px;
    opacity: 0.95;
  }
  
  /* quick strong override if other rules still win (use only if needed) */
  .container.hero-content,
  .hero-overlay {
    /* uncomment the !important lines only if previous rules keep overriding */
    /* position: absolute !important; */
    /* bottom: 48px !important; */
    /* left: 50% !important; transform: translateX(-50%) !important; */
  }
  


