/* =========================================================
   DR. M.D.S. SASIDHARAN
   SPINE SURGEON LOCATION PAGE
   service.css
========================================================= */

/* ---------------------------------------------------------
   ROOT
--------------------------------------------------------- */

:root {
    --primary: #1769aa;
    --primary-dark: #0d4f82;
    --primary-light: #eaf6ff;

    --secondary: #16a6a1;
    --accent: #38bdf8;

    --dark: #102a43;
    --text: #486581;
    --muted: #829ab1;

    --white: #ffffff;
    --light: #f7fbfe;
    --border: #d9e7f0;

    --shadow-sm: 0 5px 20px rgba(16, 42, 67, 0.08);
    --shadow-md: 0 15px 45px rgba(16, 42, 67, 0.12);
    --shadow-lg: 0 25px 70px rgba(16, 42, 67, 0.16);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 25px;

    --container: 1200px;

    --transition: all 0.35s ease;
}


/* ---------------------------------------------------------
   GLOBAL
--------------------------------------------------------- */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Inter", "Poppins", Arial, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
}

main {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

button,
input,
select,
textarea {
    font-family: inherit;
}

.container {
    width: min(100% - 40px, var(--container));
    margin: 0 auto;
}

.section-padding {
    padding: 90px 0;
}


/* ---------------------------------------------------------
   SECTION HEADING
--------------------------------------------------------- */

.section-heading {
    max-width: 760px;
    margin: 0 auto 55px;
    text-align: center;
}

.section-heading > span {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.section-heading h2 {
    margin: 0 0 16px;
    color: var(--dark);
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.2;
    font-weight: 800;
}

.section-heading p {
    margin: 0;
    color: var(--text);
    font-size: 17px;
}


/* ---------------------------------------------------------
   BUTTONS
--------------------------------------------------------- */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 54px;
    padding: 14px 28px;

    border: 0;
    border-radius: 50px;

    background: linear-gradient(
        135deg,
        var(--primary),
        var(--primary-dark)
    );

    color: var(--white);
    font-size: 15px;
    font-weight: 700;

    box-shadow: 0 10px 25px rgba(23, 105, 170, 0.25);

    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(23, 105, 170, 0.35);
    color: var(--white);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 54px;
    padding: 14px 28px;

    border: 2px solid var(--white);
    border-radius: 50px;

    color: var(--white);
    font-size: 15px;
    font-weight: 700;

    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-3px);
}


/* =========================================================
   HERO
========================================================= */

.location-hero {
    position: relative;
    min-height: 620px;

    display: flex;
    align-items: center;

    background:
        linear-gradient(
            90deg,
            rgba(5, 35, 60, 0.92) 0%,
            rgba(10, 65, 100, 0.78) 48%,
            rgba(10, 65, 100, 0.45) 100%
        ),
        url("../images/speciality.jpg") center center / cover no-repeat;

    overflow: hidden;
}

.location-hero::before {
    content: "";
    position: absolute;

    width: 420px;
    height: 420px;

    right: -150px;
    top: -130px;

    border: 70px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;

    animation: heroFloat 7s ease-in-out infinite;
}

.location-hero::after {
    content: "";
    position: absolute;

    width: 300px;
    height: 300px;

    right: 10%;
    bottom: -220px;

    background: rgba(56, 189, 248, 0.13);
    border-radius: 50%;

    filter: blur(5px);
}

.hero-content {
    position: relative;
    z-index: 2;

    max-width: 780px;

    padding: 100px 0;
}

.hero-label {
    display: inline-flex;
    align-items: center;

    margin-bottom: 20px;
    padding: 8px 17px;

    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;

    background: rgba(255, 255, 255, 0.1);

    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;

    backdrop-filter: blur(10px);
}

.hero-content h1 {
    margin: 0 0 25px;

    color: #ffffff;

    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.1;
    font-weight: 800;

    letter-spacing: -1px;
}

.hero-content p {
    max-width: 700px;

    margin: 0 0 32px;

    color: rgba(255, 255, 255, 0.9);

    font-size: 18px;
    line-height: 1.8;
}


/* ---------------------------------------------------------
   HERO ANIMATION
--------------------------------------------------------- */

@keyframes heroFloat {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(20px) rotate(8deg);
    }
}


/* =========================================================
   ABOUT DOCTOR
========================================================= */

.about-doctor {
    background: var(--white);
}

.doctor-content {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    align-items: center;
    gap: 70px;
}

.doctor-image {
    position: relative;
}

.doctor-image::before {
    content: "";

    position: absolute;

    width: 100%;
    height: 100%;

    top: 20px;
    left: 20px;

    border-radius: var(--radius-lg);

    background: linear-gradient(
        135deg,
        var(--primary),
        var(--secondary)
    );

    z-index: 0;
}

