:root {
  --primary: #0052cc;
  --primary-dark: #003d99;
  --bg-muted: #f3f4f6;
  --bg-muted2: #e6dfdf;
  --text-main: #0f172a;
  --text-subtle: #4b5563;
  --white: #ffffff;
  --card-radius: 12px;
  --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.08);
}

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

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #ffffff;
  color: var(--text-main);
}

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

button {
  font-family: inherit;
}

/* Layout */

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

/* Header / Nav */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  display: flex;
  align-items: center;
  z-index: 50;
  padding: 0 2rem;
  background: transparent;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
}

.nav-logo-icon {
  font-size: 1.4rem;
}

.nav-brand {
  font-size: 1.1rem;
  font-weight: 600;
}

/* Right side */

.nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
  color: #fff;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-menu a {
  position: relative;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: #fff;
  transition: width 0.15s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

.language-select {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.9rem;
  cursor: pointer;
}

/* Buttons */

.btn-primary {
  background: var(--primary);
  color: #fff;
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.4);
  transition: background 0.15s ease, transform 0.1s ease,
    box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: #111827;
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-secondary:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.btn-primary.full-width {
  width: 100%;
}

/* Hero */

.hero {
  min-height: 100vh;
  background-image: linear-gradient(
      rgba(0, 0, 0, 0.55),
      rgba(0, 0, 0, 0.55)
    ),
    url("https://images.unsplash.com/photo-1520607162513-77705c0f0d4a?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 0 1rem;
}

.hero-inner {
  max-width: 900px;
  margin-top: 40px; /* small offset for header */
}

.hero-title {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 1.8rem;
  color: #e5e7eb;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

/* Sections */

.section {
  padding: 4rem 1rem;
}

.section-muted {
  background: var(--bg-muted);
}

.section-muted2 {
  background: var(--bg-muted2);
}

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

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-subtle);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

/* Services */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: #fff;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-soft);
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.service-icon-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.service-icon-circle img {
  width: 34px;
  height: 34px;
}

.service-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.6rem;
}

.service-text {
  font-size: 0.95rem;
  color: #475569;
}

/* Tips */

.tips-card {
  max-width: 700px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-soft);
  padding: 2rem 1.5rem;
}

.tips-card-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.3rem;
}

.tips-card-header p {
  font-size: 0.95rem;
  color: #6b7280;
  margin-bottom: 1rem;
}

.tips-input {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #f3f4f6;
  font-size: 0.95rem;
  color: #374151;
  margin-bottom: 1.5rem;
}

.tips-card-footer {
  border-top: 1px solid #e5e7eb;
  padding-top: 1rem;
}

.tips-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.tips-icon {
  font-size: 1.1rem;
}

.tips-output {
  max-width: 700px;
  margin: 2rem auto 0;
  background: #fff;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem;
  font-size: 1rem;
  color: #1e293b;
  display: none;
}

/* Appointment */

.appointment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  align-items: flex-start;
}

.card {
  background: #fff;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-soft);
  padding: 2rem 1.5rem;
}

.card-subtitle {
  font-size: 0.95rem;
  color: #6b7280;
  margin-bottom: 1.5rem;
}

/* Calendar */

.calendar {
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.calendar-header button {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  gap: 4px;
}

.calendar-day-name {
  font-weight: 600;
  font-size: 0.8rem;
}

.calendar-day {
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  background: #f1f5f9;
  color: #1e293b;
}

.calendar-day.selected {
  background: #1e3a8a;
  color: #fff;
}

.calendar-day.empty {
  background: transparent;
  cursor: default;
}

.selected-date-label {
  font-weight: 600;
  color: #1e293b;
  margin: 0.5rem 0 0.8rem;
  display: none;
}

/* Time slots */

.time-slots {
  display: none;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.time-slot {
  padding: 0.7rem;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  text-align: center;
  cursor: pointer;
  background: #fff;
  color: #1e293b;
}

.time-slot.selected {
  background: #1e3a8a;
  color: #fff;
}

/* Form basics */

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.form-row.two-col > .form-field {
  flex: 1 1 180px;
}

.form-field label {
  display: block;
  font-size: 0.85rem;
  color: #4b5563;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.8rem;
  margin-top: 0.3rem;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background: #f3f4f6;
  font-size: 0.95rem;
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

/* Upload box */

.upload-card .upload-box {
  border: 2px dashed #cbd5e1;
  background: #f8fafc;
  padding: 3rem 1rem;
  border-radius: 12px;
  text-align: center;
}

.upload-icon {
  font-size: 2.2rem;
  opacity: 0.6;
}

.upload-title {
  font-size: 0.95rem;
  margin: 0.7rem 0;
  color: #475569;
}

.upload-subtitle {
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 1rem;
}

/* FAQ */

.faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: #fff;
  padding: 1rem 1.2rem;
  border-radius: 8px;
  margin-bottom: 0.7rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  cursor: pointer;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: #1e293b;
}

.faq-arrow {
  transition: transform 0.2s ease;
}

.faq-answer {
  display: none;
  margin-top: 0.6rem;
  color: #4b5563;
  font-size: 0.95rem;
}



/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  align-items: flex-start;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.contact-icon-circle {
  width: 40px;
  height: 40px;
  background: #f3f4f6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  font-size: 1.2rem;
}

.contact-label {
  font-weight: 600;
  color: #1e293b;
}

.contact-text {
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.4;
}

.contact-link {
  color: #1e3a8a;
}

.contact-submit {
  margin-top: 0.5rem;
}

/* Footer */

.site-footer {
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  padding: 1rem 1.5rem;
  margin-top: auto;
  font-size: 0.85rem;
  color: #6b7280;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

/* Mobile nav */

.menu-toggle {
  display: none;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0.25rem;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: #e5e7eb;
  margin: 4px 0;
}

.mobile-menu {
  display: none;
}

/* Responsive */

@media (max-width: 900px) {
  .nav-right {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
  }

  .site-header {
    padding: 0 1.2rem;
  }

  .mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.98);
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.9rem 1.2rem 1.2rem;
    z-index: 40;
    transform-origin: top;
    transform: scaleY(0.9);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
  }

  .mobile-menu.open {
    opacity: 1;
    transform: scaleY(1);
    pointer-events: auto;
  }

  .mobile-menu a {
    font-size: 0.95rem;
  }

  .mobile-menu .btn-primary {
    align-self: flex-start;
    margin-top: 0.5rem;
  }

  .hero-inner {
    margin-top: 20px;
  }
}

/* Language dropdown */
.lang-switch { position: relative; }
.language-select { background: transparent; border: none; color: #fff; padding: 0.25rem 0.4rem; border-radius: 999px; }
.language-select:focus { outline: 2px solid rgba(255,255,255,0.6); outline-offset: 2px; }

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 0.4rem;
  min-width: 170px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.35);
  display: none;
  z-index: 60;
}
.lang-menu.open { display: block; }

.lang-option {
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.7rem;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 0.95rem;
}
.lang-option:hover { background: rgba(255,255,255,0.12); }

.mobile-lang { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.5rem; }
.mobile-lang .btn-secondary { background: rgba(255,255,255,0.12); color:#fff; border-color: rgba(255,255,255,0.25); }
