/*
Theme Name: Helping Hands Home Health
Author: Christian Sambrano
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap');
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: #f5f5f5;
    color: #333;
}




/* Ensure all elements use border-box for box-sizing */
*,
*::before,
*::after {
    box-sizing: border-box;
}

.site-footer{ margin-top: 0; }


/* Style all internal/external links consistently site-wide */
a {
  color: var(--hh-black);       /* match body text */
  font-weight: 500;
  text-decoration: none;
  transition: color .2s ease;
}

a:hover {
  color: var(--hh-blue-600);    /* baby blue accent */
  text-decoration: underline;   /* subtle cue */
}


/*! Index Start */

:root{
  --hh-blue: #9FD7FF;
  --hh-blue-600: #6FC2FF;
  --hh-navy: #0A2239;
  --hh-black: #111;
  --hh-text: #333;
  --hh-bg: #fff;
  --hh-border: #e9eef5;
}

.hh-container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
}

.section-head{
  text-align: center;
  margin-bottom: 24px;
}
.section-head h2{
  margin: 0 0 8px 0;
  font-size: 2rem;
}
.section-head p{ margin: 0; color:#555; }

/* Grids */
.grid-3{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2{ display:grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 960px){
  .grid-3, .grid-2{ grid-template-columns: 1fr; }
}

/* Cards & buttons */
.card{
  background: #fff;
  border: 1px solid var(--hh-border);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,.04);
}

.btn{
  display:inline-block;
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration:none;
  font-weight:700;
  transition: transform .06s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.btn:active{ transform: translateY(1px); }
.btn-primary{
  background: var(--hh-blue-600);
  color: #000;
  box-shadow: 0 6px 14px rgba(111,194,255,.35);
}
.btn-primary:hover{ background:#56b5ff; }
.btn-ghost{
  color:#111; background:#fff; border:1px solid var(--hh-border);
  margin-left: 8px;
}
.btn-ghost:hover{ border-color:#cfd7e6; }

/* Hero */
.hh-hero{
  margin-top: 100px; /* room for fixed header */
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border-bottom:1px solid var(--hh-border);
}
.hh-hero .hh-container{
  display:grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items:center;
}
.hh-hero__content h1{
  margin: 0 0 12px 0;
  font-size: 2.2rem;
}
.hh-hero__content p{
  margin: 0 0 18px 0;
  color:#444;
  max-width: 60ch;
}
.hh-hero__image{display:flex;justify-content:center;align-items:center;}
.hh-hero__image img{max-width:100%;height:auto;border-radius:16px;box-shadow:0 8px 24px rgba(0,0,0,.1);}
.hh-hero__shape{
  position:absolute; inset: 0;
  border-radius: 18px;
  background:
    radial-gradient(1200px 400px at -10% 30%, rgba(159,215,255,.35), transparent 60%),
    radial-gradient(600px 400px at 80% -10%, rgba(111,194,255,.25), transparent 70%),
    #fff;
  border:1px dashed var(--hh-blue-600);
}




/* Sections */
.hh-highlights{ background:#fff; }
.hh-services{ background:#f8fbff; border-top:1px solid var(--hh-border); border-bottom:1px solid var(--hh-border); }
.hh-mission{ background:#fff; }
.hh-team{ background:#fff; }
.hh-testimonials{ background:#f8fbff; border-top:1px solid var(--hh-border); border-bottom:1px solid var(--hh-border); }
.hh-cta-band{
  background: #0A2239; color:#fff; text-align:center;
}
.hh-cta-band .btn-primary{ background:#9FD7FF; color:#000; }
.hh-cta-band .btn-primary:hover{ background:#6FC2FF; }
.quote{ font-style: italic; }
.quote cite{ display:block; margin-top:10px; font-style: normal; color:#666; }
.faq h3{ margin-top:0; }

/* Reveal animations */
.reveal{
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}
.reveal[data-reveal="left"]{ transform: translateX(-24px); }
.reveal[data-reveal="right"]{ transform: translateX(24px); }
.reveal[data-reveal="up"]{ transform: translateY(24px); }

.reveal.in-view{
  opacity: 1;
  transform: translate(0,0);
}

/* Card hover feedback + click affordance */
.card{
  transition: transform .18s ease, box-shadow .22s ease, border-color .22s ease;
  cursor: default;
  transform: translateZ(0); /* prevent blur on hover */
}

.card.as-link{
  cursor: pointer;
}

.card.as-link:hover{
  transform: translateY(-4px); /* removed scale for sharpness */
  box-shadow: 0 10px 24px rgba(0,0,0,.10);
  border-color: rgba(111,194,255,.5);
}

/* FAQ hover */
.hh-faq .card.as-link:hover{
  background: #f9fcff; /* subtle blue tint */
  border-color: rgba(111,194,255,.6);
}

.card.as-link:focus-within{
  outline: 2px solid #6FC2FF;
  outline-offset: 2px;
}

/* Ensure Learn more button stands out but doesn't break click */
.card .learn-more{
  margin-top: 12px;
  display: inline-block;
}

/* Avoid triggering card click when pressing the button */
.card .learn-more { position: relative; z-index: 1; }

.hh-mission-team {
  background: #fff;
  padding: 60px 24px; /* unified padding */
}

.hh-mission-team p {
  max-width: 70ch;
  margin: 0 auto 40px; /* center mission text, space before cards */
  text-align: center;
  color: #444;
}

.mission-team-cards {
  margin-top: 20px;
}

/*! Index End */

/*! Header */

.headerq {
    display: flex;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 15px;
    color: #fff;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    padding: 2vh 3vh;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-sizing: border-box;
    border-radius: 0 0 1vh 1vh;
    box-shadow: 0vh 0.4vh 0.6vh rgba(0, 0, 0, 0.1);
}

.headerq a.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.headerq .logo img {
    height: 7vh;
    width: auto;
    padding-right: 30vh;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.nav-menu.center {
    flex: 1;
    padding-left: 10vh;
    justify-content: center;
}

.header-center {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    text-align: center;
    padding: 1vh;
}

.site-title {
  font-family: 'Alako', 'Roboto', sans-serif;
  font-size: 2.4rem;
  font-weight: 700; /* still use bold */
  color: #111;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.site-title:hover {
  color: #6FC2FF;          /* baby blue accent */
}

.nav-menu li {
    position: relative;
    margin: 0 1.5vh;
}

.nav-menu > li > a {
    color: black;
    text-decoration: none;
    display: block;
    border-radius: 2vh;
    transition: background-color 0.3s ease;
}

.nav-menu > li > a:hover,
.nav-menu > li.active > a {
    text-decoration: none;
}

.nav-menu li::after {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4.5vh;
    height: 4.5vh;
    background: transparent;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #333;
    box-shadow: 0px 0.8vh 1.6vh rgba(0, 0, 0, 0.2);
    z-index: 1;
    top: 7.51vh;
    width: 25vh;
}

.nav-menu li:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s;
}

.dropdown-content a {
    color: white;
    padding: 1.2vh 1.6vh;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease;
    position: relative;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Underline Animation */
.nav-menu > li > a span {
    position: relative;
}

.nav-menu > li > a span::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0.2vh;
    bottom: -0.2vh;
    left: 0;
    background-color: #6FC2FF;
    transition: width 0.25s ease-out;
}

.nav-menu > li > a:hover span::after,
.nav-menu > li.active > a span::after {
    width: 100%;
}

/* Enhanced Hamburger Menu Styles */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 2001;
    transition: all 0.3s ease;
}

.hamburger div {
    width: 25px;
    height: 2px;
    background-color: black;
    margin: 4px;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger:hover div {
    background-color: #6FC2FF;
}

.hamburger.active div:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.hamburger.active div:nth-child(2) {
    opacity: 0;
}

.hamburger.active div:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

@media (max-width: 835px) {
    .nav-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-menu {
        flex-direction: column;
        align-items: center;
        width: 100%;
        display: none;
    }

    .nav-menu li {
        margin: 1vh 0;
    }

    .nav-menu li::after {
        content: '';
        display: none;
    }

    .nav-menu.center {
        justify-content: flex-start;
    }

    .nav-menu.active {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: white;
        z-index: 2000;
        animation: slideIn 0.5s ease;
    }

    .hamburger {
        display: flex;
        align-self: flex-end;
    }

    .nav-menu .header-center{
        display: none;
    }
}

@media (max-width: 1200px) {
    .nav-menu .header-center{
        display: none;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

/*! Header End */

/*! 404 */

.container404 {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
}

.message404 h1 {
    font-size: 10vh;
    color: #6FC2FF;
    margin-bottom: 2vh;
}

.message404 p {
    font-size: 3vh;
    margin-bottom: 4vh;
}

.message404 a {
    font-size: 2.4vh;
    color: #6FC2FF;
    text-decoration: none;
    border: 1px solid #6FC2FF;
    padding: 1vh 2vh;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.message404 a:hover {
    background-color: #6FC2FF;
    color: #fff;
}



/*! 404 End */


/*! Footer Start */

.site-footer {
  background-color: #0A2239; /* dark navy */
  color: #ffffff;
  padding: 4vh 3vh 2vh;
  margin-top: 6vh;
  border-radius: 1vh 1vh 0 0;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 3vh;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-container h3,
.footer-container h4 {
  margin-bottom: 1vh;
  color: #9FD7FF; /* baby blue highlight */
  font-weight: 700;
}

.footer-container p,
.footer-container a {
  color: #e0e0e0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-container a {
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-container a:hover {
  color: #6FC2FF; /* hover blue */
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav ul li {
  margin: 0.5vh 0;
}

.footer-bottom {
  text-align: center;
  margin-top: 3vh;
  padding-top: 2vh;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.85rem;
  color: #cccccc;
}

/*! Footer End */


/*! Pages Start */

/* Page hero matches your palette */
.page-hero{
  margin-top: 100px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border-bottom: 1px solid var(--hh-border);
}
.page-hero .hh-container{ padding-top: 36px; padding-bottom: 24px; text-align:center; }
.page-hero h1{ margin:0 0 8px 0; font-size: 2rem; }
.page-strap{ color:#555; margin:0; }

/* Page content spacing */
.page-content .hh-container{ padding-top: 24px; }

/* Simple lists in sidecards */
.hh-list{ padding-left: 18px; margin: 0 0 16px 0; }
.hh-list li{ margin-bottom: 8px; }
.hh-links{ list-style: none; padding:0; margin:0 0 16px 0; }
.hh-links li{ margin: 8px 0; }
.hh-links a{ text-decoration: none; color: var(--hh-black); }
.hh-links a:hover{ color: var(--hh-blue-600); }

/* Contact form basics */
.hh-form input, .hh-form textarea{
  width: 100%; padding: 10px 12px; border-radius: 8px;
  border: 1px solid var(--hh-border); font: inherit;
}
.hh-form label{ display:block; margin-bottom: 12px; }
.hh-form button{ margin-top: 6px; }

/* Mobile niceties */
@media (max-width: 768px){
  .page-hero h1{ font-size: 1.8rem; }
}








/* Services TOC */
.services-toc { background:#fff; border-bottom:1px solid var(--hh-border); }
.services-toc__list {
  display:flex; flex-wrap:wrap; gap:10px 16px; justify-content:center;
  list-style:none; margin:0; padding:16px 0;
}
.services-toc__list a{
  text-decoration:none; color:#111; padding:8px 12px; border:1px solid var(--hh-border);
  border-radius:999px; transition: border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.services-toc__list a:hover{
  border-color: var(--hh-blue-600);
  box-shadow: 0 6px 14px rgba(111,194,255,.22);
}

/* Detailed sections */
.services-detail .service-detail{
  margin-bottom: 28px;
}
.service-detail h2{ margin-top:0; }
.service-cta{ margin-top: 12px; display:flex; gap:10px; flex-wrap:wrap; }
.back-top{ display:inline-block; margin-top: 10px; font-size:.95rem; color:#555; text-decoration:none; }
.back-top:hover{ color: var(--hh-blue-600); }

@media (max-width:768px){
  .services-toc__list{ gap:8px 10px; padding:12px 0; }
  .service-cta{ justify-content:center; }
}

/* Offset anchor targets so they don't hide under the fixed header */
[id] {
  scroll-margin-top: 100px; /* match your .headerq height */
}

html {
  scroll-behavior: smooth;
}




/* About page spacing */
.about-intro .hh-container,
.about-values .hh-container,
.about-why .hh-container,
.about-team .hh-container { padding-top: 28px; }

.about-links { display:flex; flex-wrap:wrap; gap:10px; margin-top:12px; }

/* Soft band for the final CTA, using your palette */
.about-cta {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border-top: 1px solid var(--hh-border);
  border-bottom: 1px solid var(--hh-border);
  text-align: center;
}
.about-cta .hh-container { padding-top: 36px; padding-bottom: 32px; }







/* Mission page spacing (matches your palette + animations) */
.mission-purpose .hh-container,
.mission-pillars .hh-container,
.mission-approach .hh-container,
.mission-outcomes .hh-container { padding-top: 28px; }

.mission-approach .about-links { display:flex; flex-wrap:wrap; gap:10px; margin-top:12px; }

/* Ensure footer hugs this page (no extra gap) */
main.hh-mission-page + .site-footer { margin-top: 0; }

/* Center buttons in Our Mission CTA */
.about-cta .about-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;  /* center horizontally */
  gap: 12px;                /* space between buttons */
  margin-top: 16px;
}












/* Contact page spacing */
.contact-blocks .hh-container { padding-top: 28px; }
.about-links { display:flex; flex-wrap:wrap; justify-content:center; gap:12px; margin-top:12px; }

/* Quick links list style (reuses your palette) */
.hh-links { list-style:none; padding:0; margin:0; }
.hh-links li { margin: 8px 0; }
.hh-links a { text-decoration:none; color: var(--hh-black); }
.hh-links a:hover { color: var(--hh-blue-600); }

/* Responsive map with 16:9 frame */
.map-wrap {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  border: 1px solid var(--hh-border);
}
.map-wrap::before { content:""; display:block; padding-top: 56.25%; } /* 16:9 */
.map-wrap iframe {
  position:absolute; inset:0; width:100%; height:100%; border:0;
}
/* Style email/phone/fax links on Contact page */
.contact-blocks a[href^="mailto"],
.contact-blocks a[href^="tel"] {
  color: var(--hh-black);         /* match your site’s body text */
  font-weight: 500;
  text-decoration: none;
  transition: color .2s ease;
}

.contact-blocks a[href^="mailto"]:hover,
.contact-blocks a[href^="tel"]:hover {
  color: var(--hh-blue-600);      /* your baby blue accent */
  text-decoration: underline;     /* optional hover underline */
}




/* Companion Care page spacing (optional) */
.hh-companion-care .hh-container { padding-top: 28px; }
.hh-companion-care .about-links { display:flex; flex-wrap:wrap; gap:12px; }




/* Ensure footer hugs all custom HH pages */
main.hh-mission-page + .site-footer,
main.hh-about + .site-footer,
main.hh-services-overview + .site-footer,
main.hh-contact + .site-footer,
main.hh-companion-care + .site-footer,
main.hh-personal-care + .site-footer,
main.hh-medication-support + .site-footer,
main.hh-meal-prep + .site-footer,
main.hh-housekeeping + .site-footer,
main.hh-respite-care + .site-footer {
  margin-top: 0;
}


/*! Pages End */

