/* ==========================================================================
   CSS Variables (Design System)
   ========================================================================== */

:root {
    /* Colors – inspired by clean real-estate sites (teal trust + neutral base) */
    --color-primary:        #00A89D;       /* main accent – teal */
    --color-primary-dark:   #00897B;       /* hover / active */
    --color-primary-light:  #E0F7F5;       /* subtle backgrounds */
    
    --color-secondary:      #FF6B35;       /* warm CTA orange – used sparingly */
    
    --color-text:           #2D3748;       /* dark slate for body text */
    --color-text-light:     #718096;       /* secondary text */
    --color-text-heading:   #1A202C;       /* almost black for headings */
    
    --color-bg:             #FFFFFF;
    --color-bg-light:       #F7FAFC;
    --color-bg-section:     #FAFCFD;
    --color-border:         #E2E8F0;
    
    /* Typography */
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-weight-regular:  400;
    --font-weight-medium:   500;
    --font-weight-bold:     700;
    
    /* Spacing scale (major third progression ≈ 1.25) */
    --spacing-xxs: 0.25rem;   /* 4px  */
    --spacing-xs:  0.5rem;    /* 8px  */
    --spacing-sm:  0.75rem;   /* 12px */
    --spacing-md:  1.25rem;   /* 20px */
    --spacing-lg:  2rem;      /* 32px */
    --spacing-xl:  3.25rem;   /* 52px */
    --spacing-xxl: 5.25rem;   /* 84px */
    
    /* Layout */
    --container-max: 1180px;
    --container-narrow: 820px;
    --border-radius: 8px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --transition: all 0.2s ease;
}

/* ==========================================================================
   Global Resets & Base Styles
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.58;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 var(--spacing-md) 0;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-heading);
    line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5.5vw, 3.25rem); }
h2 { font-size: clamp(1.75rem, 4.5vw, 2.5rem); margin-bottom: var(--spacing-lg); }
h3 { font-size: 1.5rem; }

p {
    margin: 0 0 var(--spacing-lg) 0;
}

ul, ol {
    margin: 0 0 var(--spacing-lg) 0;
    padding-left: 1.4em;
}

li {
    margin-bottom: var(--spacing-sm);
}

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

a:hover,
a:focus {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* ==========================================================================
   Reusable Utility Classes
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.container-narrow {
    max-width: var(--container-narrow);
}

.section {
    padding: var(--spacing-xxl) 0;
    background-color: var(--color-bg-section);
}

.section:first-of-type {
    padding-top: 0;
}

.section--light {
    background-color: var(--color-bg-light);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 0.9rem 1.8rem;
    font-size: 1.05rem;
    font-weight: var(--font-weight-medium);
    color: white;
    background-color: var(--color-primary);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn:hover,
.btn:focus {
    background-color: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 168, 157, 0.25);
}

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

.btn--outline:hover {
    background: var(--color-primary);
    color: white;
}

/* ==========================================================================
   Hero / Header Specific
   ========================================================================== */

.hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.78);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: var(--spacing-xl) var(--spacing-lg);
    background: linear-gradient(to bottom, rgba(0,0,0,0.15), rgba(0,0,0,0.55));
}

.hero h1 {
    color: white;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 3px 12px rgba(0,0,0,0.5);
}

.subtitle {
    font-size: 1.35rem;
    margin-bottom: var(--spacing-xl);
    opacity: 0.95;
}

.key-highlights {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-lg);
}

.highlight-item {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(6px);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--border-radius);
    min-width: 160px;
    text-align: center;
}

/* ==========================================================================
   Typography & List Enhancements
   ========================================================================== */

.bullet-list {
    list-style: none;
    padding-left: 0;
}

.bullet-list li {
    position: relative;
    padding-left: 1.8em;
    margin-bottom: var(--spacing-md);
}

.bullet-list li::before {
    content: "•";
    color: var(--color-primary);
    position: absolute;
    left: 0;
    font-size: 1.4em;
    line-height: 1;
}

