/* =========================================
   Paço do Curutelo - Replica Emergent Design
   ========================================= */

/* --- Google Font Inter (closest to Emergent system font) --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* --- Variables --- */
:root {
    --color-primary: #8B7355;
    --color-primary-dark: #6B5644;
    --color-gold: #C9A961;
    --color-beige: #E8DCC8;
    --color-stone-50: #fafaf9;
    --color-stone-100: #f5f5f4;
    --color-stone-200: #e7e5e4;
    --color-stone-400: #a8a29e;
    --color-stone-800: #292524;
    --color-stone-900: #1c1917;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-900: #111827;
    --header-height: 80px;
    --max-width: 1280px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--color-gray-700);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
    list-style: none;
}

/* --- Container --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 640px) {
    .container { padding: 0 24px; }
}

@media (min-width: 1024px) {
    .container { padding: 0 32px; }
}

/* ===========================================
   HEADER / NAVIGATION (Transparent → Solid)
   =========================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: all 0.3s ease;
    background: transparent;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Force white bg on non-hero pages */
body:not(.home) .site-header,
body:not(.page-template-front-page) .site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

@media (min-width: 640px) { .nav-inner { padding: 0 24px; } }
@media (min-width: 1024px) { .nav-inner { padding: 0 32px; } }

/* Logo */
.logo a {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    text-decoration: none;
}

.logo a span {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    transition: color 0.3s ease;
    color: #fff;
}

.site-header.scrolled .logo a span,
body:not(.home) .logo a span,
body:not(.page-template-front-page) .logo a span {
    color: var(--color-primary);
}

/* Custom logo support */
.custom-logo-link img {
    max-height: 50px;
    width: auto;
}

/* Main Menu */
.nav-menu .menu {
    display: none;
    align-items: center;
    gap: 32px;
    margin: 0;
    padding: 0;
}

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

.nav-menu .menu li {
    position: relative;
}

.nav-menu .menu a {
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.3s ease;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
}

.site-header.scrolled .nav-menu .menu a,
body:not(.home) .nav-menu .menu a,
body:not(.page-template-front-page) .nav-menu .menu a {
    color: var(--color-gray-700);
}

.nav-menu .menu a:hover,
.nav-menu .menu .current-menu-item > a,
.nav-menu .menu .current_page_item > a {
    color: var(--color-primary) !important;
}

.nav-menu .menu .current-menu-item > a {
    font-weight: 700;
}

/* Sub-menus */
.nav-menu .menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 200px;
}

.nav-menu .menu li:hover > .sub-menu { display: block; }

.nav-menu .menu .sub-menu a {
    display: block;
    padding: 8px 20px;
    color: var(--color-gray-700) !important;
    font-size: 0.875rem;
}

.nav-menu .menu .sub-menu a:hover {
    background: var(--color-stone-50);
    color: var(--color-primary) !important;
}

/* Mobile Toggle */
.mobile-toggle {
    display: flex;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 51;
    flex-direction: column;
    gap: 5px;
}

@media (min-width: 768px) {
    .mobile-toggle { display: none; }
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    border-radius: 2px;
    transition: all 0.3s ease;
    background: #fff;
}

.site-header.scrolled .mobile-toggle span,
body:not(.home) .mobile-toggle span,
body:not(.page-template-front-page) .mobile-toggle span {
    background: var(--color-gray-700);
}

.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu Panel */
.mobile-nav-panel {
    display: none;
    background: #fff;
    border-top: 1px solid var(--color-stone-200);
    padding: 8px 16px 16px;
}

.mobile-nav-panel.active {
    display: block;
}

.mobile-nav-panel .menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-panel .menu a {
    display: block;
    padding: 8px 12px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-gray-700);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.mobile-nav-panel .menu a:hover,
.mobile-nav-panel .menu .current-menu-item > a {
    color: var(--color-primary);
    background: var(--color-stone-50);
}

.mobile-nav-panel .menu .current-menu-item > a {
    font-weight: 700;
}

.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 40;
}

.mobile-overlay.active { display: block; }

/* ===========================================
   HERO SECTION (Full Screen)
   =========================================== */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.4), rgba(0,0,0,0.6));
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 16px;
    max-width: 1024px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 24px;
    line-height: 1.1;
    animation: fadeIn 1s ease-out;
}

