/*
Theme Name: A Bit of Life
Theme URI: https://example.com
Author: A Bit of Life
Description: A warm, compassionate WordPress theme for A Bit of Life — home care companionship and support services. Built around the brand's interlocking heart-and-hand mark.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: abitoflife
*/

/* -------------------------------------------------
   DESIGN TOKENS
   Palette pulled directly from the logo:
   - Cream   #F7F3EA  background
   - Ink     #2B2118  primary text
   - Umber   #6B4023  headings / eyebrow / logo type
   - Magenta #E4157A  primary accent (left ring)
   - Teal    #1C8F82  secondary accent (right ring)
------------------------------------------------- */
:root{
  --cream: #F7F3EA;
  --cream-deep: #EFE8D8;
  --ink: #2B2118;
  --umber: #6B4023;
  --magenta: #E4157A;
  --magenta-deep: #B80F60;
  --teal: #1C8F82;
  --teal-deep: #14685F;
  --white: #FFFFFF;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Karla', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-soft: 28px;
  --shadow-soft: 0 18px 40px -18px rgba(43, 33, 24, 0.28);
  --container: 1120px;
}

/* -------------------------------------------------
   RESET / BASE
------------------------------------------------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: var(--magenta-deep); text-decoration:none; }
ul{ padding:0; margin:0; list-style:none; }
h1,h2,h3,h4{
  font-family: var(--font-display);
  color: var(--umber);
  line-height:1.12;
  margin:0 0 .5em;
  font-weight: 600;
}
h1{ font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; }
h2{ font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3{ font-size: 1.35rem; }
p{ margin:0 0 1.1em; }
.container{ max-width: var(--container); margin:0 auto; padding:0 28px; }
.screen-reader-text{
  position:absolute !important; clip:rect(1px,1px,1px,1px);
  width:1px;height:1px;overflow:hidden; white-space:nowrap;
}

/* -------------------------------------------------
   SIGNATURE ELEMENT
   The interlocking rings from the mark, reused as a
   recurring divider / bullet / frame motif site-wide.
------------------------------------------------- */
.rings-divider{
  width: 74px; height: 40px; margin: 0 auto 22px;
  position: relative;
}
.rings-divider::before,
.rings-divider::after{
  content:"";
  position:absolute; top:0; width:44px; height:40px;
  border-radius: 50%;
  border: 5px solid var(--magenta);
}
.rings-divider::after{
  left: 30px;
  border-color: var(--teal);
}
.rings-divider.center{ margin-left:auto; margin-right:auto; }
.rings-divider.left{ margin-left:0; }

.eyebrow{
  display:inline-flex; align-items:center; gap:.5em;
  font-family: var(--font-body);
  font-weight:800; letter-spacing:.14em; text-transform:uppercase;
  font-size:.78rem; color: var(--magenta-deep);
  margin-bottom: .9em;
}
.eyebrow::before{
  content:""; width:22px; height:22px; border-radius:50%;
  border:4px solid var(--teal); display:inline-block;
}

/* interlocking-ring frame for photos / feature blocks */
.ring-frame{
  position:relative;
  border-radius: 50% 50% 48% 48% / 60% 60% 40% 40%;
  overflow:hidden;
  box-shadow: var(--shadow-soft);
  border: 6px solid var(--white);
}
.ring-frame img{ width:100%; height:100%; object-fit:cover; }

