/* ===== RESET ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body,
h1,
h2,
h3,
p,
ul,
li {
  margin: 0;
  padding: 0;
}

body {
  line-height: 1.6;
  color: #2c3e3e;
  font-size: 15px;
  font-family: sans-serif;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* ===== HERO ===== */
.hero {
  text-align: center;
  padding: 28px 24px;
  min-height: 135px;
  background-image: url('../images/final-header.webp');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 1300px auto;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  position: relative;
  z-index: 2;
}

.logo img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.logo-text {
  font-size: 20px;
  font-weight: bold;
}

.tagline {
  background: #2c7a7b;
  color: white;
  padding: 4px 10px;
  margin-top: 6px;
  font-size: 12px;
  border-radius: 4px;
  width: fit-content;
}

/* ===== NAV ===== */
.site-nav {
  position: sticky;
  top: 0;
  background: #2c7a7b;
  padding: 14px 16px;
  z-index: 1000;
}

.site-nav .nav-menu {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  color: white;
  font-size: 14px;
  font-weight: 500;
}

.site-nav a:hover {
  opacity: 0.7;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
}

/* ===== SECTIONS ===== */
section {
  padding: 40px 20px;
  width: 100%;
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

section + section {
  margin-top: 20px;
}

.light {
  background: #f4f4f4;
}

.dark {
  background: #3d8b8b;
  color: white;
}

h2 {
  margin-bottom: 16px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

p {
  margin-bottom: 16px;
}

/* ===== CTA ===== */
.cta {
  display: inline-block;
  margin-top: 10px;
  color: #2c7a7b;
  font-weight: bold;
}

/* ===== SERVICES ===== */
.services-page {
  text-align: center;
  background: #f2f2f2;
}

.services-intro {
  max-width: 700px;
  margin: 0 auto 40px;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.service-card {
  background: #2c7a7b;
  color: white;
  padding: 20px;
  border-radius: 6px;
  text-align: left;
  transition: 0.2s ease;
}

.service-card h3 {
  margin-bottom: 10px;
  color: white;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* ===== QUALIFICATIONS / MEET US ===== */
.qualifications-wrapper {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.qualifications-text {
  text-align: left;
}

.qualifications-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: none;
  background: transparent;
}

.qualifications-intro-box {
  max-width: 1000px;
  margin: 0 auto 36px;
  padding: 22px 24px;
  background: #2c7a7b;
  color: white;
  border-radius: 12px;
  text-align: left;
}

.qualifications-intro-box p {
  margin-bottom: 16px;
  color: white;
  line-height: 1.6;
}

.qualifications-intro-box p:last-child {
  margin-bottom: 0;
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  margin-top: 40px;
  padding-left: 24px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 0;
  width: 2px;
  height: 100%;
  background: rgba(44, 122, 123, 0.3);
}

.qualifications-page .timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 36px;
}

.qualifications-page .timeline-item .icon {
  background: #2c7a7b;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  left: -6px;
}

.qualifications-page .timeline-item .content {
  flex: 1;
}

.timeline-item h3 {
  font-size: 16px;
  margin-bottom: 2px;
}

.timeline-item span {
  font-size: 13px;
  opacity: 0.8;
  color: #2c7a7b;
}

/* ===== FORM ===== */
form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 600px;
}

input,
textarea {
  border: 1px solid #ddd;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #2c7a7b;
}

button {
  padding: 12px;
  border: none;
  background: white;
  color: #2c7a7b;
  font-weight: bold;
  cursor: pointer;
}

/* ===== CONTACT ===== */
.contact-info p {
  margin: 8px 0;
}

/* ===== CONTACT PAGE ===== */
.contact-page {
  text-align: center;
}

.contact-intro {
  max-width: 600px;
  margin: 0 auto 40px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.contact-details {
  text-align: left;
  background: white;
  padding: 20px;
  border-radius: 6px;
}

.contact-details p {
  margin-bottom: 16px;
}

.contact-form form {
  background: white;
  padding: 20px;
  border-radius: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
}

.contact-form button {
  background: #2c7a7b;
  color: white;
  margin-top: 10px;
}

/* ===== FOOTER ===== */
footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px 0;
  font-size: 12px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  font-size: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.site-footer a {
  color: #2c7a7b;
  text-decoration: none;
  margin-right: 14px;
}

.site-footer a:hover {
  opacity: 0.7;
}

.footer-left,
.footer-right {
  display: flex;
  align-items: center;
}

.footer-right p {
  margin: 0;
}

/* ===== HOMEPAGE ===== */
.home-page {
  text-align: center;
}

.home-page p {
  text-align: justify;
  text-justify: inter-word;
}

.home-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.home-subtitle {
  max-width: 650px;
  margin: 0 auto 20px;
  opacity: 0.85;
}

.home-brand-message {
  max-width: 760px;
  margin: 0 auto 24px;
  text-align: left;
}

.home-brand-message p {
  margin-bottom: 12px;
}

.home-brand-message p:last-child {
  margin-bottom: 0;
}

.home-content {
  max-width: 760px;
  margin: 0 auto 24px;
  text-align: left;
}

.home-content h2 {
  margin-bottom: 12px;
}

.home-cta {
  margin-top: 16px;
}

/* ===== HOMEPAGE IMAGE ===== */
.section-image {
  display: block;
  width: 100%;
  max-width: none;
  height: 360px;
  object-fit: cover;
  object-position: center 35%;
  margin: 24px 0 28px;
  border-radius: 8px;
}

/* ===== BLOG PAGE ===== */
.blog-page {
  text-align: center;
}

.blog-intro {
  max-width: 620px;
  margin: 0 auto 36px;
  opacity: 0.85;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.blog-card {
  background: white;
  color: #2c3e3e;
  border-radius: 8px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.blog-image {
  display: block;
}

.blog-image img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.blog-card-content {
  padding: 22px;
}

.blog-date {
  display: block;
  font-size: 13px;
  color: #2c7a7b;
  margin-bottom: 8px;
  font-weight: 500;
}

.blog-card h3 {
  margin-bottom: 10px;
}

.blog-card h3 a {
  color: #256b6c;
}

.blog-card p {
  margin-bottom: 16px;
}

.blog-read-more {
  color: #2c7a7b;
  font-weight: 600;
  text-decoration: none;
}

.blog-read-more:hover {
  opacity: 0.75;
}

.blog-categories {
  margin-bottom: 10px;
}

.blog-category {
  display: inline-block;
  background: rgba(44, 122, 123, 0.1);
  color: #2c7a7b;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  margin-right: 6px;
}

.blog-meta {
  display: block;
  font-size: 13px;
  color: #2c7a7b;
  margin-bottom: 10px;
  opacity: 0.9;
}

/* ===== SINGLE POST ===== */
.single-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.single-container h1 {
  margin-bottom: 12px;
}

.single-image img {
  width: 100%;
  height: auto;
  margin: 20px 0;
  border-radius: 8px;
}

.single-content p {
  line-height: 1.7;
  margin-bottom: 16px;
}

.single-content h2 {
  margin-top: 24px;
  margin-bottom: 12px;
}

/* ===== SUBTLE REVEAL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateX(-18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-delay-1 {
  transition-delay: 0.08s;
}

.reveal-delay-2 {
  transition-delay: 0.16s;
}

.reveal-delay-3 {
  transition-delay: 0.24s;
}

/* ===== TAGLINE ANIMATION ===== */
.reveal-up {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .hero {
    background-image: none;
  }

  .site-nav {
    padding: 12px 16px;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .site-nav .nav-menu {
    display: none !important;
    flex-direction: column;
    gap: 0;
    width: 100%;
    margin-top: 12px;
    background: #2c7a7b;
  }

  .site-nav .nav-menu.is-open {
    display: flex !important;
  }

  .site-nav .nav-menu li {
    width: 100%;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }

  .site-nav .nav-menu a {
    display: block;
    width: 100%;
    padding: 14px 0;
    color: white;
  }

  .qualifications-intro-box {
    margin-bottom: 28px;
    padding: 18px;
  }

  .qualifications-wrapper {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .qualifications-image {
    max-width: 280px;
    margin: 0 auto;
  }

  .section-image {
    height: 220px;
    object-position: 65% center;
  }
  
  .site-footer {
    flex-direction: column;
    text-align: center;
  }

  .footer-left {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  .footer-left a {
    margin-right: 0;
  }
}

/* ===== DESKTOP ===== */
@media (min-width: 1024px) {
  body {
    max-width: 1100px;
    margin: auto;
  }

  section {
    padding: 72px 40px;
  }

  h2 {
    font-size: 28px;
  }

  p {
    font-size: 16px;
    max-width: 700px;
  }

  .site-nav .nav-menu {
    gap: 48px;
  }

  .site-nav a {
    font-size: 15px;
  }

  .hero {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
  }

  .logo img {
    width: 100px;
    height: 100px;
  }

  .logo-text {
    font-size: 24px;
  }

  .tagline {
    margin-top: 0;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .timeline {
    max-width: 700px;
    margin: 40px auto 0;
  }

  .contact-layout {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: flex-start;
  }

  .blog-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-visible,
  .reveal-delay-1,
  .reveal-delay-2,
  .reveal-delay-3,
  .reveal-up,
  .reveal-up.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}