/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-primary: #1a5c4a;
    --color-primary-dark: #144738;
    --color-primary-light: #227d5f;
    --color-accent: #d4a54a;
    --color-accent-hover: #c4953a;
    --color-bg: #fafafa;
    --color-surface: #ffffff;
    --color-text: #1a1a2e;
    --color-text-light: #6b7280;
    --color-border: #e5e7eb;
    --color-error: #dc2626;
    --color-success: #10b981;
    --color-success-bg: #ecfdf5;
    --color-info: #3b82f6;
    --color-info-bg: #eff6ff;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --transition: 0.2s ease;
    --container-max: 1200px;
    --header-height: 72px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

a:hover {
    color: var(--color-primary-dark);
}

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

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    text-align: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--color-primary-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--color-accent);
    color: var(--color-text);
}

.btn-secondary:hover {
    background: var(--color-accent-hover);
    color: var(--color-text);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
}

.logo:hover {
    color: var(--color-primary-dark);
}

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 10px 16px;
    font-weight: 500;
    color: var(--color-text);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.nav-link:hover {
    color: var(--color-primary);
    background: rgba(26, 92, 74, 0.08);
}

.nav-cta {
    background: var(--color-primary);
    color: white;
}

.nav-cta:hover {
    background: var(--color-primary-dark);
    color: white;
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity var(--hero-fade-duration, 1.5s) ease-in-out;
    will-change: opacity;
}

.hero-img.active {
    opacity: 1;
    z-index: 1;
}

/* .hero-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(26,28,46,0.3) 0%, rgba(26,28,46,0.7) 100%);
    z-index: 1;
} */

.hero-badge {
    position: absolute;
    top: calc(var(--header-height) + 24px);
    left: 24px;
    z-index: 2;
    background: var(--color-accent);
    color: var(--color-text);
    padding: 8px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 48px 0;
}

.hero-details {
    max-width: 720px;
}

.hero-details h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: white;
    line-height: 1.2;
    margin-bottom: 1rem;
    /* Black outline - thinner */
    -webkit-text-stroke: 1px #000;
    text-stroke: 1px #000;
    /* Fallback for non-supporting browsers */
    text-shadow:
        -1px -1px 0 #000,
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000;
}

.price-location {
    display: flex;
    align-items: baseline;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.price {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--color-accent);
    /* Black outline - thinner */
    -webkit-text-stroke: 1px #000;
    text-stroke: 1px #000;
    /* Fallback for non-supporting browsers */
    text-shadow:
        -1px -1px 0 #000,
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000;
}

.price-period {
    font-size: 1.1rem;
    font-weight: 400;
    color: rgba(255,255,255,0.8);
}

.location {
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 2rem;
}

.meta-item {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    color: white;
    font-weight: 500;
}

/* Slanted Scroller/Marquee */
.scroller {
    width: 100%;
    overflow: hidden;
    position: relative;
    /* 20% opacity dark background */
    background: rgba(0, 0, 0, 0.2);
}

.scroller::before,
.scroller::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    pointer-events: none;
    z-index: 2;
}

.scroller::before {
    left: 0;
    background: linear-gradient(90deg, var(--scroller-fade-start, transparent) 0%, transparent 100%);
}

.scroller::after {
    right: 0;
    background: linear-gradient(270deg, var(--scroller-fade-end, transparent) 0%, transparent 100%);
}

/* Inner wrapper: centers the rotated track */
.scroller-inner {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Rotated track container - centered so rotation stays in view */
.scroller-track-wrapper {
    display: inline-flex;
    transform: rotate(var(--slant-deg, -12deg));
    transform-origin: center center;
    white-space: nowrap;
    will-change: transform;
    /* Make it wide enough so rotated content doesn't get clipped */
    width: 200%;
    margin-left: -50%;
}

/* Track animates only translation */
.scroller-track {
    display: flex;
    width: max-content;
    animation: scroll-left var(--scroll-speed, 30s) linear infinite;
    white-space: nowrap;
    will-change: transform;
}

.scroller-text {
    display: inline-flex;
    align-items: center;
    gap: 3rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0 1.5rem;
    white-space: nowrap;
}

.scroller-text::before,
.scroller-text::after {
    content: '◆';
    font-size: 0.75rem;
    opacity: 0.6;
    color: white;
    animation: pulse 2s ease-in-out infinite;
}

.scroller-text::after {
    animation-delay: 1s;
}

@keyframes scroll-left {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Pause on hover */
.scroller:hover .scroller-track {
    animation-play-state: paused;
}

/* Full-width variant - breaks out of container */
.scroller--full {
    width: 100vw;
    max-width: none;
    margin-left: calc(-50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 1rem 0;
    /* 20% opacity dark background */
    background: rgba(0, 0, 0, 0.2);
    /* Fade edges to hero overlay color */
    --scroller-fade-start: rgba(26,28,46,0.9);
    --scroller-fade-end: rgba(26,28,46,0.9);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .scroller-track-wrapper {
        transform: none !important;
    }
    .scroller-track {
        animation: none !important;
    }
    .scroller::before,
    .scroller::after {
        display: none;
    }
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .scroller {
        padding: 0.75rem 0;
    }
    .scroller--full {
        padding: 0.75rem 0;
    }
    .scroller-text {
        font-size: 0.75rem;
        gap: 2rem;
    }
    .scroller::before,
    .scroller::after {
        width: 60px;
    }
}

/* Features */
.features {
    padding: 80px 0;
    background: var(--color-surface);
}

.description-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.description-main .lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.description-main p {
    color: var(--color-text-light);
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.description-main p:last-child {
    margin-bottom: 0;
}

.description-highlights {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--color-border);
}

.description-highlights h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--color-text);
}

.highlights-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.highlights-list li {
    color: var(--color-text-light);
    line-height: 1.7;
    padding-left: 24px;
    position: relative;
}

.highlights-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
}

