/* Skyhill Group — High-End Architectural Luxury Editorial Design System */

:root {
    --color-charcoal: #0B0D0E;
    --color-charcoal-subtle: #15191B;
    --color-charcoal-card: #171A1C;
    --color-warm-white: #F4F1EB;
    --color-sand: #E7E1D7;
    --color-gold: #B7A27A;
    --color-gold-light: #C9B896;
    --color-gold-dark: #9E8B62;
    --color-ivory: #F4F1EB;
    --color-stone-muted: #9AA1AD;
    --font-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', 'Plus Jakarta Sans', sans-serif;
    --text-hero: clamp(64px, 7vw, 120px);
    --text-major: clamp(48px, 5vw, 80px);
    --text-secondary: clamp(32px, 3vw, 52px);
}

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    background: none;
    border: none;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

/* Dropdown Panels Fallback */
.dropdown-panel {
    position: absolute;
    top: 100%;
    left: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    transform: translateY(8px);
    z-index: 100;
}

.group:hover .dropdown-panel,
.nav-dropdown:hover .dropdown-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}


html {
    font-family: var(--font-body);
    background-color: var(--color-charcoal);
    color: var(--color-ivory);
    scroll-behavior: smooth;
    text-size-adjust: 100%;
}

body {
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--color-charcoal);
}

/* Typography */
.font-serif {
    font-family: var(--font-serif);
    letter-spacing: -0.01em;
}

.font-sans {
    font-family: var(--font-sans);
}

.font-script {
    font-family: 'Alex Brush', cursive;
}

.font-syne {
    font-family: var(--font-heading, var(--font-serif));
}

.font-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Fluid Typographic Scale */
.clamp-hero {
    font-size: var(--text-hero);
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.clamp-major {
    font-size: var(--text-major);
    line-height: 1.1;
    letter-spacing: -0.015em;
}

.clamp-secondary {
    font-size: var(--text-secondary);
    line-height: 1.15;
    letter-spacing: -0.01em;
}

/* Grid & Layout Containers */
.site-container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 1536px) {
    .site-container {
        max-width: 1400px;
    }
}

/* Background utilities */
.bg-charcoal {
    background-color: var(--color-charcoal);
}

.bg-charcoal-subtle {
    background-color: var(--color-charcoal-subtle);
}

.bg-charcoal-card {
    background-color: var(--color-charcoal-card);
}

.bg-warm-white {
    background-color: var(--color-warm-white);
}

.bg-warm-sand {
    background-color: var(--color-sand);
}

.text-charcoal {
    color: var(--color-charcoal);
}

.text-gold {
    color: var(--color-gold);
}

.text-ivory {
    color: var(--color-ivory);
}

.text-stone-muted {
    color: var(--color-stone-muted);
}

.border-gold {
    border-color: var(--color-gold);
}

.border-warm-sand {
    border-color: var(--color-sand);
}

/* Architectural Image Reveal & Card Rules (Rule 19, 20, 23) */
.reveal-mask {
    overflow: hidden;
    position: relative;
    border-radius: 2px;
}

.reveal-mask img {
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
    will-change: transform;
}

.reveal-mask:hover img {
    transform: scale(1.03);
}

.arch-card {
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Header & Glassmorphism */
.header-nav {
    background: transparent;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-nav.scrolled {
    background: rgba(10, 11, 13, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
}

/* Brand Logo Sizing & Clarity */
.brand-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-logo img,
.brand-logo-img {
    height: 52px !important;
    width: auto !important;
    max-width: none !important;
    max-height: 72px !important;
    object-fit: contain;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.5));
}

@media (min-width: 640px) {

    .brand-logo img,
    .brand-logo-img {
        height: 58px !important;
    }
}

@media (min-width: 1024px) {

    .brand-logo img,
    .brand-logo-img {
        height: 64px !important;
    }
}

.header-nav.scrolled .brand-logo img,
.header-nav.scrolled .brand-logo-img {
    height: 46px !important;
}

@media (min-width: 640px) {

    .header-nav.scrolled .brand-logo img,
    .header-nav.scrolled .brand-logo-img {
        height: 50px !important;
    }
}

/* Luxury Buttons */
.btn-primary-luxury {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
    color: #0d0f14;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.875rem 1.75rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(197, 168, 128, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary-luxury:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(197, 168, 128, 0.45);
    background: #ffffff;
    color: #000000;
}

.btn-secondary-luxury {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.875rem 1.75rem;
    border-radius: 9999px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-secondary-luxury:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--color-gold);
    color: var(--color-gold-light);
    transform: translateY(-2px);
}

/* Luxury Form Inputs */
.form-input-luxury {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.75rem;
    padding: 0.875rem 1.25rem;
    color: #ffffff;
    font-size: 0.875rem;
    outline: none;
    transition: all 0.25s ease;
}

.form-input-luxury:focus {
    border-color: var(--color-gold);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.15);
}

.form-input-luxury::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.75rem;
    height: 3.75rem;
    background: #25D366;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    z-index: 40;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-badge {
    position: absolute;
    top: 0.2rem;
    right: 0.2rem;
    width: 0.75rem;
    height: 0.75rem;
    background: #ffffff;
    border-radius: 9999px;
    border: 2px solid #25D366;
    animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.whatsapp-tooltip {
    position: absolute;
    right: 110%;
    background: #121418;
    color: #ffffff;
    padding: 0.35rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 3rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 40;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--color-gold);
    color: #0a0b0d;
    transform: translateY(-3px);
}

/* Navigation Links */
.nav-link {
    position: relative;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    text-decoration: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--color-gold);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover::after {
    width: 100%;
}

/* Utility Flex & Grid Helpers */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.space-x-2>*+* {
    margin-left: 0.5rem;
}

.space-x-3>*+* {
    margin-left: 0.75rem;
}

.space-x-4>*+* {
    margin-left: 1rem;
}

.space-x-6>*+* {
    margin-left: 1.5rem;
}

.space-x-8>*+* {
    margin-left: 2rem;
}

.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;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.gap-12 {
    gap: 3rem;
}

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 640px) {
    .sm\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .lg\:grid-cols-5 {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .lg\:grid-cols-12 {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }

    .lg\:col-span-2 {
        grid-column: span 2 / span 2;
    }

    .lg\:col-span-3 {
        grid-column: span 3 / span 3;
    }

    .lg\:col-span-4 {
        grid-column: span 4 / span 4;
    }

    .lg\:col-span-5 {
        grid-column: span 5 / span 5;
    }

    .lg\:col-span-6 {
        grid-column: span 6 / span 6;
    }

    .lg\:col-span-7 {
        grid-column: span 7 / span 7;
    }

    .lg\:col-span-8 {
        grid-column: span 8 / span 8;
    }

    .lg\:flex-row {
        flex-direction: row;
    }
}

/* Dedicated Architecture Footer Rules */
.site-footer {
    background-color: #0a0b0d;
    color: #9aa1ad;
    width: 100%;
}

.site-footer a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}

.site-footer a:hover {
    color: var(--color-gold);
}

.footer-grid {
    display: grid;
    width: 100%;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {

    *,
    ::before,
    ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}