/* ===== CSS Variables ===== */
:root {
  --color-primary: #2563EB;
  --color-primary-dark: #1E40AF;
  --color-primary-light: #DBEAFE;
  --color-dark: #1E3A5F;
  --color-dark-light: #1D4ED8;
  --color-text: #4B5563;
  --color-text-light: #6B7280;
  --color-bg: #F9FAFB;
  --color-white: #FFFFFF;
  --color-border: #E5E7EB;
  --color-success: #10B981;
  --color-error: #EF4444;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --radius: 8px;
  --radius-lg: 12px;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 16px;
}

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

img {
  max-width: 100%;
  height: auto;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-dark);
  line-height: 1.2;
}

h1 { font-size: 2.5rem; font-weight: 800; }
h2 { font-size: 2rem; font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { margin-bottom: 1rem; }

/* ===== Utility ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-light);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  line-height: 1.4;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

.btn-white {
  background: var(--color-white);
  color: var(--color-dark);
}
.btn-white:hover {
  background: var(--color-bg);
  transform: translateY(-1px);
}

.btn-dark {
  background: var(--color-dark);
  color: var(--color-white);
}
.btn-dark:hover {
  background: #111827;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-group.center {
  justify-content: center;
}

/* ===== Top Bar ===== */
.top-bar {
  background: linear-gradient(to right, #1e3a8a, #1d4ed8);
  color: var(--color-white);
  padding: 0.5rem 0;
  font-size: 0.85rem;
}

.top-bar .container {
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.top-bar a {
  color: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s;
}

.top-bar a:hover {
  color: #93C5FD;
}

.top-bar svg {
  width: 14px;
  height: 14px;
}

/* ===== Navbar ===== */
.navbar {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-dark);
}

.nav-logo svg {
  color: #2563EB;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  border-radius: var(--radius);
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: #1E40AF;
  background: #DBEAFE;
}

.nav-book-btn {
  margin-left: 0.5rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-dark);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

/* Mobile Nav */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    gap: 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.75rem 1rem;
    width: 100%;
  }

  .nav-book-btn {
    margin-left: 0;
    margin-top: 0.5rem;
  }

  .nav-toggle {
    display: block;
  }
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  color: var(--color-white);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 25% 50%, rgba(59,130,246,0.15) 0%, transparent 50%),
                     radial-gradient(circle at 75% 50%, rgba(30,64,175,0.2) 0%, transparent 50%);
  pointer-events: none;
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: 1rem;
  font-size: 2.75rem;
}

.hero h1 span {
  color: #93C5FD;
}

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

.hero .btn-group {
  justify-content: center;
}

/* ===== Cards ===== */
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

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

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--color-primary-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--color-primary-dark);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

.card-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin: 0.75rem 0;
}

.card-price span {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--color-text-light);
}

.card-features {
  margin: 1rem 0;
}