@media (min-width: 768px) {
    .hero-content h1 { font-size: 4.5rem; }
}

.hero-content h1 .highlight {
    color: var(--color-gold);
}

.hero-content > p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .hero-content > p { font-size: 1.5rem; }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

@media (min-width: 640px) {
    .hero-buttons { flex-direction: row; }
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 10;
}

.scroll-indicator-dot {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 9999px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-indicator-dot::after {
    content: '';
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 9999px;
    animation: scrollDot 2s infinite;
}

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

@keyframes scrollDot {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(12px); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); filter: blur(2px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* ===========================================
   BUTTONS (Emergent style)
   =========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    font-family: inherit;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    line-height: 1.4;
}

.btn:hover {
    transform: scale(1.05);
}

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

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

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

.btn-outline-white {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.btn-outline-white:hover {
    background: #fff;
    color: var(--color-gray-900);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: #fff;
}

.btn-white {
    background: #fff;
    color: var(--color-primary-dark);
    font-weight: 600;
}

.btn-white:hover {
    background: #f3f4f6;
}

/* Arrow icon in button */
.btn-arrow::after {
    content: '→';
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.btn-arrow:hover::after {
    transform: translateX(4px);
}

/* ===========================================
   PAGE HERO (inner pages, 60vh)
   =========================================== */
.page-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.page-hero .hero-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.6));
}

.page-hero .hero-content h1 {
    font-size: 3rem;
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .page-hero .hero-content h1 { font-size: 4rem; }
}

.page-hero .hero-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ===========================================
   SECTIONS (matching Emergent py-20 px-4)
   =========================================== */
.section {
    padding: 80px 16px;
}

.section-white { background: #fff; }
.section-stone { background: var(--color-stone-50); }

.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 16px;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .section-header h2 { font-size: 3rem; }
}

.section-header p {
    font-size: 1.25rem;
    color: var(--color-gray-600);
    max-width: 640px;
    margin: 0 auto;
}

.section-label {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ===========================================
   ABOUT / SOBRE (2-col layout)
   =========================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

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

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-top: 8px;
    margin-bottom: 24px;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .about-text h2 { font-size: 3rem; }
}

.about-text p {
    font-size: 1.125rem;
    color: var(--color-gray-700);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-text .btn {
    margin-top: 32px;
}

.about-image-wrap {
    position: relative;
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.about-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.about-image-wrap:hover img {
    transform: scale(1.1);
}

@media (max-width: 1023px) {
    .about-image-wrap { height: 350px; }
    .about-text-col { order: 2; }
    .about-image-col { order: 1; }
}

/* ===========================================
   "PORQUE NOS ESCOLHER" CARDS
   =========================================== */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

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

.feature-card {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: none;
}

.feature-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    transform: translateY(-8px);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--color-beige);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    color: var(--color-primary);
    stroke: var(--color-primary);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 16px;
}

.feature-card p {
    color: var(--color-gray-600);
    line-height: 1.6;
}

/* ===========================================
   PRODUCT CARDS
   =========================================== */
.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

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

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

.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.product-card-image {
    height: 300px;
    overflow: hidden;
    position: relative;
    background: var(--color-stone-100);
}

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

.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

.product-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--color-primary);
    color: #fff;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-card-body {
    padding: 24px;
}

.product-card-body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 8px;
}

.product-card-body h3 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

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

.product-card-excerpt {
    color: var(--color-gray-600);
    font-size: 0.875rem;
    margin-bottom: 16px;
    line-height: 1.6;
}

.product-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--color-stone-200);
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

/* ===========================================
   GALLERY GRID
   =========================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

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

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

.gallery-item {
    position: relative;
    height: 320px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    cursor: pointer;
}

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

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* ===========================================
   CTA SECTION
   =========================================== */
.cta-section {
    position: relative;
    padding: 80px 16px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23fff' fill-opacity='0.07'%3E%3Cpath d='M36 14c3.314 0 6-2.686 6-6s-2.686-6-6-6-6 2.686-6 6 2.686 6 6 6zM24 54c3.314 0 6-2.686 6-6s-2.686-6-6-6-6 2.686-6 6 2.686 6 6 6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.cta-inner {
    max-width: 896px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .cta-section h2 { font-size: 3rem; }
}

.cta-section > .cta-inner > p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
}