.doctor-image img {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 470px;

    margin: 0 auto;

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-lg);

    object-fit: cover;
}

.doctor-text {
    position: relative;
}

.doctor-text::before {
    content: "DR";

    position: absolute;

    right: 0;
    top: -70px;

    color: rgba(23, 105, 170, 0.05);

    font-size: 130px;
    font-weight: 900;

    line-height: 1;
}

.doctor-text p {
    margin: 0 0 20px;

    color: var(--text);

    font-size: 17px;
    line-height: 1.85;
}

.doctor-text p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   CONSULTATION
========================================================= */

.consultation-section {
    position: relative;

    padding: 100px 0;

    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(56, 189, 248, 0.15),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #eef9ff,
            #f8fcff
        );
}

.consultation-box {
    max-width: 800px;

    margin: 0 auto;
    padding: 45px;

    background: var(--white);

    border: 1px solid rgba(23, 105, 170, 0.1);
    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-lg);
}

.consultation-box h3 {
    margin: 0 0 30px;

    color: var(--dark);

    font-size: 27px;
    line-height: 1.3;
}

.consultation-box form {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 22px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;

    color: var(--dark);

    font-size: 14px;
    font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;

    min-height: 52px;

    padding: 13px 16px;

    border: 1px solid var(--border);
    border-radius: 10px;

    outline: none;

    background: #fbfdff;

    color: var(--dark);

    font-size: 15px;

    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);

    background: var(--white);

    box-shadow:
        0 0 0 4px rgba(23, 105, 170, 0.08);
}

.consultation-box form .btn-primary {
    grid-column: 1 / -1;

    width: 100%;
    margin-top: 5px;
}


/* =========================================================
   CONDITIONS
========================================================= */

.conditions-section {
    background: var(--white);
}

.conditions-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 18px;
}

.condition-item {
    position: relative;

    display: flex;
    align-items: center;
    gap: 15px;

    min-height: 85px;

    padding: 18px 20px;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    background: var(--white);

    box-shadow: var(--shadow-sm);

    transition: var(--transition);
}

.condition-item span {
    flex: 0 0 38px;

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--primary-light);

    color: var(--primary);

    font-size: 17px;
    font-weight: 800;
}

.condition-item h3 {
    margin: 0;

    color: var(--dark);

    font-size: 15px;
    line-height: 1.4;
}

.condition-item:hover {
    transform: translateY(-5px);

    border-color: rgba(23, 105, 170, 0.3);

    box-shadow: var(--shadow-md);
}


/* =========================================================
   WHY CHOOSE
========================================================= */

.why-choose {
    background: #f5faff;
}

.why-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 22px;
}

.why-item {
    min-height: 190px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 30px 20px;

    text-align: center;

    border: 1px solid rgba(23, 105, 170, 0.1);
    border-radius: var(--radius-lg);

    background: var(--white);

    box-shadow: var(--shadow-sm);

    transition: var(--transition);
}

.why-item strong {
    margin-bottom: 10px;

    color: var(--primary);

    font-size: 32px;
    line-height: 1.2;
    font-weight: 800;
}

.why-item span {
    color: var(--text);

    font-size: 14px;
    line-height: 1.5;
}

.why-item:hover {
    transform: translateY(-8px);

    box-shadow: var(--shadow-md);
}


/* =========================================================
   ARTICLES
========================================================= */

.articles-section {
    background: var(--white);
}

.articles-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 28px;

    margin-bottom: 45px;
}

.article-card {
    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    background: var(--white);

    box-shadow: var(--shadow-sm);

    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-8px);

    box-shadow: var(--shadow-md);
}

.article-card > img {
    width: 100%;
    height: 230px;

    object-fit: cover;

    transition: transform 0.5s ease;
}

.article-card:hover > img {
    transform: scale(1.05);
}

.article-content {
    padding: 25px;
}

.article-content h3 {
    margin: 0 0 15px;

    color: var(--dark);

    font-size: 20px;
    line-height: 1.4;
}

.article-content a {
    color: var(--primary);

    font-size: 14px;
    font-weight: 700;
}

.article-content a:hover {
    color: var(--primary-dark);
}

.text-center {
    text-align: center;
}


/* =========================================================
   LOCATIONS
========================================================= */

.locations-section {
    background: #f5faff;
}

.locations-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 15px;
}

.location-item {
    position: relative;

    display: flex;
    align-items: center;

    min-height: 58px;

    padding: 14px 18px 14px 45px;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: var(--white);

    color: var(--dark);

    font-size: 15px;
    font-weight: 600;

    box-shadow: 0 4px 15px rgba(16, 42, 67, 0.04);

    transition: var(--transition);
}

