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

:root {
    /* Industry Standard Light Palette */
    --clr-bg: #ffffff;
    --clr-bg-alt: #f4f5f7;
    --clr-primary: #1a2b4c; /* Navy Blue */
    --clr-primary-light: #2c4270;
    --clr-accent: #b89972; /* Warm Gold / Taupe */
    --clr-accent-hover: #a1835b;
    --clr-text: #333333;
    --clr-text-muted: #666666;
    --clr-border: #e0e0e0;

    /* Typography */
    --font-heading: 'Lora', serif;
    --font-body: 'Lato', sans-serif;

    /* Standard Font Sizes */
    --fs-h1: clamp(2.5rem, 5vw, 3.5rem);
    --fs-h2: clamp(2rem, 4vw, 2.75rem);
    --fs-h3: clamp(1.5rem, 2.5vw, 1.75rem);
    --fs-body: 1.1rem;
    --fs-small: 0.95rem;

    /* Spacing */
    --space-sm: 1.5rem;
    --space-md: 3rem;
    --space-lg: 5rem;
    --space-xl: 7rem;
    
    /* Layout */
    --max-width: 1200px;
    --padding-x: 2rem;
    --nav-height: 90px;
    
    /* Effects */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --transition-fast: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--clr-text);
    background-color: var(--clr-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--clr-primary);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p {
    font-size: var(--fs-body);
    margin-bottom: 1.5rem;
    color: var(--clr-text-muted);
}

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

a {
    color: var(--clr-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--clr-accent);
}

/* Layout Classes */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--padding-x);
}

.section {
    padding: var(--space-lg) 0;
}

.bg-alt {
    background-color: var(--clr-bg-alt);
}

.bg-primary {
    background-color: var(--clr-primary);
    color: #fff;
}
.bg-primary h2, .bg-primary h3, .bg-primary p {
    color: #fff;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
    border: none;
}

.btn-primary {
    background-color: var(--clr-accent);
    color: #fff;
}
.btn-primary:hover {
    background-color: var(--clr-accent-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--clr-primary);
    color: var(--clr-primary);
}
.btn-outline:hover {
    background-color: var(--clr-primary);
    color: #fff;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: #fff;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--padding-x);
    z-index: 1000;
    transition: height var(--transition-fast);
}

.navbar.scrolled {
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
}
.logo img {
    height: 70px;
    width: auto;
    object-fit: contain;
    transition: height var(--transition-fast);
}
.navbar.scrolled .logo img {
    height: 50px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--clr-primary);
    text-transform: capitalize;
}

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

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 1.5rem 0; /* Increase hover area */
}
.dropdown > a {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: -1rem;
    background-color: #fff;
    min-width: 240px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    z-index: 9999;
    padding: 0.5rem 0;
    border-top: 3px solid var(--clr-accent);
}
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu li {
    list-style: none;
}
.dropdown-menu a {
    display: block;
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
    color: var(--clr-primary);
    text-transform: none;
    border-bottom: 1px solid var(--clr-border);
}
.dropdown-menu li:last-child a {
    border-bottom: none;
}
.dropdown-menu a:hover {
    background-color: var(--clr-bg-alt);
    color: var(--clr-accent);
    padding-left: 2rem; /* smooth slide effect */
    transition: padding 0.3s ease;
}

/* Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.hamburger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--clr-primary);
    transition: var(--transition-fast);
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger span:nth-child(3) { bottom: 0; }

.hamburger.active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* Hero Section */
.hero {
    position: relative;
    padding-top: var(--nav-height);
    min-height: 85vh;
    display: flex;
    align-items: center;
    background-color: var(--clr-bg-alt);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 43, 76, 0.65); /* Navy overlay */
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.hero-content h1 {
    color: #fff;
    margin-bottom: 1.5rem;
}

.hero-content p {
    color: #f4f5f7;
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
}

/* Trust Bar */
.trust-bar {
    background-color: var(--clr-primary);
    color: #fff;
    padding: 1.5rem 0;
    border-bottom: 4px solid var(--clr-accent);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.trust-item i {
    font-size: 2rem;
    color: var(--clr-accent);
}

.trust-item span {
    font-weight: 700;
    font-size: 1.1rem;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    align-items: center;
}

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

/* Service Cards */
.card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-fast), transform var(--transition-fast);
    border: 1px solid var(--clr-border);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

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

.card-body {
    padding: 2rem;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card-link {
    font-weight: 700;
    color: var(--clr-accent);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

/* Portfolio Masonry */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.portfolio-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    display: block;
    box-shadow: var(--shadow-sm);
}

.portfolio-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.portfolio-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: rgba(26, 43, 76, 0.9);
    color: #fff;
    transition: bottom var(--transition-fast);
}

.portfolio-item:hover .portfolio-overlay {
    bottom: 0;
}

