@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Montserrat:wght@300;400;500;600&display=swap');

:root {
    --sage-primary: #8B9D83;
    --sage-light: #A8B8A0;
    --sage-lighter: #C5D1BF;
    --sage-pale: #E8EDE5;
    --gold-muted: #C4A962;
    --gold-light: #D4BE82;
    --cream: #FAF8F5;
    --cream-dark: #F5F1EB;
    --text-dark: #3D4A3A;
    --text-medium: #5C6B58;
    --text-light: #8A9486;
    --text-muted: #A8B0A5;
    --white: #FFFFFF;
    --border-light: #E5E8E3;
}

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

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

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-medium);
    background-color: var(--cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    line-height: 1.3;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
}

header nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

header nav > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.logo span:first-child {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.logo span:last-child {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.75rem;
    font-weight: 500;
    font-style: italic;
    color: var(--sage-primary);
    letter-spacing: -0.02em;
}

.nav-desktop {
    display: none;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-light);
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--sage-primary);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--sage-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-medium);
}

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
}

#mobile-menu {
    display: none;
    padding: 1rem 0 1.5rem;
    border-top: 1px solid var(--border-light);
}

#mobile-menu .nav-link {
    display: block;
    padding: 0.75rem 0;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
    .mobile-menu-btn {
        display: none;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 6rem 2rem 8rem;
    background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 50%, var(--sage-pale) 100%);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 50%;
    height: 140%;
    background: radial-gradient(ellipse, var(--sage-lighter) 0%, transparent 70%);
    opacity: 0.5;
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 45%;
    height: 100%;
    background: radial-gradient(ellipse, var(--sage-pale) 0%, transparent 70%);
    opacity: 0.6;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero-section h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.hero-section h1 span {
    font-style: italic;
    color: var(--sage-primary);
}

.hero-section p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 2px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(139, 157, 131, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-dark);
    border: 1px solid var(--sage-primary);
}

.btn-secondary:hover {
    background: var(--sage-pale);
    border-color: var(--sage-light);
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section Styles */
.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1rem;
    color: var(--text-light);
    max-width: 500px;
    margin: 0 auto;
}

.section-divider {
    width: 60px;
    height: 1px;
    background: var(--sage-primary);
    margin: 1.5rem auto 0;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}

@media (min-width: 640px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.card {
    background: var(--white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(61, 74, 58, 0.06);
    transition: all 0.4s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(61, 74, 58, 0.12);
}

.card-image {
    height: 180px;
    background: linear-gradient(135deg, var(--sage-pale) 0%, var(--sage-lighter) 100%);
    position: relative;
    overflow: hidden;
}

.card-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 1px solid var(--sage-light);
    border-radius: 50%;
    opacity: 0.5;
}

.card-content {
    padding: 1.75rem;
}

.card h3 {
    font-size: 1.375rem;
    margin-bottom: 0.75rem;
}

.card h3 a:hover {
    color: var(--sage-primary);
}

.card p {
    font-size: 0.9375rem;
    color: var(--text-light);
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.card-link {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sage-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.card-link:hover {
    gap: 0.75rem;
}

/* Blog Section */
.blog-section {
    background: var(--cream-dark);
    margin: 0 -2rem;
    padding: 5rem 2rem;
}

.blog-section .section-content {
    max-width: 1200px;
    margin: 0 auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.blog-card {
    background: var(--white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(61, 74, 58, 0.06);
    transition: all 0.4s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(61, 74, 58, 0.1);
}

.blog-card-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.blog-card-image.punta-mita {
    background: linear-gradient(135deg, var(--sage-lighter) 0%, var(--sage-pale) 100%);
}

.blog-card-image.tulum {
    background: linear-gradient(135deg, var(--gold-light) 0%, #E8DFC8 100%);
}

.blog-card-image.cabo {
    background: linear-gradient(135deg, var(--sage-pale) 0%, var(--cream-dark) 100%);
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card-meta {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sage-primary);
    margin-bottom: 0.75rem;
}

.blog-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-card h3 a:hover {
    color: var(--sage-primary);
}

.blog-card p {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.blog-card .card-link {
    color: var(--sage-primary);
}

/* Footer */
footer {
    background: var(--text-dark);
    color: var(--sage-lighter);
    margin-top: 5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

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

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-brand .logo span:first-child {
    color: var(--white);
}

.footer-brand .logo span:last-child {
    color: var(--sage-light);
}

.footer-brand p {
    margin-top: 1rem;
    font-size: 0.9375rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.footer-links h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    font-size: 0.9375rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

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

.footer-newsletter h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-newsletter p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.875rem 1rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    color: var(--white);
    outline: none;
    transition: border-color 0.3s ease;
}

.newsletter-form input::placeholder {
    color: var(--text-muted);
}

.newsletter-form input:focus {
    border-color: var(--sage-primary);
}

.newsletter-form button {
    padding: 0.875rem 1.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--sage-primary);
    color: var(--white);
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--sage-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .hero-section {
        padding: 4rem 1.5rem 5rem;
    }

    .section {
        padding: 3rem 0;
    }

    main {
        padding: 0 1.5rem;
    }

    .blog-section {
        margin: 0 -1.5rem;
        padding: 3rem 1.5rem;
    }

    .footer-content {
        padding: 3rem 1.5rem;
    }

    .newsletter-form {
        flex-direction: column;
    }
}

/* Smooth animations */
@media (prefers-reduced-motion: no-preference) {
    .card, .blog-card {
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

/* Focus states for accessibility */
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--sage-primary);
    outline-offset: 2px;
}
