/* ==========================================================================
   Chinese Medical & Skin Centre - site styles
   Last updated: 06.09.2026 18:30
   Loaded after Bootstrap 5.3.
   ========================================================================== */

:root {
    --atcm-deep:   #14506b;
    --atcm-mid:    #1d7396;
    --atcm-accent: #b8442e;
    --atcm-sand:   #f6f3ec;
    --atcm-ink:    #26313a;
    --atcm-muted:  #667884;
    --atcm-line:   #e2ddd2;

    --bs-primary: #14506b;
    --bs-primary-rgb: 20, 80, 107;
    --bs-link-color: #14506b;
    --bs-link-color-rgb: 20, 80, 107;
    --bs-link-hover-color: #b8442e;
    --bs-link-hover-color-rgb: 184, 68, 46;
    --bs-body-color: #26313a;
    --bs-body-font-family: 'Source Sans 3', system-ui, -apple-system, sans-serif;
}

body {
    font-family: var(--bs-body-font-family);
    color: var(--atcm-ink);
    font-size: 1.02rem;
    background: var(--atcm-sand);
}

h1, h2, h3, h4, h5,
.footer-heading,
.navbar-brand strong {
    font-family: 'Lora', Georgia, serif;
    letter-spacing: -0.01em;
    color: var(--atcm-deep);
}

h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); }
h2 { font-size: clamp(1.45rem, 1.15rem + 1.2vw, 2.05rem); margin-top: 2.25rem; }
h3 { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.4rem); margin-top: 1.5rem; }

p { line-height: 1.75; }

.intro {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--atcm-deep);
    font-weight: 600;
}

.bg-tint { background: #fff; }

.section-sub { color: var(--atcm-muted); }

.skip-link {
    position: absolute;
    top: .5rem; left: .5rem;
    z-index: 1080;
    padding: .5rem .75rem;
    background: #fff;
    border-radius: .25rem;
}

/* Buttons ---------------------------------------------------------------- */

.btn-primary {
    --bs-btn-bg: var(--atcm-deep);
    --bs-btn-border-color: var(--atcm-deep);
    --bs-btn-hover-bg: #0f3f55;
    --bs-btn-hover-border-color: #0f3f55;
    --bs-btn-active-bg: #0f3f55;
    --bs-btn-active-border-color: #0f3f55;
}

.btn-outline-primary {
    --bs-btn-color: var(--atcm-deep);
    --bs-btn-border-color: var(--atcm-deep);
    --bs-btn-hover-bg: var(--atcm-deep);
    --bs-btn-hover-border-color: var(--atcm-deep);
    --bs-btn-active-bg: var(--atcm-deep);
}

/* Utility bar ------------------------------------------------------------ */

.utility-bar {
    background: #fff;
    color: var(--atcm-muted);
    font-size: .875rem;
    padding: .45rem 0;
    border-bottom: 1px solid var(--atcm-line);
}

.utility-bar a {
    color: var(--atcm-deep);
    text-decoration: none;
    margin-left: 1.4rem;
    font-weight: 600;
}

.utility-bar a:hover { color: var(--atcm-accent); text-decoration: underline; }

/* Navbar ----------------------------------------------------------------- */

.site-navbar {
    background: #fff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .08);
    padding-top: .6rem;
    padding-bottom: .6rem;
}

.navbar-brand { display: flex; align-items: center; gap: .75rem; }

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--atcm-deep);
    color: #fff;
    font-family: 'Lora', Georgia, serif;
    font-size: 1.35rem;
    line-height: 1;
    flex-shrink: 0;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 1.02rem; }
.brand-text small { font-size: .72rem; color: var(--atcm-muted); }

.site-navbar .nav-link {
    font-size: .92rem;
    font-weight: 600;
    color: var(--atcm-ink);
    padding: .5rem .65rem;
    border-bottom: 2px solid transparent;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
    color: var(--atcm-deep);
    border-bottom-color: var(--atcm-accent);
}

/* Hero ------------------------------------------------------------------- */