/* ==========================================================================
   Basic Responsive Adjustments
   ========================================================================== */

@media (max-width: 768px) {
    .hero {
        min-height: 55vh;
    }
    
    .key-highlights {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .section {
        padding: var(--spacing-xl) 0;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 var(--spacing-xl);
    }
}


/* ==========================================================================
   Header / Hero Section (full styling)
   ========================================================================== */

.hero {
    position: relative;
    height: 70vh;                    /* taller on desktop, feels premium */
    min-height: 500px;
    max-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.15) 0%,
        rgba(0, 0, 0, 0.45) 60%,
        rgba(0, 0, 0, 0.65) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: var(--spacing-xl) var(--spacing-lg);
    max-width: 90%;
}

.hero h1 {
    font-size: clamp(2.8rem, 7vw, 4.5rem);
    margin-bottom: var(--spacing-md);
    text-shadow: 0 4px 16px rgba(0,0,0,0.6);
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: clamp(1.25rem, 3.5vw, 1.6rem);
    margin-bottom: var(--spacing-xl);
    opacity: 0.95;
    font-weight: var(--font-weight-medium);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.key-highlights {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-lg);
}

.highlight-item {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Safari support */
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255,255,255,0.12);
    min-width: 180px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.highlight-label {
    display: block;
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: var(--spacing-xs);
}

.highlight-value {
    display: block;
    font-size: 1.6rem;
    font-weight: var(--font-weight-bold);
}

/* Responsive adjustments for hero */
@media (max-width: 768px) {
    .hero {
        height: 60vh;
        min-height: 420px;
    }
    
    .key-highlights {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .highlight-item {
        min-width: auto;
        width: 80%;
        margin: 0 auto;
    }
}

@media (min-width: 1024px) {
    .hero {
        height: 80vh;
    }
}

/* ==========================================================================
   Description / Object Details Section
   ========================================================================== */

.section.description {
    padding: 5.5rem 0 7rem;
    background: var(--color-bg);
}

/* Wider but still readable content area */
.container-description {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 1024px) {
    .container-description {
        max-width: 1040px;
        padding: 0 2.5rem;
    }
}

/* Facts block styling */
.facts-block {
    margin-bottom: 4.5rem;
    background: var(--color-bg-light);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
}

.facts-block h3 {
    margin-bottom: 1.75rem;
    color: var(--color-primary);
    font-size: 1.6rem;
}

.facts-grid {
    display: grid;
    grid-template-columns: minmax(140px, auto) 1fr;
    gap: 1.25rem 2rem;
    align-items: baseline;
}

.facts-grid dt {
    font-weight: var(--font-weight-bold);
    color: var(--color-text-heading);
}

.facts-grid dd {
    margin: 0;
    color: var(--color-text);
}

/* Text content */
.description-text h3 {
    margin: 3.5rem 0 1.5rem;
    font-size: 1.75rem;
    color: var(--color-text-heading);
}

.description-text p {
    font-size: 1.075rem;
    line-height: 1.72;
    margin-bottom: 1.6rem;
    color: var(--color-text);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .section.description {
        padding: 3.5rem 0 5rem;
    }

    .facts-grid {
        grid-template-columns: 1fr;
        gap: 1.1rem;
    }

    .facts-grid dt {
        font-size: 1.05rem;
    }

    .facts-grid dd {
        margin-bottom: 0.8rem;
    }

    .facts-block {
        padding: 1.8rem 1.4rem;
    }

    .container-description {
        padding: 0 1.25rem;
    }
}

@media (max-width: 480px) {
    .facts-block h3,
    .description-text h3 {
        font-size: 1.45rem;
    }
}


/* ==========================================================================
   Image Gallery Section
   ========================================================================== */

.gallery {
    background: var(--color-bg-light);
}

.gallery .container {
    text-align: center;
}

.gallery-intro {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin: 0 0 var(--spacing-xl) 0;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;          /* consistent shape – adjust to your images if needed (e.g. 3/2 or 16/9) */
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-md);
    background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
    color: white;
    font-size: 0.95rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover figcaption {
    opacity: 1;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    cursor: zoom-out;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 92%;
    max-height: 92vh;
    object-fit: contain;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}


.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: white;
    font-size: 2.2rem;                /* slightly smaller helps centering */
    font-weight: 300;                 /* thinner × looks cleaner */
    line-height: 1;                   /* crucial: removes extra line spacing */
    cursor: pointer;
    background: rgba(0,0,0,0.5);      /* slightly darker for contrast */
    width: 48px;
    height: 48px;
    border-radius: 50%;
    
    /* Perfect centering fixes */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Extra safety: force no text baseline shift */
    text-align: center;
    vertical-align: middle;
    
    transition: background 0.2s ease;
}

