/* ========================================
   Aftzoglou Physiotherapy - Custom Styles
   Inspired by CareFirst theme layout
   ======================================== */

/* ---------- Variables ---------- */
:root {
    --primary: #1a6e5e;
    --primary-dark: #134d42;
    --primary-light: #e8f5f1;
    --accent: #c8a45a;
    --dark: #1a1a2e;
    --grey-bg: #f7f8fa;
    --text: #4a4a5a;
    --text-light: #7a7a8a;
    --white: #ffffff;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Sora', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: 'Marcellus', serif;
    color: var(--dark);
    line-height: 1.3;
}

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

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

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

/* ---------- Section Helpers ---------- */
.section-padding {
    padding: 100px 0;
}

.section-grey {
    background-color: var(--grey-bg);
}

.section-header {
    margin-bottom: 50px;
}

.section-tag {
    display: inline-block;
    font-family: 'Sora', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    background-color: var(--primary-light);
    padding: 6px 18px;
    border-radius: 30px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 40px;
    color: var(--dark);
    margin-bottom: 10px;
}

.section-title span {
    color: var(--primary);
}

/* ---------- Buttons ---------- */
.btn-primary-custom {
    background-color: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
    padding: 12px 32px;
    border-radius: 50px;
    font-family: 'Sora', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.btn-primary-custom:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 110, 94, 0.3);
}

.btn-outline-custom {
    background-color: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 12px 32px;
    border-radius: 50px;
    font-family: 'Sora', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.btn-outline-custom:hover {
    background-color: var(--white);
    color: var(--primary);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-outline-custom i {
    margin-right: 8px;
}

/* ---------- Navigation ---------- */
#mainNav {
    padding: 20px 0;
    transition: var(--transition);
    background: transparent;
}

#mainNav.scrolled {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-family: 'Marcellus', serif;
    font-size: 22px;
    color: var(--white);
}

.brand-subtitle {
    font-family: 'Sora', sans-serif;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Sora', sans-serif;
    font-size: 14px;
    font-weight: 400;
    padding: 8px 18px !important;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--white);
}

/* ---------- Hero Section ---------- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: url('../img/about.jpg') center center / cover no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.92) 0%, rgba(26, 110, 94, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 0;
}

.hero-subtitle {
    font-family: 'Sora', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.hero-title {
    font-size: 64px;
    color: var(--white);
    margin-bottom: 8px;
    line-height: 1.1;
}

.hero-credentials {
    font-family: 'Sora', sans-serif;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    letter-spacing: 4px;
    margin-bottom: 20px;
}

.hero-text {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ---------- About Section ---------- */
.about-image-wrapper {
    position: relative;
}

.about-image {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    object-fit: cover;
}

.about-image-accent {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary);
    border-radius: var(--radius);
    z-index: -1;
}

.about-role {
    font-family: 'Sora', sans-serif;
    font-size: 18px;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 30px;
}

.about-credentials {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.credential-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.credential-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 22px;
}

.credential-item h4 {
    font-family: 'Sora', sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.credential-item p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 0;
}

/* ---------- Services Section ---------- */
.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px 32px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 32px;
    transition: var(--transition);
}

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

.service-card h3 {
    font-size: 22px;
    margin-bottom: 14px;
}

.service-card p {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 0;
}

/* ---------- Videos Section ---------- */
.video-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-card h4 {
    font-family: 'Sora', sans-serif;
    font-size: 15px;
    font-weight: 500;
    padding: 18px 20px;
    margin: 0;
    color: var(--dark);
}

/* ---------- Gallery Section ---------- */
.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    aspect-ratio: 1;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-hover);
}

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

.gallery-item:hover .gallery-img {
    transform: scale(1.08);
}

/* ---------- Contact Section ---------- */
.map-wrapper {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 100%;
    min-height: 400px;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.contact-info-box {
    background: var(--grey-bg);
    border-radius: var(--radius);
    padding: 36px 32px;
    height: 100%;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 28px;
}

.contact-item:last-of-type {
    margin-bottom: 24px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
}

.contact-item h4 {
    font-family: 'Sora', sans-serif;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 0;
}

.contact-item p a {
    color: var(--text-light);
}

.contact-item p a:hover {
    color: var(--primary);
}

.contact-social {
    display: flex;
    gap: 12px;
    padding-top: 8px;
}

.contact-social a {
    width: 44px;
    height: 44px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
    transition: var(--transition);
}

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

/* ---------- Footer ---------- */
.main-footer {
    background: var(--dark);
    padding: 24px 0;
}

.footer-copyright {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0;
}

.footer-link {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-link:hover {
    color: var(--white);
}

.footer-divider {
    color: rgba(255, 255, 255, 0.2);
    margin: 0 10px;
}

/* ---------- Cookie Consent ---------- */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--dark);
    padding: 18px 0;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.cookie-consent-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-consent p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.cookie-consent a {
    color: var(--accent);
    text-decoration: underline;
}

/* ---------- Back to Top ---------- */
.back-to-top {
    position: fixed;
    bottom: 80px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 4px 15px rgba(26, 110, 94, 0.3);
}

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

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

/* ---------- Modals ---------- */
.modal-content {
    border: none;
    border-radius: var(--radius);
}

.modal-header {
    border-bottom: 1px solid #eee;
    padding: 20px 28px;
}

.modal-title {
    font-family: 'Marcellus', serif;
    font-size: 24px;
}

.modal-body {
    padding: 28px;
}

.modal-body h6 {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 8px;
    color: var(--dark);
}

.modal-body p, .modal-body li {
    font-size: 14px;
    color: var(--text-light);
}

.modal-footer {
    border-top: 1px solid #eee;
    padding: 16px 28px;
}

/* ---------- Scroll Animations ---------- */
.fade-in-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .section-padding {
        padding: 70px 0;
    }

    .hero-title {
        font-size: 44px;
    }

    .section-title {
        font-size: 32px;
    }

    .navbar-collapse {
        background: rgba(26, 26, 46, 0.98);
        border-radius: var(--radius-sm);
        padding: 20px;
        margin-top: 10px;
    }

    .about-image-accent {
        display: none;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 12px;
        letter-spacing: 2px;
    }

    .hero-credentials {
        font-size: 16px;
    }

    .hero-text {
        font-size: 15px;
    }

    .section-title {
        font-size: 28px;
    }

    .cookie-consent-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-copyright,
    .col-md-6.text-md-end {
        text-align: center !important;
    }

    .footer-copyright {
        margin-bottom: 8px;
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 30px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        text-align: center;
    }

    .service-card {
        padding: 28px 20px;
    }
}
