/*
Theme Name: Roshni
Theme URI: http://example.com/roshni
Author: Antigravity AI
Author URI: http://example.com
Description: Premium healthcare and special education theme for ROSHNI Centre.
Version: 2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: roshni
*/

:root {
    --primary: #0e3b43;
    --primary-soft: #1e5965;
    --secondary: #f0b24f;
    --secondary-deep: #d7962f;
    --accent: #7aa18d;
    --bg: #f7f7f3;
    --paper: #fffcf8;
    --text: #22323a;
    --muted: #55636c;
    --line: #dce4e1;
    --white: #ffffff;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow-sm: 0 8px 24px rgba(14, 59, 67, 0.08);
    --shadow-md: 0 16px 40px rgba(14, 59, 67, 0.12);
    --shadow-lg: 0 30px 60px rgba(14, 59, 67, 0.18);
    --transition: 220ms ease;
}

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

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

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

h1,
h2,
h3,
h4 {
    font-family: 'Merriweather', serif;
    line-height: 1.25;
    letter-spacing: 0.2px;
}

ul {
    list-style: none;
}

input,
textarea,
button {
    font: inherit;
}

.container {
    width: min(1180px, calc(100% - 2.5rem));
    margin: 0 auto;
}

.section {
    padding: 5.2rem 0;
}

.section-title {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 2rem;
}

.section-title h2 {
    color: var(--primary);
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    margin-bottom: 0.65rem;
}

.section-title p {
    color: var(--muted);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 0.82rem 1.35rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary {
    background: var(--secondary);
    color: #1f2f33;
}

.btn-primary:hover {
    background: var(--secondary-deep);
    transform: translateY(-1px);
}

.btn-outline {
    border-color: rgba(255, 255, 255, 0.6);
    color: var(--white);
}

.btn-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.btn-soft {
    border-color: var(--line);
    background: var(--white);
    color: var(--primary);
}

.btn-soft:hover {
    border-color: var(--primary);
}

.card {
    background: var(--white);
    border: 1px solid rgba(14, 59, 67, 0.08);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(14, 59, 67, 0.08);
    backdrop-filter: blur(10px);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 74px;
}

.site-logo-img {
    max-height: 56px;
    width: auto;
}

.nav-menu ul {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.nav-menu a {
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.15rem;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    cursor: pointer;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
}

/* Hero */
.hero-main {
    position: relative;
    color: var(--white);
    overflow: hidden;
}

.hero-carousel {
    min-height: 620px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 8.4rem 0 7rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-slide-education {
    background-image: linear-gradient(rgba(9, 42, 64, 0.76), rgba(9, 42, 64, 0.76)), url('https://images.unsplash.com/photo-1509062522246-3755977927d7?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
}

.hero-slide-dental {
    background-image: linear-gradient(rgba(11, 51, 39, 0.72), rgba(11, 51, 39, 0.72)), url('https://images.unsplash.com/photo-1609840112855-9a32fc2dbf8f?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
}

.hero-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    z-index: 3;
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 1.2rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.hero-carousel-prev {
    left: 18px;
}

.hero-carousel-next {
    right: 18px;
}

.hero-carousel-nav:hover {
    background: rgba(255, 255, 255, 0.36);
}

.hero-carousel-dots {
    position: absolute;
    left: 50%;
    bottom: 1.5rem;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 3;
}

.hero-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.44);
    transition: var(--transition);
}

.hero-carousel-dot.is-active {
    width: 26px;
    background: #fff;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.2rem;
    align-items: center;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 0.9rem;
}

.hero-content p {
    font-size: clamp(1rem, 2.2vw, 1.28rem);
    max-width: 700px;
    margin-bottom: 1.4rem;
    opacity: 0.95;
}

.hero-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
    margin-bottom: 0.9rem;
    font-size: 0.9rem;
}

.hero-panel {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: var(--radius);
    padding: 1.2rem;
    backdrop-filter: blur(6px);
}

.hero-panel p {
    margin: 0;
    font-size: 0.95rem;
}

/* Welcome */
.welcome-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    align-items: stretch;
}

.welcome-copy {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.welcome-copy h2 {
    color: var(--primary);
    margin-bottom: 0.7rem;
}

.welcome-copy p {
    color: var(--muted);
    margin-bottom: 0.9rem;
}

.welcome-image {
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 360px;
    box-shadow: var(--shadow-md);
}

.welcome-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.2rem;
}

.stat {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 1rem;
}

.stat strong {
    display: block;
    color: var(--primary);
    font-size: 1.4rem;
    font-family: 'Merriweather', serif;
}

.stat span {
    color: var(--muted);
    font-size: 0.92rem;
}

/* Service grid */
.service-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1rem;
}

.service-card {
    grid-column: span 4;
    padding: 1.35rem;
    transition: var(--transition);
}

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

.service-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(14, 59, 67, 0.09);
    color: var(--primary);
    margin-bottom: 0.85rem;
}

.service-card h3 {
    color: var(--primary);
    font-size: 1.18rem;
    margin-bottom: 0.45rem;
}

.service-card p {
    color: var(--muted);
    margin-bottom: 0.9rem;
}

.service-card a {
    color: var(--primary-soft);
    font-weight: 600;
}

/* Trust strip */
.trust-strip {
    background: linear-gradient(130deg, #123b43 0%, #1c5c68 100%);
    color: #e6f3f1;
    border-radius: var(--radius);
    padding: 2rem;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1rem;
    align-items: center;
}

.trust-strip h3 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.trust-strip ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem 1rem;
}

