/* ============================================================
   home-enhance.css
   Visual polish for the HOME page (index.aspx) only.
   Purely additive / overriding -- does not change markup or
   affect other pages (this file is linked only on index.aspx).
   Palette kept identical to theme.css:
     primary blue  #2491d0
     teal/green    #00dba5 / #00bf99 / #00acdb
     dark text     #233a46 / #455f68
     light bg      #f1f8f9
   ============================================================ */

/* ---------- smooth scrolling & base feel ---------- */
html { scroll-behavior: smooth; }

/* ============================================================
   SECTION TITLES  -  add a centered accent underline
   ============================================================ */
.about .section-title,
.blog .section-title,
.svc .section-title,
.home-blog .section-title,
.review .section-title {
    position: relative;
    padding-bottom: 22px;
    letter-spacing: .5px;
}
.about .section-title:after,
.blog .section-title:after,
.svc .section-title:after,
.home-blog .section-title:after,
.review .section-title:after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, #2491d0, #00dba5);
}
/* About title is left-aligned in the markup */
.about .section-title { text-align: left; }
.about .section-title:after { left: 0; transform: none; }

/* ============================================================
   HERO SLIDER  -  better contrast + readability
   NOTE: do NOT set position/offset-parent on .sp-slide or .container --
   slider-pro positions the .sp-layer text absolutely using large
   negative offsets; changing their offset parent pushes the text
   off-screen. Only safe typographic tweaks below.
   ============================================================ */
.slider-title   { line-height: 1.1; }
.slider-welcome { letter-spacing: 1px; }

/* ============================================================
   SERVICES  -  colored cards with hover lift
   ============================================================ */
.services .service {
    position: relative;
    padding-top: 55px;
    padding-bottom: 55px;
    overflow: hidden;
    transition: transform .35s ease, box-shadow .35s ease;
}
.services .service:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 35px rgba(0, 0, 0, .18);
    z-index: 3;
}
.services .service .service-icon {
    transition: transform .35s ease;
    color: #fff;
}
.services .service:hover .service-icon { transform: scale(1.15) translateY(-4px); }
.services .service .service-title h3 {
    color: #fff;
    letter-spacing: .5px;
    margin-bottom: 18px;
}
.services .service .service-text { color: rgba(255, 255, 255, .92); }

/* ============================================================
   BUTTONS  -  subtle gradient + lift
   ============================================================ */
.btn-primary {
    background: linear-gradient(90deg, #00acdb, #00dba5);
    padding: 10px 34px;
    letter-spacing: .5px;
    box-shadow: 0 6px 16px rgba(0, 172, 219, .28);
}
.btn-primary:focus,
.btn-primary:hover {
    background: linear-gradient(90deg, #00dba5, #00acdb);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 219, 165, .35);
}
.blog .btn-primary-1 {
    padding: 9px 34px;
    letter-spacing: .5px;
}
.blog .btn-primary-1:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 172, 219, .25);
}

/* ============================================================
   OUR SERVICES  -  modern responsive card grid (.svc)
   Replaces the old #owl-blog carousel on the home page.
   ============================================================ */
