/* ============================================
   RKP Tiny Home & RV Park — Stylesheet
   ============================================ */

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

: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;
    --emerald-950: #022c22;

    --cream-50: #fefdf8;
    --cream-100: #fef9e8;
    --cream-200: #fdf0c7;
    --cream-300: #fde68a;
    --cream-400: #fcd34d;
    --cream-500: #f59e0b;

    --neutral-50: #fafaf9;
    --neutral-100: #f5f5f4;
    --neutral-200: #e7e5e4;
    --neutral-300: #d6d3d1;
    --neutral-400: #a8a29e;
    --neutral-500: #78716c;
    --neutral-600: #57534e;
    --neutral-700: #44403c;
    --neutral-800: #292524;
    --neutral-900: #1c1917;
    --neutral-950: #0c0a09;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, sans-serif;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.05);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --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-color: var(--cream-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 0.938rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn--primary {
    background-color: var(--emerald-700);
    color: #ffffff;
    border-color: var(--emerald-700);
}

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

.btn--secondary {
    background-color: transparent;
    color: var(--emerald-700);
    border-color: var(--emerald-700);
}

.btn--secondary:hover {
    background-color: var(--emerald-700);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--outline {
    background-color: transparent;
    color: var(--cream-50);
    border-color: rgba(254, 253, 248, 0.5);
}

.btn--outline:hover {
    background-color: rgba(254, 253, 248, 0.12);
    border-color: var(--cream-50);
    transform: translateY(-2px);
}

.btn--full {
    width: 100%;
    justify-content: center;
    padding: 16px 28px;
}

/* --- Section Labels --- */
.section-label {
    display: inline-block;
    font-size: 0.813rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--emerald-700);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--neutral-900);
    line-height: 1.2;
    margin-bottom: 20px;
}

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

.section-header--center {
    text-align: center;
}

.section-header--center .section-subtitle {
    margin: 0 auto;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(254, 253, 248, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--neutral-200);
    transition: box-shadow var(--transition);
}

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

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

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

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

.nav-logo-text {
    display: none;
}

@media (min-width: 768px) {
    .nav-logo-text {
        display: inline;
    }
}

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

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-link {
    padding: 8px 16px;
    font-size: 0.938rem;
    font-weight: 500;
    color: var(--neutral-700);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.nav-link:hover {
    color: var(--emerald-700);
    background-color: var(--emerald-50);
}

.nav-link--cta {
    background-color: var(--emerald-700);
    color: #ffffff !important;
    margin-left: 8px;
}

.nav-link--cta:hover {
    background-color: var(--emerald-800);
    color: #ffffff !important;
}

.nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid var(--neutral-300);
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--neutral-700);
    transition: all var(--transition);
}

.nav-toggle:hover {
    border-color: var(--emerald-700);
    color: var(--emerald-700);
}

@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }
}

/* Mobile nav */
.nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background-color: var(--cream-50);
    border-bottom: 1px solid var(--neutral-200);
    padding: 16px 24px;
    box-shadow: var(--shadow-lg);
    gap: 4px;
}

.nav-links.mobile-open .nav-link {
    padding: 12px 16px;
    width: 100%;
}

.nav-links.mobile-open .nav-link--cta {
    margin-left: 0;
    text-align: center;
    margin-top: 8px;
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--emerald-900) 0%, var(--emerald-800) 50%, #0a4a3a 100%);
    padding: 100px 24px 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-grid {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 1;
}

@media (min-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
    }
}

.hero-content {
    color: #ffffff;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: rgba(254, 253, 248, 0.12);
    border: 1px solid rgba(254, 253, 248, 0.2);
    border-radius: 100px;
    font-size: 0.813rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--cream-300);
    margin-bottom: 28px;
}

.hero-badge svg {
    color: var(--cream-400);
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 24px;
}

.hero-subhead {
    font-size: clamp(1rem, 1.5vw, 1.188rem);
    line-height: 1.75;
    color: rgba(254, 253, 248, 0.8);
    margin-bottom: 36px;
    max-width: 520px;
}

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

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    padding-top: 32px;
    border-top: 1px solid rgba(254, 253, 248, 0.15);
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-stat-number {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--cream-300);
}

