/* ============================================
   Palm Tree Treasures — Custom Styles
   Color Palette: Terracotta + Sand
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --terracotta: #C4704B;
    --terracotta-dark: #A85A3A;
    --terracotta-light: #E8A87C;
    --sand: #F5E6D3;
    --sand-light: #FBF5EE;
    --sand-dark: #E8D5C0;
    --cream: #FFF9F4;
    --charcoal: #2C2420;
    --charcoal-light: #4A3F38;
    --warm-gray: #8A7E76;
    --sage: #7BA87B;
    --sage-light: #E8F0E8;
    
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --shadow-sm: 0 1px 3px rgba(44, 36, 32, 0.06), 0 1px 2px rgba(44, 36, 32, 0.04);
    --shadow-md: 0 4px 16px rgba(44, 36, 32, 0.08), 0 2px 4px rgba(44, 36, 32, 0.04);
    --shadow-lg: 0 12px 40px rgba(44, 36, 32, 0.12), 0 4px 12px rgba(44, 36, 32, 0.06);
    --shadow-xl: 0 24px 60px rgba(44, 36, 32, 0.14);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    
    --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

body {
    font-family: var(--font-body);
    color: var(--charcoal);
    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: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

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

/* --- Section Tags --- */
.section-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--terracotta);
    background: linear-gradient(135deg, rgba(196, 112, 75, 0.1), rgba(232, 168, 124, 0.1));
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 14px 32px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--terracotta);
    color: #fff;
    box-shadow: 0 4px 16px rgba(196, 112, 75, 0.3);
}

.btn-primary:hover {
    background: var(--terracotta-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(196, 112, 75, 0.35);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: #fff;
    transform: translateY(-2px);
}

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

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

.navbar.scrolled {
    background: rgba(255, 249, 244, 0.95);
    backdrop-filter: blur(20px);
    padding: 14px 0;
    box-shadow: var(--shadow-md);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--charcoal);
}

.logo-icon {
    flex-shrink: 0;
}

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

.nav-links a {
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--charcoal-light);
    padding: 8px 18px;
    border-radius: 50px;
    transition: all var(--transition);
}

.nav-links a:hover {
    color: var(--terracotta);
    background: rgba(196, 112, 75, 0.08);
}

.nav-cta {
    background: var(--terracotta) !important;
    color: #fff !important;
    font-weight: 500 !important;
}

.nav-cta:hover {
    background: var(--terracotta-dark) !important;
    color: #fff !important;
}

/* --- Mobile Menu --- */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-btn span {
    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 Section --- */
.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(44, 36, 32, 0.65) 0%,
        rgba(44, 36, 32, 0.45) 50%,
        rgba(196, 112, 75, 0.25) 100%
    );
}

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

.hero-tagline {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--terracotta-light);
    margin-bottom: 24px;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 600;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    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(255, 255, 255, 0.6);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    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); }
}

/* --- About Section --- */
.about {
    padding: 120px 0;
    background: var(--cream);
}

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

.about-images {
    position: relative;
    height: 600px;
}

.about-img-main {
    position: absolute;
    top: 0;
    left: 0;
    width: 75%;
    height: 80%;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

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

.about-img-secondary {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 55%;
    height: 55%;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 6px solid var(--cream);
}

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

.about-text .section-tag {
    margin-bottom: 16px;
}

.about-text h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--charcoal);
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.about-text p {
    font-size: 1.0625rem;
    color: var(--charcoal-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

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

.feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--charcoal);
}

.feature-item svg {
    flex-shrink: 0;
}

