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

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #F7F9FC;
    color: #333;
}

h1, h2, h3, h4 {
    font-family: 'PT Serif', serif;
}

h1 {
    font-size: clamp(2.25rem, 5vw, 3rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
}

h3, h4 {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 600;
}

p {
    font-size: clamp(1rem, 4vw, 1.2rem);
}

/* Header */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.site-header {
    background-color: #4CAF50;
    color: #E9E0D7;
    padding: 2rem 1rem;
    animation: fadeIn 0.6s ease-in-out;
    box-shadow: inset 0 -8px 15px rgba(0, 0, 0, 0.2);
}

.header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    text-align: center;
    backdrop-filter: blur(2px);
    padding: 1rem 2rem;
    position: relative;
    z-index: 10;
}

.logo-wrapper {
    margin: 0;
}

.logo {
    width: clamp(300px, 18vw, 350px);
    height: auto;
    border-radius: 25px;
    background: #E9E0D7;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    padding: 10px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.tagline {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 400;
    margin: 0;
    line-height: 1.2;
    max-width: 100%;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 3em 1em;
    background-image: url('../img/senior-black-women-running-in-park.png');
    background-size: cover;
    background-position: 44% top;
    background-repeat: no-repeat;
    color: #E9E0D7;
	height: auto;
	/*display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;*/
    box-shadow:
        inset 0 8px 15px rgba(0, 0, 0, 0.2),    /* Top down */
        inset 0 -8px 15px rgba(0, 0, 0, 0.2);   /* Bottom up */
    margin: -5px auto 0;
    min-height: 80vh;
    overflow: hidden;
    width: 100%;
    transform: translateZ(0);
}

.hero-content {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.4); /* semi-transparent black */
    padding: 1.5rem 2rem;
    border-radius: 10px;
    backdrop-filter: blur(4px); /* adds glassy effect */
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: fit-content;
    width: auto;
    text-align: center;
}

.hero-content p {
    margin: 0;
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.02em;
    max-width: 40ch;
}

.hero-cta {
    display: inline-flex;
    background-color: #4CAF50;
    color: #E9E0D7;
    padding: 1em 2em;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-family: 'Open Sans', sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    min-height: 44px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 1.5em;
}

.hero-cta:hover {
    background-color: #388E3C;
    transform: translateY(-2px);
}

/* Sections */
section {
    padding: 2em;
}

.section-light {
    background-color: #F0F7F4;
}

.section-dark {
    background-color: #FFFFFF;
}

.section-wrapper {
    padding: 3em 1.5em;
    margin: 0 auto;
    max-width: 1100px;
    flex-wrap: wrap;
    gap: 1em;
    min-width: 250px;
    max-width: 100%;
}

.readability {
    max-width: 65ch;
    margin-inline: auto;
}

.section-divider {
    text-align: center;
    margin: 4em auto;
    padding: 0.5em 1em;
    font-size: 1.8em;
    font-weight: 600;
    color: #388E3C;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
}

.section-divider::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background-color: #388E3C;
    margin: 1em auto 0;
    border-radius: 2px;
}

.divider-logo {
    display: block;
    margin: 0 auto 1.5em;
    width: clamp(195px, 18vw, 350px);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 0;
    transform: translateY(40px);
}

.section-divider.visible .divider-logo {
    opacity: 1;
    transform: translateY(0);
}

