/*
 * Deepak Jain — site styles.
 *
 * Layered on top of Bootstrap 5.3. The palette keeps the teal the original site
 * used (#70b9b0) but sets it once here rather than inline on every element.
 */

:root {
    --brand:        #4a9d94;
    --brand-dark:   #2f7f77;
    --brand-light:  #70b9b0;
    --brand-tint:   #f2f9f8;

    --ink:          #232b2b;
    --ink-muted:    #5c6a6a;
    --rule:         #e2eae9;

    --bs-body-color:      var(--ink);
    --bs-body-font-family: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --bs-link-color:      var(--brand-dark);
    --bs-link-hover-color: var(--brand);
}

body {
    color: var(--ink);
    font-family: var(--bs-body-font-family);
    line-height: 1.75;
}

h1, h2, h3, h4, h5, h6 {
    font-family: Lato, system-ui, sans-serif;
    font-weight: 700;
    line-height: 1.3;
}

.skip-link {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 2000;
    padding: 0.5rem 1rem;
    background: #fff;
    border-radius: 0.35rem;
}

/* ---------------------------------------------------------------- navbar -- */

.site-nav {
    background: rgba(20, 32, 32, 0.92);
    backdrop-filter: blur(8px);
    transition: background 0.25s ease, padding 0.25s ease;
    padding-block: 0.75rem;
}

.site-nav.is-scrolled {
    background: rgba(20, 32, 32, 0.98);
    padding-block: 0.35rem;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}

.site-nav .navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: Lato, sans-serif;
    font-weight: 900;
    letter-spacing: 0.02em;
    color: #fff;
}

.site-nav .nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.82);
}

.site-nav .nav-link:hover,
.site-nav .nav-link:focus,
.site-nav .nav-link.active {
    color: var(--brand-light);
}

.site-nav .dropdown-menu {
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    padding-block: 0.5rem;
    max-height: min(70vh, 34rem);
    overflow-y: auto;
}

.site-nav .dropdown-header {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-dark);
}

.site-nav .dropdown-item:active {
    background: var(--brand);
}

/* ------------------------------------------------------------------ hero -- */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding-top: 5rem;
    background: #1c2626 url('../img/hero.jpg') center / cover no-repeat;
    color: #fff;
    text-align: center;
}

.hero-compact {
    min-height: 52vh;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.63);
}

.hero-inner {
    position: relative;
}

