/* ============================================
   iCare Services (Hong Kong) Ltd — styles.css
   Soft teal / off-white / light gray
   ============================================ */

:root {
  --teal: #2A9D8F;
  --teal-dark: #1F7A6F;
  --teal-light: #E8F6F3;
  --teal-mid: #4DB6A9;
  --cream: #FAF9F6;
  --white: #FFFFFF;
  --gray-50: #F5F5F4;
  --gray-100: #E8E8E6;
  --gray-200: #D4D4D2;
  --gray-500: #6B6B6B;
  --gray-700: #3D3D3D;
  --gray-900: #1A1A1A;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
  --radius: 12px;
  --radius-lg: 20px;
  --max-w: 1100px;
  --header-h: 68px;
  --font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--gray-900);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--teal-dark);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--teal-mid);
  outline-offset: 3px;
  border-radius: 4px;
}

ul, ol {
  list-style: none;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 246, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-100);
  height: var(--header-h);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--gray-900);
  font-weight: 700;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.logo:hover {
  color: var(--teal);
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  background: transparent;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  cursor: pointer;
  color: var(--gray-700);
}

.nav-toggle svg {
  display: block;
  width: 22px;
  height: 22px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: wrap;
}

.nav-list a {
  display: block;
  padding: 0.4rem 0.7rem;
  color: var(--gray-700);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 8px;
  white-space: nowrap;
}

.nav-list a:hover {
  background: var(--teal-light);
  color: var(--teal-dark);
}

.nav-list a.active {
  background: var(--teal);
  color: white;
}

.nav-list a.active:hover {
  background: var(--teal-dark);
  color: white;
}

/* ---------- Main ---------- */
main {
  flex: 1;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--white);
}

.section-teal {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: white;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
  text-align: center;
}

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

.section-teal .section-title,
.section-teal .section-subtitle {
  color: white;
}

.section-teal .section-subtitle {
  opacity: 0.9;
}

/* ---------- Hero ---------- */
.hero {
  padding: 4rem 0 3.5rem;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(42, 157, 143, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(77, 182, 169, 0.1) 0%, transparent 50%),
    var(--cream);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.3;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--gray-500);
  margin-bottom: 1.75rem;
  max-width: 480px;
}

.hero-visual {
  background: linear-gradient(145deg, var(--teal-light), var(--white));
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  min-height: 280px;
  border: 1px solid var(--gray-100);
}

.hero-visual svg {
  width: 120px;
  height: 120px;
}

.hero-visual-label {
  font-size: 0.95rem;
  color: var(--teal-dark);
  font-weight: 600;
  text-align: center;
}

.page-hero {
  padding: 3rem 0 2rem;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(42, 157, 143, 0.1) 0%, transparent 50%),
    var(--cream);
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.15rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: var(--gray-500);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1.3;
}

.btn-primary {
  background: var(--teal);
  color: white;
  box-shadow: 0 4px 14px rgba(42, 157, 143, 0.35);
}

.btn-primary:hover {
  background: var(--teal-dark);
  color: white;
  box-shadow: 0 6px 20px rgba(42, 157, 143, 0.4);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}

.btn-outline:hover {
  background: var(--teal-light);
  color: var(--teal-dark);
}

.btn-white {
  background: white;
  color: var(--teal-dark);
  box-shadow: var(--shadow-sm);
}

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

.btn-sm {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
}

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

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

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

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

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

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

.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--gray-900);
}

.card p {
  color: var(--gray-500);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.card .btn {
  margin-top: auto;
}

.card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}

.card-link:hover {
  color: inherit;
}

.card-link .card-cta {
  color: var(--teal);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: auto;
}

.card-link:hover .card-cta {
  color: var(--teal-dark);
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

.step {
  text-align: center;
  padding: 1.5rem 1rem;
  position: relative;
}

.step-num {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--teal), var(--teal-mid));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 12px rgba(42, 157, 143, 0.3);
}

.step h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.step p {
  color: var(--gray-500);
  font-size: 0.95rem;
}

/* ---------- Service list (services page) ---------- */
.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.service-item {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
}

.service-item .card-icon {
  margin-bottom: 0;
}

.service-item h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.service-item p {
  color: var(--gray-500);
  font-size: 0.95rem;
}

/* ---------- Feature / why ---------- */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.feature-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
}

.feature-item h2 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.feature-item p {
  color: var(--gray-500);
  font-size: 0.95rem;
}

/* ---------- FAQ accordion ---------- */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-item summary {
  padding: 1.15rem 1.5rem;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--gray-900);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--teal);
  font-weight: 400;
  flex-shrink: 0;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item[open] summary {
  border-bottom: 1px solid var(--gray-100);
  color: var(--teal-dark);
}

.faq-body {
  padding: 1.15rem 1.5rem 1.4rem;
  color: var(--gray-500);
  font-size: 0.95rem;
}

/* ---------- Contact ---------- */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
}