@keyframes bounceInUp {
    0% {
        opacity: 0;
        transform: translateY(60px);
    }
    60% {
        opacity: 1;
        transform: translateY(-8px);
    }
    80% {
        transform: translateY(4px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes rippleVertical {
    0% { background-position: 0% 100%; }
    100% { background-position: 0% 0%; }
}

.section-divider h3 {
    font-size: 2em;
    font-weight: 700;
    letter-spacing: 1px;
    color: transparent;
    text-shadow: 
        2px 2px 4px rgba(0,0,0,0.2), 
        0 0 8px rgba(33, 150, 243, 0.15),   /* Blue glow */
        0 0 8px rgba(244, 67, 54, 0.15),    /* Red glow */
        0 0 8px rgba(0, 188, 212, 0.15),    /* Aqua glow */
        0 0 8px rgba(255, 193, 7, 0.15)     /* Gold glow */
        0 0 8px rgba(76, 175, 80, 0.2);     /* Green glow */
    background: linear-gradient(0deg, #4CAF50, #2196F3, #00BCD4, #FFC107, #F44336);
    background-size: 400% 400%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-divider.visible h3 {
    transform: translateY(0);
    animation: bounceInUp 1s ease forwards, rippleVertical 10s ease-in-out infinite alternate;
}

.section-divider h3:hover {
    background-position: 100%;
    transition: background-position 1s ease-in-out;
}

.bottom-up-shadow {
    box-shadow: inset 0 -10px 20px rgba(0, 0, 0, 0.04);
}

.top-down-shadow {
    box-shadow: inset 0 8px 15px rgba(0, 0, 0, 0.2);
}

.split-layout {
    display: flex;
    flex-wrap: nowrap;
    gap: 2em;
    align-items: stretch;
    justify-content: space-between;
}

.split-layout img {
    flex: 1 1 60%;
    max-width: none;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.split-layout div {
    max-width: 50%;
}

/* Fade-In */
.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in-left.visible {
    opacity: 1;
    transform: none;
}

.fade-in-up.visible {
    opacity: 1;
    transform: none;
}

.fade-in-right.visible {
    opacity: 1;
    transform: none;
}

.visible {
    opacity: 1;
    transform: none;
}

.ease {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.ease-out {
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }
.fade-in-left.delay-1 { transition-delay: 0.2s; }
.fade-in-left.delay-2 { transition-delay: 0.4s; }
.fade-in-left.delay-3 { transition-delay: 0.6s; }
.fade-in-up.delay-1 { transition-delay: 0.2s; }
.fade-in-up.delay-2 { transition-delay: 0.4s; }
.fade-in-up.delay-3 { transition-delay: 0.6s; }
.fade-in-right.delay-1 { transition-delay: 0.2s; }
.fade-in-right.delay-2 { transition-delay: 0.4s; }
.fade-in-right.delay-3 { transition-delay: 0.6s; }

/* Image styles */
.image-wrapper {
    flex: 1;
    width: 100%;
    max-width: none;
    overflow: hidden;
    position: relative;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
    will-change: transform, box-shadow;
    display: flex;
    align-items: stretch;
}

.image-wrapper:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transform-origin: center center;
    transform: scale(1);
    transition: transform 0.4s ease, filter 0.4s ease;
    will-change: transform, filter;
    border-radius: 12px;
    object-fit: cover;
    backface-visibility: hidden;
}

.image-wrapper:hover img {
    transform: scale(1.07) !important;
    filter: brightness(1.05);
}

.zoom-in-on-scroll {
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.visible.zoom-in-on-scroll {
  opacity: 1;
  transform: scale(1);
}

/* Social Determinants of Health */
.sdoh-section {
    background-color: #F0F7F4;
    padding: 2.5em 1em;
    text-align: center;
    color: #333;
}

.sdoh-section h3 {
    font-size: 2em;
    margin-bottom: 1em;
    color: #2E7D32;
}

.sdoh-section p {
    max-width: 900px;
    margin: 2em auto;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

/* Content Container */
.sdoh-items {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2em;
}

/* Domain Blocks */
.sdoh-domain {
    padding: 1.5em;
    margin: 0 auto;
    border-left: 8px solid transparent; /* default fallback */
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.03), 0 4px 10px rgba(0, 0, 0, 0.04);
    max-width: 900px;
}

/* Individual Color Classes */
.sdoh-items #blue {
    border-left-color: #2196F3;
    background-color: #E3F2FD;
}

.sdoh-items #red {
    border-left-color: #F44336;
    background-color: #FDECEA;
}

.sdoh-items #aqua {
    border-left-color: #00BCD4;
    background-color: #E0F7FA;
}

.sdoh-items #gold {
    border-left-color: #FFC107;
    background-color: #FFF8E1;
}

.sdoh-items #green {
    border-left-color: #4CAF50;
    background-color: #E8F5E9;
}

/* Typography */
.sdoh-domain h4 {
    margin-top: 0;
    color: #333;
    font-size: 1.3em;
}

.sdoh-domain p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

.sdoh-closing {
    font-style: italic;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    max-width: 680px;
    margin: 2em auto 0;
    text-align: center;
}

/* Mission */
.mission-section {
    background-color: #E3F2FD;
    padding: 3em 1.5EM;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    border-radius: 12px;
    margin: 0 auto;
    opacity: 1;
    transform: none;
}

.mission-section h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1em;
    color: #2196F3;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4);
}

.mission-section p {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
    color: #333;
}

/* Vision */
.vision-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 2em;
    gap: 2em;
    background-color: #FFFFFF;
    padding-block: 3em;
    padding-inline: 1.5em;
}