.hero h1 {
    font-size: clamp(2.25rem, 6vw, 3.75rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hero-sub {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
}

.btn-hero {
    --bs-btn-color: #fff;
    --bs-btn-border-color: #fff;
    --bs-btn-hover-bg: var(--brand);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-border-color: var(--brand);
    border-width: 2px;
    border-radius: 3rem;
    padding: 0.7rem 2.25rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* --------------------------------------------------------------- sections -- */

.section {
    padding-block: clamp(3rem, 7vw, 5.5rem);
}

.section-tint {
    background: var(--brand-tint);
}

.section-title {
    max-width: 46rem;
    margin: 0 auto 3rem;
    text-align: center;
}

.section-title h2 {
    position: relative;
    display: inline-block;
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 3.5rem;
    height: 3px;
    background: var(--brand);
    transform: translateX(-50%);
}

.section-title p {
    color: var(--ink-muted);
    margin-bottom: 0;
}

/* ------------------------------------------------------------------ prose -- */

.prose p:last-child,
.prose ul:last-child,
.prose ol:last-child {
    margin-bottom: 0;
}

.prose ul,
.prose ol {
    padding-left: 1.25rem;
}

.prose li {
    margin-bottom: 0.4rem;
}

.lead-quote {
    font-style: italic;
    font-weight: 600;
    color: var(--brand-dark);
    border-left: 3px solid var(--brand-light);
    padding-left: 1rem;
    margin-block: 1.5rem;
}

.ticked {
    list-style: none;
    padding-left: 0;
}

.ticked li {
    position: relative;
    padding-left: 1.9rem;
    margin-bottom: 0.6rem;
}

.ticked li::before {
    content: '\F26E';    /* bi-check-circle-fill */
    font-family: 'bootstrap-icons';
    position: absolute;
    left: 0;
    color: var(--brand);
}

/* -------------------------------------------------------------- accordion -- */

.content-accordion {
    --bs-accordion-border-color: var(--rule);
    --bs-accordion-btn-focus-box-shadow: 0 0 0 0.2rem rgba(74, 157, 148, 0.25);
    --bs-accordion-active-color: var(--brand-dark);
    --bs-accordion-active-bg: transparent;
    max-width: 62rem;
    margin-inline: auto;
}

.content-accordion .accordion-item {
    background: #fff;
    border: 1px solid var(--rule);
    border-radius: 0.6rem !important;
    margin-bottom: 0.85rem;
    overflow: hidden;
}

.content-accordion .accordion-button {
    font-family: Lato, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 1.1rem 1.25rem;
}

.content-accordion .accordion-button:not(.collapsed) {
    box-shadow: none;
    border-bottom: 1px solid var(--rule);
}

.content-accordion .accordion-button::after {
    --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%235c6a6a'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232f7f77'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-icon {
    flex: 0 0 auto;
    width: 2.25rem;
    height: 2.25rem;
    margin-right: 0.85rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--brand-tint);
    color: var(--brand-dark);
    font-size: 1.1rem;
}

.accordion-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

/* ---------------------------------------------------------- court listing -- */

.complex-card {
    background: #fff;
    border: 1px solid var(--rule);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.complex-card:hover {
    box-shadow: 0 10px 30px rgba(31, 74, 70, 0.1);
    transform: translateY(-2px);
}

.complex-card h3 {
    font-size: 1.1rem;
    color: var(--brand-dark);
    margin-bottom: 1rem;
}

.complex-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.complex-card li + li {
    border-top: 1px dashed var(--rule);
}

.complex-card a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.55rem 0;
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
}

.complex-card a:hover {
    color: var(--brand-dark);
}

.complex-card a .bi {
    color: var(--brand);
    font-size: 0.8rem;
}

.directory-head {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1.25rem;
    margin-bottom: 1.75rem;
    border-bottom: 2px solid var(--rule);
}

.directory-filter {
    min-width: min(22rem, 100%);
}

.directory-filter .input-group-text {
    background: #fff;
    border-right: 0;
    color: var(--ink-muted);
}

.directory-filter .form-control {
    border-left: 0;
}

.directory-filter .form-control:focus {
    border-color: var(--brand-light);
    box-shadow: none;
}

.bench-card {
    background: #fff;
    border: 1px solid var(--rule);
    border-radius: 0.75rem;
    padding: 1.25rem 1.35rem 1rem;
}

.bench-title {
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    color: var(--brand-dark);
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 2px solid var(--brand-tint);
}

.bench-table {
    --bs-table-border-color: var(--rule);
    font-size: 0.94rem;
    margin-bottom: 0;
}

.bench-table thead th {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--ink-muted);
    border-bottom-width: 1px;
}

.bench-table tbody tr:last-child th,
.bench-table tbody tr:last-child td {
    border-bottom: 0;
}

.breadcrumb {
    --bs-breadcrumb-divider-color: var(--ink-muted);
    font-size: 0.9rem;
}

/* ---------------------------------------------------------------- contact -- */

.contact-card {
    background: #fff;
    border: 1px solid var(--rule);
    border-radius: 0.75rem;
    padding: 1.75rem;
}

.contact-line {
    display: flex;
    gap: 0.9rem;
    margin-bottom: 1.1rem;
}

.contact-line .bi {
    flex: 0 0 auto;
    width: 2.25rem;
    height: 2.25rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--brand-tint);
    color: var(--brand-dark);
}

.contact-line a {
    color: var(--ink);
    text-decoration: none;
}

.contact-line a:hover {
    color: var(--brand-dark);
    text-decoration: underline;
}

.contact-form .form-control:focus {
    border-color: var(--brand-light);
    box-shadow: 0 0 0 0.2rem rgba(74, 157, 148, 0.2);
}

.contact-form .form-label {
    font-weight: 600;
    font-size: 0.9rem;
}

/* The honeypot must be reachable by a bot parsing the HTML but invisible and
   unfocusable for a person — so it is moved off-screen, not display:none. */
.hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.btn-brand {
    --bs-btn-bg: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-color: #fff;
    --bs-btn-hover-bg: var(--brand-dark);
    --bs-btn-hover-border-color: var(--brand-dark);
    --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: var(--brand-dark);
    --bs-btn-active-border-color: var(--brand-dark);
    --bs-btn-focus-shadow-rgb: 74, 157, 148;
    border-radius: 3rem;
    padding: 0.6rem 1.75rem;
    font-weight: 600;
}

/* ----------------------------------------------------------------- footer -- */

.site-footer {
    background: #1c2626;
    color: rgba(255, 255, 255, 0.72);
    padding-block: 3.5rem 1.5rem;
}

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

.site-footer h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--brand-light);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.4rem;
}

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

/* ----------------------------------------------------------- back to top -- */

.back-to-top {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 900;
    width: 2.75rem;
    height: 2.75rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease, background 0.2s ease;
}

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

.back-to-top:hover {
    background: var(--brand-dark);
    color: #fff;
}

/* ---------------------------------------------------------------- motion -- */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ----------------------------------------------------------------- print -- */

@media print {
    .site-nav,
    .hero,
    .back-to-top,
    .directory-filter,
    #contact {
        display: none !important;
    }

    .section {
        padding-block: 0;
    }

    .bench-card {
        break-inside: avoid;
    }
}
