/* =====================================================
   Navilla Personal Care Assistants – Main Stylesheet
   Inspired by the visual structure of jag.se
   ===================================================== */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --purple:       #4c3d82;
  --purple-light: #6a5aa0;
  --purple-dark:  #35296b;
  --teal:         #47938e;
  --teal-light:   #5eb0ab;
  --beige:        #a89070;
  --white:        #ffffff;
  --off-white:    #f6f4fb;
  --dark:         #1a1a2e;
  --gray:         #5a5a6e;
  --light-gray:   #e8e5f0;
  --font-main:    'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Utility ── */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.section-label {
  text-transform: uppercase; letter-spacing: .12em;
  font-size: .8rem; font-weight: 700; color: var(--teal);
  margin-bottom: .5rem;
}

/* =====================================================
   HEADER
   ===================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(76, 61, 130, .12);
  height: 64px;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
}
.header-logo { height: 44px; width: auto; mix-blend-mode: multiply; }

/* Hamburger */
.hamburger {
  display: flex; flex-direction: column; justify-content: space-between;
  width: 28px; height: 20px;
  background: none; border: none; cursor: pointer; padding: 0;
}
.hamburger span {
  display: block; height: 3px; background: var(--purple);
  border-radius: 2px; transition: transform .25s, opacity .25s;
}

/* Mobile nav overlay */
.nav-overlay {
  position: fixed; inset: 0; z-index: 400; background: var(--purple);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2rem; opacity: 0; pointer-events: none; transition: opacity .3s;
}
.nav-overlay.open { opacity: 1; pointer-events: all; }
.nav-overlay a {
  color: var(--white); font-size: 1.4rem; font-weight: 600;
  padding: .5rem 1.5rem; border-radius: 4px;
  transition: background .2s;
}
.nav-overlay a:hover { background: rgba(255,255,255,.15); }
.nav-close {
  position: absolute; top: 1.2rem; right: 1.5rem;
  background: none; border: none; color: var(--white); font-size: 2rem; cursor: pointer;
}

/* =====================================================
   HERO – HOMEPAGE
   ===================================================== */
.hero {
  min-height: 100vh;
  background-image: url('https://images.unsplash.com/photo-1531123897727-8f129e1688ce?auto=format&fit=crop&w=1920&q=80');
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
  padding: 80px 1rem 2rem;
}

.hero-card {
  background: var(--purple);
  color: var(--white);
  max-width: 640px; width: 100%;
  padding: 2.8rem 3rem 2rem;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0,0,0,.35);
}
.hero-card .card-logo {
  width: auto;
  margin-bottom: 1.8rem;
  background: white;
  padding: .4rem .8rem;
  border-radius: 6px;
}
.hero-card h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800; line-height: 1.15;
  margin-bottom: 1rem;
}
.hero-card .hero-desc {
  font-size: 1rem; line-height: 1.7; opacity: .9;
  margin-bottom: 2rem;
  border-top: 2px solid rgba(255,255,255,.25);
  padding-top: 1.2rem;
}

/* Nav link rows inside the hero card */
.hero-nav { list-style: none; border-top: 1px solid rgba(255,255,255,.25); }
.hero-nav li { border-bottom: 1px solid rgba(255,255,255,.25); }
.hero-nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0;
  font-weight: 600; font-size: .97rem;
  color: var(--white); gap: 1rem;
  transition: opacity .2s;
}
.hero-nav a:hover { opacity: .75; }
.hero-nav .arrow {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border: 2px solid rgba(255,255,255,.6); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}

/* =====================================================
   PAGE HERO (sub-pages)
   ===================================================== */
.page-hero {
  margin-top: 64px;
  position: relative; overflow: hidden;
  min-height: 380px;
  display: flex; align-items: flex-end;
  padding: 3rem 1.5rem;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: var(--hero-img);
  background-size: cover; background-position: center;
  filter: brightness(.55);
}
.page-hero .page-hero-inner {
  position: relative; max-width: 780px;
}
.page-hero h1 {
  color: var(--white); font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 800; line-height: 1.15; margin-bottom: .8rem;
}
.page-hero p {
  color: rgba(255,255,255,.88); font-size: 1.1rem; max-width: 560px;
}
.page-hero .cta-btn {
  display: inline-block; margin-top: 1.4rem;
  background: var(--teal); color: var(--white);
  padding: .75rem 1.8rem; border-radius: 3px;
  font-weight: 700; font-size: .95rem;
  transition: background .2s;
}
.page-hero .cta-btn:hover { background: var(--teal-light); }

