/* ============================================
   Enfield Apartments — Styles
   Palette: Plum (#3B0F4D) + Amber (#D4A843)
   ============================================ */

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

:root {
    --plum-50:  #F5F0F7;
    --plum-100: #EDE4F0;
    --plum-200: #D9C5E0;
    --plum-300: #C4A5D0;
    --plum-400: #B085C0;
    --plum-500: #8B5FB0;
    --plum-600: #6B3F8A;
    --plum-700: #4A2064;
    --plum-800: #3B0F4D;
    --plum-900: #2A0A38;
    --plum-950: #1A0522;

    --amber-50:  #FDF8EE;
    --amber-100: #FBF0D4;
    --amber-200: #F7E0A8;
    --amber-300: #F2CC70;
    --amber-400: #EAB843;
    --amber-500: #D4A843;
    --amber-600: #B8892E;
    --amber-700: #8C661E;
    --amber-800: #5E4310;
    --amber-900: #3A2908;

    --neutral-50:  #FAFAFA;
    --neutral-100: #F5F5F5;
    --neutral-200: #EEEEEE;
    --neutral-300: #DDDDDD;
    --neutral-400: #BBBBBB;
    --neutral-500: #888888;
    --neutral-600: #666666;
    --neutral-700: #444444;
    --neutral-800: #2A2A2A;
    --neutral-900: #1A1A1A;

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Outfit', system-ui, sans-serif;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.14);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.18);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    color: var(--neutral-800);
    background: var(--neutral-50);
    line-height: 1.65;
    -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;
}

/* ============================================
   Skip Link
   ============================================ */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--plum-800);
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    z-index: 9999;
    font-weight: 500;
}
.skip-link:focus {
    top: 16px;
}

/* ============================================
   Header
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 250, 250, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--neutral-200);
    transition: box-shadow var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--plum-800);
    border-radius: 8px;
    position: relative;
    flex-shrink: 0;
}

.logo-icon::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 2px solid var(--amber-400);
    border-radius: 4px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--plum-900);
    letter-spacing: -0.02em;
}

.logo-sub {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--neutral-500);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    display: block;
    margin-top: -2px;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.main-nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--neutral-700);
    transition: color var(--transition);
    position: relative;
}

.main-nav a:not(.btn):hover {
    color: var(--plum-700);
}

.main-nav a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--amber-500);
    transition: width var(--transition);
}

.main-nav a:not(.btn):hover::after {
    width: 100%;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn--primary {
    background: var(--plum-800);
    color: #fff;
    border-color: var(--plum-800);
}

.btn--primary:hover {
    background: var(--plum-700);
    border-color: var(--plum-700);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn--outline:hover {
    background: rgba(255,255,255,0.12);
    border-color: #fff;
}

.btn--amber {
    background: var(--amber-500);
    color: var(--plum-950);
    border-color: var(--amber-500);
}

.btn--amber:hover {
    background: var(--amber-400);
    border-color: var(--amber-400);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--nav {
    padding: 8px 22px;
    font-size: 0.85rem;
    background: var(--plum-800);
    color: #fff;
    border-radius: var(--radius-sm);
}

.btn--nav:hover {
    background: var(--plum-700);
}

.btn--full {
    width: 100%;
}

/* ============================================
   Hero
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('https://images.pexels.com/photos/30263905/pexels-photo-30263905.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080') center center / cover no-repeat;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 5, 34, 0.88) 0%,
        rgba(59, 15, 77, 0.80) 50%,
        rgba(26, 5, 34, 0.85) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding-top: 72px;
}

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

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 600;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.80);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 560px;
}

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

.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255,255,255,0.5);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-8px); }
    60% { transform: translateX(-50%) translateY(-4px); }
}

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

.section--dark {
    background: var(--plum-900);
}

.section--alt {
    background: var(--plum-50);
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--amber-600);
    margin-bottom: 12px;
}

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

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 600;
    line-height: 1.2;
    color: var(--plum-900);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-title--light {
    color: #fff;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--neutral-600);
    line-height: 1.7;
}

.section-desc--light {
    color: rgba(255,255,255,0.70);
}

/* ============================================
   Intro
   ============================================ */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.intro-text .section-title {
    text-align: left;
}

.intro-text p {
    color: var(--neutral-600);
    margin-bottom: 16px;
    line-height: 1.75;
}

.intro-list {
    list-style: none;
    margin-top: 28px;
    display: grid;
    gap: 12px;
}

.intro-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--neutral-700);
    font-weight: 500;
}

.icon-check {
    width: 20px;
    height: 20px;
    color: var(--amber-500);
    flex-shrink: 0;
}

.intro-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 100%;
    height: 480px;
    object-fit: cover;
}

/* ============================================
   Rooms
   ============================================ */
.room-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.room-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.room-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.room-card--featured {
    border-color: var(--amber-500);
    background: rgba(212, 168, 67, 0.08);
}

.room-card-img {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.room-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.room-card:hover .room-card-img img {
    transform: scale(1.05);
}

.room-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--plum-800);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 5px 12px;
    border-radius: 20px;
}

.room-badge--amber {
    background: var(--amber-500);
    color: var(--plum-950);
}

.room-card-body {
    padding: 28px;
}

.room-card-body h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}

.room-desc {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
    margin-bottom: 20px;
}

.room-features {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.room-features li {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.75);
    background: rgba(255,255,255,0.08);
    padding: 6px 12px;
    border-radius: 20px;
}

