/* Joycie Care website styles */

:root {
  --ink: #12302B;
  --teal: #0E5A4F;
  --teal-soft: #E1EFEA;
  --mint: #EEF5F2;
  --mint-deep: #CFE3DC;
  --line: #DCE6E2;
  --muted: #3B504B;
  --muted-2: #4A5D58;
  --on-dark: #D6E4DF;
  --on-teal: #E3F0EC;
  --gold: #F4B03E;
  --cream: #FDF6E9;
  --cream-chip: #FDF0D8;
  --brown: #7A4E00;
  --white: #FFFFFF;
  --radius: 24px;
  --max: 1200px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

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

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

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(36px, 5vw, 60px); letter-spacing: -0.03em; }
h2 { font-size: clamp(28px, 3.5vw, 42px); }
h3 { font-size: 22px; letter-spacing: -0.01em; }
p { margin: 0; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--ink); padding: 12px 18px; border-radius: 12px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding-top: 88px; padding-bottom: 88px; }
.section-sm { padding-top: 64px; padding-bottom: 64px; }
.bg-mint { background: var(--mint); }
.bg-cream { background: var(--cream); }
.bg-ink { background: var(--ink); color: var(--white); }
.bg-ink p { color: var(--on-dark); }
.lead { font-size: 20px; color: var(--muted); max-width: 680px; }
.muted { color: var(--muted); }
.small { font-size: 14px; color: var(--muted-2); }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); }
.bg-ink .eyebrow { color: var(--gold); }
.center { text-align: center; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-lg { display: flex; flex-direction: column; gap: 24px; }
.section-head { max-width: 720px; margin: 0 auto 48px; display: flex; flex-direction: column; gap: 12px; text-align: center; }
.section-head.left { margin: 0 0 40px; text-align: left; }
.row-between { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; }

/* Grids */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-5 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.split > * { flex: 1 1 420px; min-width: 0; }
.split.top { align-items: flex-start; }
.split-side { display: flex; flex-wrap: wrap; gap: 24px 64px; }
.split-side > :first-child { flex: 1 1 280px; min-width: 0; }
.split-side > :last-child { flex: 2 1 520px; min-width: 0; }

/* Buttons */
.btn {
  min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 28px; border-radius: 999px; font-weight: 700; font-size: 17px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; font-family: inherit;
}
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 16px; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #E9A22C; color: var(--ink); }
.btn-outline { background: var(--white); color: var(--teal); border-color: var(--teal); }
.btn-outline:hover { background: var(--mint); color: var(--teal); }
.btn-ghost-light { background: transparent; color: var(--white); border-color: var(--white); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #0B211D; color: var(--white); }
.btn-teal { background: var(--teal); color: var(--white); }
.btn-teal:hover { background: #0A473F; color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-strong { font-weight: 700; padding: 10px 0; display: inline-block; }

/* Utility bar and header */
.utility { background: var(--ink); color: var(--white); font-size: 14px; }
.utility .container { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 10px; padding-bottom: 10px; }
.utility a { color: var(--white); text-decoration: none; }
.utility a:hover { text-decoration: underline; color: var(--white); }

.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: relative; }
.site-header .container { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; gap: 10px; align-items: center; text-decoration: none; color: var(--ink); }
.brand span { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.brand em { font-style: normal; color: var(--teal); }
.brand:hover { color: var(--ink); }
.main-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; align-items: center; font-weight: 600; font-size: 15px; }
.main-nav a { color: var(--ink); text-decoration: none; padding: 10px 0; }
.main-nav a:hover { color: var(--teal); }
.main-nav a[aria-current="page"] { color: var(--teal); text-decoration: underline; text-underline-offset: 6px; }
.header-cta { display: flex; gap: 12px; align-items: center; }
.menu-toggle {
  display: none; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--ink);
  background: var(--white); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer;
}

@media (max-width: 1020px) {
  .js .menu-toggle { display: inline-flex; align-items: center; }
  .js .main-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; order: 3; border-top: 1px solid var(--line); padding-top: 8px; }
  .js .main-nav.open { display: flex; }
  .js .main-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 17px; }
  .header-cta .btn { display: none; }
}

