/* =========================================================================
   onlinedentistry.in - custom footer
   Layout modelled on the Agenko template, rebuilt with CSS Grid.
   No Bootstrap dependency. Accent uses the site's existing teal (#45d0bd).
   ========================================================================= */

/* This theme uses content-box globally, so scope border-box to the footer or
   width:100% + padding overflows and gets clipped by the footer's overflow:hidden. */
.od-footer,
.od-footer *,
.od-footer *::before,
.od-footer *::after {
    box-sizing: border-box;
}

.od-footer {
    --od-bg:        #18191b;
    --od-text:      #9e9fa0;
    --od-heading:   #ffffff;
    --od-accent:    #45d0bd;
    --od-rule:      rgba(255, 255, 255, .08);

    position: relative;
    /* Page sections on some templates (e.g. About Us) are positioned with
       z-index:1 and bleed their decorative gradients downward. Without a
       stacking level of its own the footer sits under them, which tints the
       content and swallows clicks on the links. */
    z-index: 5;
    overflow: hidden;
    isolation: isolate;
    padding-top: 130px;
    background-color: var(--od-bg);
    color: var(--od-text);
    font-size: 18px;
    line-height: 1.8;
}

/* The parent theme injects a fontello glyph via li::before on every list item
   inside the footer. Suppress it; the arrows are not part of this design. */
.od-footer li::before {
    content: none !important;
    display: none !important;
}

.od-footer__inner {
    width: 100%;
    max-width: 1290px;
    margin-inline: auto;
    padding-inline: 20px;
}

/* --- decorative shapes ---------------------------------------------------
   Glow values taken from the Agenko footer:
     blur_one  rgba(155,254,79,.5)   blur(80px)  261px  top/left -150px
     blur_two  rgba(202,186,231,.6)  blur(80px)  261px  bottom/right -150px
   ------------------------------------------------------------------------ */
.od-footer__blur {
    position: absolute;
    z-index: -1;
    pointer-events: none;
}

/* soft square glows, exactly as Agenko renders them */
.od-footer__blur {
    width: 261px;
    height: 261px;
    filter: blur(80px);
}

.od-footer__blur--one {
    top: -150px;
    left: -150px;
    background-color: rgba(155, 254, 79, .5);
}

.od-footer__blur--two {
    bottom: -150px;
    right: -150px;
    background-color: rgba(202, 186, 231, .6);
}

/* --- main grid --------------------------------------------------------- */
.od-footer__grid {
    display: grid;
    grid-template-columns: 4fr 3fr 5fr;
    gap: 40px;
    padding-bottom: 80px;
}

.od-footer__col--links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

/* --- about column ------------------------------------------------------ */
.od-footer__logo {
    display: inline-block;
    margin-bottom: 25px;
}

.od-footer__logo img {
    /* Source file is 185x66 - its natural size. Going larger upscales and softens,
       so this is the sharpness ceiling until a higher-res logo is supplied. */
    width: 185px;
    max-width: 100%;
    height: auto;
}

.od-footer__tagline {
    margin: 0 0 28px;
    max-width: 34ch;
}

.od-footer__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.od-footer__socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 1px solid var(--od-rule);
    border-radius: 50%;
    color: var(--od-text);
    transition: color .25s ease, border-color .25s ease, background-color .25s ease, transform .25s ease;
}

.od-footer__socials svg {
    width: 20px;
    height: 20px;
}

.od-footer__socials a:hover,
.od-footer__socials a:focus-visible {
    color: #0f1011;
    background-color: var(--od-accent);
    border-color: var(--od-accent);
    transform: translateY(-3px);
}

/* --- headings and blocks ----------------------------------------------- */
.od-footer__title {
    margin: 0 0 18px;
    color: var(--od-heading);
    font-size: 24px;
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: -.01em;
}

.od-footer__block { margin-bottom: 25px; }
.od-footer__block:last-child { margin-bottom: 0; }
.od-footer__block p { margin: 0; }

.od-footer a {
    color: inherit;
    text-decoration: none;
    transition: color .25s ease;
}

.od-footer__block a:hover,
.od-footer__menu a:hover,
.od-footer__block a:focus-visible,
.od-footer__menu a:focus-visible {
    color: var(--od-accent);
}

/* --- link menus -------------------------------------------------------- */
.od-footer__menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.od-footer__menu li { margin-bottom: 13px; }
.od-footer__menu li:last-child { margin-bottom: 0; }

.od-footer__menu a {
    position: relative;
    display: inline-block;
}

.od-footer__menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background-color: var(--od-accent);
    transition: width .3s ease;
}

.od-footer__menu a:hover::after,
.od-footer__menu a:focus-visible::after { width: 100%; }

/* --- copyright bar ----------------------------------------------------- */
.od-footer__copyright {
    border-top: 1px solid var(--od-rule);
}

.od-footer__copyright-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 30px;
    padding-block: 26px;
}

.od-footer__copy-text { margin: 0; font-size: 17px; }
.od-footer__copy-text a { color: var(--od-heading); }
.od-footer__copy-text a:hover { color: var(--od-accent); }

.od-footer__copy-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 17px;
}

.od-footer__copy-nav a:hover,
.od-footer__copy-nav a:focus-visible { color: var(--od-accent); }

/* --- scroll reveal (progressive enhancement only) ----------------------- */
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .od-reveal {
            opacity: 0;
            transform: translateY(45px);
            animation: od-fade-up linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 55%;
        }
    }
}

@keyframes od-fade-up {
    to { opacity: 1; transform: translateY(0); }
}

/* --- responsive -------------------------------------------------------- */
@media (max-width: 991px) {
    .od-footer { padding-top: 90px; }
    .od-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px 30px;
        padding-bottom: 55px;
    }
    .od-footer__col--links { grid-column: 1 / -1; }
}

@media (max-width: 575px) {
    .od-footer { padding-top: 70px; }
    .od-footer { font-size: 17px; }
    .od-footer__title { font-size: 21px; }
    .od-footer__logo img { width: 170px; }
    .od-footer__grid { grid-template-columns: 1fr; }
    .od-footer__col--links { grid-template-columns: 1fr; gap: 32px; }
    .od-footer__copyright-row { justify-content: flex-start; }
    .od-footer__blur { display: none; }
}
