/* RESET & BASE ------------------------------------------------------------ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #f5f5f7;
  color: #111827;
  line-height: 1.6;
}

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

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

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* LAYOUT HELPERS ---------------------------------------------------------- */

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 7vw;
}

.section {
  padding: 48px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 32px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.section-subtitle {
  font-size: 0.98rem;
  color: #6b7280;
}

/* NAVBAR ------------------------------------------------------------------ */

.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 7vw;
}

.brand {
  font-weight: 700;
  font-size: 1.18rem;
  color: #810696;
  letter-spacing: 0.03em;
}

.nav-links a {
  margin-left: 24px;
  font-size: 0.95rem;
  color: #4b5563;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a:hover {
  color: #111827;
}

.nav-links a.active {
  color: #810696;
  font-weight: 600;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: #810696;
  border-radius: 999px;
}

/* HERO -------------------------------------------------------------------- */

.hero {
  position: relative;
  height: 70vh;
  min-height: 480px;
  background: #111827 url("images/hero.jpg") center/cover no-repeat;
  color: #ffffff;
  display: flex;
  align-items: center;
}

.hero::after {
  content: "  ";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(15, 23, 42, 0.85),
    rgba(15, 23, 42, 0.3)
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  padding: 0 7vw;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 100px;
}

.hero-subtitle {
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 16px;
}

.hero-text {
  font-size: 1rem;
  color: #e5e7eb;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 11px 22px;
  font-size: 0.96rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}

.btn-primary {
  background: #810696;
  color: #f9fafb;
  box-shadow: 0 16px 40px #3D0047;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 55px #8B00A3;
}

.btn-secondary {
  background: rgba(31, 41, 55, 0.9);
  color: #f9fafb;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.55);
}

.btn-secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.6);
}

/* STATS STRIP ------------------------------------------------------------- */

.stats-strip {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.stats-inner {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 26px 7vw;
  flex-wrap: wrap;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 150px;
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: #eef2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  font-size: 1.3rem;
  color: #810696;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 700;
}

.stat-label {
  font-size: 0.86rem;
  color: #6b7280;
}

/* PROJECT CARDS ----------------------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}

.project-card {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.1);
}

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

.project-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-title {
  font-size: 1rem;
  font-weight: 600;
}

.project-code {
  font-size: 0.8rem;
  color: #9ca3af;
  letter-spacing: 0.08em;
}

.project-desc {
  font-size: 0.86rem;
  color: #6b7280;
  margin-top: 4px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.badge {
  font-size: 0.72rem;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e5e7eb;
  color: #374151;
}

.badge-primary {
  background: #111827;
  color: #f9fafb;
}

.badge-soft {
  background: #e0ebff;
  color: #1d4ed8;
}

/* ABOUT + FEATURE CARDS --------------------------------------------------- */

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr);
  gap: 36px;
  align-items: start;
}

.about-text p + p {
  margin-top: 12px;
}

.about-underline {
  width: 64px;
  height: 4px;
  border-radius: 999px;
  background: #810696;
  margin-top: 6px;
  margin-bottom: 18px;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.feature-card {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  padding: 16px 18px;
}

.feature-card-title {
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.feature-card-desc {
  font-size: 0.84rem;
  color: #6b7280;
}

.responsive {
  width: 100%;
  height: auto;
}

.cert {
  padding-top: 18px;
  padding-right: 80px;
  padding-bottom: 18px;
  padding-left: 80px;
}
.iiimg {
  padding-top: 18px;
  padding-right: 10px;
  padding-bottom: 18px;
  padding-left: 10px;
}
/* CONTACT PAGE ------------------------------------------------------------ */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr);
  gap: 26px;
  align-items: flex-start;
}

.form-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 20px 22px 24px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.form-card h2 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

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

.form-group label {
  display: block;
  font-size: 0.86rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  border-radius: 11px;
  border: 1px solid #d1d5db;
  padding: 9px 11px;
  font-size: 0.95rem;
  outline: none;
  background: #f9fafb;
  transition: border-color 0.12s ease, box-shadow 0.12s ease,
    background 0.12s ease;
}

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

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: #810696;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.info-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.info-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
}

.info-icon {
  width: 32px;
  height: 32px;
  border-radius: 11px;
  background: #eef2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #810696;
  flex-shrink: 0;
}

.info-item-label {
  font-weight: 500;
}

.info-item-value {
  color: #4b5563;
  font-size: 0.9rem;
}

/* BUSINESS HOURS TABLE ---------------------------------------------------- */

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.hours-table tr + tr td {
  border-top: 1px solid #e5e7eb;
}

.hours-table td {
  padding: 6px 0;
}

.hours-table td:last-child {
  text-align: right;
}

/* SEARCH BAR -------------------------------------------------------------- */

.search-bar {
  margin-bottom: 24px;
}

.search-input {
  width: 100%;
  max-width: 460px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  padding: 9px 14px;
  font-size: 0.96rem;
  background: #f9fafb;
  outline: none;
}

.search-input:focus {
  border-color: #810696;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

/* PROJECT DETAIL PAGE ----------------------------------------------------- */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: #4b5563;
  margin-bottom: 18px;
}

.back-link span.arrow {
  font-size: 1.1rem;
}

.detail-hero {
  margin-bottom: 26px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 28px;
  align-items: flex-start;
}

.detail-main h2 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.detail-main p + p {
  margin-top: 10px;
}

.detail-main ul {
  margin: 12px 0 0 18px;
  font-size: 0.94rem;
}

.detail-main li + li {
  margin-top: 4px;
}

.detail-side-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
  margin-bottom: 14px;
}

.detail-side-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.detail-meta {
  font-size: 0.88rem;
}

.detail-meta-row {
  margin-bottom: 8px;
}

.detail-meta-label {
  font-weight: 500;
}

.detail-meta-value {
  color: #4b5563;
}

.doc-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.doc-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-radius: 9px;
  background: #f9fafb;
  font-size: 0.88rem;
}

/* TEAM PAGE --------------------------------------------------------------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 22px;
}

.team-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 18px 18px 20px;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.06);
  text-align: center;
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 999px;
  background: linear-gradient(135deg, #810696, #6366f1);
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f9fafb;
  font-weight: 700;
  font-size: 1.3rem;
}

.team-name {
  font-weight: 600;
  margin-bottom: 4px;
}

.team-role {
  font-size: 0.86rem;
  color: #6b7280;
  margin-bottom: 8px;
}

.team-bio {
  font-size: 0.84rem;
  color: #6b7280;
}

/* FOOTER ------------------------------------------------------------------ */

.footer {
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  margin-top: 32px;
}

.footer-top {
  padding: 28px 7vw 18px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto;
}

.footer-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.footer-text {
  font-size: 0.88rem;
  color: #6b7280;
  max-width: 420px;
}

.footer-col-title {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.86rem;
  color: #4b5563;
}

.footer-links a:hover {
  color: #111827;
}

.footer-bottom {
  border-top: 1px solid #e5e7eb;
  padding: 12px 7vw 16px;
  font-size: 0.8rem;
  color: #9ca3af;
  text-align: center;
}

/* RESPONSIVE -------------------------------------------------------------- */

@media (max-width: 960px) {
  .hero {
    height: auto;
    padding: 60px 0;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .about-layout,
  .contact-layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none; /* simple mobile: hide nav links */
  }

  .stats-inner {
    gap: 26px;
  }

  .section {
    padding: 36px 0;
  }

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