/*!
Theme Name: Sanchez Dream Stays
Theme URI: https://sanchezdreamstays.com
Author: Andy
Description: Custom theme for Sanchez Dream Stays
Version: 1.0.0
Text Domain: sanchezdreamstays
*/

/* ============================================
   VARIABLES
   ============================================ */
:root {
    --primary: #047857;
    --primary-dark: #065f46;
    --primary-light: #10b981;
    --accent: #f0fdf4;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-900: #111827;
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-900);
    background: var(--white);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

.text-primary { color: var(--primary); }
.text-white { color: var(--white); }
.text-white-muted { color: rgba(255, 255, 255, 0.8); }

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

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

.section { padding: 80px 0; }
.section-gray { background: var(--gray-50); }
.section-primary { background: var(--primary); }

.section-title {
    font-size: 2.25rem;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

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

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

.btn-outline {
    background: transparent;
    color: var(--gray-700);
    border-color: var(--gray-300);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

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

.btn-white:hover {
    background: var(--gray-100);
    color: var(--primary-dark);
}

.btn-full { width: 100%; }

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-100);
    z-index: 1000;
    padding: 16px 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding a {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

.main-navigation a {
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.875rem;
}

.main-navigation a:hover {
    color: var(--primary);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    padding: 160px 0 80px;
    background: linear-gradient(to bottom right, var(--accent), var(--white));
}

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

.hero-content h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.stats-box {
    background: var(--primary);
    color: var(--white);
    border-radius: 16px;
    padding: 32px;
}

.stat-main {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
}

.stat-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
}

.stat-desc {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   STEPS / HOW IT WORKS
   ============================================ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step-card {
    text-align: center;
    padding: 32px;
    background: var(--gray-50);
    border-radius: 16px;
}

.step-number {
    width: 64px;
    height: 64px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 24px;
}

.step-card h3 { margin-bottom: 12px; }
.step-card p { color: var(--gray-600); margin-bottom: 0; }

/* ============================================
   BENEFITS
   ============================================ */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.benefit-card {
    display: flex;
    gap: 24px;
    background: var(--white);
    padding: 32px;
    border-radius: 16px;
}

.benefit-icon {
    width: 48px;
    height: 48px;
    background: var(--accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
}

.benefit-card h3 { margin-bottom: 8px; }
.benefit-card p { color: var(--gray-600); margin-bottom: 0; }

/* ============================================
   ABOUT
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.about-image {
    background: var(--accent);
    border-radius: 16px;
    padding: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-placeholder {
    width: 192px;
    height: 192px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 4rem;
    font-weight: 700;
}

.about-content h2 { margin-bottom: 1.5rem; }
.about-content p { color: var(--gray-600); line-height: 1.7; }

.about-stats {
    display: flex;
    gap: 48px;
    margin-top: 24px;
}

.about-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.about-stat-label {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* ============================================
   FAQ
   ============================================ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--white);
    border-radius: 12px;
    padding: 24px;
}

.faq-item summary {
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; color: var(--gray-400); }
.faq-item[open] summary::after { content: "-"; }
.faq-item p { margin-top: 16px; color: var(--gray-600); margin-bottom: 0; }

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-form {
    background: var(--white);
    border-radius: 16px;
    padding: 32px;
}

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

.form-group { margin-bottom: 24px; }

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.1);
}

.form-group textarea { resize: vertical; }

/* Form Success/Error Messages */
.form-success {
    background: #ffffff;
    border-radius: 16px;
    padding: 48px;
    text-align: center;
}

.form-success h3 {
    color: #047857;
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.form-success p {
    color: #374151;
    margin: 0;
}

.form-error {
    background: #fef2f2;
    border: 1px solid #ef4444;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
    text-align: center;
}

.form-error p {
    color: #dc2626;
    margin: 0;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background-color: #111827 !important;
    color: #d1d5db !important;
    padding: 48px 0 !important;
}

.footer-content {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    flex-wrap: wrap !important;
    gap: 32px !important;
}

.footer-brand {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin-bottom: 8px !important;
}

.footer-tagline {
    font-size: 0.875rem !important;
    color: #9ca3af !important;
}

.footer-social {
    display: flex !important;
    gap: 16px !important;
    margin-top: 16px !important;
}

.footer-social a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    background: #374151 !important;
    border-radius: 50% !important;
    color: #d1d5db !important;
    transition: all 0.3s ease !important;
}

.footer-social a:hover {
    background: #047857 !important;
    color: #ffffff !important;
}

.footer-social svg {
    width: 20px !important;
    height: 20px !important;
    fill: currentColor !important;
}

.footer-links {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.footer-links a {
    color: #9ca3af !important;
    font-size: 0.875rem !important;
}

.footer-links a:hover {
    color: #ffffff !important;
}

.footer-bottom {
    margin-top: 32px !important;
    padding-top: 32px !important;
    border-top: 1px solid #374151 !important;
    text-align: center !important;
    font-size: 0.875rem !important;
    color: #9ca3af !important;
}

/* ============================================
   PAGE CONTENT
   ============================================ */
.page-content { padding-top: 120px; }
.entry-header { margin-bottom: 2rem; }
.entry-title { font-size: 2.5rem; color: var(--gray-900); }

.entry-thumbnail {
    margin-bottom: 2rem;
    border-radius: 16px;
    overflow: hidden;
}

.entry-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.entry-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--gray-700);
}

.entry-content p { margin-bottom: 1.5rem; }
.entry-content h2 { margin-top: 2rem; margin-bottom: 1rem; }
.entry-content h3 { margin-top: 1.5rem; margin-bottom: 0.75rem; }
.entry-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 1.5rem 0; }
.entry-content ul, .entry-content ol { margin-bottom: 1.5rem; padding-left: 1.5rem; }
.entry-content li { margin-bottom: 0.5rem; }

.entry-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--gray-600);
}

