/* ===================================
   Beach House Rentals — Stylesheet
   =================================== */

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

:root {
    --charcoal: #3D405B;
    --charcoal-light: #4F5373;
    --charcoal-dark: #2B2D40;
    --coral: #F07B6B;
    --coral-light: #F4978A;
    --coral-dark: #E06552;
    --cream: #FDF8F5;
    --cream-dark: #F5EDE8;
    --white: #FFFFFF;
    --text-dark: #2B2D40;
    --text-muted: #6B7280;
    --text-light: #9CA3AF;
    --shadow-sm: 0 1px 3px rgba(61, 64, 91, 0.08);
    --shadow-md: 0 4px 16px rgba(61, 64, 91, 0.10);
    --shadow-lg: 0 8px 32px rgba(61, 64, 91, 0.12);
    --shadow-xl: 0 16px 48px rgba(61, 64, 91, 0.14);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Lato', 'Segoe UI', sans-serif;
    --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(--text-dark);
    background-color: var(--cream);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

a:hover {
    color: var(--coral-dark);
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--charcoal);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    z-index: 1000;
    font-weight: 700;
}

.skip-link:focus {
    top: 1rem;
}

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

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

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); }

.section-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 0.75rem;
}

/* --- Buttons --- */
.btn-primary, .btn-secondary, .btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-xl);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--coral);
    color: var(--white);
    border-color: var(--coral);
    box-shadow: 0 4px 14px rgba(240, 123, 107, 0.35);
}

.btn-primary:hover {
    background: var(--coral-dark);
    border-color: var(--coral-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(240, 123, 107, 0.45);
}

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

.btn-secondary:hover {
    background: var(--charcoal);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--charcoal);
    border-color: var(--charcoal);
}

.btn-outline:hover {
    background: var(--charcoal);
    color: var(--white);
    transform: translateY(-2px);
}

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

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

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(253, 248, 245, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(61, 64, 91, 0.06);
    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: 0.6rem;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--charcoal);
    text-decoration: none;
}

.logo:hover {
    color: var(--charcoal);
}

.logo-icon {
    display: flex;
    align-items: center;
    color: var(--coral);
}

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

.main-nav a {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--charcoal);
    text-decoration: none;
    position: relative;
    padding: 0.25rem 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--coral);
    border-radius: 2px;
    transition: width var(--transition);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a:hover {
    color: var(--coral);
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--charcoal);
    border-radius: 2px;
    transition: all var(--transition);
}

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

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

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

/* --- Hero --- */
.hero {
    padding: 8rem 0 5rem;
    background: var(--cream);
    overflow: hidden;
}

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

.hero-content {
    max-width: 540px;
}

.hero-tag {
    display: inline-block;
    background: rgba(240, 123, 107, 0.12);
    color: var(--coral);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-xl);
    margin-bottom: 1.5rem;
}

.hero h1 {
    margin-bottom: 1.5rem;
    color: var(--charcoal);
}

.hero h1 em {
    color: var(--coral);
    font-style: italic;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat strong {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--charcoal);
}

.stat span {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(61, 64, 91, 0.15);
}

/* Image stack */
.hero-visual {
    position: relative;
}

.image-stack {
    position: relative;
    height: 520px;
}

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

.img-secondary {
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 220px;
    height: 160px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 5px solid var(--cream);
    box-shadow: var(--shadow-lg);
}

.floating-card {
    position: absolute;
    top: 2rem;
    right: -20px;
    background: var(--white);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    animation: float 3s ease-in-out infinite;
}

.card-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.card-value {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--charcoal);
}

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

/* --- About --- */
.about {
    padding: 6rem 0;
    background: var(--white);
}

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

.about-visual {
    position: relative;
}

.rounded-img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.about-accent {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: var(--coral);
    border-radius: var(--radius-lg);
    opacity: 0.15;
    z-index: -1;
}

.about-content h2 {
    margin-bottom: 1.5rem;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.feature-list {
    list-style: none;
    margin-top: 2rem;
    display: grid;
    gap: 0.75rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--charcoal);
}

.feature-list svg {
    color: var(--coral);
    flex-shrink: 0;
}