.highlights-list strong {
    color: var(--color-text);
}

/* Gallery */
.gallery {
    padding: 80px 0;
    background: var(--color-bg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    grid-auto-rows: 280px;
    gap: 16px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: zoom-in;
    background: var(--color-border);
}

.gallery-item.main {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.gallery-label {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .gallery-item.main {
        grid-column: span 1;
        grid-row: span 1;
    }
    .gallery-grid {
        grid-auto-rows: 220px;
    }
}

/* Location */
.location {
    padding: 80px 0;
    background: var(--color-surface);
}

.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.location-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    transition: all var(--transition);
}

.location-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.location-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.location-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text);
}

.location-card p {
    color: var(--color-text-light);
    font-size: 0.9375rem;
}

/* Enquire */
.enquire {
    padding: 80px 0;
    background: var(--color-bg);
}

.enquire-card {
    max-width: 720px;
    margin: 0 auto;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 48px;
}

.enquire-lead {
    text-align: center;
    color: var(--color-text-light);
    margin-bottom: 32px;
    font-size: 1.1rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
    padding: 24px;
    background: var(--color-bg);
    border-radius: var(--radius-md);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.contact-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-item div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-item strong {
    font-size: 0.875rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-item a {
    color: var(--color-primary);
    font-weight: 500;
}

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

.enquire-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    color: var(--color-text);
    background: var(--color-surface);
    transition: all var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(26, 92, 74, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-light);
}

.form-note {
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-top: -8px;
}

/* Human verification checkbox */
.human-check {
    margin-top: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9375rem;
    color: var(--color-text);
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    transition: all var(--transition);
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"]:checked {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.checkbox-label input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label input[type="checkbox"]:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 92, 74, 0.3);
}

.checkbox-label input[type="checkbox"][aria-describedby] {
    border-color: var(--color-error);
}

.checkbox-label input[type="checkbox"][aria-describedby]:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.checkmark {
    /* Hidden, using ::after on input instead */
    display: none;
}

/* Flash Messages */
.flash-message {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

.flash-success {
    background: var(--color-success-bg);
    color: var(--color-success);
    border: 1px solid #a7f3d0;
}

.flash-info {
    background: var(--color-info-bg);
    color: var(--color-info);
    border: 1px solid #bfdbfe;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Error Messages */
.error-message {
    font-size: 0.8125rem;
    color: var(--color-error);
    margin-top: 2px;
}

.form-group input[aria-describedby],
.form-group textarea[aria-describedby] {
    border-color: var(--color-error);
}

.form-group input[aria-describedby]:focus,
.form-group textarea[aria-describedby]:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

/* Mailto Fallback */
.mailto-fallback {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    .enquire-card {
        padding: 24px;
    }
}

/* Footer */
.footer {
    background: var(--color-text);
    color: white;
    padding: 48px 0 24px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.footer-brand p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9375rem;
}

.footer-links a {
    color: var(--color-accent);
    font-weight: 500;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.875rem;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 24px;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    font-size: 1.5rem;
    line-height: 1;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255,255,255,0.2);
}

.lightbox-close {
    top: 24px;
    right: 24px;
    font-size: 2rem;
}

.lightbox-prev {
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-caption {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.8);
    font-size: 0.9375rem;
    text-align: center;
    max-width: 80%;
}

@media (max-width: 640px) {
    .lightbox-close,
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
    }
    .lightbox-close {
        top: 16px;
        right: 16px;
    }
    .lightbox-prev {
        left: 16px;
    }
    .lightbox-next {
        right: 16px;
    }
    .lightbox-caption {
        bottom: 16px;
        font-size: 0.875rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.features > .container > *,
.gallery > .container > *,
.location > .container > *,
.enquire > .container > * {
    animation: fadeInUp 0.6s ease forwards;
}

/* Reduced motion */
@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;
    }
}