/* ============================================
   Sound Healthcare & Financial - Main Stylesheet
   Modern, responsive, no framework dependencies
   ============================================ */

/* CSS Variables / Design Tokens */
:root {
    /* Colors */
    --color-primary: #703bc8;
    --color-primary-dark: #2c017c;
    --color-secondary: #40912f;
    --color-secondary-light: #469c23;
    --color-text: #3c404b;
    --color-text-light: #60646f;
    --color-text-muted: #d3d9dc;
    --color-white: #ffffff;
    --color-bg-light: #f7f7f7;
    --color-bg-gray: #f0f0f0;
    --color-border: #e5e5e5;
    --color-footer-bg: #1a1a2e;
    --color-testimonials-bg: #1a1a2e;
    
    /* Typography */
    --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Layout */
    --container-max-width: 1170px;
    --header-height: 80px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* ============================================
   Reset & Base Styles
   ============================================ */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    font-weight: var(--font-weight-regular);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-white);
    letter-spacing: 0.25px;
}

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

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-dark);
}

ul {
    list-style: none;
}

/* ============================================
   Utility Classes
   ============================================ */

.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xxl) 0;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
}

.section-title {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

.section-divider {
    margin: var(--spacing-sm) 0;
}

.divider-img {
    width: 45px;
    height: auto;
    margin: 0 auto;
}

.section-description {
    font-size: 1.125rem;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-top: var(--spacing-md);
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-family);
    font-size: 0.875rem;
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-medium);
}

.btn-primary {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-secondary);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Outlined button (live We Offer cards): transparent with a thin gray
   border; fills solid green with white text on hover */
.btn-outline {
    background-color: transparent;
    border: 2px solid #a5a8af;
    color: #797d87;
}

.btn-outline:hover {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    color: var(--color-white);
}

/* ============================================
   Top Bar
   ============================================ */

.top-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 0.75rem 0;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.top-bar-item {
    color: var(--color-white);
    font-size: 0.8125rem;
    font-weight: var(--font-weight-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-bar-item i {
    font-size: 0.875rem;
}

.top-bar-item a {
    color: var(--color-white);
    text-decoration: underline;
}

.top-bar-item a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.top-bar-links {
    font-size: 0.8125rem;
    font-weight: var(--font-weight-light);
}

.top-bar-links a {
    color: var(--color-white);
    text-decoration: underline;
}

.top-bar-links a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.top-bar-social {
    display: flex;
    gap: var(--spacing-sm);
}

.top-bar-social a {
    color: #efefef;
    font-size: 1.0625rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
    transition: color var(--transition-fast);
}

.top-bar-social a:hover {
    color: var(--color-white);
}

/* ============================================
   Header / Navigation
   ============================================ */

.site-header {
    position: absolute;
    top: 45px;
    left: 0;
    width: 100%;
    z-index: 99;
    padding: 0 var(--spacing-md);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--color-white);
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.logo-img {
    width: 220px;
    height: auto;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-text);
    cursor: pointer;
    padding: var(--spacing-xs);
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.nav-menu a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    color: #5a5f6b;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.nav-menu a:hover {
    color: var(--color-primary);
}

.nav-menu a.active {
    background-color: var(--color-secondary);
    color: var(--color-white);
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
}

/* Sticky header on scroll */
.site-header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0.5rem var(--spacing-md);
    animation: slideDown 0.3s ease;
}

.site-header.sticky .header-inner {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    position: relative;
    min-height: 85vh;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 140px;
    padding-bottom: var(--spacing-xl);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.35));
}

.hero-content {
    position: relative;
    z-index: 1;
    /* Wider than the standard container so the headline/subtitle
       can span closer to the full viewport like the live site */
    max-width: none;
}

