@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    font-family: "Poppins", sans-serif;
    font-optical-sizing: auto;
    line-height: 1.5;
    font-style: normal;
    --prime: #0F6E94;
    --primelt: #52A1B8;
    --accentd: #C8C0AB;
    --accent: #E4DECE;
    --text: #333333;
    --lgr-prime: linear-gradient(90deg, #0C6F96 0%, #CCF4FF 100%);
    scroll-behavior: smooth;
    --base-font: clamp(.9rem, calc(.6rem + .5vw), 1.1rem);
    font-size: var(--base-font);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:where(*:not(.bg-prime *, .hero *, .fancybox-container *)) {
    color: var(--text);
}

.bg-prime {
    background: var(--prime);
    color: #fff;
}

.bg-prime * {
    color: #fff;
}

.text-prime {
    color: var(--prime);
}

.bg-light {
    background: var(--accent);
}


/* typography */

h1 {
    font-size: clamp(2rem, calc(1.5rem + 2.5vw), 3rem);
    font-weight: 500;
}

.h2 {
    font-size: clamp(1.8rem, calc(1.3rem + 2.2vw), 2.8rem);
    font-weight: 500;
}

.h3 {
    font-size: clamp(1.6rem, calc(1.2rem + 1.8vw), 2.5rem);
    font-weight: 500;
}

.h4 {
    font-size: clamp(1.4rem, calc(1.1rem + 1.5vw), 2.2rem);
    font-weight: 500;
}

.h5 {
    font-size: clamp(1rem, calc(.9rem + 1vw), 1.5rem);
    font-weight: 500;
}

.h6 {
    font-weight: 500;
}

h2:has(span) {
    font-weight: 300 !important;
}

h1 span,
h2 span,
h3 span,
h4 span,
h5 span,
h6 span {
    font-weight: 600 !important;
    color: var(--prime);
}

img {
    width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
}

li,
p {
    margin-bottom: 1rem;
	line-height: 28px;
}


/* blocks & sections */

.container {
    max-width: 1381px;
    margin-inline: auto;
    padding-inline: clamp(1rem, calc(1rem + 2.5vw), 3rem);
}

section>.container {
    padding-block: clamp(2rem, calc(1.5rem + 2.5vw), 3rem);
}

.row {
    display: grid;
    gap: 20px;
}

@media (width > 1024px) {
    .row {
        grid-template-columns: 4fr 5fr;
    }

    .row.reverse {
        /* grid-template-columns: 4fr 5fr; */
        direction: rtl;
    }

    .row.reverse>* {
        direction: ltr;
    }
}

.btn-white,
.btn-prime {
    background: var(--prime);
    color: #fff;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 400;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: all.3s ease-in-out;
}

.btn-white {
    background: #fff;
    color: var(--prime);
    transition: all.3s ease-in-out;
}

/* .btn-white:hover,
.btn-prime:hover {
   filter: invert(1);
   transition: all.3s ease-in-out;
} */

.centertitle {
    display: grid;
    grid-template-columns: calc(var(--base-font)*4.4) 1fr calc(var(--base-font)*4.4);
    gap: var(--base-font);
    text-align: center;
	margin-bottom: 25px;
}

.lefttitle {
    display: grid;
    grid-template-columns: 1fr calc(var(--base-font)*4.4);
    gap: var(--base-font);
}

/* header */
header {
    z-index: 9999;
    position: sticky;
    background: #fff;
    top: 0;
    width: 100%;
    transition: all .3s ease-in-out;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-block: 6px;
}

header nav a img {
    max-height: 70px;
    transition: all .3s ease-in-out;
}

header.stick nav a img {
    max-height: 50px;
    transition: all .3s ease-in-out;
}

header nav ul {
    list-style: none;
    list-style-type: none;
    display: flex;
    gap: calc(1rem + 1vw);
    align-items: center;
}

header nav ul li {
    margin-bottom: 0;
    font-size: 16px;
}

header nav ul li:last-child {
    display: none;
}

header label {
    display: none;
}

@media (width < 1024px) {
    header label {
        display: block;
        height: 40px;
        width: 40px;
        position: relative;
        cursor: pointer;
    }

    header label::before,
    header label::after,
    header label span {
        content: '';
        display: block;
        width: 24px;
        height: 2px;
        background: var(--prime);
        position: absolute;
        left: 8px;
        transition: transform 0.3s ease;
    }

    header label::before {
        top: 12px;
    }

    header label span {
        top: 19px;
    }

    header label::after {
        top: 26px;
    }

    header:has(input:checked) label::before {
        transform: translateY(7px) rotate(45deg);
    }

    header:has(input:checked) label span {
        opacity: 0;
    }

    header:has(input:checked) label::after {
        transform: translateY(-7px) rotate(-45deg);
    }

    header nav ul {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        width: 100%;
        left: -100%;
        background: #fff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        padding: 1rem;
        gap: 1rem;
        transition: all 0.3s ease-in-out;
    }

    header:has(input:checked) nav ul {
        left: 0;
        transition: all 0.3s ease-in-out;
    }

    header nav ul li:last-child {
        display: block;
    }

    header a.btn-prime {
        display: none;
    }
}

/* footer */

footer * {
    color: #fff !important;
}

footer .columns {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    /* grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); */
    gap: 1.4rem;
    padding-block: 1.7rem;
}

footer .columns>div {
    max-width: 330px;
}

footer .columns h3,
footer .columns h4,
footer .columns h5 {
    font-weight: 500;
    font-size: 24px;
    margin-top: 1rem;
}

footer .columns h3 {
    font-size: 36px;
    text-transform: uppercase;
}

footer .columns h5 {
    font-size: 20px;
}

footer .columns p {
    font-weight: 400 !important;
    font-size: 13px !important;
    margin-top: .8rem;
}

footer .columns a {
    font-weight: 400 !important;
    display: block;
    font-size: 14px !important;
    margin-top: 1rem;
}

.social-media {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-media a {
    max-width: 50px;
    aspect-ratio: 1;
}

footer .credit-area .flex,
footer .credit-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-block: 1rem;
}

footer .credit-area * {
    font-size: 14px;
}

footer .credit-area img{
    width: 20px;
    height: auto;
    margin-right: 7px;
    margin-left: 20px;
    margin-bottom: -5px;
}


/* Dialog Modal */
dialog {
    padding: 2rem;
    margin: auto;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
}

dialog::backdrop {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}

.hero {
    background: var(--lgr-prime);
    color: #fff;
}

.hero .container {
    padding-block: var(--base-font);
}

/* Animations - Effective if user has no preferance for reduced motion */

@media (prefers-reduced-motion: no-preference) {
    .animate-this.up {
        opacity: 0;
        transform: translateY(50px);
        transition: all 0.8s ease-in-out;
    }

    .animate-this.up.animated {
        opacity: 1;
        transform: translateY(0);
        transition: all 0.8s ease-in-out;
    }

    .animate-this.swipe {
        opacity: 0;
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .animate-this.swipe.animated {
        opacity: 1;
        animation: text-slice-animation 1.2s ease-in-out forwards;
    }

    @keyframes text-slice-animation {
        0% {
            clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
        }

        100% {
            clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        }
    }

    .animate-this.spin {
        transform: rotate(0deg);
        transition: transform 1s ease-in-out;
    }

    .animate-this.spin.animated {
        transform: rotate(90deg);
        transition: transform 1s ease-in-out;
    }
}
.galler_sec .container {
    padding-bottom: 10px;
}
.booksec h3{
	line-height: 1.45;
}
.service-wrapper .servicecard h4{
	margin-bottom: 5px;
}

.blog-content p {
	margin-bottom: 4px;
}
.ser_sec .container {
    margin-bottom: 25px;
}

.smiles_sec{
	padding-bottom: 10px;
}
.faqvideo { width: 528px; }
.book-btn a {
    background-color: #FFFFFF;
    border-radius: 50px;
    padding: 12px 29px;
    font-size: 16px;
    line-height: 20px;
    font-weight: 500;
    display: flex;
	    align-items: center;
    max-height: inherit !important;
}
.book-btn a img {
    display: inline-block;
    margin-left: 10px;
}
article h2{
		font-size: 26px;
		font-weight: 600;
		margin-bottom: 10px;
	}
	article h3{
		font-size: 20px;
		font-weight: 600;
		margin-bottom: 10px;
		
	}
	article ul{
	    padding-left: 30px;	
		padding-bottom: 15px;
	}
	article ul li{
		margin-bottom: 7px;
	}
	article ol{
	    padding-left: 30px;	
		padding-bottom: 15px;
	}
	article ol li{
		margin-bottom: 7px;
	}

@media (max-width: 1025px) {
.row { grid-template-columns: 1fr 1fr; }
.faqvideo {
    width: 100%;
}
}
@media (max-width: 991px) {
.h2 {
    font-size: clamp(1.8rem, calc(1.3rem + 1.5vw), 2.8rem);
}		
}
@media (max-width: 767px) {
.row {
    display: block;
}
.about-dentalimg {
    margin: 0 auto;
}
.about-dentaltxt {
    padding-left: 0 !important;
}
.book-btn a {
    padding: 10px 22px;
    font-size: 14px;
}
.title{
	flex-wrap: wrap;
}
.h3 {
    font-size: clamp(1.6rem, calc(1.2rem + 1.4vw), 2.5rem);
}
.blog-card .title {
    flex-wrap: nowrap;
}
.booksec h3 {
    margin-bottom: 20px !important;
}
.emergency_txt {
    padding-left: 22px !important;
}
.working-hours {
    padding: 30px 30px !important;
}
.emergency_txt h3 {
        margin-bottom: 10px !important;
    }
.hero-img img{
		max-height: 160px !important;
	}
}
@media (max-width: 479px) {
	.blog-carousel .owl-prev {
		left: 0 !important;
		top: auto;
        bottom: -8px;
	}
	.blog-carousel .owl-next {
		right: 0 !important;
		top: auto;
        bottom: -8px;
	}
	.counters {
		flex-wrap: wrap !important;
	}
	.counters .item:first-child{
		margin-bottom: 15px;
	}
	.credit-links a {
		display: block;
	}
	.credit-links a img {
		margin-left: 0;
	}
	.contact_form div.halfs {
    display: block !important;
	}
	.hero-img img{
		max-height: 110px !important;
	}
footer .columns h3 {
    font-size: 28px;
}

}
@media (max-width: 374px) {
.working-hours {
        padding: 30px 20px !important;
    }
	}