.lightbox-close:hover {
    background: rgba(0,0,0,0.75);
    transform: scale(1.1);
}

/* Responsive grid columns */
@media (min-width: 640px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);  /* or repeat(4, 1fr) if more images */
    }
}

/* ==========================================================================
   Enhanced Lightbox Polish
   ========================================================================== */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox img {
    max-width: 94%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 60px rgba(0,0,0,0.7);
    opacity: 0;
    transform: scale(0.92);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox img.loaded {
    opacity: 1;
    transform: scale(1);
}

.lightbox-loading {
    color: white;
    font-size: 1.2rem;
    position: absolute;
    display: none;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    color: white;
    font-size: 2.4rem;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: all 0.2s ease;
}

.lightbox-close:hover,
.lightbox-close:focus {
    background: var(--color-primary); /* teal accent on hover */
    transform: scale(1.1);
    outline: none;
}

/* Optional: subtle zoom cursor on image */
.lightbox img {
    cursor: zoom-out;
}


/* ==========================================================================
   CTA Section – Request Exposé via Email
   ========================================================================== */

.section.cta {
    background: linear-gradient(135deg, var(--color-primary-light) 0%, #f0f9f8 100%);
    text-align: center;
}

.cta-lead {
    font-size: 1.25rem;
    font-weight: var(--font-weight-medium);
    color: var(--color-text-heading);
    margin: 0 0 var(--spacing-lg) 0;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.cta-text {
    font-size: 1.08rem;
    line-height: 1.65;
    max-width: 760px;
    margin: 0 auto var(--spacing-xl) auto;
    color: var(--color-text);
}

.cta-actions {
    margin-top: var(--spacing-xl);
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    padding: 1.1rem 2.4rem;
    font-size: 1.18rem;
    font-weight: var(--font-weight-medium);
    border-radius: var(--border-radius);
    box-shadow: 0 6px 20px rgba(0, 168, 157, 0.25);
    transition: all 0.25s ease;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 168, 157, 0.35);
}

.cta-contact {
    margin-top: var(--spacing-xl);
    font-size: 1.05rem;
    color: var(--color-text-light);
}

.cta-contact a {
    color: var(--color-primary);
    font-weight: var(--font-weight-medium);
}

.cta-contact a:hover {
    text-decoration: underline;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .btn-primary {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        width: 100%;
        max-width: 360px;
    }
    
    .section.cta {
        padding: 4rem 0 5.5rem;
    }
}

/* Most robust solution for CTA buttons */
a.btn-primary:visited {
    color: white;
    background: var(--color-primary);
}

/* Or completely disable visited color change */
a.btn-primary {
    color: white;
}

a.btn-primary:visited {
    color: white;
}

/* ==========================================================================
   Footer – Final polish
   ========================================================================== */

.site-footer {
    background: var(--color-bg-light);
    border-top: 1px solid var(--color-border);
    color: var(--color-text-light);
    padding: var(--spacing-xxl) 0 var(--spacing-xl);
    font-size: 0.95rem;
    margin-top: var(--spacing-xxl);
}

.site-footer .container {
    text-align: center;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--spacing-xl);
    max-width: 900px;
    margin: 0 auto;
}

.footer-contact,
.footer-legal {
    flex: 1;
    min-width: 220px;
}

.footer-contact h3 {
    color: var(--color-text-heading);
    font-size: 1.15rem;
    margin-bottom: var(--spacing-md);
}

.footer-contact p {
    margin: 0 0 var(--spacing-sm) 0;
    line-height: 1.6;
}

.footer-contact a {
    color: var(--color-primary);
    font-weight: var(--font-weight-medium);
}

.footer-legal {
    text-align: right;
}

.footer-legal p {
    margin: 0 0 var(--spacing-sm) 0;
}

.footer-small {
    font-size: 0.85rem;
    margin-top: var(--spacing-md);
}

.footer-small a {
    color: var(--color-text-light);
    margin: 0 var(--spacing-sm);
    text-decoration: none;
}

.footer-small a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.footer-three {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem 3rem;
    align-items: start;
}

.footer-brand {
    align-self: start;
}

.logo-svg {
    max-width: 180–240px;
    height: auto;
}

@media (max-width: 900px) {
    .footer-three {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.8rem;
    }
    
    .footer-brand {
        order: -1;                    /* logo on top when stacked */
    }
}

/* Mobile stacking */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-lg);
    }

    .footer-legal {
        text-align: center;
        order: -1; /* copyright on top on mobile */
    }

    .site-footer {
        padding: var(--spacing-xl) 0 var(--spacing-lg);
    }
}


