/*
Theme Name: Suzu Travels
Theme URI: https://suzutravels.com
Author: Nikhil
Description: A modern, visually stunning custom WordPress theme for Suzu Travels featuring rich aesthetics, soft borders, and premium green accents.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: suzutravels
*/

:root {
    --color-primary: #1e7a56; /* Rich emerald green from screenshots */
    --color-primary-dark: #12543b;
    --color-bg-body: #fafcfb; /* Very light, warm off-white */
    --color-bg-card: #ffffff;
    --color-text-main: #2d3748;
    --color-text-muted: #718096;
    --color-border: #edf2f7;
    --color-accent: #dca34b; /* Gold accent color seen in 'Dashboard' button */
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 30px rgba(30, 107, 78, 0.15);
    
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html {
    /* DO NOT use overflow-x: hidden on html — it creates a scroll container
       that clips position:absolute dropdowns. Use a wrapper div instead. */
    overflow-x: clip; /* 'clip' does NOT create a scroll container, safe for dropdowns */
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg-body);
    color: var(--color-text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    /* DO NOT use overflow-x: hidden on body — it clips position:absolute dropdowns.
       overflow-x: clip is safe: prevents scrollbar without creating a scroll container. */
    overflow-x: clip;
    max-width: 100vw;
}

/* Make media responsive everywhere */
img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
}


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

ul {
    list-style: none;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--color-text-main);
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h1 {
    font-size: 3rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.25rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
}

/* Utility buttons — only apply when .btn class is explicitly set */
a.btn, button.btn, input.btn, .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

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

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-accent {
    background: linear-gradient(135deg, #e4a242, #c88126);
    color: #fff;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    background: rgba(250, 252, 251, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
}

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

.logo img {
    height: 48px;
    width: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    background: var(--color-bg-card);
    padding: 8px 32px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-soft);
}

.main-nav ul {
    display: flex;
    gap: 32px;
}

.main-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.main-nav a:hover,
.main-nav .current-menu-item a {
    color: var(--color-primary);
}

.main-nav .current-menu-item a {
    background: var(--color-primary);
    color: white;
    padding: 6px 16px;
    border-radius: var(--radius-full);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--color-text-main);
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Layout */
.page-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
    padding: 40px 0;
}

/* Specific Sidebar widgets */
.widget {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-soft);
}

.widget h3 {
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.widget-menu a {
    display: flex;
    align-items: center;
    padding: 16px;
    border-radius: var(--radius-md);
    background: var(--color-bg-body);
    margin-bottom: 12px;
    font-weight: 500;
}

.widget-menu a:hover {
    background: white;
    box-shadow: var(--shadow-soft);
}

/* Footer */
.site-footer {
    background: var(--color-bg-body);
    padding: 80px 0 40px;
    border-top: 1px solid var(--color-border);
}

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

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.footer-col p {
    font-size: 0.95rem;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

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

.footer-bottom {
    margin-top: 60px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* ── Force white text inside the dark CTA section ── */
.footer-cta h2,
.footer-cta h1,
.footer-cta p,
.footer-cta span {
    color: #ffffff !important;
}

/* =========================================================
   RESPONSIVE BREAKPOINTS
   ========================================================= */

/* Tablet */
@media (max-width: 1024px) {
    .page-layout {
        grid-template-columns: 1fr 240px;
        gap: 24px;
    }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.7rem; }
}

/* Mobile */
@media (max-width: 768px) {
    .page-layout {
        grid-template-columns: 1fr !important;
        gap: 20px;
        padding: 16px 0;
    }
    .sidebar {
        order: -1;
        margin-top: 0 !important;
    }
    .footer-grid { grid-template-columns: 1fr; gap: 22px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .site-footer { padding: 40px 0 24px; }
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.15rem; }
    .container { padding: 0 16px; width: 100%; }

    /* Single post fixes */
    .article-title  { font-size: 1.75rem !important; }
    .article-header-card { padding: 20px !important; }
    .author-bar     { flex-direction: column; align-items: flex-start; gap: 14px; }
    .social-share   { flex-wrap: wrap; gap: 8px !important; align-items: center; }
    .hero-banner    { height: 260px !important; }
    .main-content   { margin-top: 40px !important; }
    .article-body   { font-size: 1rem !important; }
}

@media (max-width: 480px) {
    h1 { font-size: 1.45rem; }
    h2 { font-size: 1.2rem; }
    a.btn, button.btn, input.btn, .btn { padding: 9px 16px; font-size: 0.88rem; }
    .widget { padding: 16px; }
    .footer-grid { gap: 16px; }
    .article-title  { font-size: 1.3rem !important; }
    .article-header-card { padding: 14px !important; }
    .breadcrumb     { font-size: 0.77rem; padding: 6px 12px; }
    .footer-bottom  { font-size: 0.8rem; }
    .series-widget  { padding: 16px; }
}

/* =========================================================
   SUBMENU FIX: Prevent Dropdowns from being cut off
   ========================================================= */

/* Fix for Native Theme Header */
#suzu-header, .site-header {
    overflow: visible !important;
    z-index: 99999 !important;
}

/* Fix for Elementor Headers & Containers */
.elementor-location-header,
.elementor-location-header .elementor-section,
.elementor-location-header .elementor-container,
.elementor-location-header .elementor-widget-wrap,
.elementor-location-header .e-con,
.elementor-location-header .e-con-inner,
[data-elementor-type="header"] section,
[data-elementor-type="header"] .e-con {
    overflow: visible !important;
    z-index: 99999 !important;
}

/* Ensure next sections don't overlap the header dropdowns */
.elementor-location-header ~ .elementor-location-archive,
.elementor-location-header ~ .elementor-location-single,
.elementor-location-header ~ main,
#page > .elementor:not(.elementor-location-header) {
    position: relative;
    z-index: 10;
}
