/* ---------- style.responsive.css - Unified responsive stylesheet (Teal theme) ---------- */
:root{
  --teal: #0d9488;     /* main teal */
  --teal-dark: #0b776e;
  --muted: #6b7280;
  --bg: #ffffff;
  --max-width: 1200px;
  --radius: 10px;
  --header-height: 68px; /* used for body offset */
  --container-pad: 20px;
  --shadow-strong: 0 8px 24px rgba(0,0,0,0.18);
  --shadow-deeper: 0 12px 36px rgba(0,0,0,0.2);
  --transition-fast: 180ms;
}

/* ------------------ Reset & base ------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  padding-top: var(--header-height); /* prevents content from hiding under fixed header */
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #0f172a;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.45;
  font-size: 16px;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}

/* Utility containers */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* Links reset */
a { color: inherit; text-decoration: none; }

/* Smooth interactions */
img { display: block; max-width: 100%; height: auto; }

/* ------------------ HEADER / NAVBAR ------------------ */
.site-header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #eef2f4;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

.navbar {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 12px 20px;
  position: relative;
  height: var(--header-height);
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}
.logo img {
  height: 40px;
  width: auto;
  display: block;
}
.logo:focus { outline: 3px solid rgba(13,148,136,0.18); border-radius: 6px; }

/* Nav wrapper */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Links */
.nav-links {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: center;
  white-space: nowrap;
}

.nav-links li a {
  display: inline-block;
  color: #0f172a;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  font-weight: 500;
  position: relative;
  transition: transform var(--transition-fast) ease, color var(--transition-fast) ease;
  font-size: 0.95rem;
}

/* animated underline */
.nav-links li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 3px;
  width: 0;
  background: var(--teal);
  border-radius: 2px;
  transition: width .22s ease;
}

.nav-links li a:hover,
.nav-links li a:focus {
  color: var(--teal-dark);
  transform: translateY(-2px);
  outline: none;
}
.nav-links li a:hover::after,
.nav-links li a:focus::after { width: 100%; }

.nav-links li a:focus { outline: 3px solid rgba(13,148,136,0.12); border-radius:6px; }

/* Nav actions (CTA buttons) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 9px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: transform var(--transition-fast) ease, box-shadow var(--transition-fast) ease, filter var(--transition-fast) ease;
}

/* Primary */
.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 10px 30px rgba(13,148,136,0.12);
}
.btn-primary:hover,
.btn-primary:focus {
  transform: translateY(-3px);
  filter: brightness(.98);
}

/* Outline style (kept for future use) */
.btn-outline {
  background: transparent;
  color: var(--teal-dark);
  border: 1px solid var(--teal);
}
.btn-outline:hover,
.btn-outline:focus {
  background: rgba(13,148,136,0.06);
  transform: translateY(-2px);
}

/* ------------------ Hamburger (mobile) ------------------ */
/* checkbox hack */
.nav-toggle { display: none; }

/* label used as button */
.nav-toggle-label {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 9px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: transparent;
  border: none;
}

/* hamburger bars */
.nav-toggle-label .hamburger {
  display: block;
  width: 20px;
  height: 2px;
  background: #111827;
  position: relative;
  transition: transform var(--transition-fast) ease;
}
.nav-toggle-label .hamburger::before,
.nav-toggle-label .hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: #111827;
  transition: transform var(--transition-fast) ease, opacity var(--transition-fast) ease;
}
.nav-toggle-label .hamburger::before { top: -6px; }
.nav-toggle-label .hamburger::after  { top: 6px; }

/* animate hamburger when checked (input and label adjacent) */
.nav-toggle:checked + .nav-toggle-label .hamburger {
  transform: rotate(45deg);
}
.nav-toggle:checked + .nav-toggle-label .hamburger::before {
  transform: translateY(6px) rotate(90deg);
  opacity: 0;
}
.nav-toggle:checked + .nav-toggle-label .hamburger::after {
  transform: translateY(-6px) rotate(90deg);
  opacity: 0;
}

/* ------------------ MOBILE NAV MENU (collapsible) ------------------ */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-toggle-label { display: inline-flex; }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.38s cubic-bezier(.2,.8,.2,1);
    border-bottom: 1px solid #eef2f4;
    z-index: 999;
  }

  /* when checked - expand */
  .nav-toggle:checked ~ .nav-menu {
    max-height: 600px; /* safe default for content */
    box-shadow: 0 12px 30px rgba(2,6,23,0.06);
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    text-align: center;
    gap: 0;
    padding: 8px 0;
  }

  .nav-links li a {
    padding: 12px 16px;
    width: 100%;
    display: block;
    font-size: 1rem;
  }

  .nav-actions {
    width: 100%;
    padding: 12px 0 20px;
    flex-direction: column;
  }

  .btn { width: 80%; margin: 0 auto; }
}