/* =====================================================
   SECTIONS
   ===================================================== */
.section { padding: 4.5rem 1.5rem; }
.section--alt { background: var(--off-white); }
.section--dark { background: var(--purple-dark); color: var(--white); }
.section--teal { background: var(--teal); color: var(--white); }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800; color: var(--purple);
}
.section--dark .section-header h2,
.section--teal .section-header h2 { color: var(--white); }
.section-header p { margin-top: .6rem; color: var(--gray); max-width: 580px; margin-inline: auto; }
.section--dark .section-header p,
.section--teal .section-header p { color: rgba(255,255,255,.82); }

/* ── Feature Cards ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem; max-width: 1100px; margin: 0 auto;
}
.feat-card {
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(76, 61, 130, .1);
  transition: transform .25s, box-shadow .25s;
}
.feat-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(76,61,130,.18); }
.feat-card img {
  width: 100%; height: 220px; object-fit: cover;
}
.feat-card-body { padding: 1.4rem 1.5rem 1.8rem; }
.feat-card-body h3 { font-size: 1.15rem; font-weight: 700; color: var(--purple); margin-bottom: .5rem; }
.feat-card-body p { color: var(--gray); font-size: .95rem; line-height: 1.65; }
.feat-card-body .read-more {
  display: inline-block; margin-top: 1rem;
  color: var(--teal); font-weight: 700; font-size: .9rem;
  border-bottom: 2px solid var(--teal); padding-bottom: 2px;
  transition: opacity .2s;
}
.feat-card-body .read-more:hover { opacity: .7; }

/* ── Icon Feature Row ── */
.icon-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem; max-width: 1100px; margin: 0 auto;
}
.icon-feat {
  display: flex; align-items: flex-start; gap: 1rem;
  background: var(--white); padding: 1.2rem 1.4rem;
  border-radius: 6px; border-left: 4px solid var(--teal);
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.icon-feat .icon {
  font-size: 1.6rem; flex-shrink: 0; margin-top: .1rem;
}
.icon-feat h4 { font-size: .97rem; font-weight: 700; color: var(--purple); margin-bottom: .25rem; }
.icon-feat p  { font-size: .88rem; color: var(--gray); line-height: 1.55; }

/* ── Two-column text+image ── */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3.5rem; align-items: center;
  max-width: 1100px; margin: 0 auto;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }
.two-col img {
  width: 100%; border-radius: 8px;
  object-fit: cover; max-height: 400px;
}
.two-col-text h2 {
  font-size: clamp(1.4rem, 2.8vw, 1.9rem); font-weight: 800;
  color: var(--purple); margin-bottom: 1rem;
}
.section--dark .two-col-text h2 { color: var(--white); }
.two-col-text p { color: var(--gray); line-height: 1.75; margin-bottom: .9rem; }
.section--dark .two-col-text p { color: rgba(255,255,255,.82); }
.two-col-text .cta-btn {
  display: inline-block; margin-top: .5rem;
  background: var(--teal); color: var(--white);
  padding: .7rem 1.6rem; border-radius: 3px;
  font-weight: 700; font-size: .9rem; transition: background .2s;
}
.two-col-text .cta-btn:hover { background: var(--teal-light); }

/* ── Testimonials ── */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem; max-width: 1100px; margin: 0 auto;
}
.testimonial {
  background: var(--white); border-radius: 6px;
  overflow: hidden; box-shadow: 0 4px 20px rgba(76,61,130,.1);
}
.testimonial img {
  width: 100%; height: 240px; object-fit: cover;
}
.testimonial-body { padding: 1.4rem 1.5rem 1.8rem; }
.testimonial-body h3 { font-size: 1.1rem; font-weight: 700; color: var(--purple); margin-bottom: .5rem; }
.testimonial-body .quote { font-style: italic; color: var(--gray); font-size: .95rem; line-height: 1.65; }
.testimonial-body .name { margin-top: .8rem; font-weight: 700; font-size: .85rem; color: var(--teal); }
.testimonial-body .read-more {
  display: inline-block; margin-top: .8rem;
  background: var(--purple); color: var(--white);
  padding: .5rem 1.2rem; border-radius: 3px; font-size: .85rem; font-weight: 600;
  transition: background .2s;
}
.testimonial-body .read-more:hover { background: var(--purple-light); }

