/* jDent - Dental Practice Management Software */
:root {
    /* Palette sampled from the jDent app UI (assets/images/app/*) */
    --primary: #0D9488;        /* app primary CTA (teal-600) */
    --primary-dark: #0B7268;   /* hover / gradient end */
    --secondary: #6B7280;      /* neutral grey */
    --accent: #14B8A6;         /* app teal accent */
    --dark: #093239;           /* app sidebar dark teal */
    --dark-2: #0F6965;         /* app banner gradient end */
    --light-bg: #F9FAFB;       /* app page background */
}



body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #333;
    line-height: 1.7;
}

/* Hero */
.hero-section {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
    color: #fff;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}
.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(20,184,166,0.20) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-section h1 {
    font-size: 2.8rem;
    line-height: 1.2;
}
.hero-section .lead {
    font-size: 1.15rem;
    opacity: 0.9;
}

/* Section */
.section-padding {
    padding: 80px 0;
}
.section-title {
    font-weight: 700;
    margin-bottom: 1rem;
}
.section-subtitle {
    color: var(--secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Feature Cards */
.feature-card {
    border: none;
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    background: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
/* Accent colours match the app's quick-action buttons */
.feature-icon.blue { background: rgba(0,166,244,0.12); color: #00A6F4; }
.feature-icon.green { background: rgba(0,188,125,0.12); color: #00BC7D; }
.feature-icon.purple { background: rgba(142,81,255,0.12); color: #8E51FF; }
.feature-icon.orange { background: rgba(254,154,0,0.12); color: #FE9A00; }
.feature-icon.red { background: rgba(244,63,94,0.12); color: #F43F5E; }
.feature-icon.teal { background: rgba(20,184,166,0.12); color: var(--accent); }

/* Stats */
.stat-box {
    text-align: center;
    padding: 2rem 1rem;
}
.stat-box h3 {
    font-size: 2.5rem;
    color: var(--primary);
}

/* CTA */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
    color: #fff;
    padding: 60px 0;
}

/* Pricing */
.pricing-card {
    border: 2px solid #e9ecef;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    transition: all 0.3s ease;
    background: #fff;
    height: 100%;
}
.pricing-card:hover,
.pricing-card.popular {
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(13,148,136,0.18);
}
.pricing-card.popular {
    position: relative;
}
/* Features not included in a plan: light text + strikethrough */
.pricing-card .plan-feature-off {
    color: #adb5bd;
}
.pricing-card .plan-feature-off i {
    color: #ced4da;
}
.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    padding: 4px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}
.price-amount {
    font-size: 2.5rem;
    color: var(--dark);
}

/* Testimonials */
.testimonial-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    height: 100%;
}

/* City Page */
.city-hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
    color: #fff;
    padding: 80px 0 60px;
}

/* FAQ */
.accordion-button:not(.collapsed) {
    background-color: rgba(13,148,136,0.07);
    color: var(--primary);
}

/* Navbar */
.navbar .nav-link.active {
    color: var(--primary) !important;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0 50px;
    }
    .hero-section h1 {
        font-size: 2rem;
    }
    .section-padding {
        padding: 50px 0;
    }
}

/* Scroll animation helper */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   Bootstrap palette override  align framework components with
   the jDent app UI (teal), instead of Bootstrap's default blue.
   style.css loads after bootstrap.min.css, so these win.
   ============================================================ */
:root {
    --bs-primary: #0D9488;
    --bs-primary-rgb: 13, 148, 136;
    --bs-link-color: #0D9488;
    --bs-link-hover-color: #0B7268;
    --bs-link-color-rgb: 13, 148, 136;
}

.btn-primary {
    --bs-btn-bg: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-bg: var(--primary-dark);
    --bs-btn-hover-border-color: var(--primary-dark);
    --bs-btn-active-bg: var(--primary-dark);
    --bs-btn-active-border-color: var(--primary-dark);
    --bs-btn-disabled-bg: var(--primary);
    --bs-btn-disabled-border-color: var(--primary);
}
.btn-outline-primary {
    --bs-btn-color: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-bg: var(--primary);
    --bs-btn-hover-border-color: var(--primary);
    --bs-btn-active-bg: var(--primary);
    --bs-btn-active-border-color: var(--primary);
}
.btn-success {
    --bs-btn-bg: #00BC7D;
    --bs-btn-border-color: #00BC7D;
    --bs-btn-hover-bg: #039E6B;
    --bs-btn-hover-border-color: #039E6B;
}
.text-primary { color: var(--primary) !important; }
.bg-primary   { background-color: var(--primary) !important; }
.border-primary { border-color: var(--primary) !important; }
.link-primary, a.text-primary:hover { color: var(--primary-dark) !important; }

/* Focus ring in brand colour */
.form-control:focus,
.form-select:focus,
.btn:focus-visible {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(20,184,166,0.25);
}

/* Accordion chevron + active state */
.accordion-button:not(.collapsed)::after {
    filter: hue-rotate(140deg) saturate(1.4);
}

/* Tables (comparison blocks)  subtle brand header */
.table > thead.table-light th {
    background-color: #ECFDF8;
    color: #0B4A45;
    border-bottom-color: rgba(13,148,136,0.25);
}

/* Brand lock-up: tagline vertically centred against the jDent wordmark */
.navbar-brand.d-inline-flex { white-space: nowrap; }
.brand-tagline {
    font-size: 14px;
    font-weight: 400;
    color: #959595;
    line-height: 1;
    display: inline-block;
    white-space: nowrap;
}
.brand-tagline-dark { color: rgb(203,203,203); }
@media (max-width: 575.98px) {
    /* Drop the tagline on very small screens so the logo never wraps */
    .navbar-brand .brand-tagline { display: none; }
}

/* Stacked brand lock-up: wordmark above, tagline directly below */
.navbar-brand.flex-column { line-height: 1.2; padding-top: .3rem; padding-bottom: .3rem; }
.navbar-brand.flex-column .fs-4 { letter-spacing: -.01em; line-height: 1.1; }
.navbar-brand.flex-column .brand-tagline {
    margin-top: 8px;      /* breathing room between wordmark and tagline */
    font-size: 12.5px;
    line-height: 1.2;
    letter-spacing: .01em;
    opacity: .85;
}
/* Footer brand gets the same stacked spacing */
footer h5.d-flex { flex-direction: column; align-items: flex-start !important; gap: 0 !important; line-height: 1.2; }
footer h5.d-flex .brand-tagline { margin-top: 8px; }

/* Footer: render the long Key Features list as two short columns */
.footer-2col { column-count: 2; column-gap: 1.25rem; }
.footer-2col li { break-inside: avoid; }
@media (max-width: 991.98px) { .footer-2col { column-count: 2; } }
@media (max-width: 575.98px) { .footer-2col { column-count: 1; } }

/* ============================================================
   Footer link hover states
   Bootstrap's .text-secondary sets colour with !important,
   so the hover rules must match that specificity.
   ============================================================ */
footer a {
    transition: color .18s ease, opacity .18s ease;
}
footer a.text-secondary:hover,
footer a.text-secondary:focus-visible {
    color: var(--accent) !important;   /* brand teal, bright enough on dark */
}

/* Nav-style link lists (Quick Links, Key Features, Guides) */
footer ul a.text-secondary:hover,
footer ul a.text-secondary:focus-visible {
    color: var(--accent) !important;
    text-decoration: none;
}

/* Top Cities row */
footer .d-flex a.text-secondary:hover,
footer .d-flex a.text-secondary:focus-visible {
    color: var(--accent) !important;
}

/* Social icons: lift opacity as well as colour */
footer a[aria-label]:hover i,
footer a[aria-label]:focus-visible i {
    color: var(--accent) !important;
    opacity: 1;
}

/* Bottom bar (Privacy / Terms) */
footer .row.align-items-center a.text-secondary:hover,
footer .row.align-items-center a.text-secondary:focus-visible {
    color: var(--accent) !important;
}

/* Keyboard users get a visible focus ring on the dark background */
footer a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 3px;
}

/* ============================================================
   Wider content container.
   Bootstrap caps .container at 1140px from 1200px up, which
   leaves ~106px of dead space each side on a 1351px screen.
   min() keeps a guaranteed 2rem gutter so it never goes
   edge-to-edge on smaller large screens.
   ============================================================ */
@media (min-width: 1200px) {
    .container { max-width: min(1280px, calc(100% - 4rem)); }
}
@media (min-width: 1600px) {
    .container { max-width: 1440px; }
}
