/* ========================================
   Coastal Cabin Marketplace — Styles
   ======================================== */

/* --- CSS Custom Properties --- */
:root {
    --charcoal: #1A2332;
    --charcoal-light: #2C3E50;
    --charcoal-soft: #3D4F65;
    --coral: #F97583;
    --coral-dark: #E55A6A;
    --coral-light: #FFB4B4;
    --coral-pale: #FFF0F1;
    --sand: #F5E6D3;
    --sand-light: #FDF6EE;
    --cream: #FFFAF7;
    --white: #FFFFFF;
    --text-dark: #1A2332;
    --text-medium: #4A5568;
    --text-light: #718096;
    --text-on-dark: #F7FAFC;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-sm: 0 1px 3px rgba(26, 35, 50, 0.08), 0 1px 2px rgba(26, 35, 50, 0.06);
    --shadow-md: 0 4px 14px rgba(26, 35, 50, 0.1), 0 2px 6px rgba(26, 35, 50, 0.06);
    --shadow-lg: 0 10px 40px rgba(26, 35, 50, 0.12), 0 4px 12px rgba(26, 35, 50, 0.08);
    --shadow-coral: 0 8px 30px rgba(249, 117, 131, 0.35);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--cream);
    overflow-x: hidden;
}

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

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

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

ul {
    list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-dark);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }

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

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

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    transition: all var(--transition);
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--coral-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(249, 117, 131, 0.45);
}

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

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

.btn-coral {
    background: var(--coral);
    color: var(--white);
    box-shadow: var(--shadow-coral);
}

.btn-coral:hover {
    background: var(--coral-dark);
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.6);
}

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

.btn-lg {
    padding: 16px 32px;
    font-size: 1.05rem;
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.875rem;
}

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

.section-label.light {
    color: var(--coral-light);
}

.section-title {
    margin-bottom: 20px;
}

.section-title .text-coral {
    color: var(--coral);
}

.section-title .text-coral-light {
    color: var(--coral-light);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-medium);
    max-width: 560px;
    margin: 0 auto;
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 250, 247, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(26, 35, 50, 0.06);
    transition: all var(--transition);
}

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

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'DM Serif Display', serif;
    font-size: 1.2rem;
    color: var(--charcoal);
}

.logo-light {
    color: var(--white);
}

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

.nav-links a:not(.btn) {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--charcoal);
    position: relative;
    transition: color var(--transition);
}

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

.nav-links a:not(.btn):hover {
    color: var(--coral);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--charcoal);
    transition: background var(--transition);
}

.mobile-menu-btn:hover {
    background: var(--sand);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--cream);
    z-index: 999;
    padding: 32px 24px;
    flex-direction: column;
    gap: 8px;
}

.mobile-menu.active {
    display: flex;
}

.mobile-nav-link {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--charcoal);
    padding: 14px 0;
    border-bottom: 1px solid rgba(26, 35, 50, 0.08);
    transition: color var(--transition);
}

.mobile-nav-link:hover {
    color: var(--coral);
}

.mobile-call-btn {
    margin-top: 16px;
    justify-content: center;
}

/* --- HERO --- */
.hero {
    padding-top: 120px;
    padding-bottom: 80px;
    background: var(--cream);
    overflow: hidden;
    position: relative;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--coral-pale);
    color: var(--coral-dark);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 24px;
}

.hero-title {
    margin-bottom: 20px;
    line-height: 1.15;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-medium);
    margin-bottom: 32px;
    line-height: 1.8;
}

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

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.stat-number {
    font-family: 'DM Serif Display', serif;
    font-size: 1.5rem;
    color: var(--charcoal);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 4px;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--sand);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    min-height: 600px;
}

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

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

.hero-image-float {
    position: absolute;
    bottom: -20px;
    left: -40px;
    z-index: 3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-image-float img {
    width: 100%;
    display: block;
}

.float-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: var(--white);
    color: var(--charcoal);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow-sm);
}

.hero-pattern {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 200px;
    height: 200px;
    background-image: radial-gradient(circle, var(--coral) 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    opacity: 0.3;
    z-index: 1;
}

/* --- ABOUT --- */
.about {
    padding: 100px 0;
    background: var(--white);
}

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

.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;
}

.about-img-small {
    position: absolute;
    bottom: -30px;
    right: -20px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--white);
}

.about-img-small img {
    width: 100%;
    display: block;
}

.about-accent {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    background-image: radial-gradient(circle, var(--coral) 2px, transparent 2px);
    background-size: 12px 12px;
    opacity: 0.4;
    z-index: -1;
}

.about-content .section-label { margin-bottom: 12px; }
.about-content .section-title { margin-bottom: 20px; }

.about-text {
    color: var(--text-medium);
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 32px;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.feature-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon.coral {
    background: var(--coral-pale);
    color: var(--coral);
}

.feature-icon.charcoal {
    background: var(--sand);
    color: var(--charcoal);
}

.about-feature span {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--charcoal);
    line-height: 1.4;
}