.location-item::before {
    content: "⌖";

    position: absolute;

    left: 17px;

    color: var(--primary);

    font-size: 20px;
}

.location-item:hover {
    transform: translateY(-4px);

    border-color: var(--primary);

    background: var(--primary);

    color: var(--white);
}

.location-item:hover::before {
    color: var(--white);
}


/* =========================================================
   FAQ
========================================================= */

.faq-section {
    background: var(--white);
}

.faq-wrapper {
    max-width: 900px;

    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;

    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: var(--white);

    box-shadow: 0 4px 15px rgba(16, 42, 67, 0.04);
}

.faq-question {
    position: relative;

    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 22px 25px;

    border: 0;

    background: var(--white);

    color: var(--dark);

    text-align: left;

    font-size: 16px;
    font-weight: 700;

    cursor: pointer;

    transition: var(--transition);
}

.faq-question span {
    flex: 0 0 32px;

    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--primary-light);

    color: var(--primary);

    font-size: 22px;

    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-answer {
    max-height: 0;

    overflow: hidden;

    padding: 0 25px;

    transition:
        max-height 0.4s ease,
        padding 0.4s ease;
}

.faq-answer p {
    margin: 0;

    color: var(--text);

    font-size: 15px;
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    max-height: 300px;

    padding-bottom: 25px;
}

.faq-item.active .faq-question span {
    transform: rotate(45deg);

    background: var(--primary);

    color: var(--white);
}


/* =========================================================
   FINAL CTA
========================================================= */

.final-cta {
    position: relative;

    padding: 90px 0;

    background:
        linear-gradient(
            135deg,
            rgba(13, 79, 130, 0.98),
            rgba(23, 105, 170, 0.95)
        );

    text-align: center;

    overflow: hidden;
}

.final-cta::before {
    content: "";

    position: absolute;

    width: 350px;
    height: 350px;

    left: -150px;
    top: -180px;

    border: 70px solid rgba(255, 255, 255, 0.06);

    border-radius: 50%;
}

.final-cta::after {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    right: -120px;
    bottom: -180px;

    background: rgba(56, 189, 248, 0.1);

    border-radius: 50%;
}

.final-cta .container {
    position: relative;
    z-index: 2;
}

.final-cta h2 {
    max-width: 900px;

    margin: 0 auto 20px;

    color: var(--white);

    font-size: clamp(28px, 4vw, 46px);

    line-height: 1.25;
}

.final-cta p {
    max-width: 800px;

    margin: 0 auto 30px;

    color: rgba(255, 255, 255, 0.85);

    font-size: 17px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 15px;

    flex-wrap: wrap;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {

    .doctor-content {
        gap: 45px;
    }

    .conditions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .locations-grid {
        grid-template-columns: repeat(3, 1fr);
    }

}


@media (max-width: 900px) {

    .section-padding {
        padding: 70px 0;
    }

    .location-hero {
        min-height: 560px;
    }

    .hero-content {
        padding: 80px 0;
    }

    .doctor-content {
        grid-template-columns: 1fr;
    }

    .doctor-image {
        max-width: 500px;
        margin: 0 auto;
    }

    .doctor-text {
        text-align: center;
    }

    .doctor-text::before {
        display: none;
    }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .locations-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 650px) {

    .container {
        width: min(100% - 28px, var(--container));
    }

    .section-padding {
        padding: 55px 0;
    }

    .section-heading {
        margin-bottom: 35px;
    }

    .section-heading h2 {
        font-size: 30px;
    }

    .section-heading p {
        font-size: 15px;
    }

    .location-hero {
        min-height: 560px;

        background-position: 60% center;
    }

    .hero-content {
        padding: 65px 0;
    }

    .hero-content h1 {
        font-size: 38px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
    }

    .consultation-box {
        padding: 25px 20px;
    }

    .consultation-box form {
        grid-template-columns: 1fr;
    }

    .conditions-grid {
        grid-template-columns: 1fr;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .locations-grid {
        grid-template-columns: 1fr;
    }

    .final-cta {
        padding: 65px 0;
    }

    .final-cta h2 {
        font-size: 29px;
    }

    .final-cta p {
        font-size: 15px;
    }

    .cta-buttons {
        flex-direction: column;
    }

}


@media (max-width: 400px) {

    .hero-content h1 {
        font-size: 32px;
    }

    .section-heading h2 {
        font-size: 27px;
    }

    .condition-item {
        padding: 15px;
    }

    .condition-item h3 {
        font-size: 14px;
    }

    .faq-question {
        padding: 18px;
        font-size: 14px;
    }

}


/* =========================================================
   ACCESSIBILITY
========================================================= */

:focus-visible {
    outline: 3px solid rgba(56, 189, 248, 0.55);
    outline-offset: 3px;
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

}