.icon-sm {
    width: 14px;
    height: 14px;
    color: var(--amber-400);
    flex-shrink: 0;
}

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

.amenity-card {
    background: #fff;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    transition: all var(--transition);
}

.amenity-card:hover {
    border-color: var(--plum-200);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.amenity-icon {
    width: 52px;
    height: 52px;
    background: var(--plum-50);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.amenity-icon svg {
    width: 26px;
    height: 26px;
    color: var(--plum-700);
}

.amenity-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--plum-900);
    margin-bottom: 10px;
}

.amenity-card p {
    font-size: 0.9rem;
    color: var(--neutral-600);
    line-height: 1.7;
}

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

.location-content .section-title {
    text-align: left;
}

.location-desc {
    color: var(--neutral-600);
    line-height: 1.75;
    margin-bottom: 28px;
}

.location-list {
    list-style: none;
    display: grid;
    gap: 14px;
    margin-bottom: 32px;
}

.location-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--neutral-700);
}

.location-list strong {
    color: var(--plum-800);
}

.icon-pin {
    width: 20px;
    height: 20px;
    color: var(--amber-500);
    flex-shrink: 0;
    margin-top: 2px;
}

.location-map {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.location-image-stack {
    position: relative;
}

.location-img-main img {
    width: 100%;
    height: 700px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.location-img-float {
    position: absolute;
    bottom: -32px;
    left: -32px;
    border: 6px solid #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    width: 260px;
}

.location-img-float img {
    width: 100%;
    height: 170px;
    object-fit: cover;
}

/* ============================================
   Gallery
   ============================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(2, 220px);
    gap: 16px;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
}

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

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

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

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

/* ============================================
   CTA / Contact
   ============================================ */
.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.cta-info .section-title {
    text-align: left;
}

.cta-desc {
    color: rgba(255,255,255,0.70);
    line-height: 1.75;
    margin-bottom: 32px;
}

.cta-contact {
    display: grid;
    gap: 20px;
}

.cta-phone {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    transition: color var(--transition);
}

.cta-phone:hover {
    color: var(--amber-400);
}

.cta-phone svg {
    width: 24px;
    height: 24px;
    color: var(--amber-500);
}

.cta-address {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: rgba(255,255,255,0.70);
    font-size: 0.95rem;
    line-height: 1.6;
}

.cta-address svg {
    width: 20px;
    height: 20px;
    color: var(--amber-500);
    flex-shrink: 0;
    margin-top: 3px;
}

/* Form */
.cta-form-wrap {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-xl);
}

.cta-form {
    display: grid;
    gap: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--neutral-700);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--neutral-200);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--neutral-800);
    background: var(--neutral-50);
    transition: border-color var(--transition), box-shadow var(--transition);
    appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--plum-500);
    box-shadow: 0 0 0 3px rgba(107, 63, 138, 0.12);
    background: #fff;
}

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

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

.form-note {
    font-size: 0.8rem;
    color: var(--neutral-500);
    text-align: center;
}

.form-success {
    text-align: center;
    padding: 40px 20px;
}

.form-success.hidden {
    display: none;
}

.form-success .icon-check-lg {
    width: 56px;
    height: 56px;
    color: var(--amber-500);
    margin: 0 auto 16px;
}

.form-success h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--plum-900);
    margin-bottom: 8px;
}

.form-success p {
    color: var(--neutral-600);
    font-size: 0.95rem;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: var(--plum-950);
    color: rgba(255,255,255,0.70);
    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.10);
}

.footer-brand .logo-text {
    color: #fff;
}

.footer-brand .logo-sub {
    color: rgba(255,255,255,0.50);
}

.footer-brand p {
    margin-top: 16px;
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
}

.footer-links ul {
    list-style: none;
    display: grid;
    gap: 10px;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.60);
    transition: color var(--transition);
}

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

.footer-contact p {
    font-size: 0.9rem;
    line-height: 1.7;
}

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

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

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.40);
}

/* ============================================
   Mobile Toggle
   ============================================ */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--plum-800);
    position: absolute;
    top: 12px;
    left: 9px;
    transition: all var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: var(--plum-800);
    transition: all var(--transition);
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.mobile-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.mobile-toggle[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-toggle[aria-expanded="true"] .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .room-grid {
        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: auto;
    }
    
    .gallery-item--large {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .gallery-item--wide {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 72px 0;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: #fff;
        box-shadow: var(--shadow-xl);
        padding: 96px 32px 32px;
        transform: translateX(100%);
        transition: transform var(--transition);
        z-index: 999;
    }
    
    .main-nav.open {
        transform: translateX(0);
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
    
    .main-nav a {
        font-size: 1.1rem;
    }
    
    .intro-grid,
    .location-grid,
    .cta-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .intro-image {
        order: -1;
    }
    
    .intro-image img {
        height: 300px;
    }
    
    .intro-text .section-title {
        text-align: center;
    }
    
    .room-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }
    
    .amenities-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }
    
    .location-img-float {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 16px;
        width: 100%;
    }
    
    .location-img-main img {
        height: 400px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item--large {
        grid-column: span 1;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        justify-content: center;
    }
    
    .cta-form-wrap {
        padding: 28px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .section {
        padding: 56px 0;
    }
    
    .hero-title {
        font-size: 1.9rem;
    }
}

/* ============================================
   Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .scroll-indicator {
        animation: none;
    }
}