@media (min-width: 768px) {
    .cta-section > .cta-inner > p { font-size: 1.5rem; }
}

/* ===========================================
   TESTIMONIALS
   =========================================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

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

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

.testimonial-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.testimonial-stars {
    color: #f59e0b;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--color-gray-600);
    line-height: 1.7;
    margin-bottom: 16px;
    font-size: 0.9375rem;
}

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

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-name {
    font-weight: 600;
    color: var(--color-gray-900);
    font-size: 0.9375rem;
}

.testimonial-location {
    font-size: 0.8125rem;
    color: var(--color-stone-400);
}

/* ===========================================
   SINGLE PRODUCT
   =========================================== */
.single-product-wrap {
    padding-top: var(--header-height);
}

.single-product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: start;
}

@media (min-width: 1024px) {
    .single-product-grid { grid-template-columns: 1fr 1fr; }
}

.product-gallery {
    background: var(--color-stone-50);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
}

.product-gallery img {
    max-height: 600px;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 8px;
}

.product-details .product-type-label {
    display: inline-block;
    color: var(--color-primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

.product-details h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin: 12px 0;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .product-details h1 { font-size: 3rem; }
}

.product-year-label {
    color: var(--color-gray-600);
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.product-price-large {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 24px 0;
}

.product-meta-card {
    background: var(--color-stone-50);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.product-meta-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-gray-900);
}

.product-meta-card p {
    margin-bottom: 8px;
    font-size: 1rem;
    color: var(--color-gray-700);
}

.product-content {
    margin: 24px 0;
    line-height: 1.8;
    font-size: 1.0625rem;
    color: var(--color-gray-700);
}

.product-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.product-actions .btn {
    flex: 1;
    text-align: center;
    justify-content: center;
}

@media (max-width: 640px) {
    .product-actions { flex-direction: column; }
}

/* ===========================================
   FOOTER (stone-900 like Emergent)
   =========================================== */
.site-footer {
    background: var(--color-stone-900);
    color: var(--color-stone-200);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 48px 16px;
}

@media (min-width: 640px) { .footer-inner { padding: 48px 24px; } }
@media (min-width: 1024px) { .footer-inner { padding: 48px 32px; } }

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

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

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

.footer-logo {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    margin-bottom: 16px;
}

.footer-logo span {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.025em;
}

.footer-col p {
    font-size: 0.875rem;
    color: var(--color-stone-400);
    line-height: 1.6;
    margin-bottom: 8px;
}

.footer-col h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
}

/* Social Icons */
.footer-social {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.footer-social a {
    color: var(--color-stone-400);
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: var(--color-gold);
}

.footer-social svg {
    width: 20px;
    height: 20px;
}

/* Footer Links */
.footer-menu,
.footer-menu .menu,
.footer-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu li,
.footer-menu .menu li,
.footer-links li {
    margin-bottom: 8px;
}

.footer-menu a,
.footer-menu .menu a,
.footer-links a {
    font-size: 0.875rem;
    color: var(--color-stone-400);
    transition: color 0.3s ease;
}

.footer-menu a:hover,
.footer-menu .menu a:hover,
.footer-links a:hover {
    color: var(--color-gold);
}

/* Footer Contact with Icons */
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.footer-contact-icon {
    color: var(--color-gold);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-contact-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer-contact-label {
    font-size: 0.875rem;
    color: var(--color-stone-400);
    display: block;
}

.footer-contact-value {
    font-size: 0.875rem;
    color: #fff;
    transition: color 0.3s ease;
}

a.footer-contact-value:hover {
    color: var(--color-gold);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid var(--color-stone-800);
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

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

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--color-stone-400);
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    font-size: 0.875rem;
    color: var(--color-stone-400);
    transition: color 0.3s ease;
}

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

/* ===========================================
   GENERIC PAGES
   =========================================== */
.page-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 1.0625rem;
    color: var(--color-gray-700);
}

.page-content p { margin-bottom: 16px; }
.page-content h2 { font-size: 2rem; font-weight: 700; color: var(--color-gray-900); margin: 32px 0 16px; }
.page-content h3 { font-size: 1.5rem; font-weight: 600; color: var(--color-gray-900); margin: 24px 0 12px; }
.page-content img { border-radius: 8px; margin: 24px 0; }
.page-content ul, .page-content ol { padding-left: 24px; margin-bottom: 16px; list-style: disc; }

