:root {
    /* Monochrome Palette */
    --primary-color: #000000;
    /* Black */
    --secondary-color: #808080;
    /* Grey */
    --accent-color: #333333;
    /* Dark Grey */

    --text-color: #333333;
    --light-bg: #f5f5f5;
    /* Light Grey BG */
    --white: #ffffff;
    --border-color: #e5e5e5;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;

    /* Shadows */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    font-weight: 400;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -1px;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 25px;
}

/* Animation Classes */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Header */
.site-header {
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo a {
    display: block;
}

.logo img {
    height: 50px;
    /* Default height */
    width: auto;
    object-fit: contain;
}

/* 
.logo span {
    color: var(--secondary-color);
} 
*/


.main-nav>ul {
    display: flex;
    gap: 30px;
    /* Consitent spacing */
    align-items: center;
    margin: 0;
    padding: 0;
    height: 100%;
}

.main-nav>ul>li {
    display: flex;
    align-items: center;
    height: 100%;
    position: relative;
}

.main-nav>ul>li>a {
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 1px;
    color: #444;
    /* Softer black */
    position: relative;
    padding: 25px 0;
    /* Increase clickable area vertically */
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.main-nav>ul>li>a:hover,
.main-nav>ul>li>a.active {
    color: var(--primary-color);
}

.main-nav>ul>li>a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav>ul>li>a:hover::after,
.main-nav>ul>li>a.active::after {
    width: 100%;
}

/* Dropdown Menu */


.dropdown-menu {
    display: none;
    position: absolute;
    top: 50px;
    /* Align with header height slightly offset */
    left: 50%;
    transform: translateX(-50%);
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Softer shadow */
    min-width: 240px;
    padding: 10px 0;
    z-index: 1100;
    border-radius: 8px;
    /* Rounded corners */
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    margin-left: -6px;
    border-width: 0 6px 6px;
    border-style: solid;
    border-color: #fff transparent;
    /* Little triangle arrow */
    filter: drop-shadow(0 -2px 2px rgba(0, 0, 0, 0.02));
}

.main-nav>ul>li:hover .dropdown-menu {
    display: block;
    animation: slideUp 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.dropdown-menu li {
    display: block !important;
    flex-direction: column !important;
    margin: 0 !important;
    height: auto !important;
    width: 100% !important;
    align-items: stretch !important;
}

.dropdown-menu a {
    display: block !important;
    padding: 12px 25px !important;
    color: #555 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    border-bottom: 1px solid #f9f9f9 !important;
    transition: all 0.2s ease;
    white-space: nowrap;
    width: 100% !important;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-menu a:hover {
    background: #fdfdfd;
    color: var(--primary-color);
    padding-left: 30px;
    /* Enhanced slide effect */
    font-weight: 600;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, 10px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Header Button Specifics */
.main-nav .btn {
    padding: 10px 40px;
    /* Smaller padding for header */
    font-size: 11px;
    margin-left: 15px;
    /* Separate from links */
    background-color: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
}

.main-nav .btn:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: none;
    /* No jump in header */
    box-shadow: none;
}

.main-nav .btn::after {
    display: none;
    /* Remove underline from button */
}

.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
    background: none;
    border: none;
}

/* Search Feature */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-toggle-mobile {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: var(--primary-color);
    padding: 10px;
    transition: color 0.3s;
}

.search-toggle-mobile:hover {
    color: var(--secondary-color);
}

.search-item {
    position: relative;
    margin-left: 10px;
}

.search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: var(--primary-color);
    padding: 10px;
    transition: color 0.3s;
}

.search-toggle:hover {
    color: var(--secondary-color);
}

.search-container {
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    background: white;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1200;
}

.search-container.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-item:hover .search-container {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-form {
    display: flex;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
}

.search-form input {
    flex: 1;
    border: none;
    padding: 10px 15px;
    outline: none;
    font-family: var(--font-body);
}

.search-form button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0 15px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-form button:hover {
    background: #333;
}

/* Button */
.btn {
    display: inline-block;
    padding: 14px 34px;
    background-color: var(--primary-color);
    color: var(--white);
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    border: 1px solid var(--primary-color);
    cursor: pointer;
    transition: all 0.3s;
}

.btn:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: white;
    color: var(--primary-color);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-link:hover {
    gap: 12px;
    color: var(--secondary-color);
}

/* Hero Section */
.hero-slider {
    position: relative;
    height: 90vh;
    overflow: hidden;
    margin-top: 0;
}

body {
    padding-top: var(--header-height);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Grey/Black Overlay */
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 900px;
    padding: 20px;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 25px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    color: #fff;
    /* Ensure white text on dark overlay */
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    font-weight: 300;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    color: var(--primary-color);
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--secondary-color);
    margin: 15px auto 0;
}

.section-header p {
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.services-grid .service-card:nth-child(2) {
    transition-delay: 0.1s;
}

.services-grid .service-card:nth-child(3) {
    transition-delay: 0.2s;
}

.services-grid .service-card:nth-child(4) {
    transition-delay: 0.3s;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    text-align: center;
    border: 1px solid #f0f0f0;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    border-radius: 4px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.service-icon {
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    background: #f5f5f5;
    /* Light grey bg */
    font-size: 30px;
    color: var(--primary-color);
    margin: 0 auto 25px;
    transition: all 0.3s;
}

.service-card:hover .service-icon {
    background: var(--primary-color);
    color: white;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    letter-spacing: 0.5px;
}

.service-card p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.8;
}

/* About Snippet */
.about-snippet {
    background-color: var(--light-bg);
    display: flex;
    align-items: center;
}

.about-image,
.about-text {
    flex: 1;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 600px;
    filter: grayscale(100%);
    /* Optional: Make images B&W as well for theme */
    transition: filter 0.5s;
}

.about-image:hover img {
    filter: grayscale(0%);
}

.about-text {
    padding: 80px;
}

/* Results / Before & After */
.results-section {
    background-color: var(--white);
}

.result-card {
    background: var(--light-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.comparison-images {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.img-wrapper {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.img-wrapper img {
    transition: transform 0.5s ease;
    filter: grayscale(20%);
}

/* Slight desaturation */
.result-card:hover .img-wrapper img {
    transform: scale(1.05);
    filter: grayscale(0%);
}


/* Footer */
.site-footer {
    background-color: #000;
    color: #ccc;
    padding: 80px 0 30px;
    font-size: 0.95rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 30px;
    font-size: 1.2rem;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #999;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    transition: 0.3s;
}

.social-links a:hover {
    background: var(--white);
    color: #000;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 0.85rem;
    color: #666;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .h1 {
        font-size: 3rem;
    }

    .about-text {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .container {
        padding: 0 20px;
    }

    .site-header .container {
        padding: 0 15px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .search-toggle-mobile {
        display: block;
    }

    .search-container {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        padding: 20px;
        transform: translateY(-10px);
    }

    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--white);
        padding: 40px 30px;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: none;
        overflow-y: auto;
    }

    .main-nav.active {
        left: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 25px;
    }

    .main-nav a {
        font-size: 18px;
    }

    /* Mobile Dropdown Styles */
    .main-nav .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        background: #f9f9f9;
        padding: 10px 0;
        margin-top: 10px;
        border-radius: 8px;
    }

    .main-nav li.dropdown-open .dropdown-menu {
        display: block;
    }

    .main-nav .dropdown-menu::before {
        display: none;
    }

    .main-nav .dropdown-menu a {
        font-size: 16px !important;
        padding: 10px 20px !important;
    }

    .about-snippet {
        flex-direction: column;
    }

    .about-image {
        min-height: 300px;
        width: 100%;
    }

    .about-text {
        padding: 40px 20px;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .section {
        padding: 70px 0;
    }
}

/* Service Card Link Wrapper */
.service-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.service-card-link:hover {
    text-decoration: none;
    color: inherit;
}