/* Hero */
.hero .container { padding-top: 72px; padding-bottom: 80px; }
.pill { align-self: flex-start; display: inline-block; background: var(--white); color: var(--teal); font-weight: 700; font-size: 14px; padding: 6px 14px; border-radius: 999px; }
.pill-cream { background: var(--cream-chip); color: var(--brown); }
.pill-teal { background: var(--teal-soft); color: var(--teal); }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; font-weight: 600; color: var(--muted); }
.photo {
  min-height: 420px; border-radius: 28px; background: var(--mint-deep); display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-weight: 600; text-align: center; padding: 24px; overflow: hidden;
}
.photo { position: relative; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Photo frames keep the image's own 4:3 shape so faces are never cropped */
.photo.has-img { min-height: 0; aspect-ratio: 4 / 3; padding: 0; align-self: center; }
.photo.has-img img { object-position: center 30%; }

/* Page hero for inner pages */
.page-hero .container { padding-top: 64px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 12px; }
.page-hero h1 { font-size: clamp(36px, 4.5vw, 54px); }

/* Cards */
.card { border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.card-line { border: 2px solid var(--line); background: var(--white); }
.card-white { background: var(--white); }
.card-mint { background: var(--mint); }
.card-cream { background: var(--cream); }
.card-teal { background: var(--teal); color: var(--white); }
.card-teal p { color: var(--on-teal); }
.card-big { padding: 40px; }
.card-big h3 { font-size: 28px; }
.card-big p { font-size: 18px; }
a.card { text-decoration: none; color: var(--ink); }
a.card:hover { color: var(--ink); box-shadow: 0 6px 24px rgba(18,48,43,0.08); }

.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.check-list li { display: flex; gap: 10px; }
.check-list li::before {
  content: ''; flex: none; width: 20px; height: 20px; margin-top: 3px;
  background: no-repeat center / 20px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E5A4F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.check-list.gold li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F4B03E' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.check-list.brown li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A4E00' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* Steps */
.step-num { width: 48px; height: 48px; border-radius: 999px; background: var(--gold); color: var(--ink); font-weight: 800; font-size: 20px; display: flex; align-items: center; justify-content: center; }

/* Comparison table */
.table-wrap { overflow-x: auto; background: var(--white); border-radius: 20px; max-width: 920px; }
.compare { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 16px; }
.compare th, .compare td { padding: 16px 24px; border-bottom: 1px solid #E8EFEC; }
.compare thead th { border-bottom: 2px solid var(--line); text-align: center; }
.compare thead th:first-child { text-align: left; }
.compare tbody th { text-align: left; font-weight: 500; }
.compare td { text-align: center; font-weight: 700; color: var(--teal); }
.compare .hl { background: #F3F9F7; }
.compare thead .hl { background: var(--teal-soft); }

/* Service tags */
.tag-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.tag { background: var(--mint); border-radius: 14px; padding: 12px 16px; font-weight: 600; display: flex; align-items: center; gap: 12px; }
.tag-icon { width: 38px; height: 38px; flex: none; border-radius: 999px; background: var(--white); color: var(--teal); display: inline-flex; align-items: center; justify-content: center; }
.icon-tile { width: 52px; height: 52px; flex: none; border-radius: 14px; background: var(--white); color: var(--teal); display: inline-flex; align-items: center; justify-content: center; }
.card-line .icon-tile { background: var(--mint); }

/* Phone mockup */
.phone { width: 280px; height: 560px; border-radius: 44px; background: var(--ink); padding: 14px; margin: 0 auto; }
.phone-screen { width: 100%; height: 100%; border-radius: 32px; background: var(--white); padding: 26px 18px; display: flex; flex-direction: column; gap: 14px; font-size: 16px; }
.phone-balance { background: var(--teal); color: var(--white); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.phone-row { border: 1px solid var(--line); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.phone-cta { margin-top: auto; background: var(--gold); border-radius: 999px; padding: 12px; text-align: center; font-weight: 700; }

/* Band CTA */
.band { border-radius: 32px; padding: 48px 40px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.band h2 { font-size: clamp(26px, 3vw, 38px); }
.band-teal { background: var(--teal); color: var(--white); }
.band-teal p { color: var(--on-teal); }
.band-gold { background: var(--gold); }

/* FAQ */
.faq { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq details { border: 1.5px solid var(--line); border-radius: 18px; background: var(--white); }
.faq summary {
  list-style: none; cursor: pointer; min-height: 64px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 24px; font-size: 18px; font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 26px; color: var(--teal); font-weight: 600; }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { padding: 0 24px 22px; color: var(--muted); }

/* Policies */
.policy-nav { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 16px; }
.policy-nav a { min-height: 48px; display: flex; align-items: center; padding: 0 16px; border-radius: 12px; background: var(--mint); color: var(--ink); text-decoration: none; font-weight: 600; }
.policy-nav a:hover { background: var(--teal-soft); }
.policy { display: flex; flex-direction: column; gap: 14px; padding-bottom: 48px; scroll-margin-top: 24px; }
.placeholder-box { border: 2px dashed #C9D8D3; border-radius: 18px; padding: 28px; color: var(--muted-2); }

/* Shop */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  min-height: 44px; padding: 0 18px; border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer;
  background: var(--white); color: var(--ink); border: 1.5px solid #D9C49A;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.product { border: 1.5px solid #E6DCC6; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.product-img { height: 180px; background: #F6EEDC; display: flex; align-items: center; justify-content: center; color: var(--brown); font-weight: 600; font-size: 14px; }
.product-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.product[hidden] { display: none; }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-dark); font-size: 15px; }
.site-footer .container { padding-top: 56px; padding-bottom: 28px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.footer-grid nav { display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { color: var(--on-dark); }
.footer-grid a:hover { color: var(--white); }
.footer-title { color: var(--white); font-weight: 700; }
.footer-brand { font-size: 22px; font-weight: 800; color: var(--white); }
.footer-bottom { margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.15); display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; font-size: 14px; }
.footer-bottom p { max-width: 760px; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .hero .container { padding-top: 48px; padding-bottom: 56px; }
  .card, .card-big { padding: 28px 24px; }
  .band { padding: 36px 24px; }
  .photo { min-height: 260px; }
  .lead { font-size: 18px; }
}

/* Motion: subtle entrance, hover lift and floating phone */
.btn { transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(18,48,43,0.16); }
.btn:active { transform: translateY(0); box-shadow: none; }
a.card, .product { transition: transform 0.25s ease, box-shadow 0.25s ease; }
a.card:hover, .product:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(18,48,43,0.10); }
.main-nav a { transition: color 0.15s ease; }

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; transition-delay: var(--delay, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

@keyframes joycie-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.phone { animation: joycie-float 6s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .btn:hover, a.card:hover, .product:hover { transform: none; }
}
