/* Global Styles */
:root {
    --primary-color: #32373c;
    --accent-color: #bda85d;
    --text-color: #444444;
    --bg-light: #fafafa;
    --white: #ffffff;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --footer-bg: #050505;
    --footer-text: #888888;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    cursor: none;
    /* HIDE DEFAULT CURSOR */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- CUSTOM CURSOR STYLES --- */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: #fff;
    mix-blend-mode: difference;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
    mix-blend-mode: difference;
}

body.hovering .cursor-outline {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: transparent;
}

/* --- PRELOADER STYLES --- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    /* Stack text vertically */
    justify-content: center;
    align-items: center;
    transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1);
    text-align: center;
}

.preloader.fade-out {
    transform: translateY(-100%);
}

.preloader-text {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 32px;
    /* Slightly larger */
    letter-spacing: 5px;
    text-transform: uppercase;
    animation: pulse 1.5s infinite;
    margin-bottom: 10px;
}

.preloader-subtext {
    color: #888;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 500;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
    }
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    margin-bottom: 20px;
    color: #000;
}

h1 em,
h2 em,
h3 em {
    font-style: italic;
    font-weight: 400;
    color: var(--accent-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
}

.container-fluid {
    width: 100%;
    padding: 0;
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 2px;
    border: 1px solid transparent;
    font-weight: 600;
    transition: all 0.4s ease;
}

.btn-primary {
    background-color: #111;
    color: #fff;
    border: 1px solid #111;
}

.btn-primary:hover {
    background-color: transparent;
    color: #111;
}

.btn-secondary {
    border-color: #111;
    color: #111;
}

.btn-secondary:hover {
    background-color: #111;
    color: #fff;
}

/* Animations Classes */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.165, 0.84, 0.44, 1), transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.fade-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.img-reveal {
    overflow: hidden;
    position: relative;
}

.img-reveal img {
    transform: scale(1.1);
    transition: transform 1.5s cubic-bezier(0.19, 1, 0.22, 1);
    will-change: transform;
}

.img-reveal.in-view img {
    transform: scale(1);
}

/* Header */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 25px 0;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 36px;
    filter: brightness(0) invert(1);
}

/* Navigation & Dropdown */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.main-nav>ul>li {
    position: relative;
    padding: 15px 0;
}

.main-nav a {
    color: #fff;
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: block;
    transition: color 0.3s;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.main-nav a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.main-nav i {
    font-size: 10px;
    margin-left: 5px;
    vertical-align: middle;
    opacity: 0.8;
}

/* Dropdown Menu Styles */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: -20px;
    background-color: #fff;
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    padding: 10px 0;
    display: block !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-top: 3px solid var(--accent-color);
}

.main-nav li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
    display: block;
}

.dropdown-menu a {
    color: #333 !important;
    text-shadow: none;
    padding: 12px 25px;
    text-transform: none;
    font-weight: 500;
    font-size: 14px;
    border-bottom: 1px solid #f5f5f5;
    letter-spacing: 0;
}

.dropdown-menu a:hover {
    color: var(--accent-color) !important;
    padding-left: 30px;
    background: #fafafa;
}

.header-portal-icon a {
    color: #fff;
    font-size: 18px;
    opacity: 1;
}

.mobile-menu-toggle {
    display: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

@media (max-width: 1100px) {
    .main-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-content {
    animation: fadeInUp 1.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 5;
    max-width: 800px;
    /* Limit width */
    padding: 0 20px;
}

/* Hero Text Styles */
.hero-content h1 {
    font-size: 90px;
    line-height: 0.9;
    letter-spacing: -3px;
    color: transparent;
    -webkit-text-stroke: 2px #fff;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero-content h1 span {
    color: #fff;
    -webkit-text-stroke: 0;
    font-weight: 300;
    display: block;
}

/* New Subtitle Style */
.hero-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 0.5px;
    margin-top: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Overlapping / Asymmetric Section */
.overlap-section {
    padding: 120px 0;
    background: #fff;
    position: relative;
}

.overlap-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
    align-items: center;
}

.overlap-image img {
    width: 100%;
    height: auto;
    display: block;
}

.overlap-content {
    background: #fff;
    padding: 80px;
    margin-left: -80px;
    position: relative;
    z-index: 10;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
}

.overlap-content h2 {
    font-size: 56px;
    line-height: 1;
    margin-bottom: 30px;
    letter-spacing: -2px;
}

.overlap-content p {
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
    font-weight: 300;
    line-height: 1.8;
}

.overlap-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    margin-bottom: 20px;
}