.card-features li {
  padding: 0.35rem 0;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ===== Card Color Variants ===== */
.card-blue .card-icon { background: #DBEAFE; color: #2563EB; }
.card-blue { border-color: #BFDBFE; }
.card-green .card-icon { background: #D1FAE5; color: #059669; }
.card-green { border-color: #A7F3D0; }
.card-purple .card-icon { background: #EDE9FE; color: #7C3AED; }
.card-purple { border-color: #C4B5FD; }
.card-yellow .card-icon { background: #FEF3C7; color: #D97706; }
.card-yellow { border-color: #FDE68A; }

/* ===== Grid Layouts ===== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Badge ===== */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-primary {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}

.badge-success {
  background: #D1FAE5;
  color: #065F46;
}

.badge-dark {
  background: var(--color-dark);
  color: var(--color-white);
}

/* ===== Package Cards ===== */
.package-card {
  position: relative;
}

.package-card .badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.package-meta {
  display: flex;
  gap: 1rem;
  margin: 0.75rem 0;
  flex-wrap: wrap;
}

.package-meta span {
  font-size: 0.85rem;
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* ===== Service Areas ===== */
.service-areas {
  background: var(--color-white);
}

.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.area-tag {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ===== Highlights / Why Choose ===== */
.highlights {
  background: var(--color-dark);
  color: var(--color-white);
}

.highlights .section-title {
  color: var(--color-white);
}

.highlights .section-subtitle {
  color: rgba(255,255,255,0.7);
}

.highlight-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.highlight-card .card-icon {
  margin: 0 auto 1rem;
  background: rgba(37, 99, 235, 0.15);
}

.highlight-card h3 {
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.highlight-card p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.highlight-card {
  transition: background 0.2s ease, border-radius 0.2s ease;
}

.highlight-card:hover {
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-lg);
}

/* ===== CTA Section ===== */
.cta-section {
  background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
  padding: 4rem 0;
  text-align: center;
}

.cta-section h2 {
  color: #fff;
  margin-bottom: 0.75rem;
}

.cta-section p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

/* ===== Contact Form ===== */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--color-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--color-dark);
  background: var(--color-white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #3B82F6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

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

.form-message {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  display: none;
}

.form-message.success {
  display: block;
  background: #D1FAE5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.form-message.error {
  display: block;
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

/* ===== Contact Info Cards ===== */
.contact-info-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  margin-bottom: 1rem;
}

.contact-info-card h4 {
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-info-card p {
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.contact-info-card a {
  color: #1E40AF;
  font-weight: 600;
}

/* ===== FAQ ===== */
.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.faq-item h4 {
  margin-bottom: 0.5rem;
  color: var(--color-dark);
}

.faq-item p {
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ===== Schedule Table ===== */
.schedule-table {
  width: 100%;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-collapse: collapse;
}

.schedule-table th,
.schedule-table td {
  padding: 1rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.schedule-table th {
  background: var(--color-dark);
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.9rem;
}

.schedule-table td {
  font-size: 0.95rem;
}

.schedule-table tr:last-child td {
  border-bottom: none;
}

.schedule-table tr:hover td {
  background: var(--color-primary-light);
}

/* ===== Steps ===== */
.steps {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
}

.step {
  text-align: center;
  flex: 1;
  min-width: 200px;
  max-width: 260px;
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  margin: 0 auto 1rem;
}

.step h3 {
  margin-bottom: 0.35rem;
}

.step p {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

/* ===== Page Header ===== */
.page-header {
  background: linear-gradient(135deg, #1e3a8a 0%, #111827 100%);
  color: var(--color-white);
  padding: 3rem 0;
  text-align: center;
}

.page-header h1 {
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.page-header p {
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Two Column Layout ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ===== Login Page ===== */
.login-wrapper {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem;
}

.login-box {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.login-box h2 {
  margin-bottom: 0.75rem;
}

.login-box p {
  color: var(--color-text-light);
  margin-bottom: 2rem;
}

/* ===== Footer ===== */
.footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.8);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: 2rem;
  padding-bottom: 3rem;
}

.footer h4 {
  color: var(--color-white);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
}

.footer-links a {
  display: block;
  padding: 0.3rem 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #93C5FD;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

.footer-logo svg {
  color: #3B82F6;
}

.footer-stars {
  color: var(--color-primary);
  margin: 0.75rem 0;
  font-size: 1.1rem;
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.footer-contact svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #60A5FA;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== Loading Spinner ===== */
.loading {
  text-align: center;
  padding: 3rem;
  color: var(--color-text-light);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--color-border);
  border-top-color: #3B82F6;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== Notice Box ===== */
.notice {
  background: var(--color-primary-light);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  text-align: center;
  margin: 2rem 0;
}

.notice p {
  color: var(--color-dark);
  font-weight: 500;
  margin-bottom: 0;
}

/* ===== Benefits List ===== */
.benefit-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-border);
}

.benefit-item:last-child {
  border-bottom: none;
}

.benefit-number {
  width: 36px;
  height: 36px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.benefit-item h4 {
  margin-bottom: 0.25rem;
}

.benefit-item p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 0;
}

/* ===== Responsive Typography ===== */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .hero { padding: 3rem 0; }
  .hero h1 { font-size: 2rem; }
  .section { padding: 3rem 0; }
  .page-header { padding: 2rem 0; }
  .btn-group { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }
  .hero h1 { font-size: 1.75rem; }
  .card { padding: 1.5rem; }
  .top-bar .container {
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.75rem;
  }
}
