/* ============================================ */
/*      Part 1: Global Design System & Reset    */
/* ============================================ */

/* --- CSS Variables --- */
:root {
    --bg-primary: #ffffff;
    --text-primary: #333333;
    --text-secondary: #5f5f5f;
    --accent: #fddcb5;
    --font-main: 'Red Hat Display', sans-serif;
    --header-height: 80px;
}

/* --- Basic Reset & Global Styles --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
}

h1, h2, h3 {
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; font-weight: 900; }
h2 { font-size: 2.5rem; color: var(--text-primary); }
h3 { font-size: 1.5rem; color: var(--text-secondary); }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--text-primary);
}

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

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 6rem 0;
}

.bg-light {
    background-color: #f8f9fa;
}

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

/* --- Button Styles --- */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 5px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--text-secondary);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background-color: var(--text-primary);
    color: var(--bg-primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-secondary);
    border-color: var(--text-secondary);
}

.btn-secondary:hover {
    background-color: var(--text-secondary);
    color: var(--bg-primary);
}

/* ============================================ */
/*          Part 2: Global Elements             */
/* ============================================ */

/* --- Header --- */
.site-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    height: var(--header-height);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-image {
    height: 45px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    font-weight: 700;
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.phone-number {
    font-weight: 700;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
}

/* --- Footer --- */
.site-footer-main {
    background-color: var(--text-primary);
    color: var(--bg-primary);
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-col h3 {
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-col p, .footer-col a {
    color: #ccc;
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: var(--bg-primary);
}

.footer-logo {
    width: auto;
    height: 50px;
    margin-bottom: 1rem;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.authority-logos {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.authority-logos img {
    height: 50px;
    width: auto;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-icons a {
    font-size: 1.5rem;
    color: #ccc;
}

.social-icons a:hover {
    color: var(--accent);
}

.sub-footer {
    background-color: #222;
    text-align: center;
    padding: 1rem 0;
    margin-top: 3rem;
}

.sub-footer p {
    font-size: 0.8rem;
    color: #aaa;
    margin: 0;
}

.sub-footer a {
    color: #ccc;
    text-decoration: underline;
}

/* ============================================ */
/*          Part 3: Page-Specific Styles        */
/* ============================================ */

/* --- Hero Section --- */
.hero {
    position: relative;
    height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--bg-primary);
}

.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.hero h2 {
    font-size: 1.5rem;
    font-weight: 400;
    max-width: 800px;
    margin: 0 auto 2rem;
    color: var(--bg-primary);
}

/* --- Trust Bar --- */
.trust-bar {
    background-color: var(--accent);
    padding: 1.5rem 0;
}

.trust-bar-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.trust-item img {
    height: 30px;
}

.trust-item .fa-star {
    color: var(--text-primary);
}

/* --- Two Column Layout (Promise, Expert Guide) --- */
.two-column-layout {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.column-left, .column-right {
    flex: 1;
}

.founder-photo, .guide-image {
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.key-promises {
    margin-top: 2rem;
}

.promise-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.promise-item i {
    font-size: 2.5rem;
    color: var(--accent);
}

.promise-item h3 {
    margin-bottom: 0.2rem;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.promise-item p {
    margin: 0;
}

/* --- Transformation Showcase --- */
.sliders-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.before-after-slider {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.slider-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: rgba(0,0,0,0.6);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    z-index: 5;
    font-size: 0.9rem;
}

.image-container {
    position: relative;
    width: 100%;
    padding-top: 62.5%; /* 800x500 aspect ratio */
}

.image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-after {
    clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
}

.slider-range {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: ew-resize;
    z-index: 10;
}
.slider-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 100%;
    width: 4px;
    background: white;
}

/* --- Testimonials --- */
.testimonial-carousel {
    position: relative;
    max-width: 800px;
    margin: 3rem auto 0;
    overflow: hidden;
}

.carousel-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-card {
    flex: 0 0 100%;
    background-color: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 2rem;
    text-align: center;
}

.testimonial-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    object-fit: cover;
}

.testimonial-quote {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.testimonial-author {
    font-weight: 700;
}

.testimonial-rating .fa-star {
    color: var(--accent);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--text-secondary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-btn:hover {
    background-color: var(--text-primary);
}

.prev-btn { left: -20px; }
.next-btn { right: -20px; }

/* ============================================ */
/*              Responsive Design               */
/* ============================================ */

@media (max-width: 1024px) {
    .header-center { display: none; }
    .header-right .phone-number { display: none; }
    .mobile-nav-toggle { display: block; }

    .nav-menu {
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--bg-primary);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1.5rem;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease-in-out;
    }

    .nav-menu.active {
        transform: translateY(0);
    }
    
    .two-column-layout {
        flex-direction: column;
        gap: 2rem;
    }
    .two-column-layout .column-right {
        order: -1; /* Puts image on top */
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .hero h1 { font-size: 2.8rem; }
    h2 { font-size: 2rem; }
    .section-padding { padding: 4rem 0; }

    .header-right .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .trust-bar-container {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .authority-logos, .social-icons {
        justify-content: center;
    }
    .instagram-feed-placeholder {
        margin: 0 auto;
    }
    
    .carousel-btn {
        top: auto;
        bottom: -50px;
    }
    .prev-btn { left: 35%; }
    .next-btn { right: 35%; }
    .testimonials { padding-bottom: 6rem; }
}