/* 
 * Doop-Care Occupational Therapy - Main Stylesheet
 * Version: 1.0
 */

/* ===== Base Styles ===== */
:root {
    --primary-color: #2c7be5;      /* Main brand color */
    --secondary-color: #6c757d;    /* Secondary color */
    --accent-color: #00d97e;       /* Accent color for CTAs */
    --dark-color: #12263f;         /* Dark text color */
    --light-color: #f8f9fa;        /* Light background color */
    --gray-color: #6c757d;         /* Gray text color */
    --border-radius: 0.4rem;          /* Default border radius */
    --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease-in-out;
}

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

body {
    font-family: 'Roboto', sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    padding-top: 80px; /* Height of fixed navbar */
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { 
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

p {
    margin-bottom: 1.5rem;
    color: var(--gray-color);
}

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

a:hover {
    color: #1a5bb9;
    text-decoration: none;
}

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

section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    display: inline-block;
}

.section-header h2::after {
    left: 50%;
    transform: translateX(-50%);
}

/* ===== Buttons ===== */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.btn i {
    margin-right: 0.5rem;
}

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

.btn-primary:hover {
    background-color: #1a5bb9;
    border-color: #1a5bb9;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 123, 229, 0.3);
}

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

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 123, 229, 0.3);
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.1rem;
}
.btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.form-control:focus, 
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(44, 123, 229, 0.25);
}
/* ===== Navigation ===== */
.navbar {
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background-color: white !important;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.8rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    padding: 0;
    margin: 0;
}

.navbar-brand .logo {
    height: 70px;
    width: auto;
    transition: var(--transition);
}

.navbar.scrolled .navbar-brand .logo {
    height: 60px;
}

.navbar-nav .nav-link {
    color: var(--dark-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 1rem;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: calc(100% - 2rem);
}

.navbar-nav .btn {
    padding: 0.5rem 1.25rem;
    margin-left: 0.5rem;
}

/* Custom close icon for mobile navbar */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler .navbar-toggler-icon {
    position: relative;
    width: 24px;
    height: 24px;
    background: none;
}

.navbar-toggler .navbar-toggler-bar {
    display: block;
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: var(--transition);
}

.navbar-toggler .bar1 {
    top: 6px;
}

.navbar-toggler .bar2 {
    top: 12px;
    opacity: 1;
}

.navbar-toggler .bar3 {
    top: 18px;
}

/* Close icon when menu is open */
.navbar-toggler[aria-expanded="true"] .bar1 {
    transform: rotate(45deg);
    top: 12px;
}

.navbar-toggler[aria-expanded="true"] .bar2 {
    opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .bar3 {
    transform: rotate(-45deg);
    top: 12px;
}

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('https://media.istockphoto.com/id/2168466252/photo/a-delightful-and-happy-little-boy-with-down-syndrome-grins-as-he-plays-at-an-indoor-playground.jpg?s=612x612&w=0&k=20&c=t61adus3wsIWU4z2ZuHoPtrPZiLENjzaRp1yahEjERM=') no-repeat center center/cover;
    color: white;
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero .btn {
     width: auto;
     display: inline-block;
    margin-right: 1rem;
    margin-bottom: 1rem;
}

.appointment-form {
     max-width: 500px;
     margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    color: var(--dark-color);
}

.appointment-form h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.appointment-form .form-control,
.appointment-form .form-select {
    padding: 0.75rem 1rem;
    border: 1px solid #e1e5ee;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.appointment-form .form-control:focus,
.appointment-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(44, 123, 229, 0.25);
}

/* ===== Services Section ===== */
.service-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    height: 100%;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: rgba(44, 123, 229, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
    font-size: 2rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary-color);
    color: white;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    margin-bottom: 1.5rem;
}

/* ===== About Section ===== */
.about {
    background-color: var(--light-color);
}

.about img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.about .fa-check-circle {
    color: var(--accent-color);
    font-size: 1.25rem;
    margin-right: 0.5rem;
}
/* Gallery Section */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    padding: 1rem;
    text-align: center;
    color: white;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-caption h5 {
    color: white;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 1.25rem;
}

.gallery-caption p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    font-size: 1rem;
}
/* ===== Testimonials Section ===== */
.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1);
}