.hero-title {
    font-size: 3.75rem;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    color: var(--color-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
    margin-bottom: var(--spacing-lg);
    letter-spacing: 1px;
}

.hero-divider-img {
    filter: brightness(0) invert(1);
    width: 50px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--color-white);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    line-height: 1.8;
    max-width: 1000px;
    margin: 0 auto;
    font-weight: var(--font-weight-light);
    letter-spacing: 0.5px;
}

.hero-subtitle span {
    color: #9d7ce8;
    font-weight: var(--font-weight-semibold);
    padding: 0 0.25rem;
}

/* ============================================
   Page Header (for inner pages)
   ============================================ */

.page-header {
    position: relative;
    background-color: var(--color-primary);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: var(--color-white);
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 0 var(--spacing-xxl);
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.35));
    /* Neutralize the warm/sepia tint of the background photos
       so the headers match the live site's gray look */
    -webkit-backdrop-filter: grayscale(100%);
    backdrop-filter: grayscale(100%);
}

.page-header .container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
}

.page-header h1 {
    font-size: 3.5rem;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

.page-header .section-divider {
    margin: var(--spacing-md) 0 var(--spacing-lg);
}

.page-header .divider-img {
    filter: brightness(0) invert(1);
    width: 50px;
}

.page-header-description {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--color-white);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    max-width: 1100px;
    margin: 0 auto;
    font-weight: var(--font-weight-light);
}

/* Page-specific header backgrounds */
.page-header-about {
    background-image: url('../images/about-bg.jpg');
}

.page-header-services {
    background-image: url('../images/services-bg.jpg');
}

.page-header-team {
    background-image: url('../images/team-bg.jpg');
}

.page-header-testimonials {
    background-image: url('../images/testimonials-page-bg.jpg');
}

.page-header-union-benefits {
    background-image: url('../images/union-benefits-bg.jpg');
}

.page-header-contact {
    background-image: url('../images/contact-bg.jpg');
}

/* ============================================
   Content Sections (for inner pages)
   ============================================ */

.content-section {
    max-width: 800px;
    margin: 0 auto;
}

.content-section p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    color: var(--color-text);
}

/* Two-column split section (image + content) */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    align-items: center;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.split-section-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.split-section-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
}

.split-section-content {
    padding: var(--spacing-md) 0;
}

.split-section-content h2 {
    font-size: 3rem;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.1;
}

.split-section-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-lg);
}

@media screen and (max-width: 767px) {
    .split-section {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .split-section-content h2 {
        font-size: 2rem;
    }
}

/* ============================================
   Testimonials Page (grid layout for inner page)
   ============================================ */

.testimonials-page {
    background-color: var(--color-bg-light);
}

.testimonials-grid {
    display: flex;
    flex-direction: column;
    margin-top: var(--spacing-xl);
}

/* Reference layout: B/W photo on the left, quote/name/credits on the right */
.testimonial-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: var(--spacing-xl);
    align-items: start;
}

.testimonial-card-photo {
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.testimonial-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(100%);
}

.testimonial-card-text {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--color-text);
    text-align: justify;
    margin-bottom: var(--spacing-sm);
}

