/* CSS Reset and Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
}

/* CSS Custom Properties */
:root {
    --color-brand-brown: #534730;
    --color-tea-green: #c3d4a8;
    --color-ocean-teal: #4f9a94;
    --color-smoky-black: #0f0e0e;
    --color-accent: #2d3d33;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;
    --color-white: #ffffff;
    --color-black: #000000;
}

/* Utility Classes */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}
a, a:link, a:visited {
  color: inherit;          /* use parent color (e.g., black) */
  text-decoration: none;   /* remove underline */
}
a:hover, a:focus {
  text-decoration: none;   /* keep it off on hover/focus too */
}
.font-sans {
    font-family: 'Inter', sans-serif;
}

@font-face {
  font-family: "Flatline Regular";
  src: url('Fonts/Flatline_Complete_Family/up_up_creative_-_flatline_regular-webfont.woff2') format("woff2"),
       url('Fonts/Flatline_Complete_Family/up_up_creative_-_flatline_regular-webfont.woff2') format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.font-flatline {
    font-family: 'Flatline Regular', 'Inter', sans-serif;
}
.ctb{
    color: var(--color-brand-brown);
    border: 2px solid;
    border-color: var(--color-brand-brown);
    border-radius:9999px;         
}
.ctc{
     color: var(--color-brand-brown);
}
.cta{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  color:#fff;
  text-decoration:none;

  border:2px solid #fff;        
  padding:.6rem 1rem;
  border-radius:9999px;         

  /* optional niceties */
  background:transparent;
  transition:background .2s ease, color .2s ease;
}
.cta:hover{ background:rgba(255,255,255,.12); }
.antialiased {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Color Classes */
.bg-white { background-color: var(--color-white); }
.bg-black { background-color: var(--color-black); }
.bg-gray-50 { background-color: var(--color-gray-50); }
.bg-gray-100 { background-color: var(--color-gray-100); }
.bg-gray-300 { background-color: var(--color-gray-300); }
.bg-gray-800 { background-color: var(--color-gray-800); }
.bg-brand-brown { background-color: var(--color-brand-brown); }
.bg-tea-green { background-color: var(--color-tea-green); }
.bg-ocean-teal { background-color: var(--color-ocean-teal); }

.text-white { color: var(--color-white); }
.text-black { color: var(--color-black); }
.text-gray-300 { color: var(--color-gray-300); }
.text-gray-400 { color: var(--color-gray-400); }
.text-gray-600 { color: var(--color-gray-600); }
.text-gray-700 { color: var(--color-gray-700); }
.text-smoky-black { color: var(--color-smoky-black); }
.text-brand-brown { color: var(--color-brand-brown); }
.text-tea-green { color: var(--color-tea-green); }
.text-ocean-teal { color: var(--color-ocean-teal); }
.text-accent { color: var(--color-accent); }
.text-neutral-700 { color: var(--color-gray-700); }
.text-neutral-600 { color: var(--color-gray-600); }
.text-neutral-800 { color: var(--color-gray-800); }
.text-neutral-400 { color: var(--color-gray-400); }
.text-neutral-900 { color: var(--color-gray-900); }

.border-brand-brown { border-color: var(--color-brand-brown); }
.border-tea-green { border-color: var(--color-tea-green); }
.border-gray-300 { border-color: var(--color-gray-300); }
.border-gray-800 { border-color: var(--color-gray-800); }

.focus\:border-brand-brown:focus { border-color: var(--color-brand-brown); }
.focus\:ring-brand-brown:focus { --tw-ring-color: var(--color-brand-brown); }
.focus\:ring-tea-green:focus { --tw-ring-color: var(--color-tea-green); }

.hover\:text-brand-brown:hover { color: var(--color-brand-brown); }
.hover\:bg-tea-green:hover { background-color: var(--color-tea-green); }
.hover\:bg-brand-brown:hover { background-color: var(--color-brand-brown); }
.hover\:bg-white:hover { background-color: var(--color-white); }
.hover\:text-smoky-black:hover { color: var(--color-smoky-black); }
.hover\:text-white:hover { color: var(--color-white); }
.hover\:text-black:hover { color: var(--color-black); }

/* Layout Classes */
.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }
.static { position: static; }

.top-0 { top: 0; }
.top-1\/2 { top: 50%; }
.left-0 { left: 0; }
.left-1\/2 { left: 50%; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }

.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.z-\[100\] { z-index: 100; }

.w-full { width: 100%; }
.w-auto { width: auto; }
.w-2 { width: 0.5rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-16 { width: 4rem; }
.w-48 { width: 12rem; }

.h-full { height: 100%; }
.h-auto { height: auto; }
.h-2 { height: 0.5rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.h-30 { height: 7.5rem; }
.h-36 { height: 9rem; }
.h-96 { height: 24rem; }
.h-120 { height: 30rem; }
.h-144 { height: 36rem; }
.h-screen { height: 100vh; }
.h-\[50vh\] { height: 50vh; }

.max-w-xs { max-width: 20rem; }
.max-w-md { max-width: 28rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-7xl { max-width: 80rem; }
.max-w-screen-2xl { max-width: 1536px; }

/* Flexbox */
.flex { display: flex; }
.flex-1 { flex: 1 1 0%; }
.flex-3 { flex: 3 1 0%; }
.flex-col { flex-direction: column; }
.flex-col-reverse { flex-direction: column-reverse; }
.flex-row { flex-direction: row; }
.flex-grow { flex-grow: 1; }

.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.items-start { align-items: flex-start; }
.items-stretch { align-items: stretch; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }

.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }

.space-x-1 > * + * { margin-left: 0.25rem; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

/* Grid */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Padding & Margin */
.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }

.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }

.pb-16 { padding-bottom: 4rem; }
.pt-1 { padding-top: 0.25rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }

.ml-4 { margin-left: 1rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-16 { margin-top: 4rem; }
.mt-32 { margin-top: 8rem; }

.mx-auto { margin-left: auto; margin-right: auto; }

/* Typography */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.uppercase { text-transform: uppercase; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.tracking-wide { letter-spacing: 0.025em; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Borders */
.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-t { border-top-width: 1px; }

.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }
.rounded-2xl { border-radius: 1rem; }

/* Display */
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.hidden { display: none; }

/* Object */
.object-cover { object-fit: cover; }

/* Transform */
.-translate-x-1\/2 { transform: translateX(-50%); }
.-translate-y-1\/2 { transform: translateY(-50%); }
.translate-x-1 { transform: translateX(0.25rem); }
.rotate-45 { transform: rotate(45deg); }

/* Overflow */
.overflow-hidden { overflow: hidden; }

/* Transitions */
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-opacity { transition-property: opacity; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

.duration-150 { transition-duration: 150ms; }
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }

/* Shadows */
.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -2px rgb(0 0 0 / 0.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 10px 10px -5px rgb(0 0 0 / 0.04); }

/* Ring (Focus) */
.ring-1 { box-shadow: 0 0 0 1px rgb(59 130 246 / 0.5); }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px var(--tw-ring-color); }
.focus\:ring-offset-2:focus { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--tw-ring-color); }

/* Focus */
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }

/* Backdrop */
.backdrop-blur-sm { backdrop-filter: blur(4px); }

/* Background opacity utilities */
.bg-white\/10 {
    background-color: rgb(255 255 255 / 0.1);
}

/* Aspect Ratio */
.aspect-video { aspect-ratio: 16 / 9; }
.aspect-3\/4 { aspect-ratio: 3 / 4; }

/* Opacity */
.opacity-0 { opacity: 0; }
.hover\:opacity-90:hover { opacity: 0.9; }

/* Cursor */
.cursor-pointer { cursor: pointer; }

/* Pointer Events */
.pointer-events-none { pointer-events: none; }

/* Animations */
.animate-bounce {
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0.8,0,1,1);
    }
    50% {
        transform: none;
        animation-timing-function: cubic-bezier(0,0,0.2,1);
    }
}