/* --- Collections Section --- */
.collections {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--sand-light) 0%, var(--cream) 100%);
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--charcoal);
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.section-header p {
    font-size: 1.0625rem;
    color: var(--warm-gray);
    line-height: 1.7;
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

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

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

.collection-img {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.collection-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.collection-overlay {
    position: absolute;
    inset: 0;
    background: rgba(44, 36, 32, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}

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

.collection-arrow {
    width: 56px;
    height: 56px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(12px);
    transition: transform var(--transition);
}

.collection-card:hover .collection-arrow {
    transform: translateY(0);
}

.collection-info {
    padding: 28px 32px;
}

.collection-info h3 {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 10px;
}

.collection-info p {
    font-size: 0.9375rem;
    color: var(--warm-gray);
    line-height: 1.7;
}

/* --- Testimonial Section --- */
.testimonial {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--sand) 0%, var(--sand-dark) 100%);
    text-align: center;
}

.testimonial-content {
    max-width: 760px;
    margin: 0 auto;
    position: relative;
}

.quote-mark {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.4;
}

.testimonial-text {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.6;
    color: var(--charcoal);
    margin-bottom: 28px;
}

.testimonial-source {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--terracotta);
}

/* --- Visit Section --- */
.visit {
    padding: 120px 0;
    background: var(--cream);
}

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

.visit-info .section-tag {
    margin-bottom: 16px;
}

.visit-info h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--charcoal);
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.visit-description {
    font-size: 1.0625rem;
    color: var(--charcoal-light);
    line-height: 1.8;
    margin-bottom: 40px;
}

.visit-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.visit-detail {
    display: flex;
    gap: 18px;
}

.detail-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(196, 112, 75, 0.1), rgba(232, 168, 124, 0.15));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.visit-detail strong {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 4px;
}

.visit-detail p {
    font-size: 0.9375rem;
    color: var(--charcoal-light);
    line-height: 1.6;
}

.visit-detail a {
    color: var(--charcoal-light);
    transition: color var(--transition);
}

.visit-detail a:hover {
    color: var(--terracotta);
}

.visit-map {
    height: 480px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* --- Contact Section --- */
.contact {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--sand-light) 0%, var(--cream) 100%);
}

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

.contact-text .section-tag {
    margin-bottom: 16px;
}

.contact-text h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--charcoal);
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.contact-text p {
    font-size: 1.0625rem;
    color: var(--charcoal-light);
    line-height: 1.8;
}

.contact-form-wrapper {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 44px;
    box-shadow: var(--shadow-lg);
}

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

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

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

.form-group label {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--charcoal-light);
}

.form-group input,
.form-group textarea {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--charcoal);
    background: var(--sand-light);
    border: 1.5px solid transparent;
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    transition: all var(--transition);
    outline: none;
}

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

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--terracotta);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(196, 112, 75, 0.1);
}

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

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

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

.form-success p {
    font-size: 0.9375rem;
    color: var(--warm-gray);
    line-height: 1.6;
}

/* --- Footer --- */
.footer {
    background: var(--charcoal);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 0;
}

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

.footer-brand .logo {
    color: #fff;
    margin-bottom: 16px;
}

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

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--terracotta-light);
    margin-bottom: 20px;
}

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

.footer-links a {
    font-size: 0.9375rem;
    transition: color var(--transition);
}

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

.footer-contact a {
    font-size: 0.9375rem;
    transition: color var(--transition);
}

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

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

.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.4);
}

/* --- Reveal Animations (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

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

/* Default visible state for reduced-motion / no-JS */
.reveal {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal:not(.revealed) {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .about-grid,
    .visit-grid,
    .contact-grid {
        gap: 48px;
    }
    
    .about-images {
        height: 480px;
    }
}

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

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--cream);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 32px 40px;
        gap: 8px;
        box-shadow: var(--shadow-xl);
        transition: right var(--transition);
    }

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

    .nav-links a {
        font-size: 1.0625rem;
        padding: 12px 0;
        width: 100%;
    }

    .nav-cta {
        margin-top: 16px;
        text-align: center;
        width: 100% !important;
    }

    .mobile-overlay {
        position: fixed;
        inset: 0;
        background: rgba(44, 36, 32, 0.4);
        z-index: 999;
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--transition);
    }

    .mobile-overlay.active {
        opacity: 1;
        pointer-events: all;
    }

    .hero h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

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

    .about-images {
        height: 400px;
        order: -1;
    }

    .collections-grid {
        gap: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 28px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .visit-map {
        height: 320px;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

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

    .about-images {
        height: 320px;
    }
}