.hero {
    background: linear-gradient(160deg, #fff 0%, #fbf9f5 100%);
    padding: 3.5rem 0 3rem;
    border-bottom: 1px solid var(--atcm-line);
}

.hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .78rem;
    font-weight: 600;
    color: var(--atcm-accent);
    margin-bottom: .6rem;
}

.hero h1 { margin-bottom: 1rem; }
.hero .lead { color: var(--atcm-muted); max-width: 46ch; }
.hero-actions { margin-top: 1.75rem; display: flex; gap: .75rem; flex-wrap: wrap; }

.hero-figure { margin: 0; }
.hero-figure figcaption,
.hero-figure-caption {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    font-size: .85rem;
    color: var(--atcm-muted);
    margin-top: .6rem;
    text-align: center;
}

/* Hero slider ------------------------------------------------------------ */

.hero-slider-col {
    display: flex;
    justify-content: center;
}

#heroSlider,
.hero-slider {
    width: 640px;
    max-width: 100%;
    border-radius: .6rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(20, 45, 60, .16);
    background: #0d2b39;
}

/*
 * Fixed 360px stage. Bootstrap switches .carousel-item between display:none
 * and display:block, so every state it uses has to become flex here or the
 * centring stops working mid-transition.
 */
#heroSlider .carousel-item,
.hero-slider .carousel-item {
    height: 360px;
    max-height: 56.25vw;
}

#heroSlider .carousel-item.active,
#heroSlider .carousel-item-next,
#heroSlider .carousel-item-prev,
.hero-slider .carousel-item.active,
.hero-slider .carousel-item-next,
.hero-slider .carousel-item-prev {
    display: flex;
    align-items: center;
    justify-content: center;
}

/*
 * Fit the whole image or video inside the stage. max-width/max-height with
 * auto sizing does this without object-fit, so it cannot be defeated by a
 * width:100% rule from elsewhere. Leftover space is fine - it is centred.
 */
#heroSlider .carousel-item img,
#heroSlider .carousel-item video,
.hero-slider .carousel-item img,
.hero-slider .carousel-item video {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

#heroSlider .carousel-indicators,
.hero-slider .carousel-indicators {
    margin-bottom: .65rem;
}

#heroSlider .carousel-indicators [data-bs-target],
.hero-slider .carousel-indicators [data-bs-target] {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 0;
    background-color: rgba(255, 255, 255, .65);
    box-shadow: 0 0 4px rgba(0, 0, 0, .5);
}

#heroSlider .carousel-indicators .active,
.hero-slider .carousel-indicators .active {
    background-color: var(--atcm-accent);
}

#heroSlider .carousel-control-prev,
#heroSlider .carousel-control-next,
.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
    width: 12%;
    z-index: 3;
}

#heroSlider .carousel-control-prev-icon,
#heroSlider .carousel-control-next-icon,
.hero-slider .carousel-control-prev-icon,
.hero-slider .carousel-control-next-icon {
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .7));
}

/* Patient video ---------------------------------------------------------- */

.video-section { background: #fff; }

.video-frame {
    border-radius: .6rem;
    overflow: hidden;
    background: #0d2b39;
    box-shadow: 0 10px 30px rgba(20, 45, 60, .16);
    line-height: 0;
}

.video-frame video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    background: #0d2b39;
}

.video-caption {
    font-size: .85rem;
    color: var(--atcm-muted);
    text-align: center;
    margin-top: .9rem;
    margin-bottom: 0;
}

/* Page head -------------------------------------------------------------- */

.page-head {
    background: var(--atcm-deep);
    color: #fff;
    padding: 2.75rem 0;
}

