/* =============================================================
   style.css — JW Publication | Journey & Wisdom Publications
   Global stylesheet. Link this on every page.
   ============================================================= */

/* ===== VARIABLES ===== */
:root {
    --primary:       #1a237e;
    --primary-light: #3949ab;
    --secondary:     #7c3aed;
    --accent:        #f59e0b;
    --success:       #10b981;
    --dark:          #0f172a;
    --dark-card:     #1e293b;
    --text:          #1e293b;
    --text-muted:    #64748b;
    --text-light:    #f1f5f9;
    --white:         #ffffff;
    --light-bg:      #f8fafc;
    --light-bg-2:    #f1f5f9;
    --border:        #e2e8f0;

    --shadow:    0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.1);
    --shadow-xl: 0 24px 48px rgba(0,0,0,0.12);

    --radius:    10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --gradient-primary: linear-gradient(135deg, #1a237e 0%, #7c3aed 100%);
    --gradient-light:   linear-gradient(135deg, #eef2ff 0%, #f5eeff 100%);
    --gradient-accent:  linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    --gradient-green:   linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-dark:    linear-gradient(135deg, #0f172a 0%, #1e293b 100%);

    --font-sans: "Inter", system-ui, -apple-system, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
                 "Liberation Mono", "Courier New", monospace;
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    font-size: 16px;
    color: var(--text);
    line-height: 1.65;
    background: #fff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
input, button, textarea, select { font-family: var(--font-sans); }

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

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

/* ===== TYPOGRAPHY ===== */
.section-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}
.section-title {
    font-size: clamp(24px, 3.5vw, 40px);
    font-weight: 800;
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}
.section-title.light { color: #fff; }
.section-desc {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.75;
}
.section-desc.light { color: rgba(255,255,255,0.7); }
.text-center { text-align: center; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.22s ease;
    text-decoration: none;
    white-space: nowrap;
    font-family: var(--font-sans);
}
.btn-sm  { padding: 7px 16px; font-size: 13px; }
.btn-lg  { padding: 13px 30px; font-size: 15px; }

.btn-primary   { background: var(--gradient-primary); color: #fff; }
.btn-primary:hover   { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,35,126,0.35); }

.btn-secondary { background: var(--gradient-accent); color: #fff; }
.btn-secondary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(245,158,11,0.35); }

.btn-outline   { background: transparent; color: #fff; border-color: rgba(255,255,255,0.45); }
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.7); }

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

.btn-green { background: var(--gradient-green); color: #fff; }
.btn-green:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(16,185,129,0.35); }

.btn-white { background: #fff; color: var(--primary); font-weight: 700; }
.btn-white:hover { background: #eef2ff; transform: translateY(-2px); }

/* ===== CARDS ===== */
.card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    transition: all 0.25s ease;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #c7d2fe;
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.whatsapp-float a {
    width: 54px; height: 54px;
    background: #25D366;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,0.45);
    animation: wp-pulse 2.2s infinite;
    transition: transform 0.3s;
}
.whatsapp-float a:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 27px; height: 27px; fill: #fff; }
.whatsapp-tooltip {
    background: #111;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    font-family: var(--font-sans);
}
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; }
@keyframes wp-pulse {
    0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,0.45); }
    50% { box-shadow: 0 4px 30px rgba(37,211,102,0.7), 0 0 0 10px rgba(37,211,102,0.07); }
}

/* ===== REUSABLE HERO WAVE BACKGROUND ===== */
@keyframes hero-float {
    0%,100% { border-radius:42% 58% 70% 30%/45% 45% 55% 55%; transform:translateY(0) rotate(0deg); }
    33%      { border-radius:70% 30% 50% 50%/30% 30% 70% 70%; transform:translateY(-18px) rotate(2deg); }
    66%      { border-radius:30% 70% 30% 70%/55% 45% 55% 45%; transform:translateY(-9px) rotate(-1deg); }
}
@keyframes hero-float-r {
    0%,100% { border-radius:60% 40% 30% 70%/60% 30% 70% 40%; transform:translateY(0) rotate(0deg); }
    33%      { border-radius:30% 70% 70% 30%/50% 50% 50% 50%; transform:translateY(-14px) rotate(-2deg); }
    66%      { border-radius:50% 50% 20% 80%/25% 80% 20% 75%; transform:translateY(-7px) rotate(1deg); }
}
@keyframes hero-wave-move { 0% { transform:translateX(0); } 100% { transform:translateX(-50%); } }

.hero-wave-bg {
    background: linear-gradient(155deg,#ffffff 0%,#f4f7ff 30%,#eef2ff 62%,#f8f5ff 100%);
    position: relative; overflow: hidden;
}
.hero-blob { position:absolute; pointer-events:none; }
.hero-blob-1 {
    width:700px; height:700px; top:-280px; left:-220px;
    border-radius:42% 58% 70% 30%/45% 45% 55% 55%;
    background:linear-gradient(135deg,rgba(99,102,241,0.07),rgba(26,35,126,0.04));
    animation:hero-float 12s ease-in-out infinite;
}
.hero-blob-2 {
    width:520px; height:520px; top:-100px; right:-180px;
    background:linear-gradient(135deg,rgba(124,58,237,0.06),rgba(99,102,241,0.03));
    border-radius:60% 40% 30% 70%/60% 30% 70% 40%;
    animation:hero-float-r 15s ease-in-out infinite;
}
.hero-blob-3 {
    width:380px; height:380px; bottom:80px; left:38%;
    background:linear-gradient(135deg,rgba(16,185,129,0.05),rgba(99,102,241,0.04));
    border-radius:55% 45% 40% 60%/50% 60% 40% 50%;
    animation:hero-float 18s ease-in-out infinite reverse;
}
.hero-waves { position:relative; width:100%; height:80px; line-height:0; margin-bottom:-2px; overflow:hidden; }
.hw-layer { position:absolute; bottom:0; left:0; width:200%; }
.hw-layer svg { display:block; width:100%; }
.hw-l1 { animation:hero-wave-move 14s linear infinite; }
.hw-l2 { animation:hero-wave-move 9s linear infinite reverse; }
.hw-l3 { animation:hero-wave-move 6s linear infinite; }

/* ===== HEADER TOP BAR ===== */
.header-top-bar {
    background: var(--gradient-primary);
    color: #fff;
    padding: 7px 0;
    font-size: 12px;
    font-weight: 500;
}
.header-top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.header-top-left, .header-top-right { display: flex; align-items: center; gap: 18px; }
.header-top-inner a { color: rgba(255,255,255,0.8); transition: color 0.18s; }
.header-top-inner a:hover { color: #fff; }

/* ===== STICKY NAV ===== */
.site-header {
    position: sticky;
    top: 0; z-index: 1000;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 0 var(--border), 0 4px 16px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: 0 4px 28px rgba(0,0,0,0.1); }
.navbar { padding: 12px 0; }
.nav-inner { display: flex; align-items: center; gap: 16px; }
.nav-logo img { height: 42px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-links > li { position: relative; }
.nav-links > li > a {
    display: block;
    padding: 8px 12px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text);
    border-radius: 7px;
    transition: all 0.18s;
    white-space: nowrap;
}
.nav-links > li > a:hover, .nav-links > li.active > a { color: var(--primary); background: #eff2ff; }
.has-dd { position: relative; }
.has-dd > a::after { content: ' ▾'; font-size: 9px; opacity: 0.65; }

/* Standard dropdown */
.dd-menu {
    position: absolute; top: 100%; left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px; min-width: 230px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.12), 0 4px 12px rgba(26,35,126,0.08);
    opacity: 0; visibility: hidden;
    transition: all 0.22s; z-index: 200;
    pointer-events: none;
}
.has-dd:hover .dd-menu { opacity: 1; visibility: visible; pointer-events: all; }
.dd-menu li a {
    display: flex; align-items: center; gap: 9px;
    padding: 9px 12px;
    font-size: 13px; color: var(--text);
    border-radius: 7px;
    transition: background 0.18s;
}
.dd-menu li a:hover { background: #eff2ff; color: var(--primary); }

/* Mega-menu (Services) */
.mega-menu {
    position: absolute; top: 100%; left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 24px 18px;
    width: 680px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.12), 0 4px 12px rgba(26,35,126,0.08);
    opacity: 0; visibility: hidden;
    transition: all 0.22s; z-index: 200;
    pointer-events: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 28px;
}
.has-dd:hover .mega-menu { opacity: 1; visibility: visible; pointer-events: all; }
.mega-col-title {
    font-size: 10px; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 10px; padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}
.mega-menu li a {
    display: flex; align-items: center;
    padding: 7px 10px;
    font-size: 13px; color: var(--text);
    border-radius: 7px; transition: all 0.18s;
}
.mega-menu li a:hover { background: #eff2ff; color: var(--primary); padding-left: 14px; }
.mega-view-all { font-weight: 700; color: var(--primary) !important; margin-top: 2px; }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: 10px; flex-shrink: 0; }
.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 6px; margin-left: auto;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.25s; }

/* ===== FOOTER ===== */
.site-footer { background: var(--dark); color: var(--text-light); font-size: 14px; line-height: 1.7; }
.footer-top { padding: 60px 0 40px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1.4fr; gap: 36px; }
.footer-logo img { height: 40px; width: auto; margin-bottom: 14px; filter: brightness(1.1); }
.footer-brand p { color: rgba(255,255,255,0.55); font-size: 13px; line-height: 1.8; margin-bottom: 20px; }
.footer-social { display: flex; gap: 8px; flex-wrap: wrap; }
.social-link {
    width: 34px; height: 34px; border-radius: 8px;
    background: rgba(255,255,255,0.07);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.6); font-size: 14px;
    transition: all 0.2s;
}
.social-link:hover { background: var(--secondary); color: #fff; transform: translateY(-2px); }
.footer-col h4 {
    font-size: 11px; font-weight: 700; color: #fff;
    margin-bottom: 16px; letter-spacing: 1.5px; text-transform: uppercase;
    position: relative; padding-bottom: 10px;
}
.footer-col h4::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 22px; height: 2px; background: var(--accent); border-radius: 2px;
}
.footer-links li { margin-bottom: 7px; }
.footer-links li a { color: rgba(255,255,255,0.5); font-size: 13px; transition: all 0.18s; display: flex; align-items: center; gap: 5px; }
.footer-links li a:hover { color: var(--accent); transform: translateX(4px); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 11px; color: rgba(255,255,255,0.55); font-size: 12.5px; }
.footer-contact-item strong { color: #fff; display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 1px; }
.footer-contact-item .icon { width: 30px; height: 30px; border-radius: 6px; background: rgba(255,255,255,0.07); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 13px; }
.footer-newsletter label { display: block; font-size: 12px; color: rgba(255,255,255,0.5); margin-bottom: 8px; }
.newsletter-form { display: flex; gap: 6px; flex-wrap: wrap; }
.newsletter-input {
    flex: 1; min-width: 0; padding: 8px 12px;
    border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06); color: #fff; font-size: 13px;
    outline: none; transition: border-color 0.2s;
}
.newsletter-input::placeholder { color: rgba(255,255,255,0.28); }
.newsletter-input:focus { border-color: var(--secondary); }
.newsletter-btn {
    padding: 8px 14px; background: var(--gradient-primary);
    color: #fff; border: none; border-radius: var(--radius);
    font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: opacity 0.18s;
}
.newsletter-btn:hover { opacity: 0.88; }
.footer-trust { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
.trust-items { display: flex; justify-content: center; align-items: center; gap: 24px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: rgba(255,255,255,0.5); }
.trust-item .ti { font-size: 15px; }
.footer-bottom { padding: 16px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-bottom-inner p { color: rgba(255,255,255,0.38); font-size: 11.5px; }
.footer-bottom-links { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-bottom-links a { color: rgba(255,255,255,0.38); font-size: 11.5px; transition: color 0.18s; }
.footer-bottom-links a:hover { color: var(--accent); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1280px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 1100px) {
    .header-top-left { display: none; }
    .nav-links, .nav-actions { display: none; }
    .nav-toggle { display: flex; }
    .nav-links.open {
        display: flex; flex-direction: column;
        position: fixed; top: 0; right: 0;
        width: 290px; height: 100vh;
        background: #fff; padding: 72px 16px 20px;
        box-shadow: -8px 0 40px rgba(0,0,0,0.14);
        overflow-y: auto; z-index: 9998;
        animation: slideInRight 0.25s ease;
    }
    .nav-links.open > li { width: 100%; }
    .nav-links.open > li > a { padding: 11px 14px; font-size: 15px; }
    .nav-actions.open { display: flex; flex-direction: column; margin: 12px; }
    .dd-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; background: var(--light-bg); margin-top: 4px; pointer-events: all; }
    .mega-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; background: var(--light-bg); margin-top: 4px; pointer-events: all; width: 100%; grid-template-columns: 1fr; gap: 0; padding: 8px 4px; }
    .mega-col { margin-bottom: 8px; }
    @keyframes slideInRight { from { right: -290px; } to { right: 0; } }
}
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    section { padding: 56px 0; }
    .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .container { padding: 0 16px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-brand { grid-column: auto; }
}
@media (max-width: 480px) {
    section { padding: 44px 0; }
    .btn-lg { padding: 11px 20px; font-size: 14px; }
    .trust-items { gap: 12px; }
}