/* 404 */
.error-404 { text-align: center; padding: 120px 20px; }
.error-404 h1 { font-size: 8rem; color: var(--color-primary); line-height: 1; margin-bottom: 16px; }
.error-404 h2 { font-size: 2rem; margin-bottom: 16px; color: var(--color-gray-900); }
.error-404 p { font-size: 1.125rem; color: var(--color-gray-600); margin-bottom: 32px; }

/* Search form */
.search-form { display: flex; gap: 8px; }
.search-field { flex: 1; padding: 12px 16px; border: 1px solid var(--color-stone-200); border-radius: 6px; font-size: 1rem; font-family: inherit; }
.search-field:focus { outline: none; border-color: var(--color-primary); }

/* Pagination */
.nav-links { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.page-numbers { display: inline-block; padding: 8px 14px; border: 1px solid var(--color-stone-200); border-radius: 6px; font-size: 0.875rem; transition: all 0.2s ease; }
.page-numbers:hover, .page-numbers.current { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* WP specifics */
.wp-block-image img { border-radius: 8px; }
.alignleft { float: left; margin: 0 20px 20px 0; }
.alignright { float: right; margin: 0 0 20px 20px; }
.aligncenter { display: block; margin: 0 auto 20px; }
.screen-reader-text { clip: rect(1px,1px,1px,1px); position: absolute !important; height: 1px; width: 1px; overflow: hidden; }

/* CF7 styles */
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 textarea {
    width: 100%; padding: 12px 16px; border: 1px solid var(--color-stone-200); border-radius: 8px;
    font-family: inherit; font-size: 1rem; transition: border-color 0.3s ease;
}
.wpcf7 input:focus, .wpcf7 textarea:focus { outline: none; border-color: var(--color-primary); }
.wpcf7 input[type="submit"] { background: var(--color-primary); color: #fff; border: none; padding: 14px 32px; border-radius: 8px; font-size: 1rem; cursor: pointer; transition: all 0.3s ease; }
.wpcf7 input[type="submit"]:hover { background: var(--color-primary-dark); transform: scale(1.05); }

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 48px;
}

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

.stat-item {
    text-align: center;
    padding: 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 4px;
}

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

/* ===========================================
   GUTENBERG BLOCKS - Beautiful editor content
   =========================================== */

/* Sections via Group block with background */
.wp-block-group.has-background {
    padding: 60px 20px;
}

.wp-block-group.has-stone-50-background-color {
    background-color: var(--color-stone-50) !important;
}

/* Columns look like cards */
.wp-block-columns {
    gap: 24px;
}

/* "Card" style for columns */
.wp-block-column.is-style-card,
.paco-card {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.wp-block-column.is-style-card:hover,
.paco-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

/* Section spacing for page content */
.page-template-page-sobre .entry-content > *,
.page-template-page-visitas .entry-content > *,
.page-template-page-contacto .entry-content > * {
    margin-bottom: 0;
}

/* Editor content sections */
.entry-content .wp-block-group {
    margin-bottom: 0;
}

.entry-content .wp-block-group.paco-section {
    padding: 80px 0;
}

.entry-content .wp-block-group.paco-section-stone {
    padding: 80px 20px;
    background: var(--color-stone-50);
}

.entry-content .wp-block-group.paco-section-white {
    padding: 80px 20px;
    background: #fff;
}

/* Section headers in content */
.entry-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-gray-900);
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .entry-content h2 { font-size: 3rem; }
}

.entry-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 16px;
}

.entry-content h2 + p {
    margin-top: 0;
}