/* Custom Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Background Animation */
.hero-background {
    transition: transform 0.1s ease-out;
    will-change: transform;
}

.hero-parallax {
    transform: translateY(var(--scroll-y, 0));
}

/* Enhanced Section Animations */
section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

section.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays for elements */
.fade-in-up:nth-child(1) { animation-delay: 0.1s; }
.fade-in-up:nth-child(2) { animation-delay: 0.2s; }
.fade-in-up:nth-child(3) { animation-delay: 0.3s; }
.fade-in-up:nth-child(4) { animation-delay: 0.4s; }

/* Improved mobile gallery fallback */
.swiper-wrapper {
    transition: transform 0.3s ease;
}

.swiper-wrapper::-webkit-scrollbar {
    height: 8px;
}

.swiper-wrapper::-webkit-scrollbar-track {
    background: var(--color-gray-100);
    border-radius: 4px;
}

.swiper-wrapper::-webkit-scrollbar-thumb {
    background: var(--color-brand-brown);
    border-radius: 4px;
}

.swiper-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}

/* Responsive Design */
@media (min-width: 640px) {
    /* sm: */
}

@media (max-width: 767px) {
    /* Mobile specific */
    .container {
        padding: 0 0.75rem;
    }
    
    /* Mobile navigation improvements */
    #mobile-menu {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        padding: 1rem;
    }
    
    /* Interactive building mobile optimization */
    #interactive-building {
        touch-action: pan-x pan-y;
    }
    
    #floor-tooltip {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 100;
        width: auto !important;
        min-width: 0 !important;
        max-width: max-content !important;
        height: auto !important;
        padding: 0.45rem 0.8rem !important;
        border-radius: 0.65rem !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
    }

    #floor-tooltip #tooltip-content {
        display: block !important;
    }

    #floor-tooltip #tooltip-content > * {
        display: none !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1 !important;
    }

    #floor-tooltip #tooltip-title {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 0.95rem !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
    }

    #floor-tooltip .rotate-45 {
        display: none !important;
    }
    
    /* Mobile hero adjustments */
    .hero-background {
        background-attachment: scroll; /* Better mobile performance */
        /* Video optimization for mobile */
        object-position: center;
    }
    
    /* Mobile swiper improvements */
    .swiper {
        padding: 0 20px;
    }
    
    /* Mobile form improvements */
    .contact-form input,
    .contact-form textarea {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

@media (min-width: 768px) {
    /* md: */
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:col-span-2 { grid-column: span 2 / span 2; }
    
    .md\:flex-row { flex-direction: row; }
    
    .md\:text-base { font-size: 1rem; line-height: 1.5rem; }
    .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
    
    .md\:text-left { text-align: left; }
    .md\:text-right { text-align: right; }
    
    .md\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (min-width: 1024px) {
    /* lg: */
    .lg\:hidden { display: none; }
    .lg\:flex { display: flex; }
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    
    .lg\:flex-row { flex-direction: row; }
    .lg\:gap-8 { gap: 2rem; }
    
    .lg\:h-16 { height: 4rem; }
    .lg\:h-20 { height: 5rem; }
    .lg\:h-120 { height: 30rem; }
    
    .lg\:text-7xl { font-size: 4.5rem; line-height: 1; }
    
    .lg\:flex-3 { flex: 3 1 0%; }
    
    .lg\:mt-32 { margin-top: 8rem; }
}

@media (min-width: 1536px) {
    /* 2xl: */
    .\32xl\:h-120 { height: 30rem; }
    .\32xl\:h-144 { height: 36rem; }
}

/* Header Styles */
header {
    transition: transform 0.3s ease;
}

header.header-hidden {
    transform: translateY(-100%);
}

/* Mobile Menu */
#mobile-menu {
    transition: all 0.3s ease;
}

#mobile-menu.show {
    display: block !important;
}

