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

body {
  font-family: 'Poppins', sans-serif;
  color: #222;
  line-height: 1.7;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  width: 100%;
  display: block;
}

/* ===== Container ===== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ===== Header / Navbar ===== */
header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
}

.logo {
  font-size: 28px;
  font-weight: 700;
  color: #0b4f4a;
}

.logo span {
  color: #c89b3c;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 28px;
}

nav ul li a:hover {
  color: #0b7b73;
}

nav ul li a.active {
  color: #c89b3c;
  font-weight: 600;
}

/* ===== Hero ===== */
.hero {
  min-height: 90vh;
  background:
    linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
    url('https://images.unsplash.com/photo-1505693416388-ac5ce068fe85?q=80&w=1600&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: #fff;
}

.hero-content {
  max-width: 750px;
}

.tag {
  display: inline-block;
  background: #c89b3c;
  padding: 8px 18px;
  border-radius: 50px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 600;
}

.hero h1 {
  font-size: 58px;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero p {
  font-size: 18px;
  margin-bottom: 35px;
  color: #eee;
}

/* Inner-page hero (60vh) */
.hero-inner {
  height: 60vh;
  background:
    linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
    url('https://images.unsplash.com/photo-1520607162513-77705c0f0d4a?q=80&w=1600&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
}

.hero-inner h1 {
  font-size: 56px;
  margin-bottom: 20px;
}

.hero-inner p {
  max-width: 800px;
  margin: auto;
  font-size: 18px;
}

/* ===== Sections ===== */
section {
  padding: 90px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 42px;
  color: #0b4f4a;
  margin-bottom: 10px;
}

.section-title p {
  color: #555;
  font-size: 17px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 5px;
  font-weight: 600;
  margin-right: 15px;
  cursor: pointer;
  border: none;
  font-size: 16px;
  font-family: inherit;
}

.btn-primary {
  background: #c89b3c;
  color: #fff;
}

.btn-primary:hover {
  background: #b0862f;
}

.btn-outline {
  border: 2px solid #fff;
  color: #fff;
  background: transparent;
}

/* ===== Trust Stats (homepage) ===== */
.trust-stats {
  background: #f7f7f7;
  padding: 70px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-number {
  font-size: 56px;
  font-weight: 700;
  color: #0b4f4a;
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 14px;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
}

/* ===== Badge Grid (homepage, below stats) ===== */
.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.badge {
  background: #f5f5f5;
  padding: 25px;
  text-align: center;
  border-radius: 10px;
  font-weight: 600;
}

/* ===== Product / Card Grids ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  background: #fff;
  cursor: pointer;
  transition: transform 0.3s;
}

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

.card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.card-content {
  padding: 25px;
}

.card-content h3 {
  color: #0b4f4a;
  margin-bottom: 10px;
}

/* ===== Timeline (about.html) ===== */
.timeline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1100px;
  margin: auto;
}

.milestone {
  display: contents;
}

.milestone-image,
.milestone-copy {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.milestone-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.milestone-copy {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.milestone-number {
  font-size: 56px;
  font-weight: 700;
  color: #c89b3c;
  line-height: 1;
  margin-bottom: 15px;
}

.milestone-copy h3 {
  color: #0b4f4a;
  font-size: 24px;
  margin-bottom: 15px;
}

/* Zig-zag: even milestones swap image/copy sides */
.milestone:nth-child(even) .milestone-image {
  order: 2;
}

/* ===== Certification Cards (certifications.html) ===== */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.cert-card {
  background: #fff;
  padding: 40px 30px;
  text-align: center;
  border-radius: 14px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s;
}

.cert-card:hover {
  transform: translateY(-8px);
}

.cert-card img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  margin: 0 auto 20px;
}

.cert-card h3 {
  color: #0b4f4a;
  margin-bottom: 12px;
}

/* ===== Modal (products.html) ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.2s;
}

.modal-overlay.open {
  display: flex;
  opacity: 1;
}

.modal {
  background: #fff;
  border-radius: 12px;
  max-width: 1000px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.2s;
}

.modal-overlay.open .modal {
  transform: scale(1);
}

.modal-image {
  flex: 0 0 40%;
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-content {
  flex: 1;
  padding: 40px;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
  color: #555;
  line-height: 1;
  z-index: 1;
}

.modal-content h2 {
  color: #0b4f4a;
  margin-bottom: 20px;
}

.modal-content h3 {
  color: #0b4f4a;
  margin-top: 25px;
  margin-bottom: 10px;
  font-size: 18px;
}

.specs {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
  font-size: 14px;
}

.specs th,
.specs td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.specs th {
  background: #f7f7f7;
  color: #555;
  font-weight: 600;
  width: 40%;
}

/* ===== Contact Form (contact.html) ===== */
.quote-form {
  max-width: 600px;
  margin: auto;
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

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

.quote-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: #0b4f4a;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: inherit;
  font-size: 15px;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  outline: none;
  border-color: #c89b3c;
}

.quote-form textarea {
  resize: vertical;
  min-height: 120px;
}

.quote-form button {
  width: 100%;
  font-size: 16px;
  margin-right: 0;
}

/* ===== Contact Info Section (used on all pages) ===== */
.contact {
  background: #f7f7f7;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.contact-box {
  background: #fff;
  padding: 35px;
  border-radius: 12px;
}

.contact-box h3 {
  color: #0b4f4a;
  margin-bottom: 15px;
}

.contact-box a {
  color: #0b7b73;
}

.contact-box a:hover {
  text-decoration: underline;
}

/* ===== Footer ===== */
footer {
  background: #0b1f1d;
  color: #ddd;
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

footer h3 {
  color: #fff;
  margin-bottom: 18px;
}

footer ul {
  list-style: none;
}

footer ul li {
  margin-bottom: 10px;
}

footer ul li a:hover {
  color: #c89b3c;
}

.copyright {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  color: #aaa;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 15px;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero h1,
  .hero-inner h1 {
    font-size: 38px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .milestone:nth-child(even) .milestone-image {
    order: 0;
  }

  .modal {
    flex-direction: column;
    max-height: 95vh;
  }

  .modal-image {
    flex: 0 0 200px;
  }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  .modal-overlay,
  .modal,
  .card {
    transition: none;
  }
}