@media (max-width: 900px) {
    .overlap-grid {
        grid-template-columns: 1fr;
    }

    .overlap-content {
        margin-left: 0;
        margin-top: -50px;
        padding: 40px;
    }
}

/* Services Scrolling / Horizontal */
.services-section {
    padding: 100px 0;
    background-color: #f8f8f8;
}

.services-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
    padding: 0 30px;
    max-width: 1300px;
    margin: 0 auto 60px;
}

.services-header h2 {
    font-size: 42px;
    margin: 0;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    max-width: 1300px;
    margin: 0 auto;
}

.service-card {
    position: relative;
    height: 500px;
    background: #fff;
    overflow: hidden;
    cursor: pointer;
}

.service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    filter: grayscale(100%);
}

.service-card:hover img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.service-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.service-info h3 {
    color: #fff;
    font-size: 24px;
    margin: 0;
    transform: translateY(10px);
    transition: transform 0.3s;
}

.service-card:hover .service-info h3 {
    transform: translateY(0);
}

/* --- Architectural Footer with Image Background & Transparency --- */
.site-footer {
    position: relative;
    background-image: url('barrio_projects/The Viridian, Paradise/images/viridian-7.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    color: #ccc;
    padding: 120px 0 40px;
    font-size: 14px;
    border-top: none;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1;
}

.site-footer .container {
    position: relative;
    z-index: 2;
}

.footer-cta {
    margin-bottom: 100px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-cta h2 {
    color: #fff;
    font-size: 80px;
    line-height: 0.9;
    letter-spacing: -3px;
    font-weight: 400;
    font-family: var(--font-heading);
}

.footer-cta h2 span {
    color: #666;
    font-style: italic;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-col h4 {
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    opacity: 0.4;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li a {
    color: #888;
    font-size: 14px;
    display: block;
    margin-bottom: 12px;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: #fff;
    transform: translateX(5px);
}

.footer-contact .label {
    font-size: 10px;
    text-transform: uppercase;
    color: #555;
    display: block;
    margin-bottom: 5px;
    margin-top: 20px;
}

.footer-contact p {
    color: #fff;
    font-size: 16px;
    font-weight: 300;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #555;
    font-size: 12px;
}

.footer-logo-text {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -1px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 50px;
    }

    .footer-cta h2 {
        font-size: 50px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .service-cards {
        grid-template-columns: 1fr;
    }
}

/* Tools Styles */
.calculator-panel {
    display: none;
}

.calculator-panel.active {
    display: block;
}

.tools-container {
    display: flex;
    gap: 40px;
    margin: 60px auto;
}

.tools-sidebar {
    width: 250px;
    flex-shrink: 0;
}

.tool-tab {
    display: block;
    width: 100%;
    padding: 15px;
    text-align: left;
    background: #fff;
    border: 1px solid #eee;
    margin-bottom: 10px;
    cursor: pointer;
}

.tool-tab.active {
    background: #111;
    color: #fff;
}

.tool-content {
    flex: 1;
    padding: 40px;
    background: #fff;
    border: 1px solid #eee;
}

.btn-calc {
    background: #111;
    color: #fff;
    padding: 15px 30px;
    border: none;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid #eee;
    background: #f9f9f9;
    margin-bottom: 20px;
}

.result-box {
    margin-top: 30px;
    padding: 20px;
    background: #fdfdfd;
    border: 1px solid #eee;
    border-left: 4px solid var(--accent-color);
    display: none;
}