/* CSS Variables for Design System */
:root {
    --primary: #1A2530;
    /* Deep Navy / Charcoal */
    --accent: #D4AF37;
    /* Luxurious Gold */
    --accent-hover: #B5952F;
    --text-dark: #222222;
    --text-light: #F8F9FA;
    --bg-light: #F4F6F8;
    /* Soft grayish white */
    --bg-dark: #121212;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

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

h1,
h2,
h3,
h4,
.logo {
    font-family: var(--font-heading);
    font-weight: 400;
}

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

ul {
    list-style: none;
}

/* Typography */
h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 1rem;
    color: var(--primary);
}

h3 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 400;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(194, 168, 120, 0.3);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 1px solid white;
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
    color: white;
}

.navbar.scrolled, .navbar.solid-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    color: var(--primary);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    color: inherit;
}
.logo img {
    height: 50px;
    width: auto;
    display: block;
    background: #fff;
    border-radius: 4px;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 1.05rem;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

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

.nav-btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    background-color: var(--accent);
    color: white;
}

.navbar.scrolled .nav-btn, .navbar.solid-nav .nav-btn {
    background: var(--primary);
    color: white;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 0.5rem 0;
    z-index: 1001;
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--primary);
    font-size: 1rem;
    font-weight: 500;
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-menu a:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--accent);
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

/* Hero Section */
.hero {
    height: 100vh;
    background-image: url("/assets/img/hero-new.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
    padding: 0 10%;
}

.hero-form-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
    border-radius: 8px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1.5s ease-out 0.5s both;
    max-width: 420px;
    margin-left: auto;
}

.hero-form-container h3 {
    color: white;
    margin-bottom: 1.2rem;
    font-size: 1.3rem;
}

.hero-form select {
    width: 100%;
    padding: 1rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
}