/* Interactive Building */
#interactive-building {
    position: relative;
    display: block;
}

#interactive-building svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Floor Tooltip */
#floor-tooltip {
    z-index: 20;
    pointer-events: none;
    transition: opacity 0.2s ease;
    width: fit-content;
    min-width: 0;
    max-width: max-content;
    padding: 0.5rem 0.875rem;
    border-radius: 0.75rem;
}

#floor-tooltip #tooltip-content {
    display: block;
}

#floor-tooltip #tooltip-title {
    line-height: 1.2;
    white-space: nowrap;
}

/* Keep floor badge as a single-line label */
#floor-tooltip #tooltip-apartments,
#floor-tooltip #tooltip-price {
    display: none;
}

/* Swiper Customization */
.swiper {
    width: 100%;
    height: 100%;
    padding: 0 40px;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 8px;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--color-brand-brown);
    font-weight: bold;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 24px;
}

.swiper-pagination-bullet {
    background: var(--color-brand-brown);
    opacity: 0.3;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--color-brand-brown);
}

/* Form Styles */
input,
textarea,
select {
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-brand-brown);
    box-shadow: 0 0 0 3px rgba(83, 71, 48, 0.1);
}

/* Button Styles */
button {
    transition: all 0.15s ease-in-out;
}

button:hover {
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

/* Modal Styles */
#brochure-modal {
    backdrop-filter: blur(4px);
}

#brochure-modal.show {
    display: flex !important;
}

/* Gradient Overlays */
.bg-gradient-to-t {
    background-image: linear-gradient(to top, var(--tw-gradient-stops));
}

.from-black\/60 {
    --tw-gradient-from: rgb(0 0 0 / 0.6);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgb(0 0 0 / 0));
}

.to-transparent {
    --tw-gradient-to: transparent;
}

/* Fill utilities for SVG */
.fill-transparent { fill: transparent; }
.hover\:fill-ocean-teal\/50:hover { fill: rgba(79, 154, 148, 0.5); }

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--color-brand-brown);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}

/* Accessibility */
.focus-visible\:ring-2:focus-visible {
    box-shadow: 0 0 0 2px var(--tw-ring-color);
}

.focus-visible\:ring-brand-brown:focus-visible {
    --tw-ring-color: var(--color-brand-brown);
}

/* Group hover effects */
.group:hover .group-hover\:translate-x-1 {
    transform: translateX(0.25rem);
}

/* Text decoration */
.underline-offset-4 {
    text-underline-offset: 4px;
}

.hover\:underline:hover {
    text-decoration-line: underline;
}

/* Background opacity utilities */
.bg-white\/80 {
    background-color: rgb(255 255 255 / 0.8);
}

.bg-black\/30 {
    background-color: rgb(0 0 0 / 0.3);
}

.bg-black\/50 {
    background-color: rgb(0 0 0 / 0.5);
}

/* Border opacity utilities */
.border-brand-brown\/20 {
    border-color: rgb(83 71 48 / 0.2);
}

.border-brand-brown\/10 {
    border-color: rgb(83 71 48 / 0.1);
}

/* Ring opacity utilities */
.focus\:ring-brand-brown\/30:focus {
    --tw-ring-color: rgb(83 71   48 / 0.3);
}

.focus\:ring-brand-brown\/40:focus {
    --tw-ring-color: rgb(83 71 48 / 0.4);
}

/* Utility for preserve aspect ratio on SVG */
svg {
    shape-rendering: geometricPrecision;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
}