.page-head h1 { color: #fff; margin-bottom: .4rem; }
.page-head .lead { color: rgba(255, 255, 255, .82); margin-bottom: 0; max-width: 60ch; }

/* Quick links ------------------------------------------------------------ */

.quick-links {
    background: #fff;
    border-bottom: 1px solid var(--atcm-line);
    padding: .85rem 0;
    font-size: .9rem;
}

.quick-links-label { color: var(--atcm-muted); margin-right: .4rem; }

.quick-link {
    display: inline-block;
    color: var(--atcm-deep);
    text-decoration: none;
    font-weight: 600;
    padding: .1rem .55rem;
    margin: .15rem .1rem;
    border: 1px solid var(--atcm-line);
    border-radius: 2rem;
    background: #fff;
}

.quick-link:hover { border-color: var(--atcm-accent); color: var(--atcm-accent); }

/* Image placeholders ----------------------------------------------------- */

.img-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    aspect-ratio: 3 / 2;
    background: repeating-linear-gradient(45deg,
        #eee8dc, #eee8dc 12px, #e7e0d1 12px, #e7e0d1 24px);
    border: 1px dashed #c9c0ad;
    border-radius: .5rem;
    color: #96907f;
    font-size: .85rem;
}

.img-placeholder i { font-size: 1.8rem; }
.img-placeholder--tall { aspect-ratio: 4 / 5; }

/* Fact card -------------------------------------------------------------- */

.fact-card {
    background: #fff;
    border-left: 3px solid var(--atcm-accent);
    border-radius: .4rem;
    padding: 1.5rem;
}

.fact-card h3 { margin-top: 0; }
.fact-card li { display: flex; gap: .65rem; margin-bottom: .8rem; line-height: 1.5; }
.fact-card li:last-child { margin-bottom: 0; }
.fact-card i { color: var(--atcm-accent); font-size: 1.05rem; flex-shrink: 0; }

/* Service cards ---------------------------------------------------------- */

.service-card {
    display: block;
    height: 100%;
    background: #fff;
    border: 1px solid var(--atcm-line);
    border-radius: .5rem;
    padding: 1.6rem 1.4rem;
    text-decoration: none;
    color: inherit;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(20, 45, 60, .12);
    border-color: var(--atcm-mid);
}

.service-card > i { font-size: 1.9rem; color: var(--atcm-accent); }
.service-card h3 { font-size: 1.1rem; margin: .8rem 0 .5rem; }
.service-card p { font-size: .95rem; color: var(--atcm-muted); margin-bottom: .8rem; }
.service-card .service-more { font-weight: 600; font-size: .9rem; color: var(--atcm-deep); }

/* Note boxes ------------------------------------------------------------- */

.note-box {
    background: #fff;
    border-left: 3px solid var(--atcm-mid);
    border-radius: .4rem;
    padding: 1.35rem 1.5rem;
    margin: 2rem 0;
}

.note-box h2, .note-box h3 { margin-top: 0; }
.note-box--warn { border-left-color: var(--atcm-accent); background: #fdf4f1; }

/* Lists ------------------------------------------------------------------ */

.two-col { columns: 2; column-gap: 2.5rem; }
.two-col li { break-inside: avoid; margin-bottom: .4rem; }

/* Infertility phases ----------------------------------------------------- */

.phase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin: 1.75rem 0;
}

.phase {
    background: #fff;
    border: 1px solid var(--atcm-line);
    border-radius: .5rem;
    padding: 1.25rem;
    position: relative;
}

.phase-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--atcm-deep);
    color: #fff;
    font-family: 'Lora', Georgia, serif;
    font-size: .9rem;
}

.phase h3 { font-size: 1.02rem; margin: .7rem 0 .4rem; }
.phase p { font-size: .93rem; margin-bottom: 0; color: var(--atcm-muted); }

/* Therapies -------------------------------------------------------------- */

.therapy {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--atcm-line);
    scroll-margin-top: 100px;
}

.therapy:last-of-type { border-bottom: 0; }
.therapy-body h2 { margin-top: 0; }
.therapy-caption { font-size: .88rem; color: var(--atcm-muted); font-style: italic; }

/* Conditions ------------------------------------------------------------- */

.cond-group { scroll-margin-top: 100px; }

.cond-list {
    list-style: none;
    padding: 0;
    margin: .75rem 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: .4rem .75rem;
}

.cond-list li {
    background: #fff;
    border-radius: .3rem;
    padding: .45rem .75rem;
    font-size: .94rem;
}

/* Clinic cards & tables -------------------------------------------------- */

.clinic-card {
    height: 100%;
    background: #fff;
    border-radius: .5rem;
    padding: 1.4rem;
}

