/*
Theme Name: Home Within Reach
Author: B
Description: Custom WordPress theme built from Figma design
Version: 1.0
*/

/* -----------------------------------
   GLOBAL RESET + VARIABLES
----------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --font-primary: 'Plus Jakarta Sans', sans-serif;

  --purple-dark: #480169;
  --purple-mid: #4B66B0;
  --gray-light: #F3F3F3;
  --gray-bg: #FAFBFD;
  --white: #FFFFFF;
  --black: #000000;

  --red-accent: #990303;
  --blue-accent: #056D99;
  --purple-accent: #1B0599;
  --yellow-accent: #996601;

  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --space-xxl: 96px;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 20px;
  --radius-xl: 40px;

  --container: 1200px;
}

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

body {
  font-family: var(--font-primary);
  background: var(--white);
  color: var(--black);
  line-height: 1.5;
  overflow-x: hidden;
}

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

section {
  width: 100%;
  padding: var(--space-xxl) 20px;
  display: flex;
  justify-content: center;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: var(--space-xl);
}

/* -----------------------------------
   NAVIGATION
----------------------------------- */

.navbar {
  width: 100%;
  background: var(--white);
  border-bottom: 1px solid #E5E7EB;
  padding: 20px 40px;
  display: flex;
  justify-content: center;
}

