/* ==========================================================================
   FAST TRACK ATTIC CONVERSIONS - PREMIUM DESIGN SYSTEM
   ========================================================================== */

/* --- Typography Imports --- */
@font-face {
    font-family: 'Inter-Bold';
    src: url('./font/Inter-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Lalezar';
    src: url('./font/Lalezar-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'SairaCondensed';
    src: url('./font/SairaCondensed-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'SairaCondensed';
    src: url('./font/SairaCondensed-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* --- Variables --- */
:root {
    --clr-primary: #a11915;
    --clr-primary-dark: #7a110f;
    --clr-black: #111111;
    --clr-dark: #1a1a1a;
    --clr-light: #f8f8f8;
    --clr-white: #ffffff;
    --clr-border: #eeeeee;
    
    --font-heading: 'Lalezar', sans-serif;
    --font-subheading: 'SairaCondensed', sans-serif;
    --font-accent: 'Inter-Bold', sans-serif;
    --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; /* Fallback for readable body text */
    
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- Base & Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
    font-size: 16px;
}
body {
    font-family: var(--font-body);
    color: var(--clr-dark);
    background-color: var(--clr-light);
    line-height: 1.6;
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.1;
}
a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
ul {
    list-style: none;
}
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}
.text-primary { color: var(--clr-primary); }
.text-white { color: var(--clr-white); }
.bg-dark { background-color: var(--clr-black); color: var(--clr-white); }
.bg-primary { background-color: var(--clr-primary); color: var(--clr-white); }

/* --- Buttons & CTAs --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-accent);
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 1px;
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-weight: 700;
}
.btn-primary {
    background-color: var(--clr-primary);
    color: var(--clr-white);
}
.btn-primary:hover {
    background-color: var(--clr-black);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}
.btn-dark {
    background-color: var(--clr-black);
    color: var(--clr-white);
}
.btn-dark:hover {
    background-color: var(--clr-primary);
    transform: translateY(-3px);
}
.btn-outline {
    background-color: transparent;
    color: var(--clr-white);
    border: 2px solid var(--clr-white);
}
.btn-outline:hover {
    background-color: var(--clr-white);
    color: var(--clr-black);
}

/* --- Header & Navigation --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
}
header.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}
.logo img {
    height: 70px;
    transition: var(--transition-smooth);
}
header.scrolled .logo img {
    height: 55px;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}
.nav-links a {
    font-family: var(--font-subheading);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--clr-black);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--clr-primary);
    transition: var(--transition-smooth);
}
.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.wa-icon {
    height: 35px;
    transition: var(--transition-smooth);
}
.wa-icon:hover {
    transform: scale(1.1);
}
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}
.hamburger span {
    width: 30px;
    height: 3px;
    background-color: var(--clr-black);
    transition: var(--transition-smooth);
}

/* --- Hero Sections --- */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--clr-white);
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(17,17,17,0.9) 0%, rgba(17,17,17,0.6) 50%, rgba(17,17,17,0.1) 100%);
    z-index: 1;
}
#video-container{
    display: flex;
    justify-content: center;
    align-items: center;
}
#video-container video{
    width: 80%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    border: 10px solid var(--clr-primary);
}
.hero-video {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
}
.hero-content {
    padding: 50px 0;
    position: relative;
    z-index: 2;
    max-width: 800px;
}
.hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 5.5rem);
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}
.hero-content p {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
    max-width: 600px;
    color: #e0e0e0;
}
.page-hero {
    min-height: 50vh;
}
.page-hero .hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

/* --- Section Layouts --- */
.section-padding {
    padding: 8rem 0;
}
.section-header {
    margin-bottom: 4rem;
}
.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--clr-black);
    text-transform: uppercase;
    display: inline-block;
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--clr-primary);
    margin-top: 10px;
}

/* --- Split Architectural Layout --- */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.split-layout.reverse {
    direction: rtl;
}
.split-layout.reverse > * {
    direction: ltr;
}
.split-img {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.split-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
    transition: var(--transition-smooth);
}
.split-img:hover img {
    transform: scale(1.05);
}
.split-content h2 {
    font-family: var(--font-accent);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}