.portfolio-overlay h3 {
    color: #fff;
    margin-bottom: 0;
    font-size: 1.2rem;
}

/* Contact Form */
.contact-form {
    background: #fff;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    border-top: 5px solid var(--clr-accent);
}

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

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--clr-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--clr-border);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--clr-accent);
    background-color: #fff;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Enhanced Footer */
.site-footer {
    background-color: #111D35; /* Darker Navy */
    color: #f4f5f7;
    padding: 5rem 0 2rem;
    border-top: 4px solid var(--clr-accent);
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    margin-bottom: 4rem;
    justify-content: space-between;
}

.footer-brand {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
}

.footer-brand h2 {
    color: #fff;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.footer-brand p {
    color: #a0aec0;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.05);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background-color: var(--clr-accent);
    transform: translateY(-3px);
}

.footer-links-group {
    display: flex;
    flex: 2;
    gap: 3rem;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-widget h4 {
    color: #fff;
    font-family: var(--font-body);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget ul li {
    margin-bottom: 0.8rem;
}

.footer-widget ul li a, .contact-widget p, .contact-widget a {
    color: #a0aec0;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.footer-widget ul li a:hover, .contact-widget a:hover {
    color: var(--clr-accent);
}

.contact-widget .hours {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #cbd5e1;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    color: #64748b;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal a {
    color: #64748b;
    margin-left: 1.5rem;
}

.footer-legal a:hover {
    color: #fff;
}

/* Our Process */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}
.process-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}
.process-icon {
    width: 80px;
    height: 80px;
    background-color: var(--clr-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    font-family: var(--font-heading);
    box-shadow: var(--shadow-md);
}
.process-step h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.testimonial-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--clr-accent);
}
.testimonial-stars {
    color: #fbbf24;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    letter-spacing: 2px;
}
.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
}
.testimonial-author {
    font-weight: 700;
    color: var(--clr-primary);
}

/* FAQ Accordion */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid var(--clr-border);
    margin-bottom: 1rem;
}
.faq-question {
    width: 100%;
    text-align: left;
    padding: 1rem 0;
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--clr-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--clr-accent);
    transition: transform var(--transition-fast);
}
.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.faq-answer p {
    padding-bottom: 1.5rem;
    padding-top: 0.5rem;
}

/* Before & After Slider */
.ba-slider {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 500px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}
.ba-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}
.img-after {
    z-index: 1;
}
.img-before {
    z-index: 2;
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}
.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background-color: #fff;
    z-index: 3;
    transform: translateX(-50%);
    cursor: ew-resize;
}
.slider-handle::after {
    content: '↔';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-color: var(--clr-accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}
.slider-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 4;
    cursor: ew-resize;
}

/* Portfolio Filter */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}
.filter-btn {
    background: transparent;
    border: 2px solid var(--clr-border);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--clr-text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
}
.filter-btn:hover, .filter-btn.active {
    background-color: var(--clr-primary);
    color: #fff;
    border-color: var(--clr-primary);
}

/* Portfolio Item Enhancement for Filtering */
.portfolio-item {
    cursor: pointer;
}
.portfolio-item.hide {
    display: none;
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 29, 53, 0.95); /* Dark Navy */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
}
.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}
.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    border-radius: 4px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.4s ease;
}
.lightbox.active .lightbox-content {
    transform: scale(1);
}
.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
}

/* About - Core Values */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}
.value-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--clr-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
}
.value-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}
.value-icon svg {
    width: 48px;
    height: 48px;
    stroke: var(--clr-accent);
    fill: none;
    stroke-width: 1.5;
}

/* About - Stats Bar */
.stats-bar {
    background-color: var(--clr-primary);
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.stat-item h3 {
    font-size: 3.5rem;
    color: var(--clr-accent);
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}
.stat-item p {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* About - Meet the Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}
.team-member {
    text-align: center;
}
.team-img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 5px solid var(--clr-border);
}
.team-member h3 {
    margin-bottom: 0.2rem;
    color: var(--clr-primary);
}
.team-title {
    color: var(--clr-accent);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* About - Behind the Scenes */
.bts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.bts-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

/* Simple fade animation */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Media Queries */
@media (max-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .process-grid, .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-top {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
    .process-grid, .testimonial-grid, .values-grid, .stats-grid, .bts-grid {
        grid-template-columns: 1fr;
    }
    .team-grid {
        grid-template-columns: 1fr;
    }
    .ba-slider {
        height: 300px;
    }
    
    .trust-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .footer-links-group {
        flex-direction: column;
        gap: 2rem;
    }
    
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background-color: #fff;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 3rem;
        transition: left var(--transition-fast);
        box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        border-top: none;
        padding-left: 1rem;
    }
    .dropdown.open .dropdown-menu {
        display: block;
    }
    
    .hamburger {
        display: block;
    }
}
