/* Medi-Clin — static rebuild of the DNN "Tahoe" (mediclin) skin.
   Colours, type and spacing measured from the live medi-clin.com site. */

:root {
    --red: #c11e34;
    --red-dark: #951728;
    --red-border: #ab1b2e;
    --text: #777;
    --head: #333;
    --black: #0e0e0e;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 14px;
    line-height: 22px;
    color: var(--text);
    background: #fff;
}
img { max-width: 100%; height: auto; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }

h1, h2, h3, h4, h5, h6 { color: var(--head); margin: 0 0 14px; font-weight: 400; }
h3 { font-size: 30px; font-weight: 700; line-height: 42px; text-transform: capitalize; margin: 0; padding-bottom: 10px; }
h4 { font-size: 24px; line-height: 32px; }
h5 { font-size: 18px; font-weight: 600; line-height: 28px; text-transform: capitalize; }
h6 { font-size: 18px; line-height: 24px; }
p { margin: 0 0 11px; line-height: 24px; }
.heading-primary { color: var(--red); }

.mb-none { margin-bottom: 0; }
.mb-xlg { margin-bottom: 30px; }
.mt-xlg { margin-top: 30px; }
.mt-md { margin-top: 15px; }
.mt-sm { margin-top: 10px; }
.pt-md { padding-top: 15px; }
.font-16 { font-size: 16px; }
.no-transform { text-transform: none; }

/* ---- grid ---- */
.container { max-width: 1170px; margin: 0 auto; padding: 0 15px; }
.row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.row > [class*="col-"] { width: 100%; padding: 0 15px; }
@media (min-width: 992px) {
    .row > .col-md-4 { width: 33.3333%; }
    .row > .col-md-6 { width: 50%; }
    .row > .col-md-8 { width: 66.6667%; }
}
#Home, #About, #Pricing, #Appointment, #Contact { scroll-margin-top: 122px; }