/* Label style (small uppercase) */
.entry-content .paco-label,
.entry-content .wp-block-paragraph.is-style-label {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

/* Centered section titles in editor */
.entry-content .has-text-align-center h2 {
    margin-bottom: 24px;
}

.entry-content .has-text-align-center h2 + p {
    font-size: 1.25rem;
    color: var(--color-gray-600);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* Card grid in content (using columns) */
.entry-content .wp-block-columns.paco-cards-grid {
    gap: 24px;
    margin-top: 40px;
}

.entry-content .wp-block-columns.paco-cards-grid > .wp-block-column {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.entry-content .wp-block-columns.paco-cards-grid > .wp-block-column:hover {
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.entry-content .wp-block-columns.paco-cards-grid h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.entry-content .wp-block-columns.paco-cards-grid p {
    color: var(--color-gray-700);
    line-height: 1.7;
}

/* 2-column layout for about sections */
.entry-content .wp-block-columns.paco-about-layout {
    gap: 48px;
    align-items: center;
}

.entry-content .wp-block-columns.paco-about-layout img {
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

/* Vision / centered text section */
.entry-content .paco-vision {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 80px 20px;
}

.entry-content .paco-vision p {
    font-size: 1.25rem;
    color: var(--color-gray-700);
    line-height: 1.8;
    margin-bottom: 24px;
}

/* Stats row */
.entry-content .wp-block-columns.paco-stats {
    gap: 24px;
    margin: 40px 0;
}

.entry-content .wp-block-columns.paco-stats > .wp-block-column {
    text-align: center;
    padding: 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.entry-content .wp-block-columns.paco-stats strong,
.entry-content .wp-block-columns.paco-stats .stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 4px;
}

.entry-content .wp-block-columns.paco-stats small,
.entry-content .wp-block-columns.paco-stats .stat-label {
    font-size: 0.875rem;
    color: var(--color-gray-600);
}

/* Experience cards (Visitas page) */
.entry-content .paco-experience-card {
    background: #fff;
    border-radius: 12px;
    border: 2px solid var(--color-stone-200);
    padding: 32px;
    transition: all 0.3s ease;
}

.entry-content .paco-experience-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
    transform: translateY(-8px);
}

.entry-content .paco-experience-card.paco-popular {
    border-color: var(--color-primary);
}

/* Check marks for includes */
.entry-content .paco-check-list {
    list-style: none;
    padding: 0;
}

.entry-content .paco-check-list li::before {
    content: '✓';
    color: #16a34a;
    font-weight: 700;
    margin-right: 8px;
}

/* Image rounded in content */
.entry-content .wp-block-image img {
    border-radius: 12px;
}

.entry-content .wp-block-image.is-style-rounded img {
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

/* Separator */
.entry-content .wp-block-separator {
    border-color: var(--color-stone-200);
    margin: 40px 0;
}

/* Full-width page content wrapper */
.entry-content-fullwidth {
    width: 100%;
}

.entry-content-fullwidth > .wp-block-group {
    padding-left: 16px;
    padding-right: 16px;
}

.entry-content-fullwidth > .wp-block-group > * {
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

/* Utility */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }

/* === Experience Cards (Visitas) === */
.exp-card {
    background: #fff; border-radius: 12px; border: 2px solid var(--color-stone-200);
    padding: 32px; transition: all 0.3s ease;
}
.exp-card:hover { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); transform: translateY(-8px); }
.exp-badge { display:inline-block;background:var(--color-primary);color:#fff;padding:4px 12px;border-radius:9999px;font-size:0.75rem;font-weight:600;margin-bottom:16px; }
.exp-card h3 { font-size:1.5rem;font-weight:700;color:var(--color-gray-900);margin-bottom:8px; }
.exp-meta { display:flex;justify-content:space-between;align-items:center;margin-bottom:16px; }
.exp-meta span { font-size:0.875rem;color:var(--color-gray-600); }
.exp-price { font-size:2rem !important;font-weight:700;color:var(--color-primary) !important; }
.exp-desc { color:var(--color-gray-600);margin-bottom:24px; }
.exp-includes { display:flex;flex-direction:column;gap:8px; }
.exp-include-item { font-size:0.875rem;color:var(--color-gray-700);display:flex;align-items:center;gap:8px; }

/* === Adega Cards (Sobre) === */
.adega-cards-grid { display:grid;grid-template-columns:1fr;gap:24px; }
@media(min-width:768px) { .adega-cards-grid { grid-template-columns:repeat(2,1fr); } }
.adega-card { background:#fff;border-radius:12px;padding:32px;box-shadow:0 10px 15px -3px rgba(0,0,0,0.1);transition:all 0.3s ease; }
.adega-card:hover { box-shadow:0 20px 25px -5px rgba(0,0,0,0.1);transform:translateY(-4px); }
.adega-card h3 { font-size:1.5rem;font-weight:700;color:var(--color-gray-900);margin-bottom:16px; }
.adega-card p { color:var(--color-gray-700);line-height:1.7; }
