/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #2b6cb0;
  --primary-dark: #1a4d80;
  --accent: #38a169;
  --accent-dark: #276749;
  --bg: #f7fafc;
  --surface: #ffffff;
  --text: #2d3748;
  --text-light: #718096;
  --border: #e2e8f0;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 1120px;
  --nav-height: 68px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--nav-height) + env(safe-area-inset-top, 0px));
}

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

a:hover {
  color: var(--primary-dark);
}

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

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  padding-top: env(safe-area-inset-top, 0px);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  background: #ebf4ff;
  color: var(--primary);
}

.lang-toggle {
  margin-left: 12px;
  padding: 6px 14px;
  border: 2px solid var(--primary);
  border-radius: 20px;
  background: transparent;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.lang-toggle:hover {
  background: var(--primary);
  color: #fff;
}

/* Mobile menu button */
.nav-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 6px 0;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, #ebf4ff 0%, #e6fffa 100%);
  padding: 80px 24px 64px;
  text-align: center;
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 620px;
  margin: 0 auto;
}

/* ===== Page Header (non-home pages) ===== */
.page-header {
  background: linear-gradient(135deg, #ebf4ff 0%, #e6fffa 100%);
  padding: 48px 24px 40px;
  text-align: center;
}

.page-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.page-header p {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto;
}

/* ===== Sections & Containers ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 64px 0;
}

/* ===== Service Cards (Home) ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.card-icon.blue {
  background: #ebf4ff;
  color: var(--primary);
}

.card-icon.green {
  background: #e6fffa;
  color: var(--accent);
}

.card-icon.orange {
  background: #fffaf0;
  color: #c05621;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--text);
}

.card p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 20px;
  flex-grow: 1;
}

.card .btn {
  margin-top: auto;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 24px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
}

/* ===== Services Page ===== */
.svc-section {
  padding: 56px 0;
}

.svc-section-alt {
  background: #f0f7ff;
}

.services-content {
  max-width: 780px;
  margin: 0 auto;
}

.services-content h2 {
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin-bottom: 16px;
}

.services-content p {
  margin-bottom: 20px;
  color: var(--text-light);
}

/* Intro grid: text + photo side by side */
.svc-intro-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}

.svc-intro-text p {
  margin-bottom: 18px;
  color: var(--text-light);
  line-height: 1.8;
}

.svc-photo-placeholder {
  display: flex;
  justify-content: center;
}

.svc-photo {
  width: 260px;
  height: 320px;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow);
}

/* Bilingual highlight box */
.svc-bilingual-highlight {
  background: var(--surface);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px;
  margin: 24px 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.svc-bilingual-highlight p {
  margin-bottom: 0;
  color: var(--text);
  font-weight: 500;
}

/* CTA section */
.svc-cta-section {
  background: linear-gradient(135deg, #ebf4ff 0%, #e6fffa 100%);
}

.svc-cta {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.svc-cta h2 {
  font-size: 1.8rem;
  color: var(--primary-dark);
  margin-bottom: 16px;
}

.svc-cta p {
  color: var(--text-light);
  margin-bottom: 28px;
  line-height: 1.8;
}

.btn-lg {
  padding: 14px 36px;
  font-size: 1.05rem;
}

/* Services list */
.services-list {
  list-style: none;
  margin: 24px 0;
}

.services-list li {
  padding: 14px 20px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1rem;
  line-height: 1.7;
}

.services-list li::before {
  content: "\2713";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e6fffa;
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ===== FAQ / Accordion (OPWDD) ===== */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
}

.faq-category {
  font-size: 1.25rem;
  color: var(--primary-dark);
  margin: 36px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
}

.faq-category:first-child {
  margin-top: 0;
}

.faq-item {
  background: var(--surface);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 18px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font);
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-question::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--text-light);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item.open .faq-question::after {
  content: "\2212";
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-light);
  line-height: 1.8;
}

.faq-item.open .faq-answer {
  max-height: 800px;
}

/* ===== Contact Form ===== */
.contact-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

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

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

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

.form-success {
  display: none;
  padding: 48px 32px;
  background: #e6fffa;
  border-radius: var(--radius);
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 1.15rem;
  text-align: center;
  line-height: 1.7;
  box-shadow: var(--shadow);
}

.form-success.show {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== Footer ===== */
.site-footer {
  margin-top: auto;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-menu-btn {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: calc(var(--nav-height) + env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 16px 24px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0.3s;
  }

  .nav-links.open {
    transform: translateY(0);
    visibility: visible;
  }

  .nav-links a {
    width: 100%;
    padding: 12px 16px;
  }

  .lang-toggle {
    margin-left: 0;
    margin-top: 8px;
    width: 100%;
    text-align: center;
  }

  .svc-intro-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .svc-photo-placeholder {
    order: -1;
  }

  .svc-photo {
    width: 200px;
    height: 250px;
  }

  .svc-section {
    padding: 40px 0;
  }

  .hero {
    padding: 48px 20px 40px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 32px;
  }

  section {
    padding: 48px 0;
  }

  .page-header {
    padding: 40px 20px 32px;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 40px 16px 36px;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .page-header {
    padding: 36px 16px 28px;
  }

  .card {
    padding: 28px 20px;
  }
}