.svc { padding: 80px 0 70px; background: #f7fbfc; }
.svc .section-subtitle { margin-bottom: 50px; }

.svc-eyebrow,
.hb-eyebrow {
    display: block;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #00bf99;
    margin-bottom: 12px;
}

.svc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.svc-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(35, 58, 70, .08);
    transition: transform .35s ease, box-shadow .35s ease;
}
.svc-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 44px rgba(35, 58, 70, .16);
}
.svc-media {
    display: block;
    height: 210px;
    overflow: hidden;
}
.svc-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}
.svc-card:hover .svc-media img { transform: scale(1.09); }
.svc-body {
    padding: 26px 26px 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.svc-title { margin: 0 0 12px; font-size: 20px; line-height: 27px; font-weight: 700; }
.svc-title a { color: #233a46; transition: color .25s ease; }
.svc-title a:hover { color: #00acdb; }
.svc-text {
    margin: 0 0 20px;
    color: #5b7682;
    font-size: 14.5px;
    line-height: 25px;
}
.svc-link {
    margin-top: auto;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #2491d0;
}
.svc-link i { transition: transform .25s ease; margin-left: 5px; }
.svc-link:hover { color: #00acdb; }
.svc-link:hover i { transform: translateX(5px); }

/* CTA card closes the grid with a call to book */
.svc-card--cta {
    background: linear-gradient(135deg, #2491d0, #00bf99);
    color: #fff;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.svc-cta-inner { padding: 36px 30px; }
.svc-card--cta i { font-size: 46px; display: block; margin-bottom: 16px; color: #fff; }
.svc-card--cta h3 { color: #fff; font-size: 21px; font-weight: 700; margin: 0 0 12px; }
.svc-card--cta p { color: rgba(255, 255, 255, .92); font-size: 14.5px; line-height: 24px; margin: 0 0 22px; }
.svc-card--cta .btn-primary {
    background: #fff;
    color: #2491d0 !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .15);
}
.svc-card--cta .btn-primary:hover {
    background: #233a46;
    color: #fff !important;
}

/* ============================================================
   LATEST FROM THE BLOG  -  home-page blog teaser (.home-blog)
   ============================================================ */
.home-blog { padding: 80px 0 85px; background: #fff; }
.home-blog .section-subtitle { margin-bottom: 50px; }

.hb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.hb-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(35, 58, 70, .08);
    transition: transform .35s ease, box-shadow .35s ease;
}
.hb-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 44px rgba(35, 58, 70, .16);
}
.hb-media {
    position: relative;
    display: block;
    height: 210px;
    overflow: hidden;
}
.hb-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}
.hb-card:hover .hb-media img { transform: scale(1.09); }
.hb-date {
    position: absolute;
    top: 16px; left: 16px;
    background: linear-gradient(135deg, #2491d0, #00acdb);
    color: #fff;
    border-radius: 12px;
    padding: 9px 13px;
    text-align: center;
    line-height: 1;
    box-shadow: 0 6px 14px rgba(0, 172, 219, .35);
}
.hb-date b { display: block; font-size: 20px; font-weight: 800; }
.hb-date i { font-style: normal; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.hb-body {
    padding: 24px 26px 26px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.hb-title { margin: 0 0 12px; font-size: 19px; line-height: 26px; font-weight: 700; }
.hb-title a { color: #233a46; transition: color .25s ease; }
.hb-title a:hover { color: #00acdb; }
.hb-excerpt {
    margin: 0 0 20px;
    color: #5b7682;
    font-size: 14.5px;
    line-height: 25px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hb-foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #eef3f5;
    padding-top: 15px;
}
.hb-author { font-size: 13px; color: #8aa0a9; }
.hb-author i { color: #00dba5; margin-right: 5px; }
.hb-readmore {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #2491d0;
}
.hb-readmore i { transition: transform .25s ease; margin-left: 5px; }
.hb-readmore:hover { color: #00acdb; }
.hb-readmore:hover i { transform: translateX(5px); }
.hb-all { text-align: center; margin-top: 45px; }

/* ============================================================
   TESTIMONIALS  -  card polish
   ============================================================ */
.review-item {
    box-shadow: 0 6px 20px rgba(35, 58, 70, .08);
    border-radius: 10px !important;
    transition: transform .35s ease, box-shadow .35s ease;
    border-bottom: 3px solid #00dba5 !important;
}
.review-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(35, 58, 70, .15);
}

/* ============================================================
   ABOUT  -  full-width band over the clinic dental-chair photo
   ============================================================ */
.about-hero {
    position: relative;
    background: url('../images/dental-chair.jpg') center center no-repeat;
    background-size: cover;
    background-attachment: fixed;   /* subtle parallax on desktop */
    overflow: hidden;
}
/* dark teal/blue gradient so the photo recedes and text stays readable */
.about-hero .about-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(120deg,
        rgba(20, 45, 60, .92) 0%,
        rgba(20, 60, 80, .88) 45%,
        rgba(0, 90, 110, .82) 100%);
    z-index: 0;
}
.about-hero .container { position: relative; z-index: 1; }

/* content spans full width, comfortable reading measure */
.about-text {
    padding: 80px 15px;
    color: #e9f6fb;
    max-width: 980px;
}
.about-text p { color: #d4e9f1; }

/* small kicker line above the heading */
.about-since {
    display: inline-block;
    margin-bottom: 18px;
    padding: 7px 18px;
    border-radius: 30px;
    background: rgba(0, 219, 165, .15);
    border: 1px solid rgba(0, 219, 165, .55);
    color: #00dba5;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
}

/* heading turns white over the photo; keep the gradient accent underline */
.about-hero .section-title { color: #ffffff; }

/* link + list polish on dark background */
.about-text a:not(.btn) { color: #00dba5; }
.about-text a:not(.btn):hover { color: #ffffff; }
.about-text ul.text-list { margin-top: 5px; }
.about-text ul.text-list li { margin-bottom: 16px; color: #e9f6fb; }
.about-text ul.text-list li:before {
    background: linear-gradient(90deg, #2491d0, #00dba5);
}

/* READ MORE button */
.about-btn { display: inline-block; margin-top: 8px; color: #fff !important; }

/* mobile: drop fixed attachment (iOS quirk) + tighten spacing */
@media (max-width: 991px) {
    .about-hero { background-attachment: scroll; }
    .about-text { padding: 55px 15px; }
}
@media (max-width: 767px) {
    .about-text { padding: 45px 15px; }
}

/* carousel arrows: smoother */
.carousel-btn { transition: background .25s ease, transform .25s ease; }
.carousel-btn:hover { transform: scale(1.08); }

/* ============================================================
   RESPONSIVE  /  MOBILE
   (applies on the home page; other pages use responsive.css)
   ============================================================ */

/* Tablets and below */
@media (max-width: 991px) {
    .slider-title    { font-size: 40px !important; }
    .slider-subtitle { font-size: 26px !important; }
    .slider-welcome  { font-size: 18px !important; }

    .services .service { padding-top: 45px; padding-bottom: 45px; }

    .about-text { padding: 55px 15px 35px; }

    /* two-up service / blog cards on tablets */
    .svc-grid,
    .hb-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .svc { padding: 60px 0 55px; }
    .home-blog { padding: 60px 0 65px; }
}

/* Phones */
@media (max-width: 767px) {
    .slider-title    { font-size: 30px !important; }
    .slider-subtitle { font-size: 20px !important; }
    .slider-welcome  { font-size: 16px !important; }

    /* stack service cards full-width with comfortable spacing */
    .services .service {
        padding: 40px 25px;
        text-align: center;
    }
    .services .service .service-icon { font-size: 56px; line-height: 56px; margin-bottom: 22px; }

    .blog { padding: 40px 0 10px; }
    .review { padding: 45px 0; }

    .section-title { font-size: 22px !important; margin-bottom: 30px !important; }
    .section-subtitle { font-size: 14px; margin-bottom: 35px; padding: 0 10px; }

    /* single-column cards on phones */
    .svc-grid,
    .hb-grid { grid-template-columns: 1fr; gap: 22px; }
    .svc .section-subtitle,
    .home-blog .section-subtitle { margin-bottom: 35px; }
    .svc-media, .hb-media { height: 200px; }
    .hb-all { margin-top: 32px; }

    /* testimonial: stack avatar above text so it reads well on small screens */
    .review-item { padding: 28px 20px; }
    .review-item-image { float: none; display: block; margin: 0 auto 18px; }
    .review-item-text,
    .review-item-name,
    .review-item-position { padding-left: 0 !important; text-align: center; }
    .review-item-quote { display: none; }

    .owl-blog .blog-item { margin: 10px 5px; }
}

/* Small phones */
@media (max-width: 480px) {
    .slider-title    { font-size: 24px !important; }
    .slider-subtitle { font-size: 17px !important; }

    .btn-primary, .blog .btn-primary-1 { padding: 9px 26px; }
    .about-text { padding: 40px 12px 25px; }
}
