/*
Theme Name: MJU r1Care Services
Theme URI: https://mjucare.co.uk
Author: MJU Care
Author URI: https://mjucare.co.uk
Description: Custom WordPress theme for MJU Care Services
Version: 1.0
*/

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Open+Sans:wght@300;400;600;700&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2a6e8c;
    --primary-dark: #1d4f65;
    --primary-light: #3a8cb0;
    --secondary: #ff7e30;
    --secondary-dark: #e66a20;
    --secondary-light: #ff9c5a;
    --light: #f8f9fa;
    --light-gray: #f0f4f8;
    --dark: #333;
    --gray: #6c757d;
    --success: #28a745;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 30px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.7;
    color: var(--dark);
    background-color: #fff;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.2rem;
}

h1 {
    font-size: 3.2rem;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    position: relative;
    display: inline-block;
    margin-bottom: 2.5rem;
}

h2:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary), var(--secondary-light));
    bottom: -12px;
    left: 0;
    border-radius: 5px;
}

h3 {
    font-size: 1.8rem;
    color: #1b1d1e;
}

h4 {
    font-size: 1.4rem;
    color: var(--primary-dark);
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.95rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.btn:hover:before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2:after {
    left: 50%;
    transform: translateX(-50%);
}

/* Header & Navigation */
header {
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08) !important;
    position: fixed !important;
    width: 100% !important;
    top: 0 !important;
    z-index: 1000 !important;
    transition: var(--transition) !important;
}

.header-container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 20px 0 !important;
    position: relative;
}

.logo {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.logo-icon {
    color: var(--primary) !important;
    font-size: 2.5rem !important;
    background: var(--light-gray) !important;
    padding: 10px !important;
    border-radius: 50% !important;
}

.logo-text {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 800 !important;
    font-size: 1.8rem !important;
    color: var(--primary) !important;
    letter-spacing: -0.5px !important;
}

.logo-text span {
    color: var(--secondary) !important;
}

.header-contact {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    color: var(--primary) !important;
    font-weight: 700 !important;
}

.phone-number {
    font-size: 1.4rem !important;
    font-weight: 800 !important;
    color: var(--primary-dark) !important;
}

.phone-text {
    font-size: 0.85rem !important;
    color: var(--gray) !important;
    font-weight: 500 !important;
}

/* Desktop Navigation */
.nav-links {
    display: flex !important;
    gap: 35px !important;
    align-items: center !important;
    list-style: none;
}

.nav-links a {
    font-weight: 600 !important;
    position: relative !important;
    padding: 8px 0 !important;
    font-size: 0.95rem !important;
}

.nav-links a:after {
    content: '' !important;
    position: absolute !important;
    width: 0 !important;
    height: 3px !important;
    background: linear-gradient(90deg, var(--secondary), var(--secondary-light)) !important;
    bottom: 0 !important;
    left: 0 !important;
    border-radius: 3px !important;
    transition: var(--transition) !important;
}

.nav-links a:hover:after,
.nav-links a.active:after {
    width: 100% !important;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none !important;
    font-size: 1.8rem !important;
    border: none !important;
    color: var(--primary) !important;
    cursor: pointer !important;
    background: var(--light-gray) !important;
    padding: 10px !important;
    border-radius: 8px !important;
    z-index: 1001;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(42, 110, 140, 0.9), rgba(29, 79, 101, 0.95)), url('https://images.unsplash.com/photo-1516733968668-dbdce39c4651?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 200px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--secondary);
    border-radius: 50%;
    top: -150px;
    right: -150px;
    opacity: 0.1;
}

.hero:after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: var(--secondary);
    border-radius: 50%;
    bottom: -100px;
    left: -100px;
    opacity: 0.1;
}

