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

:root {
  --bg-primary: #0f172a;
  --bg-card: #1e293b;
  --bg-card-hover: #334155;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --accent: #38bdf8;
  --accent-hover: #0ea5e9;
  --white: #ffffff;
  --border: #334155;
  --success: #22c55e;
  --error: #ef4444;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

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

/* ===== Container ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Navigation ===== */
.navbar {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo img {
  height: 40px;
  width: auto;
}

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

.nav-links a {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-cta {
  background: var(--accent);
  color: var(--bg-primary) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.2s;
}

.nav-cta:hover {
  background: var(--accent-hover);
  color: var(--bg-primary) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

/* ===== Hero ===== */
.hero {
  padding: 5rem 0;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.hero-image {
  flex: 0 0 400px;
}

.hero-image img {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  object-fit: cover;
}

.hero-content {
  flex: 1;
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 540px;
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--bg-primary);
  padding: 0.75rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--bg-primary);
}

/* ===== Sections ===== */
.section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 3rem;
  text-align: center;
}

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

.card {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  transition: background 0.2s;
}

.card:hover {
  background: var(--bg-card-hover);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 1.5rem;
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== Services (image + text side by side) ===== */
.service-item {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-bottom: 4rem;
}

.service-item:nth-child(even) {
  flex-direction: row-reverse;
}

.service-image {
  flex: 0 0 45%;
}

.service-image img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  height: 300px;
}

.service-text {
  flex: 1;
}

.service-text h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.service-text p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

/* ===== Why Section ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

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

.why-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.why-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

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

/* ===== Contact Form ===== */
.contact-section {
  padding: 5rem 0;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.25rem;
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}

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

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

.form-status {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  display: none;
  font-size: 0.95rem;
}

.form-status.success {
  display: block;
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.form-status.error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  color: var(--error);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ===== Footer ===== */
.footer {
  margin-top: auto;
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer-logo img {
  height: 32px;
  margin-bottom: 1rem;
}

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

/* ===== Subpage: Services List ===== */
.services-page {
  padding: 4rem 0;
}

.services-page .intro {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 800px;
}

.provider-section {
  margin-bottom: 3rem;
}

.provider-section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.service-block {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin-bottom: 1.25rem;
}

.service-block h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--accent);
}

.service-block p,
.service-block li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.service-block ul {
  list-style: none;
  padding: 0;
}

.service-block li {
  padding-left: 1.25rem;
  position: relative;
  margin-bottom: 0.35rem;
}

.service-block li::before {
  content: "\2022";
  color: var(--accent);
  position: absolute;
  left: 0;
}

.cta-block {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 3rem;
  text-align: center;
  margin-top: 3rem;
}

.cta-block h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.cta-block p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-image {
    flex: none;
  }

  .hero-image img {
    width: 280px;
    height: 280px;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .card-grid,
  .why-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .service-item,
  .service-item:nth-child(even) {
    flex-direction: column;
  }

  .service-image {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    gap: 0.75rem;
  }

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

  .navbar .container {
    position: relative;
  }

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

  .section-title {
    font-size: 1.5rem;
  }
}