/* ============================================
   BLOG STYLES
   ============================================ */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-description {
    color: var(--gray-600);
    font-size: 1.125rem;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

.post-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.post-thumbnail {
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-card .post-content { padding: 24px; }

.post-meta {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 8px;
}

.post-date { color: var(--primary); }
.post-author { margin-left: 8px; }

.post-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    line-height: 1.3;
}

.post-title a { color: var(--gray-900); }
.post-title a:hover { color: var(--primary); }

.post-excerpt {
    color: var(--gray-600);
    font-size: 0.9375rem;
    margin-bottom: 16px;
}

.post-excerpt p { margin: 0; }

.read-more {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--primary);
}

.read-more:hover { color: var(--primary-dark); }

.no-posts {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--gray-600);
    padding: 3rem;
}

.entry-header .post-meta { margin-bottom: 16px; }

.entry-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.back-to-blog {
    font-weight: 600;
    color: var(--primary);
}

.pagination {
    grid-column: 1 / -1;
    margin-top: 2rem;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.pagination a,
.pagination span {
    padding: 8px 16px;
    border-radius: 8px;
    background: var(--gray-100);
    color: var(--gray-700);
}

.pagination a:hover {
    background: var(--primary);
    color: var(--white);
}

.pagination .current {
    background: var(--primary);
    color: var(--white);
}

/* ============================================
   ACF IMAGE STYLES
   ============================================ */
.step-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 24px;
    display: block;
}

.benefit-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    object-fit: cover;
}

.section-image {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto 2rem;
    border-radius: 12px;
}

.section-image-light { opacity: 0.9; }

.hero[style*="background-image"] { position: relative; }

.hero[style*="background-image"]::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: 0;
}

.hero[style*="background-image"] .container {
    position: relative;
    z-index: 1;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 968px) {
    .hero-grid, .about-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2.5rem; }
    .steps-grid { grid-template-columns: 1fr; }
    .benefits-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .hero { padding: 120px 0 60px; }
    .hero-content h1 { font-size: 2rem; }
    .section { padding: 60px 0; }
    .hero-buttons { flex-direction: column; }
    .btn { width: 100%; }
    .main-navigation { display: none; }
    .about-stats { flex-direction: column; gap: 16px; }
    .footer-content { flex-direction: column !important; text-align: center !important; }
    .footer-social { justify-content: center !important; }
    .footer-links { align-items: center !important; }
    .page-content { padding-top: 100px; }
    .entry-title { font-size: 2rem; }
}
