/* Ruby Country Medical Group - Stratton Docs */

:root {
    --teal-900: #0c3830;
    --teal-800: #145a4d;
    --teal-700: #1a7264;
    --teal-600: #208a7a;
    --teal-500: #28a08e;
    --teal-400: #4fbcaa;
    --teal-300: #7fd3c5;
    --teal-200: #b3e6dc;
    --teal-100: #daf2ed;
    --teal-50: #edf9f6;
    --body-text: #2d3436;
    --muted-text: #636e72;
    --light-bg: #f7fafa;
    --border-clr: #dfe6e5;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    color: var(--body-text);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
    font-weight: 700;
    color: var(--teal-900);
}

a {
    color: var(--teal-700);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover {
    color: var(--teal-500);
}

/* notification strip */
.relocation-strip {
    background: var(--teal-800);
    color: #fff;
    text-align: center;
    padding: 10px 16px;
    font-size: 0.92rem;
}
.relocation-strip a {
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
}
.relocation-strip a:hover {
    color: var(--teal-200);
}

/* site header area */
.site-brand {
    text-align: center;
    padding: 28px 0 12px;
    background: #fff;
}
.site-brand img {
    height: 62px;
    margin-bottom: 6px;
}
.site-brand .practice-name {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--teal-900);
    margin: 0;
    letter-spacing: -0.02em;
}

/* navigation bar */
.main-nav {
    background: var(--teal-800);
    border-top: 3px solid var(--teal-700);
}
.main-nav .navbar-nav .nav-link {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    font-size: 0.93rem;
    padding: 14px 18px;
    transition: background 0.2s;
}
.main-nav .navbar-nav .nav-link:hover,
.main-nav .navbar-nav .nav-link:focus {
    color: #fff;
    background: rgba(255,255,255,0.1);
}
.main-nav .navbar-toggler {
    border-color: rgba(255,255,255,0.3);
    padding: 4px 10px;
}
.main-nav .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* hero gradient */
.hero-gradient {
    background: linear-gradient(135deg, var(--teal-800) 0%, var(--teal-600) 60%, var(--teal-400) 100%);
    color: #fff;
    padding: 64px 0 56px;
}
.hero-gradient h1 {
    color: #fff;
    font-size: 2.3rem;
    margin-bottom: 18px;
}
.hero-gradient p {
    font-size: 1.12rem;
    opacity: 0.92;
    max-width: 680px;
}

/* quick action cards */
.action-grid {
    padding: 52px 0 40px;
    background: var(--light-bg);
}
.action-tile {
    background: #fff;
    border: 1px solid var(--border-clr);
    padding: 28px 22px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 20px;
    display: block;
    color: var(--teal-800);
}
.action-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(20,90,77,0.12);
    color: var(--teal-700);
}
.action-tile svg {
    width: 40px;
    height: 40px;
    margin-bottom: 14px;
    fill: var(--teal-600);
}
.action-tile .tile-label {
    font-weight: 600;
    font-size: 1rem;
    display: block;
}

/* about section on homepage */
.about-section {
    padding: 56px 0;
}
.about-section h2 {
    margin-bottom: 20px;
    font-size: 1.6rem;
}
.about-section p {
    color: var(--muted-text);
    max-width: 800px;
}

/* opening times preview */
.times-preview {
    background: var(--teal-50);
    padding: 52px 0;
    border-top: 1px solid var(--border-clr);
    border-bottom: 1px solid var(--border-clr);
}
.times-preview h2 {
    margin-bottom: 28px;
}
.surgery-card {
    background: #fff;
    border: 1px solid var(--border-clr);
    padding: 24px;
    margin-bottom: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.surgery-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(20,90,77,0.1);
}
.surgery-card h3 {
    font-size: 1.15rem;
    color: var(--teal-700);
    margin-bottom: 12px;
}
.surgery-card .hours-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid var(--teal-100);
    font-size: 0.93rem;
}
.surgery-card .hours-row:last-child {
    border-bottom: none;
}

/* online services section */
.services-overview {
    padding: 52px 0;
}
.services-overview h2 {
    text-align: center;
    margin-bottom: 32px;
}
.service-block {
    text-align: center;
    padding: 30px 18px;
    background: #fff;
    border: 1px solid var(--border-clr);
    margin-bottom: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.service-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(20,90,77,0.1);
}
.service-block svg {
    width: 44px;
    height: 44px;
    fill: var(--teal-600);
    margin-bottom: 14px;
}
.service-block h4 {
    font-size: 1.05rem;
    color: var(--teal-800);
}
.service-block p {
    font-size: 0.9rem;
    color: var(--muted-text);
}

/* CQC ratings */
.cqc-section {
    background: var(--teal-50);
    padding: 48px 0;
    border-top: 1px solid var(--border-clr);
}
.cqc-card {
    background: #fff;
    border: 1px solid var(--border-clr);
    padding: 24px;
    text-align: center;
    margin-bottom: 20px;
}
.cqc-card .rating-badge {
    display: inline-block;
    background: var(--teal-700);
    color: #fff;
    padding: 6px 20px;
    font-weight: 700;
    font-size: 0.95rem;
    margin: 12px 0;
}

/* blogroll */
.latest-updates {
    padding: 56px 0;
}
.latest-updates h2 {
    margin-bottom: 32px;
}

/* buttons */
.btn-teal {
    background: var(--teal-700);
    color: #fff;
    padding: 10px 26px;
    font-weight: 600;
    border: none;
    font-size: 0.95rem;
    transition: background 0.2s;
}
.btn-teal:hover {
    background: var(--teal-600);
    color: #fff;
}
.btn-outline-teal {
    border: 2px solid var(--teal-700);
    color: var(--teal-700);
    padding: 8px 24px;
    font-weight: 600;
    background: transparent;
    font-size: 0.95rem;
    transition: all 0.2s;
}
.btn-outline-teal:hover {
    background: var(--teal-700);
    color: #fff;
}