.vision-section .image-wrapper {
    max-width: 600px;
}

.vision-section img {
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

@keyframes shimmer {
    0% {
        left: -75%;
    }
    100% {
        left: 125%;
    }
}

@keyframes gradientDrift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.vision-text-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.3) 50%, 
        rgba(255,255,255,0) 100%
    );
    transform: skewX(-20deg);
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes shimmerSweep {
    0% {
        left: -75%;
    }
    100% {
        left: 125%;
    }
}

.vision-text-wrapper:hover::before {
    animation: shimmerSweep 1.5s ease-out;
}

.vision-text-wrapper {
    background: radial-gradient(
        circle at center,
        rgba(76, 175, 80, 0.12),    /* Green */
        rgba(33, 150, 243, 0.10),   /* Blue */
        rgba(0, 188, 212, 0.08),    /* Aqua */
        rgba(255, 193, 7, 0.08),    /* Gold */
        rgba(244, 67, 54, 0.06)     /* Red */
    );
    background-size: 200% 200%;
    background-repeat: no-repeat;
    background-position: center 0px;
    padding: 2.5em;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    transition: opacity 0.6s ease, transform 0.6s ease, background 0.6s ease, box-shadow 0.4s ease, 
            background-position 0.3s ease-out, filter 0.6s ease;
    opacity: 0;
    transform: translateY(30px);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    animation: gradientDrift 20s ease-in-out infinite;
    filter: blur(6px);
    will-change: filter, transform, opacity, background-position;
    flex: 1;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.vision-text-wrapper.visible {
    opacity: 1;
    transform: translateY(0);
    background: radial-gradient(
        circle at center,
        rgba(76, 175, 80, 0.18),    /* Green */
        rgba(33, 150, 243, 0.14),   /* Blue */
        rgba(0, 188, 212, 0.12),    /* Aqua */
        rgba(255, 193, 7, 0.10),    /* Gold */
        rgba(244, 67, 54, 0.08)     /* Red */
    );
    filter: blur(0);
}

.vision-text-wrapper p {
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 0;
}

@keyframes fadeInTitle {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInParagraph {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vision-section h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #2E7D32;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5em;
    position: relative;
    display: inline-block;
    animation: fadeInTitle 0.8s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.vision-section p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 0;
    animation: fadeInParagraph 0.9s ease forwards;
    opacity: 0;
    transform: translateY(40px);
    max-width: 620px;
}

/* Goals */
.goals-section {
    background-color: #E8F5E9;
}

.goals-section h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1em;
    color: #4CAF50;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4);
    text-align: center;
}

#goals-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 1.5em;
}

.goal {
    background-color: #ffffff;
    border-left: 6px solid #4CAF50;
    padding: 1.25em 1.5em;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.goal:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Services */
.services-section {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
    justify-content: center;
    background-color: #FEF3E3;
    position: relative;
    z-index: 0;
}

.services-section-wrapper {
    width: 100%;
    max-width: 1100px;
    margin-inline: auto;
    padding-inline: 1em;
}

.services-img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    opacity: 0;
    transition: opacity 0.8s ease;
}

.services-img.loaded {
    opacity: 1;
}

.services-section h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1em;
    color: #FFC107;
    text-transform: uppercase;
    letter-spacing: 10px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4);
    text-align: center;
}

.service-row {
    display: flex;
    justify-content: center;
    gap: 2em;
    flex-wrap: wrap; /* allows wrapping on smaller screens */
    margin-top: 3em;
    min-width: 250px;
    max-width: 100%;
}

