/* =========================================
   Shore to Please - Seabrook Beach House
   A coastal modern aesthetic
   ========================================= */

:root {
    /* Ocean-inspired palette */
    --ocean-deep: #1a3a4f;
    --ocean: #2d5a7b;
    --ocean-light: #4a8ab0;
    --seafoam: #7ec8c8;
    --sand: #f5f0e8;
    --sand-dark: #e8dfd0;
    --driftwood: #8b7355;
    --coral: #e07a5f;
    --coral-light: #f2a68d;
    --white: #ffffff;
    --text: #2c3e4a;
    --text-light: #5a6d7a;
    
    /* Hero colors (configurable) */
    --hero-title-color: #ffffff;
    --hero-subtitle-color: rgba(255, 255, 255, 0.85);
    
    /* Typography */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --hero-padding-top: 2rem;
    --hero-padding-bottom: 4rem;
    --hero-min-height: 100vh;
    --hero-overlay-opacity: 0.75;
    --container-max-width: 1200px;
    
    /* Transitions */
    --transition: 0.3s ease;
}

/* =========================================
   Reset & Base
   ========================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--sand);
    -webkit-font-smoothing: antialiased;
}

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

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

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

/* =========================================
   Typography
   ========================================= */

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--ocean-deep);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: var(--space-sm);
    text-align: center;
}

.section-intro {
    font-size: 1.125rem;
    color: var(--text-light);
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-lg);
}

/* =========================================
   Layout
   ========================================= */

.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

section {
    padding: var(--space-xl) 0;
    scroll-margin-top: 80px; /* Offset for when nav becomes fixed */
}

/* =========================================
   Buttons
   ========================================= */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-primary {
    background: var(--coral);
    color: var(--white);
    border-color: var(--coral);
}

.btn-primary:hover {
    background: var(--coral-light);
    border-color: var(--coral-light);
    color: var(--white);
    transform: translateY(-2px);
}

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

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

/* =========================================
   Hero Section
   ========================================= */

.hero {
    position: relative;
    min-height: var(--hero-min-height);
    display: flex;
    flex-direction: column;
    background: 
        linear-gradient(135deg, rgba(26, 58, 79, var(--hero-overlay-opacity)) 0%, rgba(45, 90, 123, calc(var(--hero-overlay-opacity) - 0.1)) 50%, rgba(74, 138, 176, calc(var(--hero-overlay-opacity) - 0.2)) 100%),
        url('images/Hero.jpeg') center/cover no-repeat;
    background-color: var(--ocean);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(126, 200, 200, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(224, 122, 95, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.nav {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md);
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.02em;
}

.nav-cta {
    padding: 0.75rem 1.5rem;
    background: var(--coral);
    color: var(--white);
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--transition);
}

.nav-cta:hover {
    background: var(--coral-light);
    color: var(--white);
    transform: translateY(-2px);
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--hero-padding-top) var(--space-md) var(--hero-padding-bottom);
    position: relative;
    z-index: 5;
}

.hero-location {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--seafoam);
    margin-bottom: var(--space-sm);
}

.hero-title {
    font-size: clamp(3rem, 10vw, 6rem);
    color: var(--hero-title-color);
    margin-bottom: var(--space-sm);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--hero-subtitle-color);
    margin-bottom: var(--space-lg);
}

.hero-stats {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: var(--white);
    font-weight: 500;
    transition: all var(--transition);
}

.hero-cta:hover {
    background: rgba(255, 255, 255, 0.25);
    color: var(--white);
    transform: translateY(-2px);
}

.hero-cta .arrow {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    z-index: 2;
}

.hero-wave svg {
    width: 100%;
    height: 100%;
}

/* =========================================
   Savings Section
   ========================================= */

.savings {
    background: var(--sand);
    padding-top: var(--space-xl);
    scroll-margin-top: 80px; /* Offset for fixed nav when scrolling */
}

.savings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.savings-card {
    position: relative;
    background: var(--white);
    padding: var(--space-lg) var(--space-md);
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(26, 58, 79, 0.06);
    border: 1px solid rgba(26, 58, 79, 0.08);
    transition: all var(--transition);
}

.savings-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(26, 58, 79, 0.12);
}

.savings-card.featured {
    background: var(--ocean-deep);
    color: var(--white);
}