.navbar-inner {
  width: 100%;
  max-width: var(--container);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-logo img {
  width: 55px;
  border-radius: 4px;
}

.navbar-menu {
  display: flex;
  gap: 40px;
}

.navbar-menu a {
  font-size: 16px;
  font-weight: 600;
  color: #480169;
  text-decoration: none;
  opacity: 0.9;
}

.navbar-menu .active {
  color: #1A202C;
  opacity: 1;
}

/* REMOVE BULLET POINTS + RESET WORDPRESS MENU */
.navbar-menu ul {
  list-style: none;   /* removes bullets */
  margin: 0;
  padding: 0;
  display: flex;      /* keeps items in a row */
  gap: 40px;          /* spacing between menu items */
}

.navbar-menu li {
  margin: 0;
  padding: 0;
}

.navbar-menu a {
  font-size: 16px;
  font-weight: 600;
  color: #480169;
  text-decoration: none;
  opacity: 0.9;
  transition: 0.2s ease;
}

.navbar-menu a:hover {
  opacity: 1;
}

.navbar-menu .current-menu-item a {
  color: #1A202C;
  opacity: 1;
}

/* -----------------------------------
   HERO SECTION
----------------------------------- */

.hero {
  background: var(--purple-dark);
}

.hero-inner {
  width: 100%;
  max-width: var(--container);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
}

.hero-description {
    color: var(--white);
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 12px;
    max-width: 600px;
}

.hero-text {
  flex: 1;
  color: var(--white);
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

.hero-subtitle {
  font-size: 18px;
  opacity: 0.9;
  max-width: 480px;
  margin-bottom: var(--space-lg);
}

.btn-primary {
  background: var(--purple-mid);
  color: var(--white);
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
}

.btn-secondary {
    background: #4B66B0;
    color: #ffffff;
    border: 2px solid #480169;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    margin-left: 16px;
    transition: 0.2s ease;
}

.hero-text .btn-secondary {
    background: #4B66B0 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px 28px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
}


.hero-image img {
  max-width: 480px;
}

/* -----------------------------------
   SERVICES SECTION
----------------------------------- */
/* ============================
   SERVICES SECTION — CLEAN VERSION
   ============================ */

.services {
    background: var(--white);
    padding: 60px 20px;
}

.services-inner {
    max-width: var(--container);
    width: 100%;
    margin: 0 auto;
}

/* GRID */
.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}

/* Tablet */
@media (max-width: 1024px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 600px) {
    .service-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================
   SERVICE CARD BASE
   ============================ */

.service-card {
    width: 100%;
    height: 260px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    transition: transform 0.25s ease;
}

.service-card:hover {
    transform: translateY(-6px);
}

/* ============================
   SERVICE LABEL — TOP CENTER
   ============================ */

.service-label {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);

    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin: 0;
    z-index: 10;
}

/* ============================
   SERVICE CIRCLE (TOP RIGHT)
   ============================ */

.service-icon {
    position: absolute;
    top: -40px;
    right: -40px;

    width: 160px;
    height: 160px;
    border-radius: 50%;

    opacity: 0.25;
    background: rgba(255,255,255,0.3);
    z-index: 1;
}

/* ============================
   CARD COLOR VARIANTS
   ============================ */

.service-red {
    background-image:
        linear-gradient(180deg, rgba(237,230,230,0.7) 0%, rgba(153,3,3,0.9) 100%),
        var(--service-image);
}

.service-blue {
    background-image:
        linear-gradient(180deg, rgba(250,254,255,0.7) 0%, rgba(5,109,153,0.9) 100%),
        var(--service-image);
}

.service-purple {
    background-image:
        linear-gradient(180deg, rgba(250,249,255,0.7) 0%, rgba(27,5,153,0.9) 100%),
        var(--service-image);
}

.service-yellow {
    background-image:
        linear-gradient(180deg, rgba(255,252,235,0.7) 0%, rgba(255,196,0,0.9) 100%),
        var(--service-image);
}


/* Gallery Section */

.gallery {
    padding: 60px 0;
}

.gallery-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.gallery-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.gallery-image-card {
    height: 350px;
    background-size: cover;
    background-position: top center;
    border-radius: 12px;
}

.gallery-text-card {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.gallery-headline {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
    color: #480169;
}

/* Mission Split Section ---------- */

.mission-split {
    padding: 80px 0;
    background: #f7f7f7; /* light gray background */
}

.mission-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: center;
}

.mission-image img {
    width: 100%;
    height: 350px; /* match Mission 1 */
    object-fit: cover;
    border-radius: 12px;
}


.mission-headline {
    font-size: 1.5rem;
    line-height: 1.6;
    color: #fff; /* your theme purple */
    margin-bottom: 20px;
}

.mission-text {
    font-size: 2.4rem;
    font-weight: 800:;
    line-height: 1.6;
    margin-bottom: 30px;
}

.mission-btn {
    display: inline-block;
    background: #056D99; /* your blue */
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 900px) {
    .mission-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .mission-image img {
        max-width: 80%;
        margin: 0 auto;
    }
}

.mission-split-2 .mission-text {
    font-size: 0.95rem;
    line-height: 1.55;
}

.mission-split-2 .mission-headline {
    text-align: center;
    width: 100%;
}

.mission-split + .mission-split {
    margin-top: -20px; /* pulls Mission 2 closer to Mission 1 */
}

.mission-split-1 .mission-content {
    background: #480169; /* your dark purple */
    color: #fff;
    padding: 60px 40px;
    border-radius: 0; /* remove rounded corners */
    width: 100%;
}

.mission-split-1 .mission-grid {
    gap: 0;
}

.mission-split-1 .mission-inner {
    padding-left: 0;
    padding-right: 0;
}

.mission-split-1 .mission-image img {
    height: 350px;
    width: 100%;
    object-fit: cover;
}

.mission-split-1 .mission-inner {
    max-width: 100%;
    width: 100%;
    padding: 0; /* removes left/right padding */
}

.mission-split-1 .mission-content {
    background: #480169; /* your dark purple */
    color: #fff;
    padding: 60px 50px;
    border-radius: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mission-split-1 {
    padding: 0;
}

.mission-split-2 .mission-inner {
    max-width: 100%;
    width: 100%;
    padding: 0; /* removes container padding */
}

.mission-split-2 .mission-content {
    background: #486284; /* same blue for consistency */
    color: #fff;
    padding: 60px 50px;
    border-radius: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mission-split-2 .mission-grid {
    gap: 0;
}

.mission-split-2 .mission-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.mission-split-2 .mission-grid {
    gap: 0;
}

.mission-split-2 .mission-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

/* -----------------------------------
   CONTACT SECTION
----------------------------------- */
.contact-section {
    padding: 80px 0;
}

.contact-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-headline {
    text-align: center;
    font-size: 2.4rem;
    font-weight: 800;
    color: #480169;
    margin-bottom: 40px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-media img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    background: #ddd;
    border-radius: 12px;
}

.contact-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-btn {
    background: #480169;
    color: #fff;
    padding: 14px 24px;
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
    text-decoration: none;
    display: block;
}

.contact-box {
    background: #f7f7f7;
    padding: 20px;
    border-radius: 12px;
}

.contact-box h3 {
    margin-bottom: 10px;
    color: #480169;
    font-weight: 700;
}

.contact-box p {
    margin: 0;
    line-height: 1.5;
}

.contact-box {
    background: #f7f7f7;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.contact-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-box h3 {
    margin: 0 0 6px 0;
    color: #480169;
    font-weight: 700;
}

.contact-box p {
    margin: 0;
    line-height: 1.5;
}

/* -----------------------------------
   MEET THE STAFF SECTION
----------------------------------- */
.staff-section {
    width: 100%;
    padding: 80px 20px;
    background: #fff;
    display: flex;
    justify-content: center;
}

.staff-inner {
    width: 100%;
    max-width: 1200px;
}

.staff-title {
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    color: #480169;
    margin-bottom: 10px;
}

.staff-tagline {
    text-align: center;
    font-size: 18px;
    color: #486284;
    margin-bottom: 50px;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.staff-card {
    background: #D3DCE7;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.staff-photo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
}

.staff-name {
    font-size: 20px;
    font-weight: 700;
    color: #486284;
    margin-bottom: 10px;
}

.staff-bio {
    font-size: 15px;
    color: #486284;
    line-height: 1.6;
}

/* Tablet */
@media (max-width: 1024px) {
    .staff-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 600px) {
    .staff-grid {
        grid-template-columns: 1fr;
    }
}

.staff-title {
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    color: #480169;
    margin-bottom: 10px;
}

.staff-tagline {
    text-align: center;
    font-size: 18px;
    color: #486284;
    margin-bottom: 50px;
}


/* -----------------------------------
   TAGLINE SECTION
----------------------------------- */

.footer-tagline {
  text-align: center;
  padding: var(--space-xl) 20px;
}

.tagline-large {
  font-size: 50px;
  font-weight: 400;
  color: var(--purple-dark);
}

.tagline-small {
  font-size: 18px;
  margin-top: var(--space-md);
}

/* -----------------------------------
   FOOTER
----------------------------------- */

.footer {
  background: var(--purple-dark);
  color: var(--white);
}

.footer-inner {
  width: 100%;
  max-width: var(--container);
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: var(--space-xl);
}

.footer-logo-block img {
  width: 160px;
  border-radius: 4px;
}

.footer-tagline {
  font-size: 16px;
  opacity: 0.9;
}

.footer-column-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a {
  color: var(--white);
  opacity: 0.9;
  text-decoration: none;
}

.footer-divider {
  width: 100%;
  height: 1px;
  background: rgba(72, 98, 132, 0.16);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
}

.footer-bottom-right {
  display: flex;
  gap: var(--space-lg);
}
footer {
    padding: 20px 0 10px 0; /* smaller footer height */
    background: #111;       /* or your footer color */
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 10px;      /* spacing at the top */
    text-align: center;
}

.footer-inner p,
.footer-inner span,
.footer-inner a {
    margin: 2px 0;          /* tighten vertical spacing */
    line-height: 1.3;       /* bring text closer together */
    font-size: 14px;        /* optional: smaller text */
    color: #ccc;            /* optional: softer color */
}

.footer-inner .footer-mission {
    margin-bottom: 8px;     /* small gap before other text */
}


/* -----------------------------------
   RESPONSIVE BREAKPOINTS
----------------------------------- */

@media (max-width: 1024px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid,
  .contact-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .navbar-inner {
    flex-direction: column;
    gap: 16px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    height: 240px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
  }
}

/*About Us Page*/
/* HERO SECTION */
.about-hero {
    background: #480169; /* dark purple */
    padding: 80px 0;
    color: #fff;
}

.about-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
}

.about-description {
    font-size: 18px;
    line-height: 1.7;
    max-width: 600px;
}

.about-right img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 12px;
}

/* BLUE BOXES SECTION */
.about-boxes {
    padding: 60px 20px;
    background: #fff;
}

.about-box-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.about-box {
    background: #056D99; /* theme blue */
    padding: 30px;
    border-radius: 12px;
    color: #fff;
}

.about-box h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}

.about-box p {
    font-size: 16px;
    line-height: 1.6;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .about-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-right img {
        margin-top: 20px;
    }

    .about-box-grid {
        grid-template-columns: 1fr;
    }
}

.about-commitment {
    padding: 80px 20px;
    background: #fff;
}

.commitment-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.commitment-left {
    color: #333;
}

.commitment-text {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 25px;
}

.commitment-list {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 25px;
}

.commitment-list li {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 8px;
    color: #333;
}

.commitment-closing {
    font-size: 18px;
    font-weight: 600;
    color: #480169;
    margin-top: 20px;
}

.commitment-right img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 12px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .commitment-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .commitment-right img {
        margin-top: 20px;
    }

    .commitment-list {
        text-align: left;
        margin: 0 auto 25px auto;
        max-width: 500px;
    }
}