.testimonial-card .stars {
    color: #ffc107;
    margin-bottom: 1rem;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.testimonial-card p::before {
    content: '\"';
    position: absolute;
    left: 0;
    top: -0.5rem;
    font-size: 3rem;
    color: rgba(0, 0, 0, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.client-info {
    display: flex;
    align-items: center;
}

.client-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
}

.client-info h5 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.client-info span {
    font-size: 0.875rem;
    color: var(--gray-color);
}

/* ===== Contact Section ===== */
.contact-info {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    height: 100%;
}

.contact-item {
    margin-bottom: 1.5rem;
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(44, 123, 229, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: var(--primary-color);
    font-size: 1.25rem;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-form .form-control,
.contact-form textarea {
    padding: 0.75rem 1rem;
    border: 1px solid #e1e5ee;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.contact-form .form-control:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(44, 123, 229, 0.25);
}

.contact-form textarea {
    min-height: 150px;
}

/* ===== Map Section ===== */
.map-container {
    height: 400px;
    width: 100%;
    position: relative;
}

.map-placeholder {
    background: #f8f9fa;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-color);
    font-style: italic;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 4rem 0 0;
}

.footer-logo {
    height: 70px;
    margin-bottom: 1.5rem;
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.footer h5 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer ul li {
    margin-bottom: 0.75rem;
}

.footer ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    margin-right: 0.75rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.newsletter-form .form-control {
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form .btn-primary {
    height: 50px;
    padding: 0 1.5rem;
}

.footer-bottom {
    padding: 1.5rem 0;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin-bottom: 0;
    font-size: 0.875rem;
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

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

.back-to-top:hover {
    background: #1a5bb9;
    color: white;
    transform: translateY(-3px);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

/* ===== Responsive Styles ===== */
@media (max-width: 1199.98px) {
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 991.98px) {
    section {
        padding: 4rem 0;
    }
    
    .hero {
        padding: 6rem 0 4rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .navbar-collapse {
        background: white;
        padding: 1rem;
        border-radius: var(--border-radius);
        box-shadow: var(--box-shadow);
        margin-top: 1rem;
    }
    
    .navbar-nav .btn {
        margin-left: 0;
        margin-top: 0.5rem;
        display: inline-block;
    }
}

@media (max-width: 767.98px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero {
        text-align: center;
        padding: 5rem 0 3rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero .btn {
        display: inline-block;
        width: auto;
        margin-right: 0;
        margin-bottom: 2rem;
    }
    appointment-form {
        max-width: 100%;
        padding: 1.5rem;
    }
    .section-header h2::after {
        width: 40px;
    }
    
    .about img {
        margin-bottom: 2rem;
    }
    .about > .container > .row > .col-lg-6:last-child > .d-flex {
        flex-direction: column;
    }
    .about .d-flex > div {
        width: 100%;
        margin-right: 0;
    }
    .about .d-flex > div:first-child {
        margin-bottom: 1rem;
    }
    .about .d-flex.align-items-center {
        white-space: nowrap;
    }
    .gallery-item {
        height: 200px;
    }
    .footer {
        text-align: center;
    }
    
    .footer h5::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
        margin-bottom: 2rem;
    }
    
    .footer-bottom {
        text-align: center;
    }
    
    .footer-bottom .col-md-6:last-child {
        margin-top: 1rem;
    }
}

@media (max-width: 575.98px) {
    h1 {
        font-size: 1.75rem;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .appointment-form,
    .contact-form,
    .contact-info {
        padding: 1.5rem;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        bottom: 1rem;
        right: 1rem;
    }
}