.clinic-card h3 { margin-top: 0; }
.clinic-card address { font-style: normal; line-height: 1.7; margin-bottom: 1rem; }

.table-hours th, .table-fees td:first-child { font-weight: 600; color: var(--atcm-deep); }
.table-hours, .table-fees { max-width: 640px; }
.table-fees thead th { background: var(--atcm-deep); color: #fff; }

/* Testimonials ----------------------------------------------------------- */

.testimonial {
    background: #fff;
    border-left: 3px solid var(--atcm-accent);
    border-radius: .4rem;
    padding: 1.6rem 1.75rem;
    margin: 0 0 1.5rem;
}

.testimonial blockquote { margin: 0; }
.testimonial blockquote p { margin-bottom: 1rem; }

.testimonial blockquote > p:first-child::before {
    content: '\\201C';
    font-family: 'Lora', Georgia, serif;
    font-size: 2.4rem;
    line-height: 0;
    color: var(--atcm-accent);
    margin-right: .3rem;
    vertical-align: -.3rem;
}

.paste-marker {
    color: #9a6b1f;
    background: #fff6e3;
    border: 1px dashed #d8b566;
    border-radius: .3rem;
    padding: .75rem 1rem;
    font-size: .9rem;
}

.testimonial figcaption { border-top: 1px solid var(--atcm-line); padding-top: .8rem; }
.t-name { font-weight: 600; color: var(--atcm-deep); display: block; }
.t-meta { font-size: .88rem; color: var(--atcm-muted); }

/* News ------------------------------------------------------------------- */

.news-item {
    padding: 1.6rem 0;
    border-bottom: 1px solid var(--atcm-line);
}

.news-item:last-of-type { border-bottom: 0; }
.news-item h2 { margin-top: 0; font-size: 1.25rem; }
.news-date { font-size: .85rem; color: var(--atcm-muted); margin-bottom: .35rem; }
.news-link { font-weight: 600; font-size: .93rem; }

/* CTA band --------------------------------------------------------------- */

.cta-band {
    background: var(--atcm-deep);
    color: #fff;
    padding: 3rem 0;
}

.cta-band h2 { color: #fff; margin-top: 0; }
.cta-band p { color: rgba(255, 255, 255, .85); }

/* Footer ----------------------------------------------------------------- */

.site-footer {
    background: #fff;
    color: var(--atcm-ink);
    border-top: 1px solid var(--atcm-line);
}

.footer-heading { color: var(--atcm-deep); font-size: 1.05rem; margin-top: 0; margin-bottom: .9rem; }
.site-footer address { font-style: normal; line-height: 1.7; font-size: .94rem; }
.site-footer a { color: var(--atcm-deep); text-decoration: none; }
.site-footer a:hover { color: var(--atcm-accent); text-decoration: underline; }
.footer-links li { margin-bottom: .45rem; font-size: .94rem; }

.footer-bottom {
    border-top: 1px solid var(--atcm-line);
    color: var(--atcm-muted);
}

/* Back to top ------------------------------------------------------------ */

.back-to-top {
    position: fixed;
    right: 1rem; bottom: 1rem;
    z-index: 1040;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--atcm-deep);
    color: #fff;
    border: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

.back-to-top.is-visible { opacity: .9; pointer-events: auto; }
.back-to-top:hover { background: var(--atcm-accent); }

/* Responsive ------------------------------------------------------------- */

@media (max-width: 991.98px) {
    .brand-text small { display: none; }
    .site-navbar .nav-link { border-bottom: 0; padding: .55rem .2rem; }
    .therapy { grid-template-columns: 1fr; gap: 1.25rem; }
    .two-col { columns: 1; }
    .hero { padding: 2.5rem 0 2rem; }
		.background-color: #eeeeee;
}

@media (max-width: 575.98px) {
    .cond-list { grid-template-columns: 1fr 1fr; }
    .hero-actions .btn { width: 100%; }
		.background-color: #eeeeee;
}

@media print {
    .utility-bar, .site-navbar, .quick-links, .cta-band, .back-to-top { display: none; }
    .site-footer { color: #000; }
}