/* ========================================
   SANIBEL ISLAND - PERIWINKLE PARK
   Classic & Elegant Real Estate Website
======================================== */

/* --- CSS Custom Properties --- */
:root {
    --forest: #1A3C34;
    --forest-light: #2A5C4E;
    --forest-dark: #0F2420;
    --forest-muted: #3D6B5D;
    --off-white: #F5F5F0;
    --off-white-light: #FAFAF6;
    --cream: #EDEDE6;
    --warm-gray: #8A8A82;
    --dark-text: #1A1A18;
    --light-text: #F5F5F0;
    --gold: #C4A265;
    --gold-light: #D4B87A;
    
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Lato', 'Helvetica Neue', Arial, sans-serif;
    
    --shadow-sm: 0 1px 3px rgba(26, 60, 52, 0.08);
    --shadow-md: 0 4px 20px rgba(26, 60, 52, 0.10);
    --shadow-lg: 0 8px 40px rgba(26, 60, 52, 0.12);
    --shadow-xl: 0 16px 60px rgba(26, 60, 52, 0.15);
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-sans);
    color: var(--dark-text);
    background-color: var(--off-white);
    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;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

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

/* --- Typography --- */
.section-label {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.2;
    color: var(--forest);
    margin-bottom: 20px;
}

.section-subtitle {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--warm-gray);
    max-width: 600px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

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

.btn-primary:hover {
    background-color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--off-white);
    border: 1.5px solid rgba(245, 245, 240, 0.5);
}

.btn-secondary:hover {
    background-color: rgba(245, 245, 240, 0.1);
    border-color: var(--off-white);
    transform: translateY(-2px);
}

.btn-dark {
    background-color: var(--forest);
    color: var(--off-white);
}

.btn-dark:hover {
    background-color: var(--forest-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background-color: rgba(26, 60, 52, 0.97);
    padding: 14px 0;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--off-white);
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.nav-logo .logo-icon {
    opacity: 0.9;
}

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

.nav-link {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(245, 245, 240, 0.8);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--off-white);
}

.nav-phone {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--gold-light);
    transition: var(--transition);
}

.nav-phone:hover {
    color: var(--off-white);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--off-white);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

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

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 36, 32, 0.82) 0%,
        rgba(26, 60, 52, 0.65) 50%,
        rgba(42, 92, 78, 0.55) 100%
    );
}

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

.hero-badge {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold-light);
    border: 1px solid rgba(196, 162, 101, 0.4);
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 32px;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--off-white);
    margin-bottom: 24px;
}

.headline-accent {
    font-style: italic;
    color: var(--gold-light);
}

.hero-subheadline {
    font-family: var(--font-sans);
    font-size: 1.125rem;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(245, 245, 240, 0.85);
    max-width: 580px;
    margin: 0 auto 40px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(245, 245, 240, 0.6);
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    animation: float 2.5s ease-in-out infinite;
}

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

/* --- Property Section --- */
.property {
    padding: 120px 0;
    background-color: var(--off-white);
}

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

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

.property-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 80px;
}

.property-image-large {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.property-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.property-image-large:hover img {
    transform: scale(1.03);
}

.property-details {
    padding: 40px;
    background-color: var(--forest);
    border-radius: var(--radius-lg);
    color: var(--off-white);
}

.detail-item {
    margin-bottom: 28px;
}

.detail-item:last-of-type {
    margin-bottom: 40px;
}

.detail-label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 6px;
}

.detail-value {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    line-height: 1.5;
    color: var(--off-white);
}

.status-active {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #7DCE82;
}

.status-active::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #7DCE82;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.property-details .btn-dark {
    background-color: var(--off-white);
    color: var(--forest);
}

.property-details .btn-dark:hover {
    background-color: var(--gold-light);
    color: var(--forest-dark);
}

/* Property Features */
.property-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 36px 28px;
    background-color: var(--off-white-light);
    border-radius: var(--radius-md);
    border: 1px solid rgba(26, 60, 52, 0.06);
    transition: var(--transition);
}

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

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--forest);
    border-radius: var(--radius-md);
    color: var(--gold-light);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--forest);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--warm-gray);
}

/* --- Neighborhood Section --- */
.neighborhood {
    padding: 120px 0;
    background-color: var(--cream);
}

.neighborhood-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 80px;
}

.neighborhood-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 3/4;
    box-shadow: var(--shadow-sm);
}

.neighborhood-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.neighborhood-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

.nh-feature {
    padding-left: 20px;
    border-left: 2px solid var(--gold);
}

.nh-feature-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--forest);
    opacity: 0.2;
    line-height: 1;
    margin-bottom: 12px;
}

.nh-feature h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--forest);
    margin-bottom: 10px;
}

.nh-feature p {
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--warm-gray);
}