/* -------------------------------------------------
   BUTTONS
------------------------------------------------- */
.btn{
  display:inline-flex; align-items:center; gap:.5em;
  font-family: var(--font-body); font-weight:800;
  font-size:.95rem; letter-spacing:.01em;
  padding: 14px 28px; border-radius: 999px;
  border: 2px solid transparent; cursor:pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn-primary{
  background: var(--magenta); color: var(--white);
  box-shadow: 0 12px 24px -10px rgba(228,21,122,.55);
}
.btn-primary:hover{ background: var(--magenta-deep); transform: translateY(-2px); color:var(--white); }
.btn-outline{
  background: transparent; border-color: var(--umber); color: var(--umber);
}
.btn-outline:hover{ background: var(--umber); color: var(--white); transform: translateY(-2px); }
.btn-teal{
  background: var(--teal); color:var(--white);
  box-shadow: 0 12px 24px -10px rgba(28,143,130,.55);
}
.btn-teal:hover{ background: var(--teal-deep); color:var(--white); transform: translateY(-2px); }

/* -------------------------------------------------
   SITE HEADER
------------------------------------------------- */
.site-header{
  position: sticky; top:0; z-index: 500;
  background: rgba(247,243,234,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(107,64,35,.12);
}
.site-header .container{
  display:flex; align-items:center; justify-content:space-between;
  padding-top:14px; padding-bottom:14px;
}
.site-branding{ display:flex; align-items:center; gap:12px; }
.site-branding img{ height:56px; width:auto; }
.site-title{
  font-family: var(--font-display); font-weight:700;
  font-size:1.3rem; color: var(--magenta-deep); margin:0; line-height:1;
}
.site-title a{ color: inherit; }
.site-tagline{
  font-size:.72rem; letter-spacing:.08em; text-transform:uppercase;
  color: var(--umber); font-weight:700; margin:2px 0 0;
}

.primary-nav ul{ display:flex; align-items:center; gap:6px; }
.primary-nav a{
  display:inline-block; padding:10px 16px; border-radius:999px;
  color: var(--umber); font-weight:700; font-size:.95rem;
  transition: background .18s ease, color .18s ease;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a{
  background: var(--teal); color: var(--white);
}
.header-cta{ display:flex; align-items:center; gap:10px; }
.header-cta .btn{ padding:10px 20px; font-size:.85rem; }

.menu-toggle{
  display:none; background:none; border:2px solid var(--umber);
  border-radius:10px; width:44px; height:40px; cursor:pointer;
  position:relative;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after{
  content:""; position:absolute; left:10px; right:10px; height:2px; background: var(--umber);
}
.menu-toggle span{ top:19px; }
.menu-toggle span::before{ top:-7px; }
.menu-toggle span::after{ top:7px; }

/* -------------------------------------------------
   HERO
------------------------------------------------- */
.hero{
  padding: 64px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero .container{
  display:grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items:center;
}
.hero-copy p.lead{ font-size:1.15rem; color:#4a3a2c; max-width: 46ch; }
.hero-actions{ display:flex; flex-wrap:wrap; gap:14px; margin-top: 28px; }
.hero-visual{ position:relative; }
.hero-visual .ring-frame{ aspect-ratio: 4/5; }
.hero-badge{
  position:absolute; bottom:-18px; left:-18px;
  background: var(--white); border-radius: var(--radius-soft);
  box-shadow: var(--shadow-soft);
  padding: 16px 20px; display:flex; align-items:center; gap:12px;
  max-width: 240px;
}
.hero-badge .rings-divider{ margin:0; width:44px; height:24px; flex:none; }
.hero-badge .rings-divider::before,.hero-badge .rings-divider::after{ width:26px; height:24px; border-width:3px; }
.hero-badge .rings-divider::after{ left:18px; }
.hero-badge strong{ display:block; font-family: var(--font-display); color:var(--umber); font-size:1rem; }
.hero-badge span{ font-size:.8rem; color:#7a6a58; }

/* -------------------------------------------------
   SECTIONS
------------------------------------------------- */
section{ padding: 74px 0; }
.section-alt{ background: var(--cream-deep); }
.section-head{ max-width: 640px; margin: 0 auto 48px; text-align:center; }
.section-head p{ color:#4a3a2c; }

.grid-3{ display:grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.grid-2{ display:grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items:center; }

.card{
  background: var(--white); border-radius: var(--radius-soft);
  padding: 32px 26px; box-shadow: var(--shadow-soft);
  border: 1px solid rgba(107,64,35,.08);
}
.card .icon-ring{
  width:56px; height:56px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background: linear-gradient(135deg, var(--magenta), var(--teal));
  color:#fff; font-family: var(--font-display); font-weight:700; font-size:1.3rem;
  margin-bottom: 18px;
}
.card h3{ margin-bottom:.4em; }
.card p{ color:#5a4a3c; margin-bottom:0; font-size:.98rem; }

/* Specialties list */
.specialty-row{
  display:flex; gap:22px; align-items:flex-start;
  padding: 26px 0; border-bottom: 1px solid rgba(107,64,35,.14);
}
.specialty-row:last-child{ border-bottom:none; }
.specialty-mark{
  flex:none; width:48px; height:48px; position:relative; margin-top:4px;
}
.specialty-mark::before,.specialty-mark::after{
  content:""; position:absolute; top:0; width:30px; height:28px; border-radius:50%;
  border:4px solid var(--magenta);
}
.specialty-mark::after{ left:18px; border-color: var(--teal); }
.specialty-row h3{ margin-bottom:.25em; }
.specialty-row p{ color:#5a4a3c; margin-bottom:0; }

/* Testimonial / CTA band */
.band{
  background: linear-gradient(120deg, var(--magenta) 0%, var(--magenta-deep) 46%, var(--teal-deep) 100%);
  color: var(--white); border-radius: var(--radius-soft);
  padding: 56px 44px; text-align:center;
}
.band h2{ color:#fff; }
.band p{ color: rgba(255,255,255,.9); max-width:56ch; margin-left:auto; margin-right:auto; }
.band .btn-primary{ background:#fff; color: var(--magenta-deep); box-shadow:none; }
.band .btn-primary:hover{ background: var(--cream); }

/* -------------------------------------------------
   PAGE HEADER (interior pages)
------------------------------------------------- */
.page-hero{
  padding: 56px 0 46px; text-align:center;
  background: var(--cream-deep);
  border-bottom: 1px solid rgba(107,64,35,.1);
}
.page-hero p{ max-width: 60ch; margin:0 auto; color:#4a3a2c; }

/* -------------------------------------------------
   ABOUT PAGE
------------------------------------------------- */
.values-grid{ display:grid; grid-template-columns: repeat(4,1fr); gap:22px; margin-top: 20px; }
.value-pill{
  text-align:center; padding: 26px 16px; background:#fff;
  border-radius: 20px; box-shadow: var(--shadow-soft);
}
.value-pill .rings-divider{ width:44px; height:26px; }
.value-pill .rings-divider::before,.value-pill .rings-divider::after{ width:26px; height:26px; border-width:3px; }
.value-pill .rings-divider::after{ left:18px; }
.value-pill h4{ font-family: var(--font-display); color: var(--umber); margin:.4em 0 .2em; font-size:1.05rem; }
.value-pill p{ font-size:.88rem; color:#6a5a4a; margin:0; }

/* -------------------------------------------------
   CONTACT PAGE
------------------------------------------------- */
.contact-wrap{ display:grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info-card{
  background: var(--umber); color: var(--cream); border-radius: var(--radius-soft);
  padding: 40px 34px;
}
.contact-info-card h3{ color:#fff; }
.contact-info-card ul{ margin-top:22px; }
.contact-info-card li{
  display:flex; gap:14px; align-items:flex-start; margin-bottom:18px; font-size:.98rem;
}
.contact-info-card li .dot{
  flex:none; width:10px; height:10px; border-radius:50%; margin-top:7px;
  background: var(--magenta);
}
.contact-form label{
  display:block; font-weight:800; font-size:.85rem; letter-spacing:.03em;
  color: var(--umber); margin-bottom:6px;
}
.contact-form input,
.contact-form textarea{
  width:100%; padding: 13px 16px; margin-bottom:18px;
  border-radius:14px; border:2px solid rgba(107,64,35,.18);
  font-family: var(--font-body); font-size:1rem; background:#fff; color: var(--ink);
}
.contact-form input:focus,
.contact-form textarea:focus{
  outline: 3px solid var(--teal); outline-offset:1px; border-color: var(--teal);
}
.form-note{ font-size:.85rem; color:#7a6a58; margin-top:-6px; }

/* -------------------------------------------------
   WHATSAPP PAGE
------------------------------------------------- */
.whatsapp-hero{
  text-align:center; padding: 70px 0; background: var(--cream-deep);
}
.whatsapp-panel{
  max-width: 560px; margin: 0 auto; background:#fff; border-radius: var(--radius-soft);
  box-shadow: var(--shadow-soft); padding: 44px 36px; text-align:center;
}
.whatsapp-icon{
  width:76px;height:76px;border-radius:50%; margin:0 auto 18px;
  background:#25D366; display:flex; align-items:center; justify-content:center;
}
.whatsapp-icon svg{ width:38px; height:38px; fill:#fff; }
.whatsapp-panel .btn{ margin-top: 20px; width:100%; justify-content:center; }
.whatsapp-steps{ text-align:left; margin-top: 34px; }
.whatsapp-steps li{ display:flex; gap:12px; margin-bottom:14px; }
.whatsapp-steps li .num{
  flex:none; width:26px; height:26px; border-radius:50%; background: var(--teal); color:#fff;
  font-weight:800; font-size:.8rem; display:flex; align-items:center; justify-content:center;
}

/* -------------------------------------------------
   FLOATING WHATSAPP BUTTON (site-wide)
------------------------------------------------- */
.wa-float{
  position: fixed; right: 24px; bottom: 24px; z-index: 900;
  width: 60px; height:60px; border-radius:50%;
  background:#25D366; display:flex; align-items:center; justify-content:center;
  box-shadow: 0 14px 30px -10px rgba(0,0,0,.4);
  transition: transform .2s ease;
}
.wa-float:hover{ transform: scale(1.08); }
.wa-float svg{ width:30px; height:30px; fill:#fff; }

/* -------------------------------------------------
   SCROLL TO TOP BUTTON
------------------------------------------------- */
.scroll-top-btn{
  position: fixed; right: 24px; bottom: 96px; z-index: 900;
  width: 48px; height:48px; border-radius:50%;
  background: var(--umber); color:#fff; border:none; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 14px 30px -10px rgba(0,0,0,.4);
  opacity:0; visibility:hidden; transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, background .2s ease, visibility .25s;
}
.scroll-top-btn.is-visible{ opacity:1; visibility:visible; transform: translateY(0); }
.scroll-top-btn:hover{ background: var(--magenta-deep); }
.scroll-top-btn svg{ width:20px; height:20px; fill:#fff; }

/* -------------------------------------------------
   FOOTER
------------------------------------------------- */
.site-footer{
  background: var(--ink); color: #ded2c2; padding: 58px 0 26px; margin-top: 60px;
}
.footer-grid{ display:grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand{ display:flex; align-items:center; gap:12px; margin-bottom: 14px; }
.footer-brand img{ height:44px; }
.footer-brand strong{ font-family: var(--font-display); color:#fff; font-size:1.15rem; }
.site-footer h4{ color:#fff; font-family: var(--font-body); font-size:.85rem; letter-spacing:.08em; text-transform:uppercase; margin-bottom:14px; }
.site-footer a{ color:#ded2c2; }
.site-footer a:hover{ color: var(--magenta); }
.site-footer li{ margin-bottom:10px; font-size:.94rem; }
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px;
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;
  font-size:.82rem; color:#a89a88;
}

/* -------------------------------------------------
   RESPONSIVE
------------------------------------------------- */
@media (max-width: 900px){
  .primary-nav{
    position:absolute; top:100%; left:0; right:0;
    background: var(--cream); border-bottom:1px solid rgba(107,64,35,.12);
    display:none; padding: 10px 20px 20px;
  }
  .primary-nav.is-open{ display:block; }
  .primary-nav ul{ flex-direction:column; align-items:stretch; gap:4px; }
  .primary-nav a{ display:block; }
  .menu-toggle{ display:inline-block; }
  .header-cta .btn-outline{ display:none; }

  .hero .container{ grid-template-columns: 1fr; }
  .hero-visual{ order:-1; max-width:340px; margin:0 auto; }
  .grid-3{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; }
  .values-grid{ grid-template-columns: 1fr 1fr; }
  .contact-wrap{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior:auto !important; transition:none !important; }
}
