/* ===== CEBM Inc - Modern Stylesheet ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=DM+Serif+Display:ital@0;1&display=swap');

:root {
  --blue:       #1a7fa8;
  --blue-light: #e8f5fb;
  --blue-mid:   #2a9dce;
  --orange:     #e07535;
  --orange-light: #fff4ed;
  --text:       #444c5a;
  --text-light: #7a8394;
  --dark:       #1a2233;
  --bg:         #f7f9fb;
  --white:      #ffffff;
  --border:     #e2e8f0;
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.09), 0 1px 4px rgba(0,0,0,0.06);
  --shadow-lg:  0 10px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.08);
  --radius:     10px;
  --radius-sm:  6px;
  --max-w:      1060px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--blue-mid); }

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

/* ===== TOP BAR ===== */
#topbar {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  font-size: 12.5px;
  padding: 7px 0;
}
#topbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
}
#topbar a { color: rgba(255,255,255,0.75); transition: color 0.2s; }
#topbar a:hover { color: #fff; }
#topbar .sep { color: rgba(255,255,255,0.25); }

/* ===== HEADER ===== */
#header-wrap {
  background: #fff;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}
#header {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
#logo img { height: 52px; width: auto; }

/* ===== NAV ===== */
#topnav {
  display: flex;
  list-style: none;
  gap: 2px;
  align-items: center;
}
#topnav li a {
  display: block;
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
#topnav li a:hover { background: var(--blue-light); color: var(--blue); }
#topnav li.active a {
  background: var(--blue);
  color: #fff;
}
#topnav li.active a:hover { background: var(--blue-mid); color: #fff; }

/* ===== SLIDESHOW (homepage) ===== */
#slideshow-wrap {
  background: var(--dark);
  position: relative;
}
.slideshow {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 420px;
  background: #0e1521;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.slide.active { opacity: 1; }
.slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.72);
}
.slideshow-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  pointer-events: none;
}
.slideshow-overlay h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(26px, 4vw, 46px);
  color: #fff;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  margin-bottom: 12px;
}
.slideshow-overlay p {
  color: rgba(255,255,255,0.88);
  font-size: 16px;
  font-weight: 300;
  max-width: 560px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}
.slideshow-dots {
  position: absolute;
  bottom: 16px;
  left: 0; right: 0;
  text-align: center;
  z-index: 5;
}
.slideshow-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
  background: transparent;
  margin: 0 4px;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
}
.slideshow-dots button.active {
  background: #fff;
  border-color: #fff;
  transform: scale(1.2);
}

/* ===== INNER PAGE BANNER ===== */
.page-banner {
  background: linear-gradient(100deg, var(--dark) 0%, #1e3a52 100%);
  position: relative;
  overflow: hidden;
}
.page-banner::after {
  content: '';
  position: absolute;
  right: -60px; top: -40px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(26,127,168,0.25) 0%, transparent 70%);
  pointer-events: none;
}
.page-banner-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 36px 24px 32px;
  position: relative;
  z-index: 1;
}
.page-banner-inner h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 30px;
  font-weight: 400;
  color: #fff;
  margin: 0 0 6px;
}
.page-banner-inner .banner-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  font-weight: 400;
}
.breadcrumb {
  font-size: 12.5px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 10px;
}
.breadcrumb a { color: rgba(255,255,255,0.6); }
.breadcrumb a:hover { color: rgba(255,255,255,0.9); }

/* ===== MAIN CONTENT ===== */
#main-wrap { background: var(--bg); }
#content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 44px 24px 56px;
  min-height: 400px;
}

/* ===== SECTION TITLES ===== */
.section-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 26px;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 6px;
}
.section-sub {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 32px;
}