/* large footer */
.site-footer {
    background: var(--teal-900);
    color: rgba(255,255,255,0.8);
    padding: 48px 0 0;
}
.site-footer h5 {
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 16px;
}
.site-footer a {
    color: rgba(255,255,255,0.75);
    font-size: 0.93rem;
}
.site-footer a:hover {
    color: #fff;
}
.site-footer ul {
    list-style: none;
    padding: 0;
}
.site-footer ul li {
    margin-bottom: 8px;
}
.footer-cta {
    background: var(--teal-800);
    padding: 36px 0;
    text-align: center;
    margin-top: 40px;
}
.footer-cta p {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: rgba(255,255,255,0.9);
}
.footer-bottom {
    background: rgba(0,0,0,0.15);
    padding: 16px 0;
    font-size: 0.84rem;
    text-align: center;
    color: rgba(255,255,255,0.55);
}
.footer-bottom a {
    color: rgba(255,255,255,0.55);
}
.footer-bottom a:hover {
    color: rgba(255,255,255,0.85);
}

/* cookie banner */
.cookie-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--teal-900);
    color: #fff;
    padding: 18px 24px;
    z-index: 9000;
    display: none;
    font-size: 0.92rem;
}
.cookie-bar.visible {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.cookie-bar p {
    margin: 0;
    flex: 1;
    min-width: 240px;
}
.cookie-bar .cookie-actions {
    display: flex;
    gap: 10px;
}
.cookie-bar .btn-accept {
    background: var(--teal-500);
    color: #fff;
    border: none;
    padding: 8px 22px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
}
.cookie-bar .btn-accept:hover {
    background: var(--teal-400);
}
.cookie-bar .btn-decline {
    background: transparent;
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 8px 22px;
    cursor: pointer;
    font-size: 0.9rem;
}
.cookie-bar .btn-decline:hover {
    color: #fff;
    border-color: #fff;
}

/* content pages */
.page-header {
    background: linear-gradient(135deg, var(--teal-800) 0%, var(--teal-700) 100%);
    color: #fff;
    padding: 40px 0;
}
.page-header h1 {
    color: #fff;
    font-size: 2rem;
    margin: 0;
}

.content-wrap {
    padding: 48px 0;
}
.content-wrap h2 {
    margin-top: 32px;
    margin-bottom: 16px;
}
.content-wrap h3 {
    margin-top: 24px;
    margin-bottom: 12px;
    font-size: 1.15rem;
}

/* misc utility */
.section-divider {
    border: 0;
    border-top: 1px solid var(--border-clr);
    margin: 0;
}

@media (max-width: 767px) {
    .hero-gradient {
        padding: 40px 0 36px;
    }
    .hero-gradient h1 {
        font-size: 1.7rem;
    }
    .site-brand .practice-name {
        font-size: 1.25rem;
    }
}

/* Blog listing */
.blog-listing { margin-top: 16px; }
.blog-listing .blog-entry {
    background: #fff;
    border: 1px solid var(--border-clr);
    padding: 28px;
    margin-bottom: 24px;
}
.blog-listing .blog-entry:last-child { margin-bottom: 0; }
.blog-listing .blog-entry time {
    font-size: 0.85rem;
    color: var(--muted-text);
    display: block;
    margin-bottom: 4px;
}
.blog-listing .blog-entry h2 {
    font-size: 1.35rem;
    margin-bottom: 10px;
}
.blog-listing .blog-entry h2 a { color: var(--teal-800); text-decoration: none; }
.blog-listing .blog-entry h2 a:hover { color: var(--teal-600); text-decoration: underline; }
.blog-listing .blog-entry p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--muted-text);
}
.blog-listing .blog-entry p a { color: var(--teal-700); }
.blog-listing .blog-entry p a:hover { color: var(--teal-500); }
.read-on { color: var(--teal-600); font-weight: 600; font-size: 0.92rem; text-decoration: none; display: inline-block; margin-top: 8px; }
.read-on:hover { text-decoration: underline; }

/* Blog article */
.blog-article {
    padding: 48px 0;
}
.article-head {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-clr);
}
.article-head time {
    font-size: 0.85rem;
    color: var(--muted-text);
    display: block;
    margin-bottom: 8px;
}
.article-head h1 {
    font-size: 1.8rem;
    margin: 0;
}
.blog-article h2 {
    font-size: 1.3rem;
    margin-top: 32px;
    margin-bottom: 14px;
}
.blog-article p {
    line-height: 1.7;
    margin-bottom: 14px;
}
.blog-article p a { color: var(--teal-700); }
.blog-article p a:hover { color: var(--teal-500); text-decoration: underline; }

/* Blogroll on homepage */
.blogroll-section { padding: 56px 0; background: var(--teal-50); }
.news-item { background: #fff; padding: 24px; height: 100%; border: 1px solid var(--border-clr); }
.news-item time { font-size: 0.82rem; color: var(--muted-text); display: block; margin-bottom: 6px; }
.news-item h3 { font-size: 1.15rem; margin-bottom: 10px; }
.news-item h3 a { color: var(--teal-800); text-decoration: none; }
.news-item h3 a:hover { color: var(--teal-600); text-decoration: underline; }
.news-item p { font-size: 0.9rem; line-height: 1.6; margin-bottom: 8px; }
.news-item .read-on { display: inline-block; margin-top: 8px; }
.btn-teal-outline { display: inline-block; padding: 10px 28px; border: 2px solid var(--teal-600); color: var(--teal-600); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.btn-teal-outline:hover { background: var(--teal-600); color: #fff; }