.service-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.06);
    padding: 2em;
    width: 100%;
    text-align: center;
    transition: box-shadow 0.3s ease, transform 0s;
    flex: 1 1 clamp(260px, 25%, 320px);
    transition-delay: 0s;
    gap: 1em;
    min-width: 250px;
    max-width: 350px;
    opacity: 0;
    transform: translateY(20px);
    min-height: 224px;
    display: flex;
    flex-direction: column;
}

.service-card.visible {
    transition: transform 0s ease-in;
}

.service-card.visible h4 {
    opacity: 1;
    transform: none;
}

.service-card.visible.delay-1   { transition-delay: 1s; }
.service-card.visible.delay-2   { transition-delay: 2s; }
.service-card.visible.delay-3   { transition-delay: 3s; }

.service-card.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out, box-shadow 0.3s ease;
}

.service-card.fade-in-up.visible {
    opacity: 1;
    transform: none;
}

.service-card.visible:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
    transition: transform 0.25s ease-out, box-shadow 0.3s ease;
}

.service-card h4 {
    font-size: 1.38em;
    margin-bottom: 0.5em;
    color: #FFC107;
    text-shadow: 0 2px 6px rgba(255, 193, 7, 0.4);
    letter-spacing: 0.5px;
    font-weight: 600;
    transform: translateY(10px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out, border-color 0.3s ease, text-shadow 0.3s ease, 
            letter-spacing 0.3s ease;
    border-bottom: 2px solid rgba(255, 193, 7, 0.3);
    padding-bottom: 0.3em;
    opacity: 0;
    line-height: 1.3;
    display: inline-block;
}

.service-card.visible:hover h4 {
    text-shadow: 0 3px 8px rgba(255, 193, 7, 0.6); /* stronger glow */
    border-color: #FFC107; /* brighter underline */
    transform: scale(1.02);
    letter-spacing: 1px;
}

.service-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

.responsive-break {
    display: inline;
}

/* About */
.about-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2em;
    box-shadow: inset 0 8px 15px rgba(0, 188, 212, 0.2);
    background-color: #E0F7FA;
    padding: 3em 1.5em;
    text-align: center;
    border-radius: 8px;
    padding-block: 3em;
    padding-inline: 1.5em;
}