.about-nondiscrimination {
    width: 100%;
    padding: 0;
    margin: 0;
}

.nondiscrimination-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    margin: 0;
}

/* LEFT SIDE — BACKGROUND IMAGE */
.nondiscrimination-left {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 350px;
}

/* RIGHT SIDE — TEXT BOX */
.nondiscrimination-right {
    background: #056D99;
    padding: 60px 40px;
    width: 100%;
    display: flex;
    align-items: center;
}

.nondiscrimination-text {
    color: #fff;
    font-size: 20px;
    line-height: 1.7;
    text-transform: uppercase;
    font-weight: 600;
    margin: 0;
}

/* MOBILE */
@media (max-width: 900px) {
    .nondiscrimination-grid {
        grid-template-columns: 1fr;
    }

    .nondiscrimination-right {
        padding: 40px 20px;
        text-align: center;
    }
}

.services-hero {
    background: #480169;
    padding: 80px 0;
    color: #fff;
}

.services-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.services-left h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
}

.services-left p {
    font-size: 18px;
    line-height: 1.7;
}

.services-right img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 12px;
}

.services-grid {
    padding: 60px 20px;
    background: #fff;
}

.services-grid-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-box {
    background: #056D99;
    padding: 30px;
    border-radius: 12px;
    color: #fff;
}