/* --- Amenities --- */
.amenities {
    padding: 6rem 0;
    background: var(--cream);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3.5rem;
}

.section-header h2 {
    margin-bottom: 0.75rem;
}

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

.amenity-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    border: 1px solid rgba(61, 64, 91, 0.04);
}

.amenity-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(240, 123, 107, 0.2);
}

.amenity-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(240, 123, 107, 0.1);
    border-radius: var(--radius-md);
    color: var(--coral);
    margin-bottom: 1.25rem;
}

.amenity-card h3 {
    margin-bottom: 0.5rem;
}

.amenity-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* --- Location --- */
.location {
    padding: 6rem 0;
    background: var(--white);
}

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

.location-content .section-tag {
    margin-bottom: 0.75rem;
}

.location-content h2 {
    margin-bottom: 1rem;
}

.location-content > p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.location-details {
    display: grid;
    gap: 1.5rem;
}

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

.location-item svg {
    color: var(--coral);
    flex-shrink: 0;
    margin-top: 2px;
}

.location-item strong {
    display: block;
    color: var(--charcoal);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
}

.location-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.location-item a {
    color: var(--coral);
}

.location-item a:hover {
    color: var(--coral-dark);
    text-decoration: underline;
}

.location-map .rounded-img {
    height: 450px;
}

/* --- CTA --- */
.cta {
    padding: 5rem 0;
    background: var(--charcoal);
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

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

.btn-outline:hover {
    background: var(--white);
    color: var(--charcoal);
    border-color: var(--white);
    transform: translateY(-2px);
}

/* --- Contact --- */
.contact {
    padding: 6rem 0;
    background: var(--cream);
}

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

.contact-info .section-tag {
    margin-bottom: 0.75rem;
}

.contact-info h2 {
    margin-bottom: 1rem;
}

.contact-info > p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.contact-details {
    display: grid;
    gap: 1.5rem;
}

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

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

.contact-item strong {
    display: block;
    color: var(--charcoal);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
}

.contact-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.contact-item a {
    color: var(--coral);
}

.contact-item a:hover {
    color: var(--coral-dark);
    text-decoration: underline;
}

/* Form */
.contact-form-wrapper {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid rgba(61, 64, 91, 0.12);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    background: var(--cream);
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--coral);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(240, 123, 107, 0.1);
}

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

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

.form-success {
    display: none;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-md);
    color: #059669;
    font-weight: 600;
    margin-top: 1rem;
}

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

.form-success svg {
    flex-shrink: 0;
}

/* --- Footer --- */
.site-footer {
    background: var(--charcoal-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 0;
}

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

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

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
}

.footer-links ul {
    list-style: none;
    display: grid;
    gap: 0.6rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    text-decoration: none;
    transition: color var(--transition);
}

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

.footer-contact p {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.6);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem 0;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-grid,
    .about-grid,
    .location-grid,
    .contact-grid {
        gap: 2.5rem;
    }

    .image-stack {
        height: 420px;
    }

    .img-primary {
        height: 420px;
    }

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

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--cream);
        box-shadow: var(--shadow-xl);
        padding: 5rem 2rem 2rem;
        transition: right var(--transition);
        z-index: 100;
    }

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

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }

    .main-nav a::after {
        display: none;
    }

    .hero {
        padding: 6rem 0 3rem;
    }

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

    .hero-visual {
        order: -1;
    }

    .image-stack {
        height: 320px;
    }

    .img-primary {
        height: 320px;
    }

    .img-secondary {
        width: 160px;
        height: 120px;
        bottom: -20px;
        left: -10px;
    }

    .floating-card {
        right: 0;
        top: 1rem;
    }

    .hero-stats {
        gap: 1rem;
    }

    .about-grid,
    .location-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-visual {
        order: -1;
    }

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

    .cta-inner {
        flex-direction: column;
        text-align: center;
    }

    .cta-actions {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }

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

    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-wrap: wrap;
    }

    .stat-divider {
        display: none;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

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

    .cta-actions .btn-outline,
    .cta-actions .btn-primary {
        width: 100%;
        justify-content: center;
    }
}

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

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