.about-section img {
    max-width: 100%;
    margin-bottom: 1em;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.about-section h3 {
    font-size: 1.8em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #00BCD4;
    text-align: center;
    text-shadow: 0 2px 6px rgba(0, 188, 212, 0.3);
    margin-bottom: 1em;
    font-family: 'PT Serif', serif;
}

.about-section p {
    max-width: 1472px;
    margin-inline: auto;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

/* Contact */
.contact-section {
    background: linear-gradient(180deg, #FDECEA, #FFF5F5);
    padding: 3em 2em;
    text-align: center;
    box-shadow: inset 0 6px 12px rgba(244, 67, 54, 0.06);
    border-radius: 8px;
}

.contact-section h3, 
.contact-section h2 {
    font-size: 1.8em;
    margin-bottom: 0.5em;
    color: #F44336;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    font-family: 'PT Serif', serif;
    font-weight: 700;
    text-shadow: 0 2px 6px rgba(244, 67, 54, 0.3);
}

.contact-section p {
    font-size: 1rem;
    color: #333;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.contact-section.visible h3,
.contact-section.visible p {
    opacity: 1;
    transform: none;
}

.contact-section strong {
    font-size: 1.2em;
}

.contact-section a.contact-phone, 
.contact-section a.contact-email {
  color: #F44336;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.contact-section a.contact-phone:hover, 
.contact-section a.contact-email:hover {
  color: #D32F2F;
  text-decoration: underline;
}

.contact-section a.contact-email {
    font-size: 1.1em;
}

/* Footer */
footer {
    text-align: center;
    background-color: #4CAF50;
    color: #E9E0D7;
    padding: 2em 1em;
    border-top: 6px solid #388E3C;
    box-shadow: inset 0 8px 15px rgba(0, 0, 0, 0.2);
    font-size: 0.9rem;
}

.site-credit {
    margin-top: 0.5em;
}

.site-credit a {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    color: #FFB74D;
}

.site-credit a:hover {
    text-decoration: underline;
    color: #FFA726;
}

/* Mobile Responsiveness */
@media (min-width: 768px) {
    .header-inner {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        text-align: left;
    }

    .logo-wrapper {
        margin-right: 2rem;
    }

    .tagline {
        text-align: left;
    }
}

/* Multi-row layout for service cards */
@media (max-width: 1131px) {
    .hero {
        background-position: 80% top;
    }

    .section-divider {
        display: flex;
        flex-direction: column;
        align-items: center;    /* centers the group */
        text-align: left;       /* aligns the text inside each span */
        gap: 0.25em;            /* spacing between lines */
    }
    
    .section-divider span {
        display: block;
        width: fit-content;     /* shrink-wraps each line */
    }
    
    .service-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2em;
        justify-items: center;
    }

    .service-card {
        max-width: 320px;
        width: 100%;
    }

    .service-card:nth-child(3) {
        grid-column: 1 / -1;
        justify-self: center;
    }
}

/* Tablet Landscape – Mid-sized adjustments */
@media (max-width: 1024px) {
    /*header {
        gap: 1.5em;
    }*/

    .hero {
        background-position: center top;
        min-height: 450px;
    }

    .services-section .section-wrapper {
        max-width: 90%;
        width: 100%;
        margin-inline: auto;
        box-sizing: border-box;
    }

    .services-img, 
    .service-row {
        width: 100%;
    }

    .services-img {
        display: block;
        margin-inline: auto;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .service-row {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2em;
        width: 100%;
    }

    .service-card {
        flex: none;
        max-width: 100%;
        width: 100%;
        text-align: center;
        transition: transform 0.4s ease, opacity 0.4s ease;
        box-sizing: border-box;
        margin: 0 auto;
    }

    .service-card h4 {
        font-size: clamp(1.6rem, 5vw, 2.4rem);
        line-height: 1.2;
    }
}

/* Tablet Portrait - Stack layout elements, tighten spacing, adjust text for medium screens */
@media (max-width: 768px) {
    p, 
    footer p {
        font-size: clamp(1.05rem, 2.5vw, 1.2rem);
        line-height: 1.6;
    }

    .hero {
        height: auto;
        padding: 2em 1em;
        background-size: cover;
        background-position: 54% top;
        min-height: 60vh;
        position: relative;
    }

    .hero-content {
        position: absolute;
        bottom: 5%;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 100%;
        padding: 2em 1.5em;
        background-color: rgba(0, 0, 0, 0.5);
        backdrop-filter: none;
        text-align: center;
        border-radius: 10px;
    }

    .hero-content p {
        font-size: clamp(1.1rem, 2.5vw, 1.3rem);
        line-height: 1.6;
        max-width: 100%;
    }

	.hero h2 {
        font-size: clamp(2rem, 6vw, 2.8rem);
        line-height: 1.2;
        font-weight: 700;
        text-align: center;
        margin-bottom: 0.5em;
        text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    }

    .hero-cta {
        width: 100%;
        font-size: 1.5rem;
        padding: 1em 0;
        margin-top: 1.5em;
    }

    .section-divider {
        margin: 2em auto;
    }

    .section-divider span {
        font-size: clamp(2.2rem, 7vw, 2.8rem);
        line-height: 1.3;
    }

    .vision-section .section-wrapper {
        max-width: 100%;
        width: fit-content;
        margin-inline: auto;
    }

    .image-wrapper img, 
    .vision-text-wrapper {
        width: 100%;
    }

    .vision-text-wrapper {
        padding: 2.5em 0;
    }

    .split-layout {
        flex-direction: column;
        align-items: flex-start;
    }

    .split-layout img,
    .split-layout div {
        width: 100%;
        max-width: 100%;
    }

    .services, .about {
        flex-direction: column;
        align-items: center;
    }

    .service-card {
        padding: 0 2em 1em;
    }
}

/* Small Tablets & Large Phones */
@media (max-width: 600px) {
    .hero-content {
        padding: 1em 4em;
    }
}

/* Service Card heading line breaks */
@media (min-width: 1025px) and (max-width: 1144px) {
    .responsive-break {
        display: block;
    }
}

@media (max-width: 507px) {
    .responsive-break {
        display: block;
    }
}