/* ---- header ----
   Home page (desktop): transparent and fixed over the hero photo, turning
   black once the page scrolls (as on the old site). Inner pages and mobile:
   solid black, sticky. */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--black);
    border-bottom: 1px solid rgba(255, 255, 255, .2);
    transition: background-color .3s;
}
@media (min-width: 992px) {
    .home .site-header { position: fixed; left: 0; right: 0; background: transparent; }
    .home .site-header.scrolled { background: var(--black); }
}
.hdr { display: flex; justify-content: space-between; align-items: stretch; height: 121px; padding-top: 10px; transition: height .3s, padding .3s; }
.logo { display: block; margin-top: 16px; transition: margin .3s; }
.logo img { display: block; width: 300px; height: auto; transition: width .3s; }
.hdr-right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; padding-bottom: 12px; transition: padding .3s; }
@media (min-width: 992px) {
    /* Scrolled (as on the old site): header 122 -> 103px tall, logo
       300 -> 167px wide, social icon hidden, menu moves up. */
    .site-header.scrolled .hdr { height: 102px; padding-top: 0; }
    .site-header.scrolled .logo { margin-top: 32px; }
    .site-header.scrolled .logo img { width: 167px; }
    .site-header.scrolled .hdr-social { display: none; }
    .site-header.scrolled .hdr-right { justify-content: flex-end; padding-bottom: 28px; }
}
.hdr-social a { color: #fff; font-size: 14px; display: inline-block; padding: 4px 6px; }
.hdr-social a:hover { color: var(--red); }
.main-nav { display: flex; }
.main-nav a {
    position: relative;
    color: #fff; font-size: 16px; font-weight: 700; line-height: 20px;
    text-transform: uppercase; margin: 0 8px; padding: 0 4px 10px;
}
.main-nav a:last-child { margin-right: 0; }
.main-nav a:hover { color: #fff; }
.main-nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0;
    height: 1px; background: #fff; opacity: 0; transition: opacity .2s;
}
.main-nav a.active::after { opacity: 1; }
/* Hover "roll" (old skin): the label slides up and a copy rolls in from below. */
.main-nav a { overflow: hidden; }
.main-nav a span[data-hover] { position: relative; display: inline-block; transition: transform .3s; }
.main-nav a span[data-hover]::before {
    content: attr(data-hover); position: absolute; top: 100%; left: 0;
    font-weight: 700; opacity: 0;
}
.main-nav a:hover span[data-hover] { transform: translateY(-100%); }
.main-nav a:hover span[data-hover]::before { opacity: 1; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: #fff; }

@media (max-width: 991px) {
    .hdr { height: auto; padding-top: 12px; padding-bottom: 12px; align-items: center; }
    .logo { margin-top: 0; }
    .logo img { width: 200px; height: auto; }
    .hdr-right { flex-direction: row; align-items: center; padding: 0; gap: 6px; }
    .nav-toggle { display: block; }
    .main-nav {
        display: none; position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; background: var(--black);
        border-top: 1px solid rgba(255, 255, 255, .1);
    }
    .main-nav.open { display: flex; }
    .main-nav a { margin: 0; padding: 14px 20px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
    .main-nav a::after { display: none; }
    .main-nav a.active { color: var(--red); }
    #Home, #About, #Pricing, #Appointment, #Contact { scroll-margin-top: 80px; }
}

/* ---- hero ----
   The old LayerSlider stage was 2000x620 and scaled with the page width;
   the caption layers keep those proportions (vw units = px / 2000). */
.hero {
    position: relative; overflow: hidden;
    height: 31vw; min-height: 170px; max-height: 620px;
    background: url(../img/hero.jpg) center / cover no-repeat;
}
.hero-title {
    position: absolute; left: 50.4%; top: 56.6%; margin: 0;
    color: #fff; font-size: min(1.9vw, 38px); line-height: min(2.7vw, 54px);
    font-weight: 600; letter-spacing: -1px; white-space: nowrap;
}
.hero-call {
    position: absolute; left: 70.3%; top: 70.8%;
    background: #c11e33; color: #fff; border: 2px solid #c11e33; border-radius: 50px;
    font-size: min(1.25vw, 25px); line-height: normal;
    padding: min(.5vw, 10px) min(1.25vw, 25px); white-space: nowrap;
    transition: background .2s, border-color .2s;
}
.hero-call:hover { color: #fff; background: var(--red-dark); border-color: var(--red-dark); }
/* Intro animation, as the old LayerSlider layers played once on page load:
   title rises 80px (of the 2000px stage = 4vw) and fades in over 2s
   (easeInOutQuint); Call Us waits 0.5s, then rises 45px (2.25vw) over 2s
   with easeInBack (dips slightly, then shoots up). */
.hero-title { animation: hero-title-in 2s cubic-bezier(.86, 0, .07, 1) both; }
.hero-call  { animation: hero-call-in 2s cubic-bezier(.6, -.28, .735, .045) .5s both; }
@keyframes hero-title-in { from { opacity: 0; transform: translateY(4vw); } to { opacity: 1; transform: none; } }
@keyframes hero-call-in  { from { opacity: 0; transform: translateY(2.25vw); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-title, .hero-call { animation: none; } }

/* ---- back to top (the old theme's scroll-to-top tab) ---- */
.scroll-to-top {
    position: fixed; right: 10px; bottom: 0; z-index: 1040;
    min-width: 49px; height: 48px; padding: 13px 10px 0;
    background: #404040; color: #fff; border-radius: 7px 7px 0 0;
    text-align: center; font-size: 14px; line-height: 22px;
    opacity: 0; pointer-events: none; transition: opacity .3s;
}
.scroll-to-top.visible { opacity: .75; pointer-events: auto; }
.scroll-to-top:hover { opacity: 1; color: #fff; }
@media (max-width: 991px) { .scroll-to-top { display: none; } }

@media (max-width: 767px) {
    .hero { min-height: 210px; }
    /* centre with the translate property so the intro animation's transform still applies */
    .hero-title, .hero-call { left: 50%; top: auto; translate: -50% 0; }
    .hero-title {
        bottom: 60px; width: 92%; text-align: center; white-space: normal;
        font-size: 17px; line-height: 23px; letter-spacing: 0;
        text-shadow: 0 1px 4px rgba(0, 0, 0, .7);
    }
    .hero-call { bottom: 16px; font-size: 13px; padding: 5px 16px; }
}

/* ---- tagline ---- */
.tagline { background: var(--red); border-top: 5px solid var(--red-border); margin-bottom: 30px; text-align: center; }
.tagline h4 { color: #fff; margin: 0; padding: 12px 0; }
@media (max-width: 767px) { .tagline h4 { font-size: 19px; line-height: 26px; } }

/* ---- boxes ---- */
.box-wrap { background: rgba(255, 255, 255, .65); }
.box { border: 5px solid #eee; padding: 20px; }
.row.eq > [class*="col-"] > .box-wrap,
.row.eq > [class*="col-"] > .box-wrap > .box { height: 100%; }
@media (max-width: 991px) {
    .row.eq > [class*="col-"] + [class*="col-"] { margin-top: 30px; }
}

/* ---- about ---- */
.about { margin: 30px 0 30px; }
.benefits { list-style: square; padding-left: 25px; margin: 0 0 11px; display: flex; flex-wrap: wrap; }
.benefits li { width: 100%; line-height: 24px; }
@media (min-width: 992px) { .benefits li { width: 50%; } .benefits li.wide { width: 100%; } }
@media (max-width: 991px) { .about .col-md-6 + .col-md-6 { margin-top: 20px; } }
h5 .fa { color: var(--red); }
.hours { list-style: none; padding: 0; margin: 0 0 20px; }
.hours li {
    display: flex; justify-content: space-between; gap: 10px;
    font-size: 16px; line-height: 16px; padding: 7px 0 10px;
    border-bottom: 1px dashed var(--red);
}

/* ---- buttons ---- */
.btn {
    display: inline-block; cursor: pointer;
    background: var(--red); color: #fff;
    border: 0; border-radius: 4px; box-shadow: inset 0 0 0 2px var(--red);
    padding: 8px 22px; font: inherit; font-size: 14px; line-height: 39px;
    transition: background .2s, box-shadow .2s, color .2s;
}
.btn:hover { background: var(--red-dark); box-shadow: inset 0 0 0 2px var(--red-dark); color: #fff; }
.btn-outline { background: transparent; box-shadow: inset 0 0 0 2px #fff; border-radius: 6px; font-size: 18px; line-height: 50px; padding: 0 28px; }
.btn-outline:hover { background: #fff; box-shadow: inset 0 0 0 2px #fff; color: var(--red); }

/* ---- grey sections ---- */
.section-grey { background: #f4f4f4; border-top: 5px solid #f1f1f1; padding: 40px 0 50px; margin-bottom: 30px; }
.serving-img { display: block; width: 100%; padding: 20px 20px 10px; }
.pricing { padding-top: 50px; margin-bottom: 0; }
.pricing-title { margin-bottom: 20px; }
.towns { display: grid; grid-template-columns: 1fr 1fr; column-gap: 15px; margin: 4px 0 20px; }
.mt-box { margin-top: 30px; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { font-weight: 700; text-align: left; padding: 8px; line-height: 20px; border-bottom: 2px solid #ddd; }
.table td { padding: 8px; line-height: 20px; border-top: 1px solid #ddd; white-space: nowrap; }

/* ---- call to action ---- */
.cta { background: var(--red); padding: 40px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; max-width: 980px; margin: 0 auto; padding-left: 19px; }
.cta h3 { color: #fff; font-weight: 400; text-transform: none; padding: 0; }
@media (max-width: 767px) { .cta-inner { justify-content: center; text-align: center; padding-left: 0; } .cta h3 { font-size: 24px; line-height: 32px; } }

/* ---- testimonials ---- */
.testimonials {
    background: #222 url(../img/laboratory.jpg) center / cover no-repeat fixed;
    padding: 60px 0 40px; text-align: center;
}
@media (max-width: 991px), (hover: none) { .testimonials { background-attachment: scroll; } }
.testimonials h3 { color: #fff; margin-bottom: 30px; }
.testimonial {
    background: #fff; border: 2px solid #dfdfdf; border-radius: 6px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
    padding: 32px; margin-bottom: 20px; height: calc(100% - 20px);
}
.testimonial .author { color: #111; margin: 0; padding-top: 6px; }
.testimonials .row.eq > [class*="col-"] + [class*="col-"] { margin-top: 0; }

/* ---- appointment form ---- */
.appointment { padding: 60px 0 50px; }
.label-bar { background: var(--red); color: #fff; font-size: 24px; line-height: 32px; padding: 10px 10px 10px 30px; text-align: center; margin: 0 0 14px; }
.appt-form { max-width: 460px; margin: 0 auto; }
.appt-intro { font-size: 15px; line-height: 21px; color: #111; margin: 6px 0 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label { display: block; font-size: 15px; font-weight: 700; line-height: 20px; color: #111; margin: 0 0 8px; }
.form-grid input, .form-grid textarea {
    width: 100%; border: 1px solid rgba(17, 17, 17, .2); border-radius: 4px;
    padding: 10px 12px; font: inherit; font-size: 14px; line-height: 20px; color: #111; background: #fff;
}
.form-grid textarea { min-height: 110px; resize: vertical; }
.form-grid input:focus, .form-grid textarea:focus,
.footer-form input:focus, .footer-form textarea:focus { outline: 2px solid rgba(193, 30, 52, .35); border-color: var(--red); }
.form-submit { text-align: center; }
.btn-submit { font-size: 15px; line-height: 48px; padding: 0 34px; border-radius: 5px; }
.samples-img { display: block; width: 100%; margin-top: 60px; }
@media (max-width: 991px) { .samples-img { max-width: 360px; margin: 40px auto 0; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

.notice { padding: 14px 18px; border-radius: 4px; margin: 0 0 18px; line-height: 22px; }
.notice.ok { background: #eaf6ec; color: #1e5b2a; border: 1px solid #bfe3c6; }
.notice.err { background: #fbeaec; color: #8a1526; border: 1px solid #efc3ca; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- footer ---- */
.site-footer { background: var(--black); padding: 70px 0 0; font-size: 12.6px; color: var(--text); }
.site-footer > .container { padding-bottom: 30px; }
.footer-logo { display: block; margin-bottom: 20px; }
.site-footer .text-light { color: #fff; line-height: 24px; margin: 0 0 20px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--red); }
.fb-follow { font-size: 1.5em; margin-bottom: 30px; }
.site-footer h2 { color: #fff; font-size: 38px; font-weight: 300; letter-spacing: -1px; line-height: 54px; margin: 0 0 32px; }
.footer-form { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 30px; }
.footer-form .full { grid-column: 1 / -1; }
.footer-form input, .footer-form textarea {
    width: 100%; border: 1px solid #767676; background: #fff; color: #555;
    padding: 6px 8px; font: inherit; font-size: 12.6px; line-height: 20px;
}
.footer-form textarea { min-height: 70px; resize: vertical; }
.footer-form .btn { line-height: 39px; padding: 0 28px; }
.site-footer .notice.ok { color: #1e5b2a; }
@media (max-width: 991px) { .site-footer h2 { margin-top: 10px; } }
@media (max-width: 480px) { .footer-form { grid-template-columns: 1fr; } .site-footer h2 { font-size: 32px; } }

.footer-copyright { background: #060606; border-top: 4px solid #060606; padding: 4px 0; }
.footer-copyright a::before { content: "|"; color: var(--text); margin: 0 8px; }

/* ---- privacy / terms ---- */
.page { padding: 50px 0 60px; }
.page .container { max-width: 900px; }
.page h2 { font-size: 30px; font-weight: 700; line-height: 42px; margin-bottom: 20px; }
.page h3 { font-size: 20px; line-height: 28px; font-weight: 600; text-transform: none; margin: 24px 0 6px; padding: 0; }