.service-box h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}

.service-box p {
    font-size: 16px;
    line-height: 1.6;
}

.services-description {
    padding: 80px 20px;
    background: #f7f7f7; /* light neutral background */
}

.services-description-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.services-description h2 {
    font-size: 36px;
    font-weight: 800;
    color: #480169; /* your purple */
    margin-bottom: 20px;
}

.services-description p {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    white-space: pre-line;
}

/* LINKS SECTION */
.services-links {
    padding: 60px 20px;
    background: #f7f7f7;
}

.links-inner {
    max-width: 900px;
    margin: 0 auto;
}

.links-inner h2 {
    font-size: 32px;
    font-weight: 800;
    color: #480169;
    margin-bottom: 20px;
}

.links-list {
    list-style: none;
    padding: 0;
}

.links-list li {
    margin-bottom: 12px;
}

.links-list a {
    color: #056D99;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
}

.links-list a:hover {
    text-decoration: underline;
}

/* TRAINING VIDEOS */
.training-videos {
    padding: 60px 20px;
    background: #fff;
}

.videos-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.videos-inner h2 {
    font-size: 32px;
    font-weight: 800;
    color: #480169;
    margin-bottom: 30px;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.video-box h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.video-box iframe {
    width: 100%;
    height: 200px;
    border-radius: 8px;
}
