/* ============================================================
   ECPTC Website — Shared Styles
   Colors: Navy #2B5B8A | Teal #3DBDB0 | White #fff
   ============================================================ */

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

:root {
  --navy:   #2B5B8A;
  --teal:   #3DBDB0;
  --teal-light: #e6f7f6;
  --navy-light: #eef3f9;
  --white:  #ffffff;
  --gray:   #f5f6f8;
  --text:   #2c3e50;
  --muted:  #6b7c93;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(43, 91, 138, 0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--navy); }

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

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }

.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: #33a89c; color: var(--white); }

.btn-secondary { background: var(--navy); color: var(--white); }
.btn-secondary:hover { background: #1e4470; color: var(--white); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

/* ── Navigation ──────────────────────────────────────────── */
nav {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(43, 91, 138, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo img {
  height: 100px;
  width: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.93rem;
  padding: 8px 14px;
  border-radius: 20px;
  transition: background 0.2s, color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  background: var(--teal);
  color: var(--white);
}

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--navy);
  border-radius: 3px;
  transition: 0.3s;
}

/* ── Section Wrappers ────────────────────────────────────── */
.section {
  padding: 72px 24px;
}
.section-alt { background: var(--gray); }
.section-teal { background: var(--teal-light); }
.section-navy { background: var(--navy); color: var(--white); }

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 10px;
}

h1, h2, h3 { color: var(--navy); line-height: 1.3; }

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 16px; }
h3 { font-size: 1.25rem; margin-bottom: 10px; }

p { margin-bottom: 1rem; color: var(--text); }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1e4470 60%, #3DBDB0 100%);
  color: var(--white);
  padding: 100px 24px;
  text-align: center;
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero p { color: rgba(255,255,255,0.9); font-size: 1.2rem; max-width: 640px; margin: 0 auto 36px; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Card Grid ───────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 28px;
  transition: transform 0.2s, box-shadow 0.2s;
  border-top: 4px solid var(--teal);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(43,91,138,0.18); }
.card-icon { font-size: 2.4rem; margin-bottom: 14px; }

/* ── Two-column layout ───────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

/* ── Book Cards ──────────────────────────────────────────── */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.book-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
}
.book-card:hover { transform: translateY(-4px); }

.book-cover {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--navy-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.book-info {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.book-info h3 { color: var(--navy); }
.book-info p { flex: 1; }
.book-badge {
  display: inline-block;
  background: var(--teal-light);
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── App Showcase ────────────────────────────────────────── */
.app-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.app-mockup {
  background: linear-gradient(135deg, var(--navy), var(--teal));
  border-radius: 24px;
  padding: 40px;
  text-align: center;
  color: var(--white);
  box-shadow: var(--shadow);
}
.app-mockup .app-icon { font-size: 5rem; margin-bottom: 16px; }
.app-mockup h3 { color: var(--white); font-size: 1.6rem; }
.app-mockup p { color: rgba(255,255,255,0.85); }

/* ── Contact Form ────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}

.contact-info h3 { color: var(--navy); margin-bottom: 16px; }
.contact-info p { margin-bottom: 12px; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}
.contact-item .icon { font-size: 1.4rem; flex-shrink: 0; }

form { display: flex; flex-direction: column; gap: 18px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

label { font-weight: 600; font-size: 0.9rem; color: var(--navy); display: block; margin-bottom: 6px; }

input, textarea, select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #dde3ea;
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
  background: var(--white);
  color: var(--text);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--teal);
}
textarea { resize: vertical; min-height: 130px; }

/* ── Footer ──────────────────────────────────────────────── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  text-align: center;
  padding: 40px 24px;
}
footer .footer-logo { height: 90px; margin: 0 auto 16px; border-radius: 12px; }
footer p { font-size: 0.9rem; margin-bottom: 6px; }
footer a { color: var(--teal); }

/* ── Stats strip ─────────────────────────────────────────── */
.stats-strip {
  background: var(--navy);
  color: var(--white);
  padding: 48px 24px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.stat-number { font-size: 2.8rem; font-weight: 800; color: var(--teal); }
.stat-label { font-size: 0.95rem; opacity: 0.85; }

/* ── Divider ─────────────────────────────────────────────── */
.divider {
  width: 60px;
  height: 4px;
  background: var(--teal);
  border-radius: 2px;
  margin: 16px 0 28px;
}

/* ── Credential badges ───────────────────────────────────── */
.credential-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}
.credential-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}
.credential-list li::before {
  content: "✓";
  background: var(--teal);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* ── Testimonial ─────────────────────────────────────────── */
.testimonial {
  background: var(--white);
  border-left: 5px solid var(--teal);
  padding: 24px 28px;
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
  margin-top: 32px;
}
.testimonial p { font-style: italic; font-size: 1.05rem; margin-bottom: 12px; }
.testimonial .author { font-weight: 700; color: var(--navy); font-style: normal; }

/* ── Page Header (inner pages) ───────────────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--navy), #1e6080);
  color: var(--white);
  padding: 64px 24px;
  text-align: center;
}
.page-header h1 { color: var(--white); margin-bottom: 12px; }
.page-header p { color: rgba(255,255,255,0.88); font-size: 1.1rem; max-width: 580px; margin: 0 auto; }

/* ── Google Translate Widget ─────────────────────────────── */
.translate-wrap { flex-shrink: 0; }
.goog-te-gadget-simple {
  border: 2px solid var(--navy) !important;
  border-radius: 20px !important;
  padding: 5px 12px !important;
  background: transparent !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  cursor: pointer;
}
.goog-te-gadget-simple .goog-te-menu-value span:first-child { color: var(--navy) !important; }
.goog-te-gadget-simple img { display: none !important; }
.goog-te-banner-frame { display: none !important; }
body { top: 0 !important; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 95px;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    padding: 20px;
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 20px; }

  .two-col,
  .app-showcase,
  .contact-grid { grid-template-columns: 1fr; }
  .two-col.reverse { direction: ltr; }
  .form-row { grid-template-columns: 1fr; }

  .hero { padding: 72px 24px; }
}