/* ===== SERVICE CARDS ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-bottom: 48px;
}
.service-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  border: 1px solid var(--border);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.service-card .img-wrap {
  overflow: hidden;
  height: 130px;
}
.service-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.service-card:hover img { transform: scale(1.06); }
.service-card-body {
  padding: 14px 14px 16px;
  text-align: center;
}
.service-card h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 5px;
  line-height: 1.3;
}
.service-card h3 a { color: inherit; }
.service-card h3 a:hover { color: var(--blue); }
.service-card p {
  font-size: 11.5px;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 10px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  border: none;
  letter-spacing: 0.2px;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 2px 8px rgba(26,127,168,0.3);
}
.btn-primary:hover {
  background: var(--blue-mid);
  color: #fff;
  box-shadow: 0 4px 14px rgba(26,127,168,0.4);
  transform: translateY(-1px);
}
.btn-secondary {
  background: #fff;
  color: var(--blue);
  border: 1.5px solid var(--blue);
}
.btn-secondary:hover {
  background: var(--blue-light);
  color: var(--blue);
  transform: translateY(-1px);
}
.btn-large { padding: 13px 28px; font-size: 14.5px; }
.btn-orange {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 2px 8px rgba(224,117,53,0.3);
}
.btn-orange:hover {
  background: #c9622a;
  color: #fff;
  transform: translateY(-1px);
}

/* ===== DIVIDER ===== */
.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 44px 0;
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--blue);
  padding: 28px 24px;
}
.stats-bar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-item .stat-num {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 34px;
  color: #fff;
  line-height: 1;
}
.stat-item .stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* ===== GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 0 0 10px;
}
.gallery-grid a {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.gallery-grid img {
  width: 100%; height: 120px;
  object-fit: cover;
  transition: transform 0.35s;
}
.gallery-grid a:hover img { transform: scale(1.08); }

/* ===== ABOUT TEXT ===== */
.about-text {
  text-align: center;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  max-width: 740px;
  margin: 0 auto 20px;
}
.about-text .highlight {
  color: var(--blue);
  font-style: italic;
  font-size: 17px;
  font-family: 'DM Serif Display', Georgia, serif;
}
.about-text strong { color: var(--dark); }

/* ===== CTA ROW ===== */
.cta-row {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 32px 0;
}
.cta-row .or { color: var(--text-light); font-style: italic; font-size: 13px; }

/* ===== CTA BAND ===== */
.cta-band {
  background: linear-gradient(100deg, var(--dark) 0%, #1e3a52 100%);
  padding: 44px 24px;
  text-align: center;
  margin: 40px 0 0;
  border-radius: var(--radius);
}
.cta-band h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 26px;
  color: #fff;
  margin-bottom: 10px;
}
.cta-band p {
  color: rgba(255,255,255,0.7);
  font-size: 15px;
  margin-bottom: 22px;
}

/* ===== TWO COL ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 10px;
}
.two-col h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--dark);
  text-align: left;
  margin-bottom: 16px;
}
.two-col img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.two-col p { font-size: 14px; line-height: 1.75; }

/* ===== SERVICE PAGE TWO-COL ===== */
.service-detail-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  width: 100%;
  margin-bottom: 16px;
}
.service-detail-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.service-detail-list li {
  padding: 9px 0 9px 28px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text);
  position: relative;
}
.service-detail-list li:last-child { border-bottom: none; }
.service-detail-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}
.service-intro {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 16px;
}
.service-list-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 12px;
}

/* ===== CONTACT INFO ===== */
.contact-info {
  font-size: 14px;
  line-height: 2;
}
.contact-info strong { color: var(--dark); }
.contact-info a { color: var(--orange); }
.contact-info a:hover { color: var(--orange); text-decoration: underline; }

/* ===== CONTACT FORM ===== */
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,127,168,0.1);
}
.form-group select { color: var(--text); }
.form-group textarea { resize: vertical; }

/* ===== CARD (why cebm, about, etc) ===== */
.info-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

/* ===== FOOTER ===== */
#footer-wrap {
  background: var(--dark);
  margin-top: 0;
}
#footer {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px 24px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  text-align: center;
  line-height: 1.9;
}
#footer a { color: rgba(255,255,255,0.7); }
#footer a:hover { color: #fff; }

/* ===== LIGHTBOX ===== */
.lightbox-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img {
  max-width: 90vw; max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}
.lightbox-close {
  position: absolute; top: 20px; right: 28px;
  color: #fff; font-size: 38px; cursor: pointer;
  line-height: 1; opacity: 0.8; transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-bar-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  #topbar { display: none; }
  #header { height: 60px; padding: 0 14px; }
  #logo img { height: 40px; }
  #topnav { gap: 1px; }
  #topnav li a { padding: 6px 8px; font-size: 11.5px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; gap: 28px; }
  .slideshow { height: 240px; }
  .slideshow-overlay h2 { font-size: 22px; }
  .slideshow-overlay p { font-size: 13px; }
  .stats-bar-inner { grid-template-columns: repeat(2, 1fr); }
  #content { padding: 28px 16px 40px; }
  .page-banner-inner { padding: 24px 16px 20px; }
  .page-banner-inner h1 { font-size: 22px; }
}
