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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: #333;
  line-height: 1.6;
  background: #fff;
}

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

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

/* === Header === */
.site-header {
  background: #fff;
  text-align: center;
  padding: 20px 0 0;
}

.site-header .logo {
  display: inline-block;
}

.site-header .logo img {
  width: 150px;
  height: 150px;
}

/* === Navigation === */
.site-nav {
  background: #fff;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.site-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 40px;
}

.site-nav a {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 0;
  position: relative;
  transition: color 0.3s;
}

.site-nav a::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: #333;
  transition: width 0.3s;
}

.site-nav a:hover,
.site-nav a.active {
  color: #000;
}

.site-nav a:hover::after,
.site-nav a.active::after {
  width: 100%;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
  color: #333;
}

/* === Hero Section === */
.hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 60px 20px;
}

.hero h1 {
  font-family: 'Ubuntu', sans-serif;
  font-size: 52px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* === About Section === */
.about {
  padding: 60px 20px;
  text-align: center;
  background: #f7f7f7;
}

.about-inner {
  max-width: 900px;
  margin: 0 auto;
}

.about h2 {
  font-family: 'Ubuntu', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
}

.about h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #555;
  line-height: 1.7;
  margin-bottom: 30px;
}

/* === Services === */
.services {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 40px auto 30px;
  max-width: 900px;
}

.service-card {
  flex: 1;
  text-align: center;
  padding: 30px 20px;
  background: #fff;
  border-radius: 4px;
  transition: transform 0.3s;
}

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

.service-card .icon {
  font-size: 40px;
  color: #333;
  margin-bottom: 15px;
  transition: transform 0.3s;
}

.service-card:hover .icon {
  transform: scale(1.15);
}

.service-card h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.about .tagline {
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  color: #666;
  margin-top: 10px;
}

/* === Certifications === */
.certifications {
  background: #2c2c2c;
  padding: 40px 20px;
}

.cert-logos {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 30px;
  max-width: 1300px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.cert-logos img {
  max-height: 75px;
  max-width: 200px;
  width: auto;
  object-fit: contain;
  transition: opacity 0.3s;
}

.cert-logos img:hover {
  opacity: 1;
}

/* === Footer === */
.site-footer {
  background: #1a1a1a;
  color: #ccc;
  padding: 30px 20px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-info {
  font-size: 13px;
  line-height: 1.8;
}

.footer-info a {
  color: #ccc;
  transition: color 0.3s;
}

.footer-info a:hover {
  color: #fff;
}

.footer-policies {
  margin-top: 8px;
}

.footer-policies a {
  margin-right: 8px;
}

.footer-policies a::after {
  content: ' |';
  color: #666;
  margin-left: 8px;
}

.footer-policies a:last-child::after {
  content: '';
}

/* === Contact Page === */
.page-hero {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.page-hero h1 {
  position: relative;
  z-index: 1;
  font-family: 'Ubuntu', sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.contact-section {
  padding: 60px 20px;
  background: #f7f7f7;
}

.contact-inner {
  max-width: 700px;
  margin: 0 auto;
}

.contact-info {
  text-align: center;
  margin-bottom: 40px;
}

.contact-info p {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  color: #555;
  margin-bottom: 8px;
}

.contact-info a {
  color: #333;
}

.form-wrapper {
  position: relative;
}

.contact-form {
  background: #fff;
  padding: 40px;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.contact-form.is-hidden {
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.form-error {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff5f5;
  color: #c53030;
  border-left: 4px solid #c53030;
  border-radius: 4px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  max-height: 0;
  padding: 0 16px;
  margin-bottom: 0;
  opacity: 0;
  transform: translateY(-8px);
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease, margin 0.35s ease, opacity 0.3s ease, transform 0.3s ease;
}

.form-error.visible {
  max-height: 120px;
  padding: 14px 16px;
  margin-bottom: 24px;
  opacity: 1;
  transform: translateY(0);
}

.form-error i {
  font-size: 18px;
  flex-shrink: 0;
}

.form-success {
  background: #fff;
  padding: 60px 40px;
  border-radius: 4px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.form-success.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
}

.form-success .success-icon {
  font-size: 68px;
  color: #28a745;
  margin-bottom: 20px;
  display: inline-block;
  transform: scale(0);
  animation: successPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s forwards;
}

.form-success h3 {
  font-family: 'Ubuntu', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
}

.form-success p {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  color: #666;
  max-width: 400px;
  margin: 0 auto;
}

@keyframes successPop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

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

.form-group label {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  color: #333;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #26bdef;
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-submit {
  display: inline-block;
  background: #333;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 40px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}

.form-submit:hover {
  background: #000;
}


/* === Policies Page === */
.policies-section {
  padding: 60px 20px;
  background: #f7f7f7;
}

.policies-inner {
  max-width: 800px;
  margin: 0 auto;
}

.policy-list {
  list-style: none;
}

.policy-list li {
  margin-bottom: 16px;
}

.policy-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  background: #fff;
  border-radius: 4px;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.policy-list a:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  color: #333;
}

.policy-list .icon {
  color: #333;
  font-size: 20px;
  flex-shrink: 0;
}

/* === Responsive === */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
  }

  .site-nav {
    padding: 0;
  }

  .site-nav ul {
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0;
  }

  .site-nav ul.open {
    display: flex;
  }

  .site-nav a {
    display: block;
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
  }

  .site-nav a::after {
    display: none;
  }

  .hero {
    min-height: 350px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .about h2 {
    font-size: 28px;
  }

  .services {
    flex-direction: column;
    gap: 20px;
  }

  .cert-logos {
    gap: 30px;
  }

  .cert-logos img {
    max-height: 60px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .contact-form {
    padding: 24px;
  }

  .page-hero h1 {
    font-size: 30px;
  }
}