/* ==========================================================================
   Hero Fixes for Mobile – Prevent Clipping
   ========================================================================== */

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    .hero {
        height: auto;               /* Let content expand naturally */
        min-height: 480px;          /* Slightly taller min to keep image presence */
        overflow: visible;          /* Prevent clipping – content can flow if needed */
    }

    .hero-content {
        padding: var(--spacing-lg) var(--spacing-md);  /* Reduce vertical padding (~2rem top/bottom) */
    }

    .hero h1 {
        font-size: clamp(2rem, 8vw, 2.8rem);  /* Smaller starting size on mobile */
    }

    .subtitle {
        font-size: clamp(1rem, 4vw, 1.25rem);  /* Tighten subtitle */
        margin-bottom: var(--spacing-lg);      /* Less space below */
    }

    .key-highlights {
        gap: var(--spacing-sm);                /* Smaller gaps between stacked items */
    }

    .highlight-item {
        width: 90%;                            /* Slightly wider for better readability */
        padding: var(--spacing-sm) var(--spacing-md);  /* Slimmer padding inside items */
    }

    .highlight-value {
        font-size: 1.4rem;                     /* Slightly smaller values to fit */
    }
}

/* ==========================================================================
   404 Error Page
   ========================================================================== */

.error-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: var(--color-bg-light);
    padding: var(--spacing-xxl) 0;
    text-align: center;
}

.error-content {
    max-width: 640px;
    margin: 0 auto;
}

.error-content h1 {
    font-size: clamp(5rem, 18vw, 9rem);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    margin: 0 0 var(--spacing-md) 0;
    line-height: 0.9;
}

.error-content h2 {
    font-size: clamp(1.8rem, 6vw, 2.4rem);
    margin-bottom: var(--spacing-lg);
    color: var(--color-text-heading);
}

.error-message {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-xl);
    color: var(--color-text);
}

.error-suggestion {
    font-size: 1.1rem;
    font-weight: var(--font-weight-medium);
    margin: 0 0 2.5rem 0;
    color: var(--color-text-heading);
}

.btn-primary {
    /* Already defined – but ensure it's prominent here */
    min-width: 260px;
    margin: 0 auto 2.5rem auto;
    display: inline-block;
}

.error-contact {
    font-size: 1rem;
    color: var(--color-text-light);
}

.error-contact a {
    color: var(--color-primary);
    font-weight: var(--font-weight-medium);
}

.error-contact a:hover {
    text-decoration: underline;
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .error-page {
        padding: var(--spacing-xl) 0;
        min-height: 70vh;
    }

    .error-content h1 {
        font-size: clamp(4.5rem, 22vw, 7rem);
    }
}