/* ============================================
   THE SILOS IN WILEY — Editorial Style
   Plum + Amber Palette
   ============================================ */

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

:root {
    --plum-dark: #3D1C4A;
    --plum: #5B2C6F;
    --plum-light: #7D3C93;
    --plum-pale: #F5EEF8;
    --plum-muted: #E8D5F0;
    --amber: #F5B041;
    --amber-dark: #D4943A;
    --amber-light: #FDEBD0;
    --amber-pale: #FFF8EE;
    --cream: #FDF8F4;
    --cream-dark: #F5EDE6;
    --text-dark: #1A0A20;
    --text: #3D2B42;
    --text-muted: #7A6580;
    --white: #FFFFFF;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Typography --- */
.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--plum);
    margin-bottom: 16px;
}

.section-headline {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.section-headline em {
    font-style: italic;
    color: var(--plum);
}

.section-lead {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 560px;
}

.lead {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 16px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

.btn-primary {
    background: var(--amber);
    color: var(--text-dark);
    border-color: var(--amber);
}

.btn-primary:hover {
    background: var(--amber-dark);
    border-color: var(--amber-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 176, 65, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--plum-dark);
    border-color: var(--white);
}

.btn-full {
    width: 100%;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 24px;
    transition: all 0.4s var(--ease);
}

.nav.scrolled {
    background: rgba(61, 28, 74, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
}

.nav-logo-icon {
    color: var(--amber);
}

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

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s var(--ease);
}

.nav-links a:hover {
    color: var(--amber);
}

.nav-cta {
    background: var(--amber);
    color: var(--text-dark) !important;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600 !important;
    transition: all 0.3s var(--ease) !important;
}

.nav-cta:hover {
    background: var(--amber-dark);
    color: var(--text-dark) !important;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--white);
    padding: 8px;
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

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

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(61, 28, 74, 0.85) 0%,
        rgba(91, 44, 111, 0.7) 50%,
        rgba(26, 10, 32, 0.8) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 24px 80px;
    width: 100%;
}

.hero-card {
    max-width: 640px;
    margin-bottom: 48px;
}

.hero-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 20px;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 900;
    line-height: 1.05;
    color: var(--white);
    margin-bottom: 24px;
}

.hero-headline em {
    font-style: italic;
    color: var(--amber);
}

.hero-sub {
    font-size: 1.1875rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 720px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    transition: all 0.4s var(--ease);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-4px);
    border-color: rgba(245, 176, 65, 0.4);
}

.stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--amber);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: rgba(255, 255, 255, 0.5);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* --- Sections --- */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header .section-lead {
    margin: 0 auto;
}

/* --- About --- */
.about {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 24px 48px rgba(91, 44, 111, 0.15);
}

.about-content .section-headline {
    margin-bottom: 20px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text);
}

.feature-item svg {
    color: var(--amber);
    flex-shrink: 0;
}

/* --- Amenities --- */
.amenities {
    background: var(--plum-dark);
    color: var(--white);
}

.amenities .section-eyebrow {
    color: var(--amber);
}

.amenities .section-headline {
    color: var(--white);
}

.amenities .section-headline em {
    color: var(--amber);
}

.amenities .section-lead {
    color: rgba(255, 255, 255, 0.6);
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.amenity-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 32px;
    transition: all 0.4s var(--ease);
}

.amenity-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-6px);
    border-color: rgba(245, 176, 65, 0.3);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.2);
}

.amenity-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(245, 176, 65, 0.15);
    color: var(--amber);
    margin-bottom: 24px;
}

.amenity-card h3 {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--white);
}

.amenity-card p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

/* --- Gallery --- */
.gallery {
    background: var(--cream);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(2, 240px);
    gap: 16px;
}

.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

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

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

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

.gallery-item--wide {
    grid-column: span 7;
}

/* --- Location --- */
.location {
    background: var(--white);
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.location-details {
    list-style: none;
    margin: 32px 0;
}

.location-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 1rem;
    color: var(--text);
    border-bottom: 1px solid var(--plum-pale);
}

.location-row svg {
    color: var(--plum);
    flex-shrink: 0;
}

.location-row a {
    color: var(--plum);
    font-weight: 500;
    transition: color 0.3s var(--ease);
}

.location-row a:hover {
    color: var(--amber-dark);
}

.location-map {
    margin-top: 24px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(91, 44, 111, 0.1);
}

.location-visual {
    position: relative;
}

.location-img {
    width: 100%;
    height: 560px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 24px 48px rgba(91, 44, 111, 0.15);
}

.location-badge {
    position: absolute;
    bottom: -20px;
    left: 24px;
    background: var(--plum);
    color: var(--white);
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(91, 44, 111, 0.3);
}

/* --- Contact --- */
.contact {
    background: var(--plum-pale);
}

.contact-card {
    background: var(--white);
    border-radius: 24px;
    padding: 64px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    box-shadow: 0 24px 64px rgba(91, 44, 111, 0.1);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--plum);
    transition: color 0.3s var(--ease);
}

.contact-link:hover {
    color: var(--amber-dark);
}

.contact-link svg {
    color: var(--amber);
}

/* --- Form --- */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--text-dark);
    background: var(--cream);
    border: 2px solid var(--plum-muted);
    border-radius: 10px;
    outline: none;
    transition: all 0.3s var(--ease);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--plum);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(91, 44, 111, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-success {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: #E8F5E9;
    color: #2E7D32;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 500;
    margin-top: 16px;
}

.form-success.show {
    display: flex;
}

/* --- Footer --- */
.footer {
    background: var(--plum-dark);
    color: var(--white);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.footer-logo-icon {
    color: var(--amber);
}

.footer-tagline {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.5);
    max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--amber);
}

.footer-links a {
    display: block;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    padding: 6px 0;
    transition: color 0.3s var(--ease);
}

.footer-links a:hover {
    color: var(--amber);
}

.footer-contact p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s var(--ease);
}

.footer-contact a:hover {
    color: var(--amber);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.35);
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 200px);
    }

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

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

    .contact-card {
        padding: 48px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--plum-dark);
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        padding: 40px;
        transition: right 0.4s var(--ease);
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.3);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-headline {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid,
    .location-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-img,
    .location-img {
        height: 320px;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .amenities-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .gallery-item--large,
    .gallery-item--wide {
        grid-column: span 1;
        grid-row: span 1;
    }

    .gallery-item {
        height: 220px;
    }

    .contact-card {
        grid-template-columns: 1fr;
        padding: 32px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 16px 12px;
    }

    .stat-number {
        font-size: 1.25rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}
