/* 
  GH PhysioCare - Main Stylesheet 
  Professional, Modern, UK-focused Healthcare Design
*/

:root {
    /* Color Palette */
    --primary-color: #0D3B4A;    /* Deep Teal */
    --primary-light: #165668;
    --secondary-color: #769C95;  /* Soft Sage */
    --accent-color: #D19F3A;     /* Premium Gold */
    --text-color: #2D3748;
    --text-muted: #718096;
    --bg-light: #F8FAFC;
    --white: #FFFFFF;
    --section-bg: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
    --border-color: #E2E8F0;
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

h1, h2, h3, h4, .font-display {
    font-family: 'Outfit', sans-serif;
    color: var(--primary-color);
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 0.95rem;
}

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

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

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

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

.btn-outline-white {
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: var(--white);
}

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

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

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    min-height: 80px;
    display: flex;
    align-items: center;
    transition: box-shadow 0.3s ease;
}

header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.6rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Consistent logo image height across all pages */
.logo img {
    height: 75px !important;
    width: auto !important;
}

.footer-logo img {
    height: 90px !important;
    width: auto !important;
}

.nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero {
    padding: 14rem 0 10rem;
    background: linear-gradient(rgba(13, 59, 74, 0.7), rgba(13, 59, 74, 0.7)), url('../images/hero-bg.jpg') center/cover no-repeat;
    color: var(--white);
}

.hero h1, .hero p {
    color: var(--white) !important;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Sections */
section {
    padding: 6rem 0; 
}

@media (max-width: 768px) {
    section {
        padding: 4rem 0;
    }
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
}

.section-title p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Feature Cards */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-bottom: 3px solid var(--accent-color);
}

.feature-card h3 {
    margin-bottom: 0.5rem;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* Treatment Grid Layout */
.treatment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.treatment-info h2 {
    margin-bottom: 1rem;
}

/* Stats */
.stats {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

.stat-item h3 {
    color: var(--accent-color);
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.stat-item p {
    opacity: 0.8;
}

@media (max-width: 1024px) {
    .hero h1 { font-size: 3.5rem; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.8rem; }
    .feature-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1.1rem; }
    .hero-btns { flex-direction: column; width: 100%; }
    .hero-btns .btn { width: 100%; }
    .stats-grid { grid-template-columns: 1fr; }
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.95rem;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-color);
}

.header-cta {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3.5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.footer-desc {
    color: #CBD5E0;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--accent-color);
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: #CBD5E0;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    color: #CBD5E0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-contact li ion-icon {
    font-size: 1.3rem;
    color: var(--accent-color);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-socials {
    display: flex;
    gap: 1rem;
    margin-top: 1.25rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.social-icon:hover {
    background-color: var(--accent-color);
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #A0AEC0;
}

/* Animations */
.reveal {
    opacity: 0.3; /* Increased initial opacity for better "out of viewport" visibility */
    transform: translateY(20px);
    transition: all 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .nav-links {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .header-cta .btn-call {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .treatment-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}
/* ======================
   JOURNEY STEPS
   ====================== */
.journey {
    background: var(--bg-light);
}

.journey-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    margin-top: 4rem;
}

.journey-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: var(--white);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    position: relative;
    transition: all 0.35s ease;
    max-width: 220px;
}

.journey-step:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(13, 59, 74, 0.1);
}

.journey-number {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    background: var(--accent-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
}

.journey-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(13, 59, 74, 0.08), rgba(209, 159, 58, 0.12));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 1rem 0 1rem;
}

.journey-step h3 {
    font-size: 1rem;
    margin-bottom: 0.6rem;
    color: var(--primary-color);
}

.journey-step p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.journey-connector {
    flex: 0 0 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    align-self: center;
    position: relative;
    margin-top: -10px;
    opacity: 0.4;
}

.journey-connector::after {
    content: '▶';
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 0.7rem;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .journey-steps {
        flex-direction: column;
        align-items: center;
    }
    .journey-connector {
        width: 2px;
        height: 40px;
        flex: 0 0 40px;
        background: linear-gradient(180deg, var(--accent-color), var(--primary-color));
    }
    .journey-connector::after {
        content: '▼';
        right: 50%;
        top: auto;
        bottom: -6px;
        transform: translateX(50%);
    }
    .journey-step {
        max-width: 280px;
        width: 100%;
    }
}

/* ======================
   TESTIMONIALS SLIDER
   ====================== */
.testimonials {
    padding: 6rem 0;
    background: linear-gradient(135deg, #0D3B4A 0%, #1a5c73 100%);
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(209, 159, 58, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.testimonials .section-title h2,
.testimonials .section-title p {
    color: var(--white) !important;
}

.testimonials .section-title p {
    opacity: 0.7;
}

.testimonial-wrapper {
    position: relative;
    margin-top: 3rem;
}

.testimonial-track-wrapper {
    overflow: hidden;
    border-radius: 16px;
}

.testimonial-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 2.5rem;
    flex-shrink: 0;
    transition: all 0.4s ease;
    position: relative;
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(209, 159, 58, 0.4);
    transform: translateY(-6px);
}

.testimonial-card.active-card {
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(209, 159, 58, 0.5);
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 1rem;
    color: var(--accent-color);
    font-size: 1rem;
}

.testimonial-quote {
    font-size: 3rem;
    color: var(--accent-color);
    opacity: 0.4;
    line-height: 1;
    margin-bottom: 0.5rem;
    font-family: Georgia, serif;
}

.testimonial-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), #b8892d);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--white);
    flex-shrink: 0;
    font-family: 'Outfit', sans-serif;
}

.testimonial-author h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.testimonial-author span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Navigation */
.testimonial-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.testimonial-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.testimonial-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: scale(1.1);
}

.testimonial-dots {
    display: flex;
    gap: 0.5rem;
}

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

.testimonial-dot.active {
    background: var(--accent-color);
    width: 24px;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 640px) {
    .testimonial-card {
        min-width: 100%;
    }
}


/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--accent-color);
    color: var(--white);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}
