/*
Theme Name: The Holiday Crafters
Theme URI: https://theholidaycrafters.com
Author: Custom Developer
Description: High-performance theme optimized for Google Speed & AI Search Updates. Features high-interactivity mobile CTAs, Custom Meta Galleries, and Full Block layout customization.
Version: 1.2.0
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.1
*/

:root {
    --primary: #1d4ed8;
    --primary-hover: #1e40af;
    --text-main: #1f2937;
    --text-muted: #4b5563;
    --bg-light: #f3f4f6;
    --border: #e5e7eb;
    --radius: 8px;
    --font-stack: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-stack); color: var(--text-main); line-height: 1.5; background: #fff; -webkit-font-smoothing: antialiased; padding-bottom: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Global Header Layout */
.site-header { border-bottom: 1px solid var(--border); padding: 15px 0; background: #fff; position: sticky; top: 0; z-index: 100; }
.header-wrap { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 40px; }
.main-nav ul { display: flex; list-style: none; gap: 20px; }
.main-nav a:hover { color: var(--primary); }

/* Global Footer Layout */
.site-footer { background: var(--bg-light); padding: 40px 0; border-top: 1px solid var(--border); font-size: 14px; margin-top: 60px; }
.footer-perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.perk-item { display: flex; align-items: center; gap: 15px; }
.perk-item svg { width: 32px; height: 32px; color: var(--text-muted); flex-shrink: 0; }

/* Dynamic Meta Gallery Layout */
.gallery-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; height: 380px; margin-bottom: 25px; border-radius: var(--radius); overflow: hidden; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; }

/* Contact Form 7 Global Refinements */
.afribreak-cf7-box input, .afribreak-cf7-box select, .afribreak-cf7-box textarea {
    width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius); margin-top: 5px; margin-bottom: 15px; font-family: var(--font-stack);
}
.afribreak-cf7-box input[type="submit"] {
    background: var(--primary); color: #fff; border: none; font-weight: 600; cursor: pointer; transition: background 0.2s; margin-bottom: 0;
}
.afribreak-cf7-box input[type="submit"]:hover { background: var(--primary-hover); }

/* Sticky Mobile Quick Action Bar (INP & UX Core Metric Optimized) */
.mobile-cta-dock {
    display: none; position: fixed; bottom: 0; left: 0; right: 0; background: #fff;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.1); z-index: 999; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 20px;
}
.mobile-cta-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px;
    border-radius: var(--radius); font-weight: 600; font-size: 14px; border: none; cursor: pointer; text-align: center;
}
.cta-call { background: var(--bg-light); color: var(--text-main); border: 1px solid var(--border); }
.cta-inquire { background: var(--primary); color: #fff; }

/* Responsive Viewport Queries */
@media (max-width: 991px) {
    .single-workspace, .archive-workspace { grid-template-columns: 1fr !important; }
    .gallery-grid { grid-template-columns: 1fr 1fr !important; height: 260px; }
    .gallery-grid div:not(:first-child) { display: none; }
    .gallery-grid div:first-child { grid-column: span 2 !important; }
    body { padding-bottom: 70px; } /* Create breathing space for the sticky dock menu layout */
    .mobile-cta-dock { display: grid; }
}
@media (max-width: 768px) {
    .main-nav, .wishlist-icon { display: none !important; }
}