.split-content p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
}
.feature-list li {
    font-family: var(--font-subheading);
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.feature-list img {
    width: 24px;
    height: 24px;
}

/* --- Services Grid --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}
.service-card {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}
.service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 100%);
    transition: var(--transition-smooth);
}
.service-card:hover img {
    transform: scale(1.1);
}
.service-card:hover::after {
    background: linear-gradient(to top, rgba(161,25,21,0.9) 0%, rgba(0,0,0,0.4) 100%);
}
.service-content {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    z-index: 2;
    color: var(--clr-white);
}
.service-content h3 {
    font-family: var(--font-subheading);
    font-size: 2rem;
    text-transform: uppercase;
    margin: 0;
}

/* --- Core Feature (Attic Conversion) --- */
.hero-service {
    background-color: var(--clr-black);
    color: var(--clr-white);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}
.hero-service .section-title { color: var(--clr-white); }
.hero-service .section-title::after { background-color: var(--clr-primary); }

/* --- Projects Portfolio Gallery --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}
.portfolio-item {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 4px;
    cursor: zoom-in;
}
.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}
.portfolio-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(161,25,21,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
}
.portfolio-item:hover img { transform: scale(1.08); }
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay span {
    font-family: var(--font-accent);
    color: var(--clr-white);
    font-size: 1.2rem;
    text-transform: uppercase;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}
.portfolio-item:hover .portfolio-overlay span { transform: translateY(0); }

/* --- Testimonials --- */
.testimonial-section {
    background: linear-gradient(rgba(17,17,17,0.9), rgba(17,17,17,0.9)), url('./bgs/Testimonial\ Photo.jpg') center/cover fixed;
    color: var(--clr-white);
    text-align: center;
}
.testimonial-slider {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
}
.testimonial-slide {
    display: none;
    animation: fadeEffect 1s;
}
.testimonial-slide.active {
    display: block;
}
@keyframes fadeEffect { from {opacity: 0;} to {opacity: 1;} }
.testimonial-quote {
    font-family: var(--font-subheading);
    font-size: 2.5rem;
    font-style: italic;
    line-height: 1.4;
    margin-bottom: 2rem;
}
.testimonial-author {
    font-family: var(--font-accent);
    font-size: 1.5rem;
    color: var(--clr-primary);
    text-transform: uppercase;
}
.slider-controls {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}
.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255,255,255,0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.dot.active {
    background-color: var(--clr-primary);
    transform: scale(1.3);
}

/* --- Global Footer & Contact Form --- */
.footer-cta {
    background-color: var(--clr-black);
    color: var(--clr-white);
    padding: 5rem 0;
    position: relative;
}
.footer-cta::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 10px;
    background-color: var(--clr-primary);
}
.contact-form {
    background: var(--clr-white);
    padding: 3rem;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-control {
    width: 100%;
    padding: 1.2rem;
    border: 2px solid var(--clr-border);
    font-family: var(--font-body);
    font-size: 1rem;
    border-radius: 4px;
    transition: var(--transition-smooth);
}
.form-control:focus {
    outline: none;
    border-color: var(--clr-primary);
}
textarea.form-control {
    resize: vertical;
    min-height: 150px;
}
.main-footer {
    background-color: #0a0a0a;
    color: var(--clr-white);
    padding: 5rem 0 2rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}
.footer-logo {
    height: 80px;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
}
.footer-about {
    color: #999;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}
.social-links {
    display: flex;
    gap: 1rem;
}
.social-links img {
    height: 30px;
    opacity: 0.7;
    transition: var(--transition-smooth);
}
.social-links a:hover img {
    opacity: 1;
    transform: translateY(-3px);
}
.footer-title {
    font-family: var(--font-accent);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--clr-primary);
    text-transform: uppercase;
}
.footer-links li {
    margin-bottom: 1rem;
}
.footer-links a {
    color: #999;
}
.footer-links a:hover {
    color: var(--clr-white);
    padding-left: 5px;
}
.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: #999;
}
.contact-info img {
    width: 24px;
    filter: brightness(0) invert(1);
}
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #666;
    font-size: 0.9rem;
}

/* --- Floating WhatsApp --- */
.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(37,211,102,0.3);
    z-index: 999;
    transition: var(--transition-smooth);
}
.floating-wa img {
    width: 35px;
    filter: brightness(0) invert(1);
}
.floating-wa:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(37,211,102,0.5);
}

/* --- Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* --- Area We Cover Badge --- */
.area-covered {
    background-color: rgba(161,25,21,0.1);
    border-left: 4px solid var(--clr-primary);
    padding: 2rem;
    margin-top: 2rem;
}
.area-covered h4 {
    font-family: var(--font-accent);
    color: var(--clr-primary);
}
/* --- Project Image Lightbox --- */

.project-lightbox {
    max-width: 98vw !important;
    max-height: 98vh !important;
    width: auto !important;
    overflow: hidden !important;
    padding: 8px !important;
}

.project-lightbox .swal2-image {
    max-width: 95vw !important;
    max-height: 92vh !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    margin: 0 auto !important;
    border-radius: 3px;
}

.project-lightbox .swal2-close {
    color: #ffffff !important;
    font-size: 2.5rem !important;
    font-weight: 300 !important;
}

.project-lightbox .swal2-close:hover {
    color: #a11915 !important;
}

/* --- Responsive Design --- */
@media screen and (max-width: 1024px) {
    .split-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .split-layout.reverse {
        direction: ltr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 768px) {
    html { font-size: 15px; }
    .nav-links, .nav-actions { display: none; }
    .hamburger { display: flex; }
    .nav-wrapper{
        padding: 1rem;
    }
    .hero-content{
        padding: 30px;
    }
    .logo img {
        height: 50px;
    }
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--clr-white);
        padding: 2rem 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    .nav-actions.active {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        justify-content: center;
        padding-top: 15rem;
        pointer-events: none;
    }
    .nav-actions.active a {
        pointer-events: auto;
    }
    .hero { min-height: 70vh; padding-top: 80px; }
    .hero-content h1 { font-size: 2.8rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .contact-form { padding: 1.5rem; }
}
@media screen and (max-width: 377px) {
    .service-card {
        width: 290px;
        height: 290px;
        margin: unset;
    }
}