/* 
   Skinthority Aesthetic Academy - Main Text Stylesheet
   Theme: Medical Luxury (Magenta, Gold, White)
*/

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette */
    --primary: #9b1c78;
    /* Magenta/Purple from logo */
    --primary-dark: #7a155e;
    --accent: #d4af37;
    /* Gold */
    --accent-light: #f3e5ab;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    --black: #000000;

    /* Spacing */
    --section-padding: 80px 0;

    /* Transitions */
    --transition: all 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

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

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 40px;
    display: block;
}

/* Enhanced Hero Sections (Overrides inline styles) */
.hero {
    padding: 250px 0 150px !important;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background-attachment: fixed !important;
    /* Parallax effect */
}

.hero .section-title {
    font-size: 4rem !important;
    /* Bigger title */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.page-header {
    padding: 180px 0 100px !important;
    min-height: 45vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 3.5rem !important;
    font-weight: 700;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    letter-spacing: -1px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    border-radius: 5px;
    /* Slight rounded corners for modern feel */
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    border-color: var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--white);
}

.btn-accent:hover {
    background-color: #bfa030;
}

/* Header & Navigation */
header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo img {
    height: 70px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 1rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

/* Dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    border-top: 3px solid var(--accent);
}

.nav-links li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    font-size: 0.95rem;
}

.dropdown-menu a:hover {
    background-color: #f9f9f9;
    padding-left: 25px;
    /* Slide effect */
}

/* Mobile Menu */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Media Query for Mobile Header */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 90px;
        right: -100%;
        height: calc(100vh - 90px);
        background-color: var(--white);
        flex-direction: column;
        width: 100%;
        padding: 40px;
        transition: var(--transition);
        gap: 20px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.05);
    }

    .nav-links.active {
        right: 0;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        padding-left: 20px;
        border-top: none;
        border-left: 2px solid var(--accent);
    }

    .nav-links li.active .dropdown-menu {
        display: block;
    }
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--accent);
    margin-bottom: 25px;
}

.footer-col p {
    color: #ccc;
    margin-bottom: 15px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #ccc;
}

.footer-col ul li a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary);
    border-color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 0.9rem;
    color: #888;
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* product-grid styles */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.product-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(155, 28, 120, 0.15);
}

.product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover::after {
    opacity: 1;
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.treatment-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(155, 28, 120, 0.9);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(5px);
    z-index: 5;
}

.product-info {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
    border-top: none;
    border-radius: 0 0 15px 15px;
}

.product-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 700;
}

.product-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 30px;
    flex-grow: 1;
    line-height: 1.8;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 20px 0;
    font-size: 0.85rem;
    color: var(--text-light);
}

.breadcrumbs a {
    color: var(--primary);
}

.breadcrumbs span {
    margin: 0 10px;
}

/* Accordion Styles */
.accordion-item {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.accordion-header {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    transition: var(--transition);
}

.accordion-header:hover {
    background: #f9f9f9;
}

.accordion-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--primary);
}

.accordion-header::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent);
    transition: var(--transition);
}

.accordion-header.active::after {
    transform: rotate(45deg);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #fff;
}

.accordion-body p {
    padding: 0 20px 20px;
    color: var(--text-light);
}

.gallery-item-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

/* Before & After Slider */
.ba-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4; /* Fallback to portrait before loading */
    overflow: hidden;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    user-select: none;
    background-color: #f7f7f7;
}

.ba-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.ba-before {
    z-index: 10;
    /* We use clip-path on the before image for perfect alignment */
    clip-path: inset(0 50% 0 0);
    transition: none;
}

.ba-after {
    z-index: 5;
}

.ba-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: white;
    z-index: 20;
    cursor: col-resize;
    transform: translateX(-50%);
}

.ba-handle-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    border: 3px solid white;
    font-size: 1.2rem;
}

.ba-label {
    position: absolute;
    bottom: 20px;
    padding: 6px 14px;
    background: rgba(155, 28, 120, 0.8);
    color: white;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 4px;
    z-index: 15;
    pointer-events: none;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.ba-label-before {
    left: 20px;
}

.ba-label-after {
    right: 20px;
}

/* Admin Gallery Styles */
.admin-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 60px 0;
    color: var(--white);
    margin-top: -50px;
    position: relative;
    z-index: 10;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item h2 {
    color: var(--accent);
    font-size: 3rem;
    margin-bottom: 5px;
    font-weight: 800;
}

.stat-item p {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    opacity: 0.9;
}

/* Comparison Table */
.comparison-wrapper {
    margin-top: 80px;
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.comparison-table th,
.comparison-table td {
    padding: 25px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.comparison-table th {
    background: var(--bg-light);
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.comparison-table .feature-col {
    width: 30%;
    font-weight: 700;
    color: var(--text-dark);
}

.comparison-table .skinthority-col {
    width: 35%;
    background: rgba(155, 28, 120, 0.03);
    color: var(--primary);
    font-weight: 600;
}

.comparison-table .others-col {
    width: 35%;
    color: var(--text-light);
}

.check-icon {
    color: #2fb344;
    margin-right: 10px;
}

.cross-icon {
    color: #d63939;
    margin-right: 10px;
}

@media (max-width: 768px) {
    .stats-section {
        margin-top: 0;
        border-radius: 0;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 15px;
        font-size: 0.9rem;
    }
}

/* Testimonials Section */
.testimonials {
    background-color: var(--bg-light);
    padding: 100px 0;
}

.google-badge-container {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

.google-badge {
    background: var(--white);
    border-radius: 12px;
    padding: 15px 30px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid #eee;
}

.google-badge i.fa-google {
    font-size: 2rem;
    background: linear-gradient(45deg, #4285f4, #34a853, #fbbc05, #ea4335);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.google-badge-text {
    text-align: left;
}

.google-badge-rating {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

.google-badge-stars {
    color: var(--accent);
    margin-left: 5px;
}

.google-badge-count {
    font-size: 0.85rem;
    color: var(--text-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background: var(--white);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #f3f3f3;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(155, 28, 120, 0.08);
}

.testimonial-quote-icon {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 2.5rem;
    color: rgba(155, 28, 120, 0.05);
}

.testimonial-stars {
    color: var(--accent);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.testimonial-text {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 25px;
    font-style: italic;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: auto;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
}

.testimonial-info h4 {
    margin-bottom: 2px;
    color: var(--primary);
    font-size: 1.05rem;
    font-weight: 700;
}

.testimonial-info p {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Facility Gallery Section */
.facility-section {
    background-color: var(--white);
    padding: var(--section-padding);
}

.facility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.facility-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}

.facility-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.facility-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.facility-info {
    padding: 20px;
    background: var(--white);
    border-top: 2px solid var(--accent-light);
}

.facility-info h4 {
    margin-bottom: 5px;
    color: var(--primary);
}

.facility-info p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Why Choose Grid - Fixed Symmetric Layout */
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.why-grid .product-card {
    padding: 30px !important;
}

@media (max-width: 992px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .why-grid {
        grid-template-columns: 1fr;
    }
}