/* ============================================
   Corporate Website Stylesheet
   Replace brand colors in :root to customize
   ============================================ */

:root {
  --primary: #14294b;        /* SMBS deep navy */
  --primary-dark: #0d1c34;
  --accent: #c2a14d;         /* SMBS gold */
  --accent-hover: #ad8c39;
  --accent-text: #14294b;    /* text color on gold buttons */
  --text: #2b2f36;
  --text-light: #5c6470;
  --bg: #ffffff;
  --bg-alt: #f4f6f9;
  --border: #e2e6ec;
  --max-width: 1120px;
  --radius: 8px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16.5px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header & Navigation ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(16, 34, 61, 0.06);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

@media (max-width: 1080px) {
  .logo { font-size: 1rem; max-width: 340px; line-height: 1.25; }
}

.logo span { color: var(--accent); }

.main-nav { display: flex; gap: 28px; align-items: center; }

.main-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .18s, border-color .18s;
}

.main-nav a:hover { color: var(--accent); }
.main-nav a.active { color: var(--primary); border-bottom-color: var(--accent); }

.nav-cta {
  background: var(--accent);
  color: var(--accent-text) !important;
  font-weight: 600;
  padding: 9px 20px !important;
  border-radius: var(--radius);
  border-bottom: none !important;
  transition: background .18s;
}
.nav-cta:hover { background: var(--accent-hover); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--primary);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 96px 0 104px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 800px;
  margin: 0 auto 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
  margin: 0 auto 36px;
}

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: background .18s, transform .12s;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: var(--accent-hover); }

.btn-outline {
  border: 2px solid rgba(255,255,255,0.7);
  color: #fff;
  margin-left: 12px;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }

/* Page hero (interior pages) */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 64px 0;
  text-align: center;
}
.page-hero h1 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,0.85); max-width: 620px; margin: 0 auto; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head h2 {
  font-size: 1.9rem;
  color: var(--primary);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.section-head p { color: var(--text-light); }

/* ---------- Cards / Grid ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: box-shadow .2s, transform .2s;
}
.card:hover {
  box-shadow: 0 8px 24px rgba(16, 34, 61, 0.09);
  transform: translateY(-3px);
}

.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(194, 161, 77, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.card h3 { color: var(--primary); margin-bottom: 10px; font-size: 1.18rem; }
.card p { color: var(--text-light); font-size: 0.97rem; }

/* ---------- Stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat h3 { font-size: 2.2rem; color: var(--accent-hover); }
.stat p { color: var(--text-light); font-size: 0.95rem; }

/* ---------- About page ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.two-col h2 { color: var(--primary); font-size: 1.7rem; margin-bottom: 16px; }
.two-col p { color: var(--text-light); margin-bottom: 14px; }

.img-placeholder {
  background: linear-gradient(135deg, #f0e9d8, #dfd2ae);
  border-radius: var(--radius);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 600;
  border: 1px dashed #c2a14d;
}

.values-list { list-style: none; margin-top: 8px; }
.values-list li {
  padding: 10px 0 10px 32px;
  position: relative;
  color: var(--text-light);
}
.values-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ---------- Team ---------- */
.team-card { text-align: center; }
.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dfe7f2, #c6d4e8);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
}
.team-card h3 { font-size: 1.1rem; }
.team-card .role { color: var(--accent-hover); font-size: 0.92rem; margin-bottom: 8px; }

/* Certification badges */
.cert-badges { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 20px; }
.cert-badge {
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 18px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}
.hero .cert-badges { justify-content: center; }

/* Detail table (registration details) */
.detail-table { width: 100%; border-collapse: collapse; }
.detail-table th, .detail-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.96rem;
}
.detail-table th {
  color: var(--primary);
  font-weight: 600;
  width: 38%;
  background: var(--bg-alt);
}
.detail-table td { color: var(--text-light); }

/* Project list */
.project-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
}
.project-item .num {
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
  min-width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
.project-item h4 { color: var(--primary); font-size: 1.02rem; }
.project-item p { color: var(--text-light); font-size: 0.92rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  text-align: center;
  border-radius: 12px;
  padding: 56px 32px;
}
.cta-banner h2 { font-size: 1.8rem; margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.85); margin-bottom: 28px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
}

.contact-info h2 { color: var(--primary); font-size: 1.5rem; margin-bottom: 18px; }
.info-item { display: flex; gap: 14px; margin-bottom: 22px; }
.info-item .icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 10px;
  background: rgba(194, 161, 77, 0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.info-item h4 { color: var(--primary); font-size: 1rem; }
.info-item p { color: var(--text-light); font-size: 0.95rem; }

.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 6px;
  color: var(--primary);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.97rem;
  transition: border-color .15s, box-shadow .15s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(194, 161, 77, 0.25);
}
.form-note { font-size: 0.85rem; color: var(--text-light); margin-top: 12px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 56px 0 24px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 36px;
  margin-bottom: 40px;
}

.site-footer h4 { color: #fff; margin-bottom: 14px; font-size: 1.02rem; }
.site-footer p { font-size: 0.93rem; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(255,255,255,0.8); text-decoration: none; font-size: 0.93rem; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 22px;
  text-align: center;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid-3, .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .two-col, .contact-grid, .grid-2 { grid-template-columns: 1fr; }
  .hero { padding: 72px 0; }

  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 16px rgba(16,34,61,0.08);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; width: 100%; }
  .nav-cta { text-align: center; margin-top: 8px; }
}

@media (max-width: 540px) {
  .grid-3, .footer-grid, .stats { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .btn-outline { margin-left: 0; margin-top: 12px; }
}