/* ── Stats Strip ── */
.stats-strip {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 2.5rem; padding: 3.5rem 1.5rem;
  background: var(--purple);
}
.stat { text-align: center; color: var(--white); }
.stat .number { font-size: 2.8rem; font-weight: 900; line-height: 1; }
.stat .label  { font-size: .85rem; opacity: .8; margin-top: .3rem; text-transform: uppercase; letter-spacing: .08em; }

/* ── Accordion FAQ ── */
.faq-list { max-width: 780px; margin: 0 auto; list-style: none; }
.faq-item { border-bottom: 1px solid var(--light-gray); }
.faq-question {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 1.2rem 0;
  background: none; border: none; cursor: pointer; text-align: left;
  font-family: var(--font-main); font-size: 1rem; font-weight: 600;
  color: var(--purple); gap: 1rem;
}
.faq-question .faq-icon { font-size: 1.3rem; flex-shrink: 0; transition: transform .25s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-answer p { padding: 0 0 1.2rem; color: var(--gray); line-height: 1.7; }

/* ── Job Cards ── */
.job-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.job-card {
  background: var(--white); border-radius: 6px;
  border-left: 5px solid var(--teal);
  padding: 1.4rem 1.8rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  transition: box-shadow .2s;
}
.job-card:hover { box-shadow: 0 6px 22px rgba(76,61,130,.15); }
.job-card-info h3 { font-size: 1.05rem; font-weight: 700; color: var(--purple); margin-bottom: .25rem; }
.job-card-info p { font-size: .88rem; color: var(--gray); }
.job-card .apply-btn {
  flex-shrink: 0; background: var(--teal); color: var(--white);
  padding: .55rem 1.3rem; border-radius: 3px; font-weight: 700; font-size: .88rem;
  transition: background .2s; white-space: nowrap;
}
.job-card .apply-btn:hover { background: var(--teal-light); }

/* ── Benefits List ── */
.benefits { max-width: 700px; margin: 0 auto; list-style: none; display: flex; flex-direction: column; gap: .9rem; }
.benefits li {
  display: flex; align-items: flex-start; gap: .9rem;
  font-size: .97rem; color: var(--gray); line-height: 1.6;
}
.benefits .tick {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  background: var(--teal); display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: .8rem; font-weight: 900; margin-top: .15rem;
}

/* ── CTA Banner ── */
.cta-banner {
  padding: 4rem 1.5rem; background: var(--teal);
  text-align: center; color: var(--white);
}
.cta-banner h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin-bottom: .7rem; }
.cta-banner p { opacity: .88; max-width: 520px; margin: 0 auto 1.5rem; }
.cta-banner .cta-btn {
  display: inline-block; background: var(--white); color: var(--teal);
  padding: .8rem 2rem; border-radius: 3px; font-weight: 800; font-size: 1rem;
  transition: opacity .2s;
}
.cta-banner .cta-btn:hover { opacity: .85; }

/* ── Breadcrumb ── */
.breadcrumb {
  padding: .75rem 1.5rem; background: var(--off-white);
  margin-top: 64px; font-size: .85rem; color: var(--gray);
}
.breadcrumb a { color: var(--purple); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span + span::before { content: ' › '; margin: 0 .3rem; }

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  background: var(--purple);
  padding: 3rem 1.5rem 2rem;
  color: var(--white);
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 2rem; align-items: start;
}
.footer-logo {
  height: 58px; width: auto;
  background: white;
  padding: .4rem .8rem;
  border-radius: 6px;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: .6rem 2rem; list-style: none; }
.footer-nav a { color: rgba(255,255,255,.8); font-size: .9rem; transition: color .2s; }
.footer-nav a:hover { color: var(--white); }
.footer-copy {
  font-size: .82rem; opacity: .6; white-space: nowrap; align-self: end;
}
.footer-bottom {
  max-width: 1100px; margin: 1.8rem auto 0;
  padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.15);
  display: flex; flex-wrap: wrap; gap: .5rem 2rem;
  font-size: .8rem; opacity: .55;
}
.footer-bottom a { color: inherit; }
.footer-bottom a:hover { opacity: 1; text-decoration: underline; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; }
  .two-col.reverse { direction: ltr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-copy { align-self: start; }
  .hero-card { padding: 2rem 1.5rem 1.5rem; }
  .stats-strip { gap: 2rem; }
}
@media (max-width: 480px) {
  .job-card { flex-direction: column; align-items: flex-start; }
}