.hero-form select option {
    color: #1A1A1A;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(26, 31, 36, 0.9) 0%, rgba(26, 31, 36, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 800px;
    animation: fadeIn 1.5s ease-out;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

/* About Section */
.about {
    padding: 5rem 10%;
    background-color: var(--bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 3rem;
}

.stats {
    display: flex;
    gap: 4rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    color: #888;
    margin-top: 0.5rem;
}

.about-image-container {
    position: relative;
}

.about-img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-extended {
    margin-top: 6rem;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.founder-profile {
    display: flex;
    gap: 2rem;
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.founder-img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.certifications ul {
    list-style: none;
    padding: 0;
}

.certifications ul li {
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    font-size: 1.05rem;
    color: var(--text-dark);
}

.certifications ul li i {
    color: var(--accent);
    font-size: 1.5rem;
    width: 30px;
    text-align: center;
}

.about-shape {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 100%;
    height: 100%;
    background-color: var(--accent);
    z-index: 1;
    border-radius: 4px;
}

/* Portfolio Section */
.portfolio {
    padding: 5rem 10%;
    background-color: white;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 54, 63, 0.8);
    display: flex;
    align-items: flex-end;
    padding: 3rem;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-info {
    color: white;
    transform: translateY(20px);
    transition: var(--transition);
}

.portfolio-info h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.portfolio-info p {
    color: var(--accent);
    font-weight: 500;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover .portfolio-info {
    transform: translateY(0);
}

/* Gallery Section */
.gallery {
    padding: 5rem 10%;
    background-color: var(--bg-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    aspect-ratio: 1 / 1;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Testimonials */
.testimonials {
    padding: 5rem 10%;
    background-color: var(--bg-light);
}

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

.testimonial-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1rem;
    color: #555;
    font-size: 1.05rem;
    line-height: 1.6;
}

.testimonial-card h4 {
    color: var(--primary);
    margin-bottom: 0.2rem;
    font-size: 1.2rem;
}

.testimonial-card span {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
}

.stars {
    color: #FFD700;
    letter-spacing: 2px;
    font-size: 1.2rem;
}

/* How it works */
.how-it-works {
    padding: 5rem 10%;
    background-color: var(--bg-light);
}

/* Slider Styles */
.slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    overflow: hidden;
}

.slider-track {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding-bottom: 2rem;
    scrollbar-width: none;
    /* Firefox */
}

.slider-track::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.slide-card {
    flex: 0 0 calc(33.333% - 1.33rem);
    /* Show 3 cards at a time on desktop */
    background: white;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    scroll-snap-align: start;
    overflow: hidden;
    transition: transform 0.3s;
    text-align: center;
    position: relative;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

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

.step-badge {
    background: rgba(212, 175, 55, 0.1);
    /* Light Gold */
    color: var(--accent);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.slide-img-container {
    width: 100%;
    max-width: 200px;
    margin: 0 auto 1.5rem;
    position: relative;
}

.slide-img-container img {
    width: 100%;
    height: 150px;
    object-fit: contain;
}

.slide-content h4 {
    margin-top: 0;
    font-size: 1.1rem;
    color: var(--primary);
    line-height: 1.4;
    font-weight: 600;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #1a2530;
    margin: auto;
    padding: 3rem;
    border: 1px solid var(--accent);
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    position: relative;
    color: white;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease-out forwards;
}

.modal-content h2 {
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.modal-content p {
    margin-bottom: 2rem;
    opacity: 0.8;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
}

.close-modal:hover,
.close-modal:focus {
    color: white;
    text-decoration: none;
}

.slider-btn {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    background: var(--primary);
    color: var(--accent);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

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

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

@media (max-width: 992px) {
    .slide-card {
        flex: 0 0 calc(50% - 1rem);
    }
}

@media (max-width: 600px) {
    .slide-card {
        flex: 0 0 100%;
    }
}

/* Estimator Section */
.estimator {
    padding: 5rem 10%;
    background-color: var(--primary);
    color: white;
}

.estimator .section-header p {
    color: white;
}

.highlight-header {
    display: inline-block;
    color: var(--accent) !important;
    font-size: 3rem;
    border-bottom: 3px solid var(--accent);
    padding-bottom: 0.5rem;
}

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

.estimator-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.estimator-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 3px solid var(--accent);
}

.estimator-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.estimator-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.estimator-card h3 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.estimator-card p {
    margin-bottom: 1.5rem;
    opacity: 0.85;
    font-size: 1.05rem;
}

.estimator-card .price-hint {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 2rem;
    opacity: 1;
}

/* Latest Articles */
.latest-articles {
    padding: 5rem 10%;
    background-color: white;
}

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

.article-card {
    background: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.article-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-content {
    padding: 1.5rem;
}

.article-content h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.article-content p {
    color: #555;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* Contact Section */
.contact {
    padding: 5rem 10%;
    background: url("/assets/img/hero-new.jpg") center/cover fixed;
    position: relative;
    color: white;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 31, 36, 0.92);
    z-index: 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    position: relative;
    z-index: 1;
}

.contact > .section-header {
    position: relative;
    z-index: 1;
}

.contact-form h2 {
    font-size: 1.6rem;
    font-style: normal;
    color: #fff;
    margin-bottom: 1rem;
}

.contact-info h2 {
    color: white;
}

.contact-info p {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 3rem;
}

.contact-details p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-details strong {
    color: var(--accent);
}

.form-group {
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-bottom-color: var(--accent);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.submit-btn {
    width: 100%;
    margin-top: 1rem;
}

.success-message {
    display: none;
    color: #4CAF50;
    margin-top: 1rem;
    text-align: center;
    font-weight: 500;
}

/* Footer */
footer {
    padding: 4rem 10% 1rem;
    background-color: #1a1f24;
    color: rgba(255, 255, 255, 0.7);
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-info {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: white;
    margin-bottom: 1rem;
}

.footer-info p {
    margin-bottom: 2rem;
    line-height: 1.8;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icons a .fa-facebook-f {
    color: #1877F2;
}

.social-icons a .fa-instagram {
    color: #E1306C;
}

.social-icons a .fa-youtube {
    color: #FF0000;
}

.social-icons a .fa-telegram {
    color: #0088cc;
}

.social-icons a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.footer-map {
    width: 100%;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger .bar {
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 3px;
    transition: var(--transition);
}

.navbar.scrolled .hamburger .bar,
.navbar.solid-nav .hamburger .bar {
    background-color: var(--primary);
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 1200px) {
    .hero-container {
        gap: 2rem;
        padding: 0 5%;
    }
}

@media (max-width: 992px) {

    .about-grid,
    .about-extended,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .founder-profile {
        flex-direction: column;
        text-align: center;
    }

    .hero-container {
        grid-template-columns: 1fr;
        padding-top: 100px;
        text-align: center;
    }

    .hero-form-container {
        max-width: 500px;
        margin: 0 auto;
    }

    .hero {
        height: auto;
        min-height: 100vh;
        padding-bottom: 4rem;
    }

    .navbar { overflow: visible; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        max-width: none;
        height: auto;
        max-height: min(70vh, calc(100svh - 72px));
        overflow-y: auto;
        background: var(--primary);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 0;
        padding: 0.4rem 1.25rem 1.1rem;
        z-index: 1001;
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    }

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

    .nav-links a {
        color: white;
        font-size: 1.05rem;
        padding: 0.85rem 0.2rem;
        border-bottom: 1px solid rgba(255,255,255,.08);
        display: block;
    }

    .nav-links a::after { display: none; }

    .dropdown-menu {
        position: static;
        min-width: 0;
        background: transparent;
        box-shadow: none;
        padding: 0 0 0.4rem 0.8rem;
    }

    .dropdown-menu a {
        color: rgba(255,255,255,.9);
        font-size: 0.95rem;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar {
        background-color: white !important;
    }

    .nav-btn {
        display: none;
    }

    body.nav-open { overflow: hidden; }

    .about,
    .portfolio,
    .testimonials,
    .how-it-works,
    .estimator,
    .contact {
        padding: 5rem 5%;
    }
}

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

    h1 {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
    }

    h2 {
        font-size: clamp(2rem, 6vw, 2.5rem);
    }

    .stats {
        gap: 2rem;
        justify-content: center;
    }

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

    .about-shape {
        top: -15px;
        right: -15px;
    }
}

@media (max-width: 992px) {
    .hero,
    .contact {
        background-attachment: scroll;
    }
}

@media (max-width: 480px) {
    .hero-form-container {
        padding: 1.5rem;
    }

    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .estimator-card h3 {
        font-size: 1.5rem;
    }
}

/* =========================================
   NEW FEATURES STYLES
   ========================================= */

/* 1. Dark Mode Theme */
body.dark-mode {
    --bg-light: #121212;
    --text-dark: #F8F9FA;
    --primary: #ffffff;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

body.dark-mode .navbar.scrolled {
    background: rgba(30, 30, 30, 0.95);
    color: var(--primary);
}

body.dark-mode .about,
body.dark-mode .portfolio,
body.dark-mode .gallery,
body.dark-mode .testimonials,
body.dark-mode .how-it-works,
body.dark-mode .latest-articles {
    background-color: var(--bg-light);
}

body.dark-mode .founder-profile,
body.dark-mode .testimonial-card,
body.dark-mode .slide-card,
body.dark-mode .article-card,
body.dark-mode .dropdown-menu {
    background: #1e1e1e;
    color: #e0e0e0;
}

body.dark-mode h2,
body.dark-mode h4,
body.dark-mode .nav-links a {
    color: var(--primary);
}

body.dark-mode .dropdown-menu a {
    color: #e0e0e0;
}

body.dark-mode .dropdown-menu a:hover {
    background: #333;
    color: var(--accent);
}

body.dark-mode .about-text p,
body.dark-mode .testimonial-card p {
    color: #b0b0b0;
}

body.dark-mode .section-header p,
body.dark-mode .certifications ul li {
    color: #e0e0e0;
}

/* 2. WhatsApp Floating Button */
.whatsapp-float,
.wa-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(0, 12px, 0);
}
.whatsapp-float.is-visible,
.wa-float.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: white;
    transform: scale(1.1);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
}

/* 3. Portfolio Filters */
.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--text-dark);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    transition: var(--transition);
}

body.dark-mode .filter-btn {
    color: var(--primary);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent);
    color: white;
}

.portfolio-item {
    transition: all 0.5s ease;
}

.portfolio-item.hide {
    display: none;
}

/* 4. Before & After Slider */
.before-after-section {
    padding: 5rem 10%;
    background-color: var(--bg-light);
}

.ba-slider-container {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.ba-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.ba-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ba-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ba-image-after {
    z-index: 2;
    /* initial clip path at 50% */
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

.ba-label {
    position: absolute;
    top: 20px;
    padding: 5px 15px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    z-index: 4;
}

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

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

.ba-slider-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 5;
    cursor: ew-resize;
}

.ba-slider-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: white;
    z-index: 3;
    transform: translateX(-50%);
    pointer-events: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.ba-slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* 5. Cost Calculator Form */
.calculator-container {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.calculator-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.calculator-form select,
.calculator-form input {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-radius: 4px;
    font-size: 1rem;
    font-family: var(--font-body);
}

.calculator-form select option {
    color: var(--text-dark);
}

.calculator-result {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    animation: fadeIn 0.5s ease-out;
}

.price-value {
    font-size: 3rem;
    color: var(--accent);
    margin: 1rem 0;
}


.skip {
    position: absolute;
    left: -999px;
    top: 0;
}
.skip:focus {
    left: 1rem;
    top: 1rem;
    z-index: 80;
    background: #fff;
    padding: 0.5rem 0.8rem;
}

.wrap {
    width: min(1180px, calc(100% - 2rem));
    margin-inline: auto;
}

body.page-inner {
    padding-top: 88px;
}

.lang-switch {
    border: 1px solid currentColor;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.82rem;
}

.phone-hl,
.btn--brass {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: var(--accent);
    color: #fff !important;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.95rem 1.6rem;
    border-radius: 4px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
}
.phone-hl:hover,
.btn--brass:hover {
    background: var(--accent-hover);
    color: #fff !important;
    transform: translateY(-2px);
}
.btn--whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #25d366;
    color: #fff !important;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.95rem 1.4rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.82rem;
}
.btn--whatsapp:hover { filter: brightness(1.06); color: #fff !important; }

.hero-btns { display: flex; flex-wrap: wrap; gap: 1rem; }

.section { padding: 4.5rem 0; }
.section--white { background: #fff; }
.section__head { text-align: center; margin-bottom: 2.6rem; }
.section__title {
    font-family: var(--font-heading);
    font-size: clamp(1.9rem, 3.4vw, 3rem);
    font-weight: 400;
    line-height: 1.15;
    margin: 0.3rem 0 0.8rem;
    color: var(--primary);
}
.lede { color: #555; max-width: 42rem; }
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent);
    margin: 0 0 0.9rem;
}

.service-grid,
.town-grid,
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.15rem;
    padding: 0;
    margin: 1.6rem 0 0;
    list-style: none;
}
.card {
    background: #fff;
    border: 1px solid rgba(26,37,48,.12);
    padding: 1.15rem 1.2rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    display: block;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(18, 24, 32, 0.12);
    color: inherit;
}
.card h3, .card h2 {
    font-family: var(--font-heading);
    font-size: 1.28rem;
    font-weight: 400;
    margin: 0 0 0.4rem;
}
.card p { margin: 0; color: #555; font-size: 0.95rem; }
.card--photo { padding: 0; }
.card__media {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #e8edf1;
}
.card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card__body { display: block; padding: 1rem 1.1rem 1.2rem; }

.page-figure {
    margin: 0 0 1.6rem;
    border-radius: 8px;
    overflow: hidden;
    background: #e8edf1;
}
.page-figure img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}
.page-figure figcaption {
    padding: 0.65rem 0.2rem 0;
    font-size: 0.85rem;
    color: #555;
}

.page-hero {
    position: relative;
    color: #fff;
    padding: 3.4rem 0 3.2rem;
    overflow: hidden;
    background: #121820;
}
.page-hero__bg { position: absolute; inset: 0; }
.page-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(18,24,32,.55) 0%, rgba(18,24,32,.82) 100%);
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.95rem, 4vw, 3.3rem);
    font-weight: 400;
    margin: 0 0 0.7rem;
    line-height: 1.15;
    color: #fff;
}
.page-hero p { max-width: 44rem; color: rgba(255,255,255,.88); }
.page-hero .crumbs a { color: rgba(255,255,255,.88); }
.page-hero .crumbs span { color: rgba(255,255,255,.72); }

.crumbs {
    font-size: 0.82rem;
    margin: 0 0 0.85rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}
.also-searched {
    font-size: 0.92rem;
    color: #555;
    border-left: 3px solid var(--accent);
    padding: 0.35rem 0 0.35rem 0.85rem;
}
.town-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.5rem;
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}
.town-compact a {
    display: inline-block;
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(26,37,48,.12);
    background: #fff;
    color: var(--primary);
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
}
.trust {
    display: flex;
    gap: 0.95rem;
    align-items: flex-start;
    background: #fff;
    border: 1px solid rgba(26,37,48,.12);
    border-radius: 10px;
    padding: 1rem 1.15rem;
    margin-top: 1.25rem;
}
.trust img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
}
.trust p { margin: 0.35rem 0 0.65rem; color: #555; }

.social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0.85rem 0 0;
}
.social a {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255,255,255,.22);
    color: #fff;
    padding: 0.38rem 0.8rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
}
.social--ink a {
    border-color: rgba(26,37,48,.12);
    color: var(--primary);
    background: #fff;
}

.site-footer {
    padding: 4rem 10% 1rem;
    background-color: #1a1f24;
    color: rgba(255,255,255,.7);
}
.site-footer a { color: #fff; }
.tiny { font-size: 0.85rem; opacity: 0.7; margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.1); }

.prose { max-width: 46rem; }
.prose h2 {
    font-family: var(--font-heading);
    font-weight: 400;
    margin: 2rem 0 0.6rem;
    color: var(--primary);
}
.related { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0 0; }
.related a {
    background: #fff;
    border: 1px solid rgba(26,37,48,.12);
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.9rem;
    color: var(--primary);
}

.faq details { border-bottom: 1px solid rgba(26,37,48,.12); padding: 0.95rem 0; }
.faq summary { cursor: pointer; font-weight: 600; }

.form {
    display: grid;
    gap: 0.7rem;
    background: #fff;
    border: 1px solid rgba(26,37,48,.12);
    padding: 1.4rem;
    border-radius: 10px;
}
.form input, .form textarea, .form select {
    width: 100%;
    padding: 0.75rem 0.8rem;
    border: 1px solid rgba(26,37,48,.12);
    border-radius: 6px;
    font: inherit;
    background: #f4f6f8;
}
.form button { cursor: pointer; font: inherit; }

.contact-list { list-style: none; padding: 0; margin: 1rem 0 1.4rem; }
.contact-list li { margin: 0.55rem 0; }
.map-frame { width: 100%; min-height: 340px; border: 0; border-radius: 8px; }
.split {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    align-items: center;
}
.split--start { align-items: start; }

.gallery-note {
    text-align: center;
    font-size: 0.88rem;
    color: #555;
    margin: 1.1rem 0 0;
}

.call-bar { display: none; }

.navbar.solid-nav .theme-toggle,
.navbar.scrolled .theme-toggle { color: var(--primary); }

.theme-toggle {
    background: transparent;
    border: none;
    color: inherit;
    padding: 0.5rem 0.8rem;
    cursor: pointer;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1rem;
}
.footer-logo img { height: 60px; width: auto; background: #fff; border-radius: 4px; }
.developer-credit {
    font-size: 0.8rem;
    color: rgba(255,255,255,.6);
    margin-top: 10px;
}

.price-note {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 1.4rem;
}

@media (max-width: 992px) {
    .split { grid-template-columns: 1fr; }
    .call-bar {
        display: grid;
        grid-template-columns: 1.4fr 1fr;
        gap: 0.5rem;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 46;
        padding: 0.65rem 0.75rem calc(0.65rem + env(safe-area-inset-bottom));
        background: rgba(18, 24, 32, 0.96);
        backdrop-filter: blur(12px);
        border-top: 1px solid rgba(255,255,255,.1);
        transform: translateY(110%);
        visibility: hidden;
        pointer-events: none;
        opacity: 0;
        transition: transform 0.28s ease, opacity 0.28s ease;
    }
    .call-bar.is-visible {
        transform: translateY(0);
        visibility: visible;
        pointer-events: auto;
        opacity: 1;
    }
    .call-bar .phone-hl,
    .call-bar .btn { width: 100%; font-size: 0.78rem; padding: 0.85rem 0.5rem; }
    footer, .site-footer { padding-bottom: 6.5rem; }
    .whatsapp-float, .wa-float { bottom: 5.4rem; right: 1rem; }
}

@media (max-width: 768px) {
    .card-grid, .town-grid { grid-template-columns: 1fr; }
}

@media (min-width: 993px) {
    .whatsapp-float, .wa-float { bottom: 1.4rem; right: 1.4rem; }
}

@media (max-width: 420px) {
    .logo span { display: none; }
}