.contact-card .card-icon {
  margin: 0 auto 1rem;
}

.contact-card h2 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.contact-card p,
.contact-card a {
  color: var(--gray-500);
  font-size: 0.95rem;
}

.contact-card a {
  color: var(--teal);
  font-weight: 600;
}

.note-box {
  background: var(--teal-light);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  max-width: 800px;
  margin: 2rem auto 0;
  text-align: center;
  color: var(--teal-dark);
  font-size: 0.95rem;
  border: 1px solid rgba(42, 157, 143, 0.2);
}

/* ---------- Join / about prose ---------- */
.prose {
  max-width: 720px;
  margin: 0 auto;
}

.prose p {
  color: var(--gray-500);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.prose h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
  color: var(--gray-900);
}

.prose ul {
  margin: 0 0 1rem;
  padding-left: 1.4rem;
}

.prose li {
  margin-bottom: 0.4rem;
  line-height: 1.7;
  color: var(--gray-700);
}


.join-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 2rem 0;
}

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  padding: 3.5rem 1.25rem;
}

.cta-band h2 {
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  margin-bottom: 0.75rem;
}

.cta-band p {
  opacity: 0.9;
  margin-bottom: 1.75rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--gray-900);
  color: #B0B0B0;
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand .logo {
  color: white;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-col h3 {
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-col a {
  color: #B0B0B0;
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--teal-mid);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.footer-note {
  color: var(--teal-mid);
}

/* ---------- Highlights row ---------- */
.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

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

.highlight .card-icon {
  margin: 0 auto 1rem;
}

.highlight h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.highlight p {
  color: var(--gray-500);
  font-size: 0.9rem;
}

.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 2rem;
}

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--gray-100);
    padding: 0.75rem 1.25rem 1rem;
    display: none;
    box-shadow: var(--shadow-md);
  }

  .nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .nav-list a {
    padding: 0.7rem 1rem;
  }

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

  .hero-visual {
    min-height: 200px;
    padding: 2rem;
    order: -1;
  }

  .steps,
  .join-steps {
    grid-template-columns: 1fr;
  }

  .service-item-body {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .service-item-body .card-icon {
    margin: 0 auto;
  }

  .service-item-body .btn {
    width: 100%;
  }

  .feature-item {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .feature-item .card-icon {
    margin: 0 auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 2.5rem 0;
  }

  .hero {
    padding: 2.5rem 0;
  }

  .btn {
    width: 100%;
  }

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

/* ---------- Images ---------- */
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.rounded-img {
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
  aspect-ratio: 4 / 3;
  min-height: 260px;
  background: var(--teal-light);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 45%,
    rgba(31, 122, 111, 0.45) 100%
  );
  pointer-events: none;
}

.hero-photo-caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.page-hero-banner {
  max-width: var(--max-w);
  margin: 1.5rem auto 0;
  padding: 0 1.25rem;
}

.page-hero-banner-inner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 21 / 9;
  max-height: 280px;
  box-shadow: var(--shadow-sm);
  background: var(--teal-light);
}

.page-hero-banner-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-hero-banner-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(42, 157, 143, 0.35) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.page-hero-soft .page-hero-banner-inner {
  aspect-ratio: 3 / 1;
  max-height: 180px;
}

.page-hero-soft .page-hero-banner-inner::after {
  background: linear-gradient(
    180deg,
    rgba(250, 249, 246, 0.15) 0%,
    rgba(42, 157, 143, 0.25) 100%
  );
}

.card-media {
  margin: -1.75rem -1.75rem 1.15rem;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--teal-light);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}

.card-link:hover .card-media img {
  transform: scale(1.04);
}

.card:has(.card-media),
.card-with-media {
  padding-top: 0;
  overflow: hidden;
}

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

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow-sm);
  background: var(--teal-light);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 55%,
    rgba(26, 26, 26, 0.45) 100%
  );
  pointer-events: none;
}

.gallery-caption {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 1;
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.section-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  max-width: 900px;
  margin: 0 auto 2.5rem;
}

.section-split-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-md);
  background: var(--teal-light);
}

.section-split-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.service-item {
  grid-template-columns: 1fr;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-item-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--teal-light);
}

.service-item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}

.service-item:hover .service-item-media img {
  transform: scale(1.03);
}

.service-item-body {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.5rem 1.75rem;
}

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

@media (max-width: 860px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-split {
    grid-template-columns: 1fr;
  }

  .page-hero-banner-inner {
    aspect-ratio: 16 / 9;
    max-height: 220px;
  }

  .service-item-body {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .service-item-body .card-icon {
    margin: 0 auto;
  }

  .service-item-body .btn {
    width: 100%;
  }

  .hero-photo {
    order: -1;
    min-height: 220px;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 480px) {
  .gallery {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .gallery-caption {
    font-size: 0.75rem;
  }

  .service-list {
    grid-template-columns: 1fr;
  }
}
