/* ============================================
   The New Jersey Renaissance Home and Guest Suite
   Stylesheet
   ============================================ */

/* --- CSS Variables --- */
:root {
    --emerald-50: #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-200: #a7f3d0;
    --emerald-300: #6ee7b7;
    --emerald-400: #34d399;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --emerald-800: #065f46;
    --emerald-900: #064e3b;
    
    --cream-50: #fefce8;
    --cream-100: #fef9c3;
    --cream-200: #fef08a;
    --cream-300: #fde047;
    --cream-400: #facc15;
    --cream-500: #eab308;
    
    --sand-50: #fafaf9;
    --sand-100: #f5f5f4;
    --sand-200: #e7e5e4;
    --sand-300: #d6d3d1;
    --sand-400: #a8a29e;
    --sand-500: #78716c;
    --sand-600: #57534e;
    --sand-700: #44403c;
    --sand-800: #292524;
    --sand-900: #1c1917;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    
    --transition: all 0.3s ease;
}

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

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

body {
    font-family: var(--font-body);
    color: var(--sand-800);
    background-color: var(--cream-50);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

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

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.section-tagline {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--emerald-600);
    background: linear-gradient(135deg, var(--emerald-100), var(--emerald-50));
    padding: 0.5rem 1rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--sand-900);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--sand-600);
    max-width: 600px;
}

.section-text {
    font-size: 1rem;
    color: var(--sand-600);
    margin-bottom: 1rem;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--emerald-600), var(--emerald-700));
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--emerald-500), var(--emerald-600));
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.btn-secondary {
    background: white;
    color: var(--sand-800);
    border: 2px solid var(--sand-200);
}

.btn-secondary:hover {
    border-color: var(--emerald-400);
    color: var(--emerald-700);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(254, 252, 232, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--sand-200);
    transition: var(--transition);
}

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

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--sand-900);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--sand-700);
}

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--sand-800);
    transition: var(--transition);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, 
        var(--emerald-100) 0%, 
        var(--cream-100) 50%, 
        var(--emerald-200) 100%
    );
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse, var(--emerald-100) 0%, transparent 70%);
    opacity: 0.6;
    animation: float 20s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 60%;
    height: 160%;
    background: radial-gradient(ellipse, var(--cream-200) 0%, transparent 70%);
    opacity: 0.4;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(2deg); }
    66% { transform: translate(-20px, 20px) rotate(-1deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
}

.hero-tagline {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--emerald-700);
    background: rgba(255, 255, 255, 0.6);
    padding: 0.625rem 1.25rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    color: var(--sand-900);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-title em {
    font-style: italic;
    color: var(--emerald-700);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--sand-700);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--sand-600);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    z-index: 1;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--sand-400), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* --- Sections --- */
.section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

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

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

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    color: var(--sand-700);
}

.about-image {
    position: relative;
}

.image-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

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

.image-wrapper:hover img {
    transform: scale(1.05);
}

.image-accent {
    position: absolute;
    bottom: -2rem;
    right: -2rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid white;
}

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

/* --- Suites --- */
.suites {
    background: linear-gradient(180deg, var(--cream-50) 0%, var(--sand-50) 100%);
}

.suites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.suite-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.suite-image {
    height: 250px;
    overflow: hidden;
}

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

.suite-card:hover .suite-image img {
    transform: scale(1.1);
}

.suite-content {
    padding: 1.5rem;
}

.suite-content h3 {
    font-size: 1.5rem;
    color: var(--sand-900);
    margin-bottom: 0.75rem;
}

.suite-content p {
    font-size: 0.9375rem;
    color: var(--sand-600);
    margin-bottom: 1rem;
}

.suite-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.suite-features li {
    font-size: 0.875rem;
    color: var(--sand-700);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.suite-features li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--emerald-400);
    border-radius: 50%;
}

/* --- Amenities --- */
.amenities {
    background: white;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.amenity-card {
    background: linear-gradient(135deg, var(--cream-50), var(--sand-50));
    border-radius: 20px;
    padding: 2rem;
    transition: var(--transition);
    border: 1px solid var(--sand-200);
}

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

.amenity-icon {
    width: 64px;
    height: 64px;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.amenity-card h3 {
    font-size: 1.25rem;
    color: var(--sand-900);
    margin-bottom: 0.75rem;
}

.amenity-card p {
    font-size: 0.9375rem;
    color: var(--sand-600);
}

/* --- Location --- */
.location {
    background: linear-gradient(135deg, var(--emerald-50) 0%, var(--cream-50) 100%);
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.location-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

.location-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.location-item svg {
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.location-item strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.125rem;
    color: var(--sand-900);
    margin-bottom: 0.25rem;
}

.location-item p {
    font-size: 0.9375rem;
    color: var(--sand-600);
    line-height: 1.6;
}

.location-item a {
    color: var(--emerald-600);
    font-weight: 600;
}

.location-item a:hover {
    color: var(--emerald-700);
}

.location-map {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    height: 500px;
}

.location-map iframe {
    width: 100%;
    height: 100%;
}

/* --- CTA --- */
.cta {
    background: linear-gradient(135deg, var(--emerald-700), var(--emerald-900));
    padding: 5rem 0;
    text-align: center;
}

.cta .section-tagline {
    background: rgba(255, 255, 255, 0.15);
    color: var(--emerald-200);
}

.cta .section-title {
    color: white;
    margin-bottom: 1rem;
}

.cta .section-text {
    color: var(--emerald-100);
    max-width: 600px;
    margin: 0 auto 2rem;
}

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

.cta .btn-primary:hover {
    background: var(--cream-100);
    transform: translateY(-2px);
}

/* --- Footer --- */
.footer {
    background: var(--sand-900);
    color: var(--sand-300);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--sand-400);
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

.footer-links ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    font-size: 0.9375rem;
    color: var(--sand-400);
}

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

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9375rem;
}

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

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

.footer-bottom {
    border-top: 1px solid var(--sand-800);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--sand-500);
}

/* --- Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Mobile Menu --- */
.mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(254, 252, 232, 0.98);
    backdrop-filter: blur(10px);
    padding: 2rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border-bottom: 1px solid var(--sand-200);
    z-index: 999;
}

.mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-menu a {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--sand-700);
}

.mobile-menu a:hover {
    color: var(--emerald-600);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .about-grid,
    .location-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-image {
        order: -1;
    }
    
    .image-accent {
        right: 1rem;
        bottom: -1rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        min-height: 90vh;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .suites-grid {
        grid-template-columns: 1fr;
    }
    
    .location-map {
        height: 350px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-tagline {
        font-size: 0.75rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .amenity-card {
        padding: 1.5rem;
    }
}

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