.testimonial-card-name {
    font-size: 1.25rem;
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.testimonial-card-title {
    font-size: 0.9375rem;
    font-style: italic;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* Three-diamond divider between entries */
.testimonial-divider {
    display: flex;
    justify-content: center;
    margin: var(--spacing-lg) 0;
}

.testimonial-divider .divider-img {
    width: 50px;
    filter: brightness(0) invert(0.55);
}

/* ============================================
   Team Section (for inner pages)
   ============================================ */

.team-section {
    background-color: var(--color-white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem 2rem;
    margin-top: var(--spacing-xl);
}

.team-member {
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.team-photo {
    position: relative;
    z-index: 1;
    width: 150px;
    height: 150px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    background: var(--color-white);
    box-shadow: 0 0 0 10px var(--color-bg-light);
    transition: box-shadow var(--transition-medium);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
}

/* Card sits behind the lower half of the circular photo */
.team-card {
    margin-top: -55px;
    padding: 70px 20px 30px;
    background: var(--color-bg-light);
    transition: background var(--transition-medium);
    flex: 1;
}

.team-member h3 {
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    color: var(--color-text);
    margin-bottom: var(--spacing-xs);
    transition: color var(--transition-medium);
}

/* Small green line under the name, with tiny side dashes */
.team-card-divider {
    position: relative;
    width: 44px;
    height: 3px;
    background: var(--color-secondary);
    margin: 10px auto;
    transition: background var(--transition-medium);
}

.team-card-divider::before,
.team-card-divider::after {
    content: '';
    position: absolute;
    top: 0;
    width: 8px;
    height: 3px;
    background: inherit;
    transition: background var(--transition-medium);
}

.team-card-divider::before {
    left: -14px;
}

.team-card-divider::after {
    right: -14px;
}

.team-role {
    font-size: 1rem;
    color: var(--color-text-light);
    letter-spacing: 0;
    line-height: 1.6;
    text-transform: none;
    margin-bottom: 0;
    transition: color var(--transition-medium);
}

/* Hover: card turns green, names/text go white, photo gets green ring */
.team-member:hover .team-card,
.team-member:focus-within .team-card {
    background: var(--color-secondary);
}

.team-member:hover h3 {
    color: var(--color-white);
}

.team-member:hover .team-card-divider,
.team-member:hover .team-card-divider::before,
.team-member:hover .team-card-divider::after {
    background: var(--color-white);
}

.team-member:hover .team-role {
    color: var(--color-white);
}

.team-member:hover .team-photo {
    box-shadow: 0 0 0 10px var(--color-bg-light), 0 0 0 13px var(--color-secondary);
}


.team-bio {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* ============================================
   We Offer Section
   ============================================ */

.we-offer {
    background-color: var(--color-white);
}

.offer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.offer-card {
    text-align: center;
    padding: var(--spacing-lg);
}

.offer-icon {
    margin-bottom: var(--spacing-md);
}

.offer-icon img {
    width: 130px;
    height: 130px;
    object-fit: contain;
    padding: 20px;
    border: 1px dashed #a5a8af;
    border-radius: 50%;
    margin: 0 auto;
}

.offer-content h3 {
    font-size: 1.125rem;
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    color: var(--color-text);
    margin-bottom: var(--spacing-sm);
}

.offer-content p {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

/* ============================================
   About Intro Section
   ============================================ */

.about-intro {
    background-color: var(--color-bg-gray);
}

.about-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-text);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.about-text strong {
    color: var(--color-text);
}

/* ============================================
   Nashville Plan Section
   ============================================ */

.nashville-plan {
    background-color: var(--color-white);
}

.plan-box {
    background-color: var(--color-primary);
    color: var(--color-white);
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-xxl);
    border-radius: 8px;
    max-width: 800px;
    margin: 0 auto;
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    line-height: 1.8;
}

.plan-box strong {
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
}

.plan-box .underline {
    text-decoration: underline;
}

/* ============================================
   Partners Section
   ============================================ */

.partners {
    background-color: var(--color-bg-gray);
}

.partners-slider {
    position: relative;
    overflow: hidden;
    margin-top: var(--spacing-xl);
}

.partners-track {
    display: flex;
    gap: var(--spacing-lg);
    transition: transform var(--transition-medium);
}

.partner-item {
    flex: 0 0 auto;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-item img {
    max-width: 100%;
    max-height: 100%;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all var(--transition-medium);
}

.partner-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Auto-scroll animation for partners */
@keyframes scrollPartners {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.partners-track.auto-scroll {
    animation: scrollPartners 30s linear infinite;
}

.partners-track.auto-scroll:hover {
    animation-play-state: paused;
}

/* ============================================
   Testimonials Section
   ============================================ */

.testimonials {
    position: relative;
    background-color: var(--color-testimonials-bg);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: var(--color-white);
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.85));
}

.testimonials .container {
    position: relative;
    z-index: 1;
}

.testimonials-with-bg {
    background-image: url('../images/testimonials-bg.jpg');
}

.testimonials .section-title {
    color: var(--color-white);
}

.testimonials-slider {
    position: relative;
    overflow: hidden;
    margin-top: var(--spacing-xl);
    /* Height is set by JS to match the active slide, so shorter
       testimonials don't leave a large blank area below the text */
    transition: height var(--transition-medium);
}

.testimonials-track {
    display: flex;
    /* Let each slide keep its natural height instead of stretching
       every slide to the tallest one */
    align-items: flex-start;
    transition: transform var(--transition-medium);
}

.testimonial-slide {
    flex: 0 0 100%;
    padding: 0 var(--spacing-lg);
}

.testimonial {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 2px dashed var(--color-secondary);
    padding: 5px;
    overflow: hidden;
    margin-bottom: var(--spacing-lg);
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    filter: grayscale(100%);
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-md);
    font-style: italic;
}

.testimonial-name {
    font-size: 1.125rem;
    font-weight: var(--font-weight-semibold);
    color: var(--color-white);
    margin-bottom: var(--spacing-xs);
}

.testimonial-title {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--color-white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    transition: all var(--transition-fast);
    z-index: 10;
}

.slider-nav:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.slider-prev {
    left: 0;
}

.slider-next {
    right: 0;
}

/* Slider Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: var(--spacing-xl);
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: 0;
}

.slider-dot.active {
    background-color: var(--color-white);
    transform: scale(1.2);
}

.slider-dot:hover {
    background-color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
    background-color: var(--color-footer-bg);
    color: var(--color-white);
    padding: var(--spacing-xl) 0 var(--spacing-lg);
}

.footer-nav {
    margin-bottom: var(--spacing-lg);
}

.footer-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
}

.footer-menu a {
    color: var(--color-white);
    font-size: 0.875rem;
    text-transform: uppercase;
    font-weight: var(--font-weight-medium);
    transition: color var(--transition-fast);
}

.footer-menu a:hover {
    color: var(--color-secondary-light);
}

.footer-phone {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.footer-phone p {
    font-size: 1rem;
}

.footer-phone a {
    color: var(--color-white);
    font-weight: var(--font-weight-semibold);
}

.footer-phone a:hover {
    color: var(--color-secondary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   Responsive Design
   ============================================ */

/* Inner page responsive adjustments */
@media screen and (max-width: 991px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonial-card {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .testimonial-card-photo {
        max-width: 220px;
    }
}

@media screen and (max-width: 767px) {
    .page-header {
        min-height: 450px;
        padding-top: 120px;
        padding-bottom: var(--spacing-xl);
    }

    .page-header h1 {
        font-size: 1.75rem;
        letter-spacing: 1px;
    }

    .page-header-description {
        font-size: 1rem;
    }

    /* Testimonials page cards on mobile: name, then title, then the
       photo (full width to match the copy block), then the bio */
    .testimonial-card {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .testimonial-card-body {
        display: contents;
    }

    .testimonial-card-photo {
        order: 3;
        max-width: 100%;
    }

    /* Low-resolution source photos (180-225px): display near their
       natural size instead of stretching full-width and blurring */
    .testimonial-card-photo.photo-sm {
        max-width: 220px;
        align-self: center;
    }

    .testimonial-card-name {
        order: 1;
    }

    .testimonial-card-title {
        order: 2;
    }

    .testimonial-card-text {
        order: 4;
    }
}

@media screen and (max-width: 600px) {
    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-photo {
        width: 120px;
        height: 120px;
        box-shadow: 0 0 0 8px var(--color-bg-light);
    }

    .team-card {
        margin-top: -45px;
        padding-top: 60px;
    }

    .team-member:hover .team-photo {
        box-shadow: 0 0 0 8px var(--color-bg-light), 0 0 0 11px var(--color-secondary);
    }
}

/* Tablets */
@media screen and (max-width: 991px) {
    .site-header {
        top: 40px;
    }

    .header-inner {
        padding: 0.625rem 1.25rem;
    }

    .logo-img {
        width: 190px;
    }

    .nav-menu a {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }

    .nav-menu a.active {
        padding: 0.5rem 1rem;
    }

    .hero {
        padding-top: 130px;
    }

    .hero-title {
        font-size: 3.25rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .page-header {
        min-height: 500px;
        padding-top: 130px;
    }

    .page-header h1 {
        font-size: 3rem;
    }

    .page-header-description {
        font-size: 1.125rem;
    }

    .offer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }

    .section-title {
        font-size: 2rem;
    }
}

/* Mobile */
@media screen and (max-width: 767px) {
    /* Top Bar */
    .top-bar {
        padding: 0.5rem 0;
    }
    
    .top-bar-inner {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .top-bar-left,
    .top-bar-right {
        gap: var(--spacing-sm);
    }
    
    .top-bar-links {
        display: none;
    }
    
    /* Header */
    .site-header {
        top: 35px;
        padding: 0 var(--spacing-sm);
    }
    
    .header-inner {
        padding: 0.5rem 1rem;
        border-radius: 6px;
    }
    
    .mobile-menu-toggle {
        display: block;
        font-size: 1.25rem;
    }
    
    .main-nav {
        position: absolute;
        top: calc(100% + 0.5rem);
        left: 0;
        right: 0;
        background-color: var(--color-white);
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
        display: none;
        padding: var(--spacing-sm);
        margin: 0 var(--spacing-sm);
    }
    
    .main-nav.active {
        display: block;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }
    
    .nav-menu a {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--color-border);
        text-align: center;
    }
    
    .nav-menu li:last-child a {
        border-bottom: none;
    }
    
    .nav-menu a.active {
        background-color: var(--color-secondary);
        color: var(--color-white);
        border-radius: 50px;
        margin: 0.25rem 0;
        border-bottom: none;
    }
    
    .logo-img {
        width: 160px;
    }

    /* Hero */
    .hero {
        min-height: 70vh;
        padding-top: 120px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    /* Sections */
    .section {
        padding: var(--spacing-xl) 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    /* Offer Grid */
    .offer-grid {
        grid-template-columns: 1fr;
    }
    
    /* Plan Box */
    .plan-box {
        padding: var(--spacing-lg) var(--spacing-md);
        font-size: 1.5rem;
    }
    
    /* Partners */
    .partner-item {
        width: 100px;
        height: 100px;
    }
    
    /* Testimonials */
    .testimonial-image {
        width: 120px;
        height: 120px;
    }
    
    .testimonial-slide {
        padding: 0 var(--spacing-sm);
    }
    
    .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Footer */
    .footer-menu {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-sm);
    }
}

/* Small Mobile */
@media screen and (max-width: 480px) {
    .top-bar-item,
    .top-bar-social a {
        font-size: 1rem;
    }

    .site-header {
        top: 40px;
    }
    
    .header-inner {
        padding: 0.5rem 0.75rem;
    }
    
    .logo-img {
        width: 140px;
    }

    .hero {
        padding-top: 110px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 0.875rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .testimonial-image {
        width: 100px;
        height: 100px;
    }
    
    .testimonial-text {
        font-size: 0.875rem;
    }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    .top-bar,
    .site-header,
    .slider-nav,
    .slider-dots,
    .site-footer {
        display: none;
    }
    
    .hero {
        min-height: auto;
        padding: var(--spacing-xl) 0;
    }
    
    .hero-overlay {
        display: none;
    }
    
    .hero-title,
    .hero-subtitle {
        color: var(--color-text);
        text-shadow: none;
    }
}
