/*
Theme Name: Thrive-NW
Theme URI: https://thrive-nw.com
Author: Thrive-NW
Description: Custom theme for Thrive-NW, a pediatric in-home skilled nursing agency serving the Willamette Valley, Oregon.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: thrive-nw
*/

  :root{
    --forest:#3bb44a;
    --deep-green:#006837;
    --bark:#603815;
    --amber:#b96905;
    --cream:#faf7f1;
    --sage:#eef3ea;
    --ink:#1f2b1f;
    --ink-soft:#4a5646;
    --line:#d9dccd;
    --white:#fffdfa;
    --radius:4px;
  }

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

  html{scroll-behavior:smooth;}

  body{
    font-family:'Source Sans 3', sans-serif;
    color:var(--ink);
    background:var(--cream);
    line-height:1.6;
    -webkit-font-smoothing:antialiased;
  }

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

  a{color:inherit; text-decoration:none;}

  h1,h2,h3,h4{
    font-family:'Fraunces', serif;
    font-weight:600;
    line-height:1.12;
    letter-spacing:-0.01em;
    color:var(--deep-green);
  }

  .eyebrow{
    font-family:'Source Sans 3', sans-serif;
    text-transform:uppercase;
    letter-spacing:0.14em;
    font-size:0.78rem;
    font-weight:700;
    color:var(--amber);
  }

  .hero .eyebrow{ color:#a7e6ae; font-size:0.95rem; }

  .wrap{
    max-width:1140px;
    margin:0 auto;
    padding:0 28px;
  }

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

  @media (prefers-reduced-motion: reduce){
    *{animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; scroll-behavior:auto !important;}
  }

  /* ---------- Buttons ---------- */
  .btn{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:14px 26px;
    border-radius:var(--radius);
    font-weight:600;
    font-size:1rem;
    border:1.5px solid transparent;
    cursor:pointer;
    transition:transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color .15s ease;
  }
  .btn:hover{ transform:translateY(-1px); }
  .btn-primary{
    background:var(--forest);
    color:var(--white);
  }
  .btn-primary:hover{ background:var(--deep-green); }
  .btn-outline{
    background:transparent;
    border-color:rgba(255,255,255,0.55);
    color:var(--white);
  }
  .btn-outline:hover{ background:rgba(255,255,255,0.12); }
  .btn-outline-dark{
    background:transparent;
    border-color:var(--deep-green);
    color:var(--deep-green);
  }
  .btn-outline-dark:hover{ background:var(--deep-green); color:var(--white); }

  /* ---------- Header ---------- */
  header{
    position:sticky; top:0; z-index:50;
    background:rgba(250,247,241,0.92);
    backdrop-filter:blur(8px);
    border-bottom:1px solid var(--line);
  }
  .nav{
    display:flex; align-items:center; justify-content:space-between;
    padding:16px 28px;
    max-width:1140px; margin:0 auto;
  }
  .logo{
    display:flex; align-items:center; gap:10px;
    font-family:'Fraunces', serif;
    font-weight:600;
    font-size:1.28rem;
    color:var(--deep-green);
  }
  .logo .mark{ width:34px; height:34px; object-fit:contain; }
  .nav-links{ display:flex; align-items:center; gap:30px; list-style:none; margin:0; padding:0; }
  .nav-links li{ list-style:none; }
  .nav-links a{
    font-size:0.95rem; font-weight:600; color:var(--ink-soft);
    display:inline-flex; align-items:center; gap:6px;
  }
  .nav-links a:hover{ color:var(--forest); }
  .nav-leaf{ flex:none; transition:color .15s ease; }
  .nav-phone{
    display:flex; align-items:center; gap:14px;
  }
  .phone-link{
    font-weight:700; color:var(--bark); font-size:0.98rem; white-space:nowrap;
  }
  .menu-btn{
    display:none; background:none; border:none; cursor:pointer; padding:6px;
  }
  .menu-btn span{
    display:block; width:24px; height:2px; background:var(--deep-green); margin:5px 0; transition:.2s;
  }

  @media (max-width:860px){
    .nav-links{
      position:absolute; top:100%; left:0; right:0;
      background:var(--white);
      flex-direction:column; align-items:flex-start;
      padding:20px 28px; gap:18px;
      border-bottom:1px solid var(--line);
      display:none;
    }
    .nav-links.open{ display:flex; }
    .menu-btn{ display:block; }
    .nav-phone .btn-primary span.label{ display:none; }
  }

  /* ---------- Hero ---------- */
  .hero{
    position:relative;
    overflow:hidden;
    background:var(--deep-green);
    color:var(--white);
    padding:88px 0 0;
  }
  .hero-grid{
    display:grid;
    grid-template-columns:1.05fr 0.95fr;
    gap:40px;
    align-items:center;
  }
  .hero h1{
    color:var(--white);
    font-size:clamp(2.4rem, 4.4vw, 3.6rem);
    max-width:11.5ch;
  }
  .hero h1 em{
    font-style:italic;
    color:#a7e6ae;
  }
  .hero p.lede{
    margin-top:22px;
    font-size:1.15rem;
    color:#dcefdd;
    max-width:46ch;
  }
  .hero-ctas{
    margin-top:34px;
    display:flex; gap:16px; flex-wrap:wrap;
  }
  .hero-counties{
    margin-top:38px;
    display:flex; flex-wrap:wrap; gap:10px 22px;
    font-size:0.92rem;
    color:#bfe0c2;
  }
  .hero-counties span{ display:inline-flex; align-items:center; gap:7px; }
  .hero-counties svg{ width:12px; height:12px; flex:none; }

  .hero-art{ position:relative; padding:20px 0 0; }

  .hero-bottom-fade{
    height:70px;
    background:linear-gradient(to bottom, transparent, var(--cream));
    margin-top:40px;
  }

  /* ---------- Trust strip ---------- */
  .trust{
    background:var(--white);
    border-top:1px solid var(--line);
    border-bottom:1px solid var(--line);
  }
  .trust .wrap{
    display:flex; flex-wrap:wrap; gap:28px 48px;
    justify-content:space-between;
    padding:26px 28px;
  }
  .trust-item{
    display:flex; align-items:center; gap:12px;
    font-size:0.95rem; color:var(--ink-soft); font-weight:600;
  }
  .trust-item svg{ width:22px; height:22px; flex:none; color:var(--forest); }

  /* ---------- Section shell ---------- */
  section{ padding:96px 0; }
  .section-head{ max-width:640px; margin-bottom:56px; }
  .section-head h2{ font-size:clamp(1.8rem, 3vw, 2.4rem); margin-top:10px; }
  .section-head p{ margin-top:16px; color:var(--ink-soft); font-size:1.05rem; }
  .alt{ background:var(--sage); }

  /* ---------- Services ---------- */
  .service-grid{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:1px;
    background:var(--line);
    border:1px solid var(--line);
  }
  .service-grid.four-up{ grid-template-columns:repeat(4, 1fr); }
  @media (max-width:900px){
    .service-grid.four-up{ grid-template-columns:repeat(2, 1fr); }
  }
  @media (max-width:520px){
    .service-grid.four-up{ grid-template-columns:1fr; }
  }
  .service-card{
    background:var(--white);
    padding:36px 32px;
    transition:background .18s ease;
  }
  .service-card:hover{ background:var(--white); box-shadow:inset 0 -3px 0 var(--forest); }
  .service-card .num{
    font-family:'Fraunces', serif;
    font-style:italic;
    color:var(--amber);
    font-size:1rem;
    margin-bottom:14px;
    display:block;
  }
  .service-card h3{
    font-size:1.18rem;
    color:var(--deep-green);
    margin-bottom:10px;
  }
  .service-card p{ color:var(--ink-soft); font-size:0.97rem; }

  @media (max-width:860px){
    .service-grid{ grid-template-columns:1fr; }
  }

  /* Service accordions */
  .service-accordions{
    display:flex;
    flex-direction:column;
    gap:14px;
  }
  .service-accordion{
    background:var(--white);
    border:1px solid var(--line);
    border-radius:6px;
    overflow:hidden;
  }
  .service-accordion summary{
    list-style:none;
    cursor:pointer;
    padding:26px 28px;
    display:flex;
    align-items:center;
    gap:22px;
  }
  .service-accordion summary::-webkit-details-marker{ display:none; }
  .service-accordion .num{
    font-family:'Fraunces', serif;
    font-style:italic;
    color:var(--amber);
    font-size:1.4rem;
    flex:none;
    width:34px;
  }
  .service-accordion .sa-title{ flex:1 1 auto; }
  .service-accordion .sa-title h3{
    font-size:1.15rem;
    color:var(--deep-green);
    margin-bottom:4px;
  }
  .service-accordion .sa-title p{ color:var(--ink-soft); font-size:0.95rem; }
  .service-accordion .sa-chevron{
    flex:none;
    color:var(--forest);
    transition:transform .2s ease;
  }
  .service-accordion[open] .sa-chevron{ transform:rotate(180deg); }
  .service-accordion[open] summary{ border-bottom:1px solid var(--line); }
  .service-accordion:hover summary{ background:var(--sage); }

  .service-detail-list{
    list-style:none;
    display:grid;
    grid-template-columns:repeat(2, 1fr);
    gap:2px;
    padding:22px 28px 28px;
    background:var(--cream);
  }
  .service-detail-list li{
    position:relative;
    font-size:0.94rem;
    color:var(--ink-soft);
  }
  .service-detail-list label{
    display:flex;
    align-items:center;
    gap:10px;
    padding:9px 6px;
    border-radius:4px;
    cursor:pointer;
    transition:background .15s ease;
  }
  .service-detail-list label:hover{ background:var(--sage); }
  .service-detail-list input[type="checkbox"]{
    flex:none;
    width:17px; height:17px;
    accent-color:var(--forest);
    cursor:pointer;
  }
  @media (max-width:700px){
    .service-detail-list{ grid-template-columns:1fr; }
    .service-accordion summary{ padding:20px; gap:16px; }
  }

  /* ---------- Service area / roots diagram ---------- */
  .area-section{ background:var(--deep-green); color:var(--white); }
  .area-section .eyebrow{ color:#8fd39a; }
  .area-section h2{ color:var(--white); }
  .area-section .section-head p{ color:#cfe7d0; }
  .area-layout{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:50px;
    align-items:center;
  }
  .county-list{
    list-style:none;
    display:flex; flex-direction:column; gap:0;
    border-top:1px solid rgba(255,255,255,0.18);
  }
  .county-list li{
    display:flex; align-items:baseline; justify-content:space-between;
    padding:20px 4px;
    border-bottom:1px solid rgba(255,255,255,0.18);
  }
  .county-list .cname{
    font-family:'Fraunces', serif;
    font-size:1.25rem;
    font-weight:500;
  }
  .county-list .ctag{
    font-size:0.85rem;
    color:#a7d6ab;
  }
  @media (max-width:860px){
    .area-layout{ grid-template-columns:1fr; }
    .area-layout .roots-wrap{ order:-1; }
  }

  /* ZIP code service-area checker */
  .zip-check{
    margin-top:56px;
    padding-top:48px;
    border-top:1px solid rgba(255,255,255,0.18);
    text-align:center;
  }
  .zip-check h3{ color:var(--white); font-size:1.3rem; margin-bottom:8px; }
  .zip-check p{ color:#cfe7d0; margin-bottom:22px; }
  .zip-check-form{
    display:flex; gap:12px; justify-content:center; flex-wrap:wrap;
  }
  .zip-check-form input{
    padding:13px 16px;
    border:1.5px solid rgba(255,255,255,0.3);
    border-radius:4px;
    font-size:1rem;
    width:160px;
    background:rgba(255,255,255,0.08);
    color:var(--white);
  }
  .zip-check-form input::placeholder{ color:#a7d6ab; }
  .zip-check-form input:focus{ outline:none; border-color:var(--forest); }
  .zip-check-result{
    max-width:520px;
    margin:22px auto 0;
    padding:14px 20px;
    border-radius:6px;
    font-size:0.95rem;
    font-weight:600;
  }
  .zip-check-yes{ background:rgba(59,180,74,0.18); color:#d3f2d6; border:1px solid rgba(59,180,74,0.4); }
  .zip-check-no{ background:rgba(185,105,5,0.18); color:#f5dcb8; border:1px solid rgba(185,105,5,0.4); }
  .zip-check-error{ background:rgba(255,255,255,0.1); color:#e8e8e8; border:1px solid rgba(255,255,255,0.2); }
  .zip-check-loading{ background:rgba(255,255,255,0.08); color:#cfe7d0; border:1px solid rgba(255,255,255,0.15); font-weight:400; }
  @media (max-width:520px){
    .zip-check-form{ flex-direction:column; align-items:center; }
    .zip-check-form input{ width:100%; max-width:220px; }
  }

  /* ---------- Process ---------- */
  .process-list{
    display:grid;
    grid-template-columns:repeat(4, 1fr);
    gap:0;
    counter-reset:step;
    border-top:1px solid var(--line);
  }
  .process-item{
    padding:30px 26px 30px 0;
    border-right:1px solid var(--line);
    position:relative;
  }
  .process-item:last-child{ border-right:none; }
  .process-item .step-num{
    font-family:'Fraunces', serif;
    font-style:italic;
    font-size:2.2rem;
    color:var(--forest);
    display:block;
    margin-bottom:14px;
  }
  .process-item h3{ font-size:1.05rem; margin-bottom:8px; color:var(--deep-green);}
  .process-item p{ font-size:0.93rem; color:var(--ink-soft); }
  @media (max-width:860px){
    .process-list{ grid-template-columns:1fr 1fr; }
    .process-item{ border-right:none; border-bottom:1px solid var(--line); padding:26px 0; }
  }
  @media (max-width:520px){
    .process-list{ grid-template-columns:1fr; }
  }

  /* ---------- Testimonial ---------- */
  .quote-block{
    max-width:760px; margin:0 auto; text-align:center;
  }
  .quote-block svg{ width:34px; height:34px; margin:0 auto 22px; color:var(--amber); }
  .quote-block blockquote{
    font-family:'Fraunces', serif;
    font-style:italic;
    font-size:clamp(1.3rem, 2.4vw, 1.7rem);
    color:var(--deep-green);
    line-height:1.4;
  }
  .quote-block cite{
    display:block; margin-top:22px;
    font-style:normal; font-weight:600; color:var(--bark); font-size:0.95rem;
  }

  /* ---------- CTA / Contact ---------- */
  .cta-section{
    background:var(--bark);
    color:var(--white);
  }
  .cta-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:56px;
  }
  .cta-grid h2{ color:var(--white); font-size:clamp(1.9rem,3.4vw,2.5rem); }
  .cta-grid .eyebrow{ color:#f0c98a; }
  .cta-copy p{ margin-top:18px; color:#efe1d1; max-width:42ch; }
  .cta-info{ margin-top:32px; display:flex; flex-direction:column; gap:16px; }
  .cta-info .row{ display:flex; gap:14px; align-items:flex-start; }
  .cta-info svg{ width:20px; height:20px; flex:none; margin-top:2px; color:var(--amber); }
  .cta-info .row strong{ display:block; font-size:0.95rem; }
  .cta-info .row span{ font-size:0.92rem; color:#e3d2be; }

  form.contact-form{
    background:var(--white);
    border-radius:6px;
    padding:34px;
  }
  form.contact-form .f-row{ margin-bottom:18px; }
  form.contact-form label{
    display:block; font-size:0.85rem; font-weight:700; color:var(--deep-green);
    margin-bottom:7px; text-transform:uppercase; letter-spacing:0.06em;
  }
  form.contact-form input, form.contact-form select, form.contact-form textarea{
    width:100%;
    padding:12px 14px;
    border:1.5px solid var(--line);
    border-radius:4px;
    font-family:inherit;
    font-size:0.98rem;
    color:var(--ink);
    background:var(--cream);
  }
  form.contact-form input:focus, form.contact-form select:focus, form.contact-form textarea:focus{
    outline:none; border-color:var(--forest);
  }
  form.contact-form textarea{ resize:vertical; min-height:90px; }
  form.contact-form .btn-primary{ width:100%; justify-content:center; margin-top:6px;}
  .form-note{ font-size:0.82rem; color:var(--ink-soft); margin-top:12px; }

  @media (max-width:860px){
    .cta-grid{ grid-template-columns:1fr; }
  }

  /* ---------- Footer ---------- */
  footer{
    background:var(--deep-green);
    color:#bcdcbe;
    padding:48px 0 28px;
    font-size:0.9rem;
  }
  .foot-grid{
    display:flex; justify-content:space-between; flex-wrap:wrap; gap:30px;
    padding-bottom:30px; border-bottom:1px solid rgba(255,255,255,0.15);
  }
  .foot-logo{
    font-family:'Fraunces', serif; font-size:1.15rem; color:var(--white); font-weight:600;
    margin-bottom:10px;
  }
  .foot-cols{ display:flex; gap:56px; flex-wrap:wrap; }
  .foot-col h4{ color:var(--white); font-size:0.85rem; text-transform:uppercase; letter-spacing:0.08em; margin-bottom:14px; font-family:'Source Sans 3',sans-serif;}
  .foot-col a{ display:block; padding:5px 0; color:#bcdcbe; }
  .foot-col a:hover{ color:var(--white); }
  .foot-bottom{
    padding-top:22px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;
    font-size:0.82rem; color:#93c297;
  }

  /* Care Team page */
  .team-grid{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:1px;
    background:var(--line);
    border:1px solid var(--line);
  }
  .team-card{
    background:var(--white);
    padding:36px 32px;
    display:block;
    text-decoration:none;
    transition:background .18s ease;
  }
  .team-card:hover{ background:var(--white); box-shadow:inset 0 -3px 0 var(--forest); }
  .team-card h3{ font-size:1.15rem; color:var(--deep-green); margin-bottom:4px; }
  .team-card p{ color:var(--ink-soft); font-size:0.95rem; }
  @media (max-width:900px){
    .team-grid{ grid-template-columns:repeat(2, 1fr); }
  }
  @media (max-width:600px){
    .team-grid{ grid-template-columns:1fr; }
  }

  /* Footer legal links (Business Disclosures & Client Rights, etc.) */
  .foot-legal{ margin-top:14px; padding-top:14px; border-top:1px solid rgba(255,255,255,0.12); }
  .foot-legal-list{
    list-style:none; display:flex; gap:18px; flex-wrap:wrap;
    font-size:0.78rem;
  }
  .foot-legal-list a{ color:#7fae82; }
  .foot-legal-list a:hover{ color:var(--white); }

  /* Employee Access login form (wp_login_form default markup) */
  .login-username, .login-password, .login-remember{ margin-bottom:16px; }
  .login-username label, .login-password label{
    display:block; font-size:0.85rem; font-weight:700; color:var(--deep-green);
    margin-bottom:7px; text-transform:uppercase; letter-spacing:0.06em;
  }
  .login-username input, .login-password input{
    width:100%; padding:12px 14px; border:1.5px solid var(--line);
    border-radius:4px; font-family:inherit; font-size:0.98rem;
    color:var(--ink); background:var(--cream);
  }
  .login-username input:focus, .login-password input:focus{ outline:none; border-color:var(--forest); }
  .login-remember label{ font-size:0.9rem; color:var(--ink-soft); display:flex; align-items:center; gap:8px; }
  #wp-submit{
    display:inline-flex; align-items:center; gap:8px; padding:14px 26px;
    border-radius:4px; font-weight:600; font-size:1rem; border:none;
    cursor:pointer; background:var(--forest); color:var(--white);
  }
  #wp-submit:hover{ background:var(--deep-green); }