/* Desktop & tablet adjustments for readability */
@media (min-width: 769px) {
  .nav-links li a { font-size: 0.95rem; }
  .nav-toggle-label { display: none; }
  .nav-menu { position: static; display: flex; }
}

/* ------------------ HERO ------------------ */
.hero-preview {
  position: relative;
  width: 100%;
  min-height: calc(85vh - var(--header-height));
  overflow: hidden;
  background-color: #ffffff;

  display: flex;
  align-items: center;
  justify-content: center;

  /* Constrain overall content width */
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem; /* keeps spacing on small screens */
}

.hero-image {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  width: 100%;
  max-width: 1200px; /* 👈 actual image limit */
  height: auto;
  object-fit: contain;
  display: block;
}


/* responsive hero */
@media (max-width: 1024px) {
  .hero-preview { min-height: calc(80vh - var(--header-height)); }
  .hero-image img { object-fit: cover; }
}
@media (max-width: 768px) {
  .hero-preview { min-height: calc(60vh - var(--header-height)); }
}
@media (max-width: 480px) {
  .hero-preview { min-height: calc(50vh - var(--header-height)); }
}

/* ------------------ ABOUT APP ------------------ */
.about-app {
  background-color: #f9fafa;
  padding: 80px 20px;
  text-align: center;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.section-title {
  font-size: clamp(1.6rem, 2.6vw, 2.5rem);
  color: var(--teal);
  margin-bottom: 20px;
  font-weight: 700;
}

.section-intro {
  font-size: clamp(0.95rem, 1.1vw, 1.1rem);
  color: #333;
  max-width: 900px;
  margin: 0 auto 50px auto;
  line-height: 1.6;
}

/* Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Card */
.card {
  background: #ffffff;
  border-radius: 14px;
  padding: 28px 22px;
  border: 1px solid rgba(0,0,0,0.15);
  box-shadow:
    0 8px 24px rgba(0,0,0,0.18),
    0 4px 12px rgba(0,0,0,0.18);
  transition: transform 360ms cubic-bezier(.2,.8,.2,1),
              box-shadow 360ms cubic-bezier(.2,.8,.2,1),
              background-color 250ms ease;
  will-change: transform, box-shadow;
  text-align: left;
}

.card h3 {
  font-size: 1.25rem;
  color: var(--teal);
  margin-bottom: 12px;
}

.card p {
  font-size: 1rem;
  color: #555;
  line-height: 1.5;
}

.card:hover {
  transform: translateY(-10px) scale(1.03);
  background: linear-gradient(135deg, var(--teal), #20b2aa);
  color: #fff;
  box-shadow: var(--shadow-deeper);
}

.card:hover h3,
.card:hover p { color: #fff; }

/* about-app responsive */
@media (max-width: 1024px) {
  .about-app { padding: 60px 20px; }
  .card-grid { gap: 25px; }
  .card { padding: 24px 18px; }
}
@media (max-width: 768px) {
  .about-app { padding: 50px 15px; }
  .card-grid { grid-template-columns: 1fr; gap: 20px; }
  .card { padding: 20px 15px; }
}
@media (max-width: 480px) {
  .about-app { padding: 40px 12px; }
  .card { padding: 18px 12px; }
}

/* ------------------ FOR USERS (grid-3) ------------------ */
.for-users {
  padding: 40px 20px;
  background: #ffffff;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: stretch;
  min-height: 360px;
}

/* left card */
.user-info {
  background: #ffffff;
  border-radius: 14px;
  padding: 28px 22px;
  border: 1px solid rgba(0,0,0,0.15);
  box-shadow:
    0 8px 24px rgba(0,0,0,0.30),
    0 4px 12px rgba(0,0,0,0.30);
  transition: transform 360ms cubic-bezier(.2,.8,.2,1), box-shadow 360ms cubic-bezier(.2,.8,.2,1);
  text-align: left;
}

.user-info h2 { font-size: 1.15rem; color: var(--teal); margin-bottom: 8px; }
.user-info p, .user-info li { font-size: 0.95rem; color: #444; line-height: 1.5; }
.user-info ol { padding-left: 18px; margin: 8px 0; }
.user-info li { margin-bottom: 8px; }

/* image spans two columns */
.user-image { grid-column: span 2; display:flex; align-items:center; justify-content:center; }
.image-wrapper {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-wrapper img { width: 100%; height: 100%; object-fit: contain; }

/* section title */
.for-users > h1 {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  color: var(--teal);
  text-align: center;
  font-weight: 700;
  margin-bottom: 36px;
  line-height: 1.25;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* responsive */
@media (max-width: 1024px) {
  .for-users { padding: 36px 20px; }
  .grid-3 { gap: 24px; min-height: 320px; }
  .image-wrapper { height: 220px; }
}
@media (max-width: 768px) {
  .grid-3 { grid-template-columns: 1fr; gap: 20px; }
  .user-image { order: -1; grid-column: span 1; height: 220px; padding: 8px; }
  .image-wrapper { height: 220px; }
  .for-users > h1 { margin-bottom: 24px; }
}
@media (max-width: 480px) {
  .for-users { padding: 28px 12px; }
  .image-wrapper { height: 180px; }
  .user-info { padding: 18px; }
  .user-info p, .user-info li { font-size: 0.85rem; }
}

/* ------------------ FOR PROVIDERS ------------------ */
.for-providers { padding: 60px 20px; background: #f9f9f9; }

.for-providers .grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: stretch;
  min-height: 360px;
}

.for-providers > h1 {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  color: var(--teal);
  text-align: center;
  font-weight: 700;
  margin-bottom: 36px;
}

/* image spans first two columns */
.provider-image { grid-column: span 2; display:flex; align-items:center; justify-content:center; padding: 20px 20px 40px 20px; background: transparent; }
.provider-image .image-wrapper {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  background: #fff;
  display:flex; align-items:center; justify-content:center;
  border: 1px solid rgba(0,0,0,0.15);
}
.provider-image .image-wrapper img { width:100%; height:100%; object-fit: cover; border-radius:14px; }

/* provider info card */
.provider-info {
  background: #ffffff;
  border-radius: 14px;
  padding: 28px 22px;
  border: 1px solid rgba(0,0,0,0.15);
  box-shadow:
    0 8px 24px rgba(0,0,0,0.30),
    0 4px 12px rgba(0,0,0,0.30);
  text-align: left;
}
.provider-info h2 { font-size: 1.15rem; color: var(--teal); margin-bottom: 8px; }
.provider-info p, .provider-info li { font-size: 0.95rem; color: #444; line-height: 1.5; }

/* providers responsive */
@media (max-width: 1024px) {
  .for-providers { padding: 50px 20px; }
  .provider-image .image-wrapper { height: 220px; }
}
@media (max-width: 768px) {
  .for-providers .grid-3 { grid-template-columns: 1fr; gap: 20px; }
  .provider-image { order: -1; grid-column: span 1; height: 220px; padding: 8px; }
  .provider-image .image-wrapper { height: 220px; }
  .for-providers > h1 { margin-bottom: 24px; }
}
@media (max-width: 480px) {
  .for-providers { padding: 36px 12px; }
  .provider-image .image-wrapper { height: 180px; }
  .provider-info { padding: 18px; }
  .provider-info p, .provider-info li { font-size: 0.85rem; }
}

/* ------------------ TOP SERVICES ------------------ */
.top-services {
  padding: 80px 20px;
  background: #f9fafa;
  text-align: center;
}

.top-services h1 {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 10px;
}

.top-services .section-intro {
  font-size: 1rem;
  color: #555;
  margin-bottom: 40px;
}

/* services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

/* service card */
.service-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.50);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}
.service-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  border-radius: 14px;
  margin-bottom: 8px;
}
.service-card h3 {
  font-size: 1rem;
  color: #111827;
  font-weight: 600;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-deeper); }

/* responsive adjustments */
@media (max-width: 1024px) {
  .top-services { padding: 60px 20px; }
  .service-card img { height: 150px; }
}
@media (max-width: 768px) {
  .top-services { padding: 50px 15px; }
  .services-grid { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 20px; }
  .service-card img { height: 120px; }
}
@media (max-width: 480px) {
  .top-services { padding: 40px 12px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .service-card img { height: 100px; }
}

/* ------------------ TESTIMONIALS ------------------ */
.testimonials {
  background: #f9f9f9;
  padding: 80px 20px;
  text-align: center;
}
.testimonials .section-title {
  font-size: clamp(1.3rem, 2.1vw, 2rem);
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 10px;
}
.testimonials .section-intro {
  font-size: 1rem;
  color: #555;
  margin-bottom: 40px;
}

/* testimonials grid */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.testimonial-card {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 20px 20px rgba(0,0,0,0.3);
  transition: background-color 200ms ease, transform 400ms ease, box-shadow 400ms ease;
}
.testimonial-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: var(--shadow-deeper);
  background-color: var(--teal);
}
.testimonial-card .profile-pic {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: 15px;
  object-fit: cover;
}
.testimonial-card h3, .testimonial-card p { transition: color 300ms ease; }
.testimonial-card:hover h3, .testimonial-card:hover p { color: #fff; }

/* responsive testimonial */
@media (max-width: 1024px) {
  .testimonials { padding: 60px 20px; }
  .testimonial-card .profile-pic { width: 70px; height: 70px; }
}
@media (max-width: 768px) {
  .testimonials { padding: 50px 15px; }
  .testimonials-grid { grid-template-columns: 1fr; gap: 20px; }
  .testimonial-card .profile-pic { width: 60px; height: 60px; }
  .testimonial-card p { font-size: 0.95rem; line-height: 1.4; }
}
@media (max-width: 480px) {
  .testimonials { padding: 40px 12px; }
  .testimonial-card .profile-pic { width: 50px; height: 50px; }
  .testimonial-card p { font-size: 0.9rem; }
}

/* ------------------ FOOTER ------------------ */
.site-footer {
  padding: 30px 16px 10px;
  font-family: 'Poppins', sans-serif;
  background: #f9f9f9;
}

/* teal container */
.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  background: var(--teal);
  color: #fff;
  border-radius: 12px;
  padding: 28px 24px;
  display: flex;
  gap: 30px;
  align-items: flex-start;
  justify-content: space-between;
  box-shadow: 0 6px 20px rgba(13,148,136,0.12);
  flex-wrap: wrap;
}

/* columns */
.footer-col { flex: 1 1 220px; min-width: 180px; }
.footer-col:first-child { text-align: left; }
.footer-col:nth-child(2) { text-align: center; }
.footer-col.developer { text-align: center; display:flex; flex-direction:column; align-items:center; justify-content:center; }

.footer-col h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  font-weight: 700;
  color: #ffffff;
}

.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.95);
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  transition: color .18s ease, transform .18s ease;
}
.footer-col ul li a:hover { color: #fff3b0; transform: translateX(2px); }

.footer-col:nth-child(2) p { margin: 8px 0; color: rgba(255,255,255,0.95); font-weight: 500; }

/* developer portrait */
.developer-pic { width: 80px; height: 80px; border-radius: 50%; object-fit:contain; border: 0px solid #fff; margin-bottom: 8px; box-shadow: 0 6px 18px rgba(0,0,0,0.18); }
.footer-col.developer p { margin: 6px 0 12px; color: rgba(255,255,255,0.95); font-weight: 600; }

/* social */
.social-links { display:flex; gap: 8px; justify-content:center; margin-top: 6px; }
.social-links a { width: 34px; height: 34px; border-radius: 50%; display:flex; align-items:center; justify-content:center; box-shadow: 0 4px 10px rgba(0,0,0,0.12); transition: transform .2s ease, box-shadow .2s ease; }
.social-links a:first-child { background: #1877f2; } /* facebook */
.social-links a:last-child  { background: radial-gradient(circle at 30% 30%, #fccc63 0%, #f56040 45%, #d6249f 100%); } /* instagram */
.social-links a img { width: 14px; height: 14px; display:block; }
.social-links a:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 10px 30px rgba(0,0,0,0.18); }

/* footer-bottom */
.footer-bottom {
  max-width: var(--max-width);
  margin: 18px auto 0;
  text-align: center;
  font-size: 0.85rem;
  color: #6b6b6b;
  padding-bottom: 8px;
}

/* footer stacking on small screens */
@media (max-width: 880px) {
  .footer-container { flex-direction: column; gap: 18px; padding: 20px; align-items: stretch; }
  .footer-col { text-align: center; }
  .social-links { justify-content: center; }
}

/* ------------------ small accessibility helpers ------------------ */
/* Skip link (optional if you add to HTML, safe to keep here) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 10px;
  top: 10px;
  width: auto;
  height: auto;
  padding: 8px 12px;
  background: #000;
  color: #fff;
  z-index: 9999;
  border-radius: 6px;
}

/* ------------------ final polishing ------------------ */
/* Reduce motion for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