.trust-strip li {
    position: relative;
    padding-left: 1rem;
}

.trust-strip li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--secondary);
}

/* Testimonials */
.testimonial-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.testimonial-card {
    padding: 1.3rem;
}

.testimonial-card p {
    color: var(--muted);
    margin-bottom: 0.9rem;
}

.testimonial-card strong {
    color: var(--primary);
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
}

.gallery-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

/* Blog preview */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.blog-card {
    overflow: hidden;
}

.blog-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.blog-card-body {
    padding: 1.1rem;
}

.blog-card-body h3 {
    color: var(--primary);
    font-size: 1.15rem;
    margin-bottom: 0.55rem;
}

.blog-card-body p {
    color: var(--muted);
    margin-bottom: 0.8rem;
}

/* Page hero */
.page-hero {
    color: var(--white);
    text-align: center;
    background-size: cover;
    background-position: center;
    padding: 5rem 0;
    position: relative;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 36, 44, 0.55);
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    font-size: clamp(1.9rem, 4vw, 3.2rem);
    margin-bottom: 0.55rem;
}

.page-hero p {
    max-width: 820px;
    margin: 0 auto;
    opacity: 0.95;
}

/* Generic content */
.page-content-shell {
    max-width: 980px;
    margin: 2rem auto 0;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    padding: 2rem;
}

.page-content-shell p,
.page-content-shell li,
.ro-single-content p,
.ro-single-content li {
    color: var(--muted);
    line-height: 1.8;
}

.page-content-shell ul,
.ro-single-content ul {
    list-style: disc;
    padding-left: 1.1rem;
}

/* Service directory/detail */
.ro-service-directory {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.ro-service-link-card {
    padding: 1.2rem;
}

.ro-service-link-card h3 {
    color: var(--primary);
    margin-bottom: 0.45rem;
    font-size: 1.1rem;
}

.ro-service-link-card p {
    color: var(--muted);
    margin-bottom: 0.8rem;
}

.ro-detail-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1rem;
}

.ro-detail-box {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
}

.ro-detail-box h2 {
    color: var(--primary);
    margin-bottom: 0.6rem;
    font-size: 1.35rem;
}

.ro-detail-box ul {
    list-style: disc;
    padding-left: 1.1rem;
}

.ro-detail-box li {
    color: var(--muted);
    margin-bottom: 0.35rem;
}

/* About */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.team-card img {
    height: 240px;
    object-fit: cover;
    width: 100%;
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
}

.team-card .team-body {
    padding: 1rem;
}

.team-card h3 {
    color: var(--primary);
    margin-bottom: 0.35rem;
}

.team-card p {
    color: var(--muted);
    font-size: 0.95rem;
}

/* Contact */
.contact-layout {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 1rem;
}

.contact-card {
    padding: 1.4rem;
}

.contact-card h3 {
    color: var(--primary);
    margin-bottom: 0.6rem;
}

.contact-list li {
    margin-bottom: 0.65rem;
    color: var(--muted);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.form-field {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.75rem 0.85rem;
    background: #fff;
}

.form-field:focus {
    outline: 2px solid rgba(30, 89, 101, 0.18);
    border-color: var(--primary-soft);
}

.map-shell {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.map-shell iframe {
    width: 100%;
    height: 320px;
    border: 0;
}

/* Footer */
.site-footer {
    margin-top: 3rem;
    background: #0f2f36;
    color: #d2e5e2;
    padding: 3rem 0 1.6rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
    gap: 1.2rem;
}

.site-footer h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 0.7rem;
}

.site-footer p,
.site-footer li,
.site-footer a {
    color: #d2e5e2;
    font-size: 0.94rem;
}

.site-footer li {
    margin-bottom: 0.35rem;
}

.site-footer a:hover {
    color: #fff;
}

.footer-bottom {
    margin-top: 1.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 1rem;
    text-align: center;
    font-size: 0.86rem;
}

/* Utilities */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 1080px) {
    .service-card {
        grid-column: span 6;
    }

    .blog-grid,
    .team-grid,
    .testimonial-row,
    .ro-service-directory {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .trust-strip,
    .hero-grid,
    .welcome-grid,
    .contact-layout,
    .ro-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(1180px, calc(100% - 1.4rem));
    }

    .section {
        padding: 3.8rem 0;
    }

    .site-logo-img {
        max-height: 44px;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .nav-menu {
        width: 100%;
        display: none;
    }

    .nav-menu.is-open {
        display: block;
        padding-bottom: 0.75rem;
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.55rem;
    }

    .hero-main {
        min-height: 0;
    }

    .hero-slide {
        padding: 6.6rem 0 5.5rem;
    }

    .hero-carousel-nav {
        top: auto;
        bottom: 1.2rem;
        transform: none;
    }

    .hero-carousel-prev {
        left: 1rem;
    }

    .hero-carousel-next {
        right: 1rem;
    }

    .hero-carousel-dots {
        bottom: 2.1rem;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .stats,
    .form-grid,
    .grid-2,
    .grid-3,
    .blog-grid,
    .team-grid,
    .testimonial-row,
    .ro-service-directory,
    .gallery-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        grid-column: span 12;
    }

    .page-content-shell {
        padding: 1.35rem;
    }
}