/* --- CATEGORIES --- */
.categories {
    padding: 100px 0;
    background: var(--cream);
}

.section-header {
    margin-bottom: 60px;
}

.section-header .section-subtitle {
    margin-top: 16px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.category-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.category-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

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

.category-card:hover .category-img img {
    transform: scale(1.08);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 35, 50, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}

.category-card:hover .category-overlay {
    opacity: 1;
}

.category-overlay svg {
    color: var(--white);
    background: var(--coral);
    width: 48px;
    height: 48px;
    padding: 12px;
    border-radius: 50%;
}

.category-info {
    padding: 20px 24px 24px;
}

.category-info h3 {
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.category-info p {
    font-size: 0.9rem;
    color: var(--text-medium);
    line-height: 1.6;
}

/* --- WHY US --- */
.why-us {
    padding: 100px 0;
    background: var(--white);
}

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

.why-content .section-label { margin-bottom: 12px; }
.why-content .section-title { margin-bottom: 16px; }
.why-content .section-subtitle { margin-bottom: 40px; text-align: left; }

.why-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.why-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.why-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: var(--coral-pale);
    color: var(--coral);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-text h4 {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 4px;
    color: var(--charcoal);
}

.why-text p {
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.6;
}

.why-visual {
    position: relative;
}

.why-image-stack {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

.why-floating-card {
    position: absolute;
    bottom: 24px;
    left: -24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-lg);
    z-index: 2;
}

.floating-card-icon {
    width: 48px;
    height: 48px;
    background: var(--coral);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.why-floating-card strong {
    display: block;
    font-size: 0.95rem;
    color: var(--charcoal);
}

.why-floating-card span {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* --- COMMUNITY / TESTIMONIALS --- */
.community {
    padding: 100px 0;
    background: var(--sand-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    flex-shrink: 0;
}

.testimonial-author strong {
    display: block;
    font-size: 0.95rem;
    color: var(--charcoal);
}

.testimonial-author span {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* --- CTA SECTION --- */
.cta-section {
    padding: 80px 0;
    background: var(--charcoal);
    position: relative;
    overflow: hidden;
}

.cta-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--charcoal-light);
}

.cta-pattern {
    position: absolute;
    top: -60px;
    right: -60px;
    width: 300px;
    height: 300px;
    background-image: radial-gradient(circle, rgba(249,117,131,0.3) 2px, transparent 2px);
    background-size: 20px 20px;
    z-index: 0;
}

.cta-content {
    position: relative;
    z-index: 1;
    padding: 60px 48px;
    text-align: center;
}

.cta-content .section-title {
    color: var(--white);
    margin-bottom: 16px;
}

.cta-text {
    color: rgba(247, 250, 252, 0.75);
    font-size: 1.1rem;
    max-width: 520px;
    margin: 0 auto 36px;
}

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

/* --- CONTACT --- */
.contact {
    padding: 100px 0;
    background: var(--cream);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: stretch;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.contact-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.contact-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: var(--coral-pale);
    color: var(--coral);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-card h4 {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 6px;
    color: var(--charcoal);
}

.contact-card p {
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.6;
}

.contact-card .phone-link,
.contact-card .email-link {
    color: var(--coral);
    font-weight: 700;
    transition: color var(--transition);
}

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

.call-note {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 4px;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--coral);
    margin-top: 6px;
    transition: gap var(--transition);
}

.link-arrow:hover {
    gap: 8px;
}

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

/* --- FOOTER --- */
.footer {
    background: var(--charcoal);
    color: var(--text-on-dark);
    padding: 64px 0 0;
}

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

.footer-brand p {
    color: rgba(247, 250, 252, 0.6);
    font-size: 0.9rem;
    margin-top: 16px;
    line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--white);
    margin-bottom: 20px;
}

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

.footer-links a {
    font-size: 0.9rem;
    color: rgba(247, 250, 252, 0.6);
    transition: color var(--transition);
}

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

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: rgba(247, 250, 252, 0.6);
    margin-bottom: 10px;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: rgba(247, 250, 252, 0.6);
    transition: color var(--transition);
}

.footer-link:hover {
    color: var(--coral-light);
}

.footer-bottom {
    border-top: 1px solid rgba(247, 250, 252, 0.1);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(247, 250, 252, 0.4);
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .hero-grid {
        gap: 40px;
    }
    
    .hero-visual {
        min-height: 480px;
    }
    
    .about-grid,
    .why-grid {
        gap: 48px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        padding-top: 100px;
        padding-bottom: 60px;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .hero-visual {
        min-height: 400px;
        order: -1;
    }
    
    .hero-image-float {
        left: -10px;
        bottom: -10px;
    }
    
    .hero-stats {
        gap: 16px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .about-images {
        max-width: 480px;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .why-visual {
        order: -1;
        max-width: 480px;
    }
    
    .why-floating-card {
        left: 12px;
        bottom: 12px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin: 0 auto;
    }
    
    .cta-content {
        padding: 40px 24px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-map {
        min-height: 280px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        justify-content: center;
        width: 100%;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .hero-stat-divider {
        display: none;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}