.hero h1 {
    color: white;
    -webkit-text-fill-color: white;
    background: none;
    font-size: 3.8rem;
    margin-bottom: 1.8rem;
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-btns {
    display: flex;
    gap: 25px;
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* Stats Section */
.stats {
    background-color: white;
    padding: 80px 0;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.stat-item {
    padding: 30px 20px;
    text-align: center;
    border-radius: var(--border-radius);
    background: white;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-dark);
}

/* Content Sections */
.content-section {
    padding: 100px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.content-img {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    transition: var(--transition);
}

.content-img:hover {
    transform: scale(1.02);
}

.content-img img {
    width: 100%;
    height: auto;
    display: block;
}

.feature-list {
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 1.5rem;
    padding: 15px;
    background: var(--light-gray);
    border-radius: 10px;
    transition: var(--transition);
}

.feature-item:hover {
    background: white;
    box-shadow: var(--shadow);
    transform: translateX(5px);
}

.feature-icon {
    color: var(--secondary);
    font-size: 1.3rem;
    background: white;
    padding: 10px;
    border-radius: 50%;
    min-width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Care Assessment */
.care-assessment {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.care-assessment:before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    top: -200px;
    right: -200px;
}

.care-assessment h2 {
    color: white;
}

.care-assessment h2:after {
    background: var(--secondary);
    left: 50%;
    transform: translateX(-50%);
}

.assessment-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.assessment-option {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px 25px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    backdrop-filter: blur(10px);
}

.assessment-option:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-10px);
    border-color: var(--secondary);
}

.option-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--secondary-light);
}

/* Services Cards */
.services-detailed {
    background: var(--light-gray);
}

.services-detailed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.service-detailed-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-detailed-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.service-detailed-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-hover);
}

.service-detailed-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.8rem;
    background: var(--light-gray);
    padding: 15px;
    border-radius: 15px;
    display: inline-block;
}

.service-tag {
    display: inline-block;
    background: linear-gradient(90deg, var(--secondary-light), var(--secondary));
    color: white;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

/* Alternatives Section */
.alternatives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    margin-top: 50px;
}

.alternative-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.alternative-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.alternative-img {
    height: 220px;
    overflow: hidden;
}

.alternative-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.alternative-card:hover .alternative-img img {
    transform: scale(1.1);
}

.alternative-content {
    padding: 30px;
}

.pros-cons {
    margin-top: 1.5rem;
}

.pros, .cons {
    margin-bottom: 1.8rem;
}

.pros h4, .cons h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.pros h4:before {
    content: '✓';
    color: var(--success);
    font-weight: bold;
    font-size: 1.2rem;
}

.cons h4:before {
    content: '✗';
    color: #dc3545;
    font-weight: bold;
    font-size: 1.2rem;
}

.pros ul, .cons ul {
    padding-left: 25px;
}

.pros li, .cons li {
    margin-bottom: 0.8rem;
    position: relative;
}

/* How to Get Started */
.get-started {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.get-started:before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    top: -150px;
    left: -150px;
}

.get-started h2 {
    color: white;
}

.get-started h2:after {
    background: var(--secondary);
    left: 50%;
    transform: translateX(-50%);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 35px;
    margin-top: 50px;
    position: relative;
    z-index: 1;
}

.step {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px 25px;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.step:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-10px);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(255, 126, 48, 0.3);
}

/* Customer Stories */
.stories {
    background: white;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    margin-top: 50px;
}

.story-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.story-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.story-img {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.story-img:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.7));
    z-index: 1;
}

.story-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.story-card:hover .story-img img {
    transform: scale(1.1);
}

.story-content {
    padding: 30px;
    position: relative;
}

.story-quote {
    color: var(--secondary);
    font-size: 2rem;
    position: absolute;
    top: -20px;
    left: 30px;
    opacity: 0.7;
}

/* FAQ Section */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-hover);
}

.faq-question {
    padding: 25px 30px;
    background: white;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    font-size: 1.1rem;
}

.faq-question:hover {
    background: var(--light-gray);
}

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    background: white;
    transition: max-height 0.5s ease-out;
}