/* --- Lifestyle Section --- */
.lifestyle {
    padding: 120px 0;
    background-color: var(--off-white);
}

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

.lifestyle-description {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--warm-gray);
    margin-bottom: 20px;
}

.lifestyle-stats {
    display: flex;
    gap: 40px;
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid rgba(26, 60, 52, 0.1);
}

.stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--forest);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--warm-gray);
    line-height: 1.4;
}

.lifestyle-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

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

.lifestyle-img-1 {
    aspect-ratio: 5/7;
}

.lifestyle-img-2 {
    aspect-ratio: 1;
    margin-top: 40px;
}

.lifestyle-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.lifestyle-img:hover img {
    transform: scale(1.04);
}

/* --- Contact Section --- */
.contact {
    padding: 120px 0;
    background-color: var(--forest);
    color: var(--off-white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact .section-title {
    color: var(--off-white);
}

.contact-description {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(245, 245, 240, 0.7);
    margin-bottom: 48px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(245, 245, 240, 0.08);
    border-radius: var(--radius-md);
    color: var(--gold-light);
    flex-shrink: 0;
}

.contact-label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 4px;
}

.contact-value {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--off-white);
}

.contact-value:hover {
    color: var(--gold-light);
}

/* Contact Form */
.contact-form-wrapper {
    background-color: rgba(245, 245, 240, 0.05);
    border: 1px solid rgba(245, 245, 240, 0.1);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.form-group label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-light);
}

.form-group input,
.form-group textarea {
    background-color: rgba(245, 245, 240, 0.06);
    border: 1px solid rgba(245, 245, 240, 0.15);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--off-white);
    transition: var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(245, 245, 240, 0.35);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    background-color: rgba(245, 245, 240, 0.08);
}

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

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

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

.success-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(125, 206, 130, 0.15);
    border-radius: 50%;
    color: #7DCE82;
    margin-bottom: 8px;
}

.form-success h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--off-white);
    margin-bottom: 8px;
}

.form-success p {
    font-size: 0.9rem;
    color: rgba(245, 245, 240, 0.65);
    font-weight: 300;
}

/* --- Map Section --- */
.map-section {
    height: 400px;
    background-color: var(--cream);
}

.map-section iframe {
    width: 100%;
    height: 100%;
    filter: grayscale(40%) contrast(1.05);
}

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

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 64px;
    padding-bottom: 60px;
}

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

.footer-tagline {
    font-size: 0.9rem;
    font-weight: 300;
    color: rgba(245, 245, 240, 0.55);
    line-height: 1.6;
}

.footer-contact h4,
.footer-links h4 {
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 20px;
}

.footer-contact p {
    font-size: 0.875rem;
    font-weight: 300;
    color: rgba(245, 245, 240, 0.6);
    line-height: 1.8;
    margin-bottom: 4px;
}

.footer-contact a {
    color: rgba(245, 245, 240, 0.6);
    transition: var(--transition);
}

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

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.875rem;
    font-weight: 300;
    color: rgba(245, 245, 240, 0.6);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--off-white);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(245, 245, 240, 0.08);
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8125rem;
    font-weight: 300;
    color: rgba(245, 245, 240, 0.35);
}

/* --- Scroll Reveal (Progressive Enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .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; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .property-features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .neighborhood-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .neighborhood-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--forest-dark);
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        padding: 40px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: var(--shadow-xl);
    }
    
    .nav-links.open {
        right: 0;
    }
    
    .nav-link {
        font-size: 1rem;
    }
    
    .nav-phone {
        font-size: 0.9rem;
    }
    
    .hero-headline {
        font-size: clamp(1.8rem, 6vw, 2.8rem);
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-cta .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .property-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .property-features {
        grid-template-columns: 1fr;
    }
    
    .neighborhood-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .neighborhood-features {
        grid-template-columns: 1fr;
    }
    
    .lifestyle-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .lifestyle-stats {
        flex-wrap: wrap;
        gap: 24px;
    }
    
    .lifestyle-images {
        grid-template-columns: 1fr 1fr;
    }
    
    .lifestyle-img-2 {
        margin-top: 0;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .contact-form-wrapper {
        padding: 28px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .property,
    .neighborhood,
    .lifestyle,
    .contact {
        padding: 80px 0;
    }
    
    .section-header {
        margin-bottom: 48px;
    }
    
    .neighborhood-grid {
        grid-template-columns: 1fr;
    }
    
    .neighborhood-image {
        aspect-ratio: 4/3;
    }
    
    .lifestyle-images {
        grid-template-columns: 1fr;
    }
    
    .lifestyle-img-1 {
        aspect-ratio: 4/3;
    }
    
    .lifestyle-img-2 {
        margin-top: 20px;
    }
    
    .lifestyle-stats {
        flex-direction: column;
        gap: 20px;
    }
}