.hero-stat-label {
    font-size: 0.813rem;
    color: rgba(254, 253, 248, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background-color: rgba(254, 253, 248, 0.2);
}

/* Hero Images */
.hero-image {
    position: relative;
}

.hero-image-main {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero-image-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-image-accent {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 120px;
    height: 120px;
    background-color: var(--cream-300);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.hero-image-float {
    position: absolute;
    bottom: -30px;
    right: -20px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 4px solid var(--emerald-800);
}

.hero-image-float img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (min-width: 900px) {
    .hero-image-float {
        width: 260px;
        bottom: -40px;
        right: -30px;
    }
}

/* --- About --- */
.about {
    padding: 100px 0;
    background-color: var(--cream-50);
}

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

@media (min-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 80px;
    }
}

.about-images {
    position: relative;
}

.about-img-main {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-img-secondary {
    position: absolute;
    bottom: -30px;
    right: -20px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 4px solid var(--cream-50);
    width: 60%;
}

.about-img-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-content .section-title {
    margin-bottom: 24px;
}

.about-text {
    font-size: 1.063rem;
    line-height: 1.8;
    color: var(--neutral-600);
    margin-bottom: 20px;
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 36px;
}

.about-value {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.about-value svg {
    color: var(--emerald-600);
    flex-shrink: 0;
    margin-top: 2px;
}

.about-value strong {
    display: block;
    font-size: 1rem;
    color: var(--neutral-900);
    margin-bottom: 4px;
}

.about-value-desc {
    font-size: 0.938rem;
    color: var(--neutral-500);
    line-height: 1.6;
}

/* --- Sites --- */
.sites {
    padding: 100px 0;
    background-color: var(--neutral-100);
}

.sites-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 64px;
}

@media (min-width: 768px) {
    .sites-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.site-card {
    background-color: #ffffff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--neutral-200);
    transition: all var(--transition);
}

.site-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--emerald-200);
}

.site-card-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

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

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

.site-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    background-color: var(--emerald-700);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 100px;
}

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

.site-card-body h3 {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 12px;
}

.site-card-body > p {
    font-size: 0.938rem;
    color: var(--neutral-600);
    line-height: 1.7;
    margin-bottom: 20px;
}

.site-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.site-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.938rem;
    color: var(--neutral-700);
}

.site-features li::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: var(--emerald-500);
    border-radius: 50%;
    flex-shrink: 0;
}

/* --- Amenities --- */
.amenities {
    padding: 100px 0;
    background-color: var(--cream-50);
}

.amenities-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 56px;
    align-items: center;
}

@media (min-width: 900px) {
    .amenities-layout {
        grid-template-columns: 1fr 1fr;
        gap: 80px;
    }
}

.amenities-intro {
    font-size: 1.063rem;
    color: var(--neutral-600);
    line-height: 1.8;
    margin-bottom: 40px;
}

.amenities-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.amenity-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.amenity-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--emerald-50);
    border: 1px solid var(--emerald-200);
    border-radius: var(--radius-md);
    color: var(--emerald-700);
    flex-shrink: 0;
}

.amenity-item strong {
    display: block;
    font-size: 1rem;
    color: var(--neutral-900);
    margin-bottom: 4px;
}

.amenity-item span {
    font-size: 0.938rem;
    color: var(--neutral-500);
    line-height: 1.6;
}

.amenities-image {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.amenities-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.amenities-image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 24px;
    background: linear-gradient(transparent, rgba(2, 44, 34, 0.85));
    color: var(--cream-200);
    font-size: 0.938rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

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

@media (min-width: 900px) {
    .location-grid {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
    }
}

.location-text {
    font-size: 1.063rem;
    color: var(--neutral-600);
    line-height: 1.8;
    margin-bottom: 36px;
}

.location-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.location-detail {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.location-detail svg {
    color: var(--emerald-600);
    flex-shrink: 0;
    margin-top: 2px;
}

.location-detail strong {
    display: block;
    font-size: 0.813rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--neutral-500);
    margin-bottom: 4px;
}

.location-detail span,
.location-detail a {
    font-size: 1rem;
    color: var(--neutral-800);
    line-height: 1.6;
}

.location-detail a:hover {
    color: var(--emerald-700);
    text-decoration: underline;
}

.location-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-height: 400px;
}

/* --- CTA --- */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--emerald-800) 0%, var(--emerald-900) 100%);
    position: relative;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.cta .container {
    position: relative;
    z-index: 1;
}

.cta-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 56px;
    align-items: start;
}

@media (min-width: 900px) {
    .cta-inner {
        grid-template-columns: 1fr 1fr;
        gap: 80px;
    }
}

.cta-content .section-label {
    color: var(--emerald-300);
}

.cta-content .section-title {
    color: #ffffff;
}

.cta-text {
    font-size: 1.063rem;
    color: rgba(254, 253, 248, 0.75);
    line-height: 1.8;
    max-width: 480px;
}

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

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

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

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

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

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--neutral-700);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 1.5px solid var(--neutral-300);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.938rem;
    color: var(--neutral-800);
    background-color: var(--neutral-50);
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--emerald-500);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

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

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

.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 24px;
    gap: 16px;
}

.form-success svg {
    color: var(--emerald-500);
}

.form-success h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neutral-900);
}

.form-success p {
    font-size: 1rem;
    color: var(--neutral-500);
    line-height: 1.6;
}

/* --- Footer --- */
.footer {
    background-color: var(--neutral-900);
    color: var(--neutral-400);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 48px;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

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

.footer-logo {
    color: var(--cream-100);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 0.813rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--neutral-300);
    margin-bottom: 20px;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a,
.footer-contact a {
    font-size: 0.938rem;
    color: var(--neutral-400);
    transition: color var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.footer-contact svg {
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid var(--neutral-800);
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
}

@media (min-width: 600px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--neutral-500);
}

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

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

/* --- Scroll Animations (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
}