.faq-answer.active {
    padding: 0 30px 30px;
    max-height: 500px;
}

.faq-toggle {
    color: var(--primary);
    font-size: 1.2rem;
    transition: var(--transition);
}

.faq-toggle.active {
    transform: rotate(45deg);
    color: var(--secondary);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    background: var(--light-gray);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-details {
    margin-top: 2.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 2rem;
    padding: 20px;
    background: white;
    border-radius: 10px;
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.contact-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.8rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #eaeaea;
    border-radius: 10px;
    font-family: 'Open Sans', sans-serif;
    transition: var(--transition);
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(42, 110, 140, 0.2);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary-dark), #1a3d4f);
    color: white;
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1.8rem;
    color: white;
}

.footer-logo span {
    color: var(--secondary);
}

.footer-about p {
    margin-bottom: 1.8rem;
    color: rgba(255, 255, 255, 0.8);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-link:hover {
    background: var(--secondary);
    transform: translateY(-5px);
}

.footer-heading {
    font-size: 1.4rem;
    margin-bottom: 1.8rem;
    color: white;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background: var(--secondary);
    bottom: 0;
    left: 0;
    border-radius: 3px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    transition: var(--transition);
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a:before {
    content: '›';
    color: var(--secondary);
    font-weight: bold;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 10px;
}

.footer-links a:hover:before {
    color: white;
}

.footer-contact-info {
    margin-top: 1.8rem;
}

.footer-contact-info p {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact-info i {
    color: var(--secondary);
    margin-top: 5px;
    font-size: 1.1rem;
}

.awards {
    margin-top: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.award {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    gap: 8px;
}

.award i {
    color: var(--secondary);
}

.copyright {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

.legal-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.legal-links a:hover {
    color: var(--secondary);
}

/* Back To Top Button */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: #1d4f65;
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

#backToTop:hover {
    transform: translateY(0) scale(1.12);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ===========================================
   RESPONSIVE DESIGN
   =========================================== */

/* 1. TABLET - Medium devices (768px to 1024px) */
@media (max-width: 1024px) {
    .container {
        width: 95%;
        padding: 0 20px;
    }

    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    h3 {
        font-size: 1.6rem;
    }

    .hero {
        padding: 180px 0 100px;
    }

    .hero h1 {
        font-size: 3.2rem;
    }

    .hero p {
        font-size: 1.1rem;
        padding: 0 20px;
    }

    .content-grid,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .content-grid.reverse .content-img {
        order: -1;
    }

    .feature-item {
        padding: 12px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .header-contact {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .phone-number {
        font-size: 1.2rem;
    }

    .nav-links {
        gap: 25px;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    .services-detailed-grid,
    .stories-grid,
    .alternatives-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

/* 2. TABLET - Small tablets (600px to 767px) */
@media (max-width: 767px) {
    section {
        padding: 80px 0;
    }

    .content-section {
        padding: 60px 0;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.4rem;
    }

    .hero {
        padding: 150px 0 80px;
        background-attachment: scroll;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .btn {
        width: 280px;
        max-width: 100%;
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .services-detailed-grid,
    .stories-grid,
    .alternatives-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .assessment-options {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-heading:after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }

    .awards {
        justify-content: center;
    }
}

/* 3. MOBILE - Large phones (481px to 599px) */
@media (max-width: 599px) {
    .header-container {
        padding: 15px 0 !important;
    }

    .logo {
        gap: 8px;
    }

    .logo-icon {
        font-size: 1.8rem !important;
        padding: 8px !important;
    }

    .logo-text {
        font-size: 1.4rem !important;
    }

    .header-contact {
        display: none !important;
    }

    .mobile-menu-btn {
        display: block !important;
        font-size: 1.5rem !important;
        padding: 8px !important;
    }

    /* Mobile Navigation */
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        align-items: center;
        padding: 30px 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        transform: translateY(-100%);
        opacity: 0;
        transition: var(--transition);
        z-index: 999;
        border-radius: 0 0 20px 20px;
        gap: 0;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #eee;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 15px 0 !important;
        font-size: 1rem !important;
        width: 100%;
    }

    .nav-links a:after {
        display: none;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .section-title h2:after {
        width: 60px;
    }

    .hero {
        padding: 130px 0 70px;
    }

    .hero h1 {
        font-size: 2.3rem;
        padding: 0 15px;
    }

    .hero p {
        padding: 0 15px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
        width: 100%;
        max-width: 280px;
    }

    .btn-large {
        padding: 16px 32px;
    }

    .content-img {
        border-radius: 10px;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .feature-icon {
        margin: 0 auto;
    }

    .service-detailed-card,
    .alternative-card,
    .story-card {
        padding: 30px 20px;
    }

    .contact-info,
    .contact-form {
        padding: 25px 20px;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .contact-icon {
        margin: 0 auto;
    }

    .faq-question {
        padding: 20px 15px;
        font-size: 1rem;
    }

    .faq-answer,
    .faq-answer.active {
        padding: 0 15px 20px;
    }

    footer {
        padding: 60px 0 30px;
    }

    .footer-heading {
        font-size: 1.2rem;
    }

    .legal-links {
        flex-direction: column;
        gap: 15px;
    }

    #backToTop {
        width: 45px;
        height: 45px;
        right: 20px;
        bottom: 20px;
        font-size: 16px;
    }
}

/* 4. MOBILE - Small phones (up to 480px) */
@media (max-width: 480px) {
    .container {
        width: 100%;
        padding: 0 15px;
    }

    h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }

    h2:after {
        width: 50px;
        height: 4px;
        bottom: -8px;
    }

    h3 {
        font-size: 1.2rem;
    }

    p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .logo-text {
        font-size: 1.2rem !important;
    }

    .logo-icon {
        font-size: 1.5rem !important;
        padding: 6px !important;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .hero-btns {
        gap: 12px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
        width: 100%;
        max-width: 250px;
    }

    .section-title {
        margin-bottom: 3rem;
    }

    .stat-item {
        padding: 20px 15px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-text {
        font-size: 1rem;
    }

    .assessment-option {
        padding: 30px 20px;
    }

    .option-icon {
        font-size: 2.5rem;
    }

    .step {
        padding: 30px 20px;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .story-img {
        height: 200px;
    }

    .form-control {
        padding: 12px 15px;
    }

    .copyright {
        font-size: 0.85rem;
        padding-top: 30px;
    }

    .nav-links {
        top: 70px;
        padding: 20px 15px;
    }

    .nav-links a {
        padding: 12px 0 !important;
        font-size: 0.95rem !important;
    }
}

/* 5. EXTRA LARGE SCREENS (min-width: 1400px) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }

    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.8rem;
    }

    .hero h1 {
        font-size: 4.2rem;
    }

    .hero p {
        font-size: 1.4rem;
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .services-detailed-grid,
    .alternatives-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 6. LANDSCAPE ORIENTATION */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        padding: 150px 0 80px;
        min-height: auto;
    }

    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .hero p {
        margin-bottom: 2rem;
        font-size: 1rem;
    }

    .nav-links {
        top: 70px;
        max-height: 80vh;
        overflow-y: auto;
    }

    .nav-links a {
        padding: 10px 0 !important;
    }
}

/* 7. PRINT STYLES */
@media print {
    header,
    footer,
    .hero-btns,
    .btn,
    #backToTop,
    .mobile-menu-btn {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    .container {
        width: 100%;
        max-width: none;
        padding: 0;
    }

    section {
        padding: 40px 0;
        page-break-inside: avoid;
    }

    h1, h2, h3, h4, h5 {
        color: #000;
    }

    h1 {
        -webkit-text-fill-color: #000;
        background: none;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    .content-img {
        max-width: 300px;
    }
}