/* ============================================
   AJE Nursing Services Inc. - Main Stylesheet
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #2c3e50;
  background-color: #ffffff;
}

a {
  color: #1a6b7a;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #145a67;
}

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

ul {
  list-style: none;
}

/* --- Accessibility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid #1a6b7a;
  outline-offset: 2px;
}

/* Skip to main content link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: #1a6b7a;
  color: #ffffff;
  padding: 8px 16px;
  z-index: 1000;
  border-radius: 0 0 4px 4px;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
  color: #ffffff;
}

/* --- Container --- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Header / Navigation --- */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 1140px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo img {
  height: 50px;
  width: auto;
  border-radius: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: #2c3e50;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #1a6b7a;
  border-bottom-color: #1a6b7a;
}

.lang-toggle {
  background: #1a6b7a;
  color: #ffffff;
  border: none;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.lang-toggle:hover {
  background: #145a67;
}

/* Hamburger menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #2c3e50;
  transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, #1a6b7a 0%, #1e8a9a 100%);
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
}

.hero h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.3;
}

.hero p {
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto 32px;
  opacity: 0.92;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  border: none;
  text-decoration: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: #1a6b7a;
  color: #ffffff;
}

.btn-primary:hover {
  background: #145a67;
  color: #ffffff;
}

.btn-secondary {
  background: #ffffff;
  color: #1a6b7a;
  border: 2px solid #1a6b7a;
}

.btn-secondary:hover {
  background: #f0f9fa;
  color: #1a6b7a;
}

.btn-white {
  background: #ffffff;
  color: #1a6b7a;
}

.btn-white:hover {
  background: #f0f9fa;
  color: #1a6b7a;
}

.btn-outline-white {
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* --- Sections --- */
.section {
  padding: 64px 20px;
}

.section-gray {
  background: #f5f7fa;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  color: #2c3e50;
}

.section-subtitle {
  text-align: center;
  color: #5a6a7a;
  max-width: 600px;
  margin: 0 auto 40px;
  font-size: 1.05rem;
}

/* --- Cards Grid --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1140px;
  margin: 0 auto;
}

.card {
  background: #ffffff;
  border-radius: 8px;
  padding: 32px 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  transition: box-shadow 0.2s, transform 0.2s;
  border: 1px solid #eef1f5;
}

.card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.card h3 {
  font-size: 1.25rem;
  color: #1a6b7a;
  margin-bottom: 12px;
}

.card p {
  color: #5a6a7a;
  font-size: 0.95rem;
  line-height: 1.6;
}

.card-icon {
  font-size: 2rem;
  color: #1a6b7a;
  margin-bottom: 16px;
  display: block;
}

/* --- Values / Features list --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1140px;
  margin: 0 auto;
}

.value-item {
  padding: 24px;
  background: #ffffff;
  border-left: 4px solid #1a6b7a;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.value-item h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #2c3e50;
}

.value-item p {
  color: #5a6a7a;
  font-size: 0.95rem;
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, #1a6b7a 0%, #1e8a9a 100%);
  color: #ffffff;
  text-align: center;
  padding: 56px 20px;
}

.cta-banner h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.cta-banner p {
  font-size: 1.05rem;
  margin-bottom: 24px;
  opacity: 0.92;
}

/* --- Forms --- */
.form-section {
  max-width: 720px;
  margin: 0 auto;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.95rem;
  color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ccd3db;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  color: #2c3e50;
  background: #ffffff;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #1a6b7a;
  outline: none;
  box-shadow: 0 0 0 3px rgba(26, 107, 122, 0.15);
}

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

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

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

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

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 6px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
  font-size: 0.95rem;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  accent-color: #1a6b7a;
}

.consent-group {
  margin-bottom: 20px;
  padding: 16px;
  background: #f5f7fa;
  border-radius: 6px;
  border: 1px solid #e0e4ea;
}

.consent-group label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
  font-size: 0.9rem;
  cursor: pointer;
  line-height: 1.5;
}

.consent-group input[type="checkbox"] {
  width: auto;
  margin-top: 3px;
  accent-color: #1a6b7a;
  flex-shrink: 0;
}

fieldset {
  border: 1px solid #e0e4ea;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 24px;
}

fieldset legend {
  font-weight: 600;
  padding: 0 8px;
  color: #1a6b7a;
  font-size: 1rem;
}

/* --- Info Boxes --- */
.info-box {
  background: #f0f9fa;
  border: 1px solid #b8dce3;
  border-radius: 6px;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 0.95rem;
  color: #1a6b7a;
}

/* --- Service Detail Blocks --- */
.service-block {
  padding: 40px 0;
  border-bottom: 1px solid #eef1f5;
}

.service-block:last-child {
  border-bottom: none;
}

.service-block h3 {
  font-size: 1.35rem;
  color: #1a6b7a;
  margin-bottom: 12px;
}

.service-block p {
  color: #5a6a7a;
  margin-bottom: 12px;
  max-width: 800px;
}

.service-block ul {
  list-style: disc;
  padding-left: 20px;
  color: #5a6a7a;
}

.service-block ul li {
  margin-bottom: 6px;
}

/* --- Contact Info --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1140px;
  margin: 0 auto;
}

.contact-info-item {
  margin-bottom: 20px;
}

.contact-info-item h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #1a6b7a;
  margin-bottom: 4px;
}

.contact-info-item p {
  color: #5a6a7a;
}

.contact-info-item a {
  color: #1a6b7a;
}

.map-embed {
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: 8px;
  margin-top: 20px;
}

/* --- Privacy Policy --- */
.policy-content {
  max-width: 800px;
  margin: 0 auto;
}

.policy-content h2 {
  font-size: 1.4rem;
  color: #1a6b7a;
  margin-top: 32px;
  margin-bottom: 12px;
}

.policy-content h3 {
  font-size: 1.15rem;
  color: #2c3e50;
  margin-top: 20px;
  margin-bottom: 8px;
}

.policy-content p {
  margin-bottom: 12px;
  color: #5a6a7a;
}

.policy-content ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 12px;
  color: #5a6a7a;
}

.policy-content ul li {
  margin-bottom: 4px;
}

/* --- Footer --- */
.site-footer {
  background: #2c3e50;
  color: #c8ced6;
  padding: 48px 20px 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  max-width: 1140px;
  margin: 0 auto 32px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 6px;
}

.footer-col a {
  color: #c8ced6;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 8px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid #3d4f63;
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  max-width: 1140px;
  margin: 0 auto;
}

.footer-bottom p {
  margin-bottom: 4px;
}

/* --- Page Header (inner pages) --- */
.page-header {
  background: linear-gradient(135deg, #1a6b7a 0%, #1e8a9a 100%);
  color: #ffffff;
  padding: 48px 20px;
  text-align: center;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.page-header p {
  font-size: 1.05rem;
  opacity: 0.9;
}

/* --- Download Button --- */
.download-section {
  text-align: center;
  padding: 32px;
  background: #f0f9fa;
  border-radius: 8px;
  border: 1px solid #b8dce3;
  margin: 32px 0;
}

.download-section p {
  margin-bottom: 16px;
  color: #5a6a7a;
}

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

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }

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

  .hero {
    padding: 48px 20px;
  }

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

  .hero p {
    font-size: 1rem;
  }

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

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .form-row,
  .form-row-3,
  .form-row-4 {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .values-grid {
    grid-template-columns: 1fr;
  }

  .logo img {
    height: 40px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }

  .checkbox-group {
    flex-direction: column;
  }
}