.savings-card.featured .savings-badge,
.savings-card.featured .savings-details {
    color: rgba(255, 255, 255, 0.8);
}

.savings-card.featured .savings-amount,
.savings-card.featured .savings-label {
    color: var(--white);
}

.best-value {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--coral);
    color: var(--white);
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.savings-badge {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: var(--space-sm);
}

.savings-amount {
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 700;
    color: var(--ocean);
    line-height: 1;
}

.savings-amount span {
    font-size: 2.5rem;
}

.savings-label {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--ocean);
    margin-bottom: var(--space-sm);
}

.savings-details {
    color: var(--text-light);
    font-size: 0.95rem;
}

.savings-note {
    text-align: center;
    color: var(--text-light);
}

.savings-note a {
    color: var(--coral);
    font-weight: 500;
}

/* =========================================
   About Section
   ========================================= */

.about {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    align-items: center;
}

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

.about-images {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-sm);
}

.about-image {
    border-radius: 12px;
    overflow: hidden;
}

.about-image.main {
    grid-row: span 2;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 200px;
}

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

.about-content p {
    color: var(--text-light);
    margin-bottom: var(--space-md);
}

/* =========================================
   Amenities Section
   ========================================= */

.amenities {
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(126, 200, 200, 0.15) 0%, transparent 40%),
        var(--sand);
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
}

.amenity {
    text-align: center;
    padding: var(--space-md);
    background: var(--white);
    border-radius: 12px;
    transition: all var(--transition);
}

.amenity:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(26, 58, 79, 0.1);
}

.amenity-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
}

.amenity h3 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.amenity p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* =========================================
   Gallery Section
   ========================================= */

.gallery {
    background: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    background: var(--ocean-light);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

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

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

.gallery-item.tall {
    grid-row: span 2;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    
    .gallery-item.large,
    .gallery-item.tall {
        grid-column: span 2;
        grid-row: span 1;
    }
}

.gallery-cta {
    text-align: center;
}

.gallery-cta a {
    color: var(--coral);
    font-weight: 500;
}

/* =========================================
   Location Section
   ========================================= */

.location {
    position: relative;
    background: var(--ocean-deep);
    color: var(--white);
    overflow: hidden;
}

.location-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 80% 20%, rgba(126, 200, 200, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 80%, rgba(224, 122, 95, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

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

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

.location-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.location-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.125rem;
    margin-bottom: var(--space-lg);
}

.location-highlights {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.highlight {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.highlight strong {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--seafoam);
}

.highlight span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* =========================================
   Contact Section
   ========================================= */

.contact {
    background: var(--sand);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 900px) {
    .contact-grid {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

.contact-form {
    background: var(--white);
    padding: var(--space-lg);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(26, 58, 79, 0.08);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

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

label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.5rem;
}

input, select, textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 2px solid var(--sand-dark);
    border-radius: 8px;
    background: var(--white);
    color: var(--text);
    transition: border-color var(--transition);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--ocean-light);
}

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

.contact-form .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 1.125rem 2rem;
    font-size: 1.1rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact-card {
    background: var(--white);
    padding: var(--space-md);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(26, 58, 79, 0.08);
}

.contact-card h3 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.contact-email a,
.contact-phone a {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--ocean);
}

.contact-email a:hover,
.contact-phone a:hover {
    color: var(--coral);
}

.contact-card.seabrook-link p {
    color: var(--text-light);
    margin-bottom: var(--space-sm);
}

.contact-card.seabrook-link .btn-outline {
    width: 100%;
    justify-content: center;
}

/* =========================================
   Footer
   ========================================= */

.footer {
    background: var(--ocean-deep);
    color: var(--white);
    padding: var(--space-lg) 0 var(--space-md);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-brand h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: var(--space-md);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

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

.footer-note {
    color: var(--coral-light);
    font-weight: 500;
}

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

/* =========================================
   Responsive Adjustments
   ========================================= */

@media (max-width: 768px) {
    :root {
        --space-lg: 3rem;
        --space-xl: 4rem;
    }
    
    .hero-stats {
        gap: var(--space-md);
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .location-highlights {
        gap: var(--space-md);
    }
}

@media (max-width: 480px) {
    .nav {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .savings-amount {
        font-size: 4rem;
    }
}
