/* ============================================================
   global.css — Ruler Tours
   Budget-friendly · Glassmorphism accents · Fully Responsive
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Merriweather:ital,wght@0,400;0,700;1,400&display=swap');

/* ── Variables ── */
:root {
    --green:        #2E7D32;
    --green-dark:   #1B5E20;
    --green-light:  #4CAF50;
    --green-pale:   #E8F5E9;
    --orange:       #FF8F00;
    --orange-light: #FFB74D;
    --orange-pale:  #FFF8E1;
    --white:        #ffffff;
    --off-white:    #F9F9F6;
    --light-grey:   #F0F0EB;
    --mid-grey:     #888;
    --dark:         #1a1a1a;
    --text:         #2d2d2d;
    --text-light:   #555;
    --border:       #e0e0e0;
    --shadow:       0 2px 14px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 28px rgba(0,0,0,0.14);
    --radius:       12px;
    --nav-height:   70px;
    --transition:   0.25s ease;
    --font-main:    'Poppins', sans-serif;
    --font-head:    'Merriweather', serif;
    --glass-bg:     rgba(255,255,255,0.12);
    --glass-border: rgba(255,255,255,0.22);
    --glass-blur:   blur(18px);
    --glass-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

body.dark {
    --white:        #1e1e1e;
    --off-white:    #161616;
    --light-grey:   #242424;
    --dark:         #f0f0f0;
    --text:         #ddd;
    --text-light:   #999;
    --border:       #2e2e2e;
    --shadow:       0 2px 14px rgba(0,0,0,0.45);
    --shadow-hover: 0 8px 28px rgba(0,0,0,0.55);
    --glass-bg:     rgba(0,0,0,0.25);
    --glass-border: rgba(255,255,255,0.1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-main);
    color: var(--text);
    background: var(--off-white);
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
    overflow-x: hidden;
    padding-top: var(--nav-height);
}
img { display: block; max-width: 100%; height: auto; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-main); }
input, textarea, select { font-family: var(--font-main); }

/* ── Layout ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 72px 0; }
.section-sm { padding: 48px 0; }

/* ── Labels & Headings ── */
.section-label {
    display: inline-block;
    background: var(--green-pale);
    color: var(--green-dark);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}
body.dark .section-label { background: rgba(76,175,80,0.15); color: var(--green-light); }

.section-title {
    font-family: var(--font-head);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
    margin-bottom: 10px;
}
.section-sub {
    font-size: 0.93rem;
    color: var(--text-light);
    max-width: 540px;
    margin-bottom: 40px;
    line-height: 1.7;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 26px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    border: none;
    transition: all var(--transition);
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(46,125,50,0.35); }
.btn-outline { background: transparent; color: var(--green); border: 2px solid var(--green); }
.btn-outline:hover { background: var(--green); color: #fff; transform: translateY(-2px); }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: #e65100; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(255,143,0,0.35); }
.btn-white { background: #fff; color: var(--orange); border: none; }
.btn-white:hover { background: #fff3e0; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.15); }

/* ── Page Hero (inner pages) ── */
.page-hero {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 65%, #388E3C 100%);
    padding: 52px 0 56px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.page-hero::after {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 340px; height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,183,77,0.18) 0%, transparent 70%);
    pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
    font-family: var(--font-head);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 8px;
}
.page-hero p { font-size: 0.98rem; opacity: 0.85; max-width: 520px; }

.breadcrumb {
    font-size: 0.78rem;
    opacity: 0.7;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.breadcrumb a { color: #fff; }

/* ── Reveal ── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--light-grey); }
::-webkit-scrollbar-thumb { background: var(--green); border-radius: 4px; }

/* ══════════════════════════════════════
   NAVBAR
══════════════════════════════════════ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--nav-height);
    background: var(--green-dark);
    display: flex;
    align-items: center;
    transition: background 0.4s, backdrop-filter 0.4s, box-shadow 0.4s;
}
.navbar.scrolled {
    background: rgba(27,94,32,0.8);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: 0 4px 24px rgba(0,0,0,0.22);
}
body.dark .navbar { background: rgba(14,14,14,0.97); }
body.dark .navbar.scrolled {
    background: rgba(8,8,8,0.78);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
}

/* Brand */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    flex-shrink: 0;
}
/* Show light logo on green/dark bg; dark logo in dark mode */
.nav-logo-light { height: 42px; width: auto; display: block; }
.nav-logo-dark  { height: 42px; width: auto; display: none; }
body.dark .nav-logo-light { display: none; }
body.dark .nav-logo-dark  { display: block; }

.nav-brand-name {
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

/* Nav links */
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
    color: rgba(255,255,255,0.85);
    font-size: 0.86rem;
    font-weight: 500;
    padding: 7px 13px;
    border-radius: 8px;
    transition: all var(--transition);
    white-space: nowrap;
}
.nav-links a:hover { background: var(--glass-bg); color: #fff; }
.nav-links a.active { background: rgba(255,255,255,0.15); color: var(--orange-light); font-weight: 600; }

/* Nav right */
.nav-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.theme-toggle {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: #fff;
    width: 36px; height: 36px;
    border-radius: 50%;
    font-size: 15px;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition);
}
.theme-toggle:hover { background: rgba(255,255,255,0.24); transform: rotate(20deg); }

/* glassmorphism Login button */
.btn-login {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 500;
    transition: all var(--transition);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    white-space: nowrap;
}
.btn-login:hover { background: rgba(255,255,255,0.22); }

.btn-signup {
    background: var(--orange);
    color: #fff;
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 600;
    border: none;
    transition: all var(--transition);
    white-space: nowrap;
}
.btn-signup:hover { background: #e65100; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(255,143,0,0.4); }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    flex-shrink: 0;
}
.hamburger span {
    display: block;
    width: 22px; height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav — glassmorphism */
.mobile-nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height); left: 0; right: 0;
    background: rgba(20,60,22,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 16px 18px 24px;
    z-index: 999;
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 12px 32px rgba(0,0,0,0.28);
    gap: 2px;
}
.mobile-nav.open { display: flex; }
body.dark .mobile-nav { background: rgba(10,10,10,0.97); }

.mobile-nav a {
    color: rgba(255,255,255,0.88);
    font-size: 0.92rem;
    font-weight: 500;
    padding: 10px 14px;
    border-radius: 8px;
    transition: all var(--transition);
}
.mobile-nav a:hover, .mobile-nav a.active { background: rgba(255,255,255,0.1); color: var(--orange-light); }

.mobile-nav-divider { border: none; border-top: 1px solid rgba(255,255,255,0.1); margin: 10px 0; }
.mobile-nav-btns { display: flex; gap: 10px; margin-top: 4px; }
.mobile-nav-btns .btn-login,
.mobile-nav-btns .btn-signup { flex: 1; text-align: center; justify-content: center; }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.footer {
    background: #0d1e0e;
    color: rgba(255,255,255,0.7);
    padding: 64px 0 0;
    position: relative;
    overflow: hidden;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--green-dark), var(--orange), var(--green-light), var(--orange));
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 44px;
    padding-bottom: 52px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* Footer logos */
.footer-logo { height: 54px; width: auto; margin-bottom: 14px; }
.footer-logo-light { display: block; }
.footer-logo-dark  { display: none; }
body.dark .footer-logo-light { display: none; }
body.dark .footer-logo-dark  { display: block; }

.footer-brand-name { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.footer-tagline { font-size: 0.78rem; color: var(--orange-light); margin-bottom: 12px; font-style: italic; }
.footer-desc { font-size: 0.81rem; line-height: 1.75; color: rgba(255,255,255,0.48); max-width: 240px; margin-bottom: 20px; }

.footer-socials { display: flex; gap: 8px; }
.footer-social-link {
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.5); font-size: 13px;
    transition: all var(--transition);
}
.footer-social-link:hover { background: var(--green); border-color: var(--green); color: #fff; transform: translateY(-2px); }

.footer-col-title { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.32); margin-bottom: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.83rem; color: rgba(255,255,255,0.53); transition: color var(--transition); }
.footer-links a:hover { color: var(--orange-light); }

.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; font-size: 0.81rem; color: rgba(255,255,255,0.53); margin-bottom: 13px; line-height: 1.5; }
.footer-contact-item i { color: var(--orange-light); margin-top: 2px; font-size: 0.76rem; flex-shrink: 0; width: 14px; text-align: center; }

.footer-bottom { padding: 20px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-copyright { font-size: 0.74rem; color: rgba(255,255,255,0.26); }
.footer-bottom-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom-links a { font-size: 0.72rem; color: rgba(255,255,255,0.26); transition: color var(--transition); }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.6); }

/* ── Toast ── */
.toast {
    position: fixed;
    bottom: 22px; right: 22px;
    background: rgba(27,94,32,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(76,175,80,0.4);
    color: #fff;
    padding: 13px 20px;
    border-radius: 12px;
    font-size: 0.86rem;
    font-weight: 500;
    box-shadow: 0 8px 28px rgba(0,0,0,0.25);
    transform: translateY(80px);
    opacity: 0;
    transition: all 0.38s cubic-bezier(0.34,1.56,0.64,1);
    z-index: 9999;
    display: flex; align-items: center; gap: 10px;
    max-width: 320px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.error { background: rgba(198,40,40,0.9); border-color: rgba(239,83,80,0.4); }

/* ── Modal ── */
.modal-backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1100;
    display: flex; align-items: center;
    justify-content: center; padding: 16px;
    opacity: 0; pointer-events: none;
    transition: opacity 0.28s;
}
.modal-backdrop.open { opacity: 1; pointer-events: all; }
.modal-box {
    background: var(--white);
    border-radius: 16px;
    width: 100%; max-width: 580px;
    max-height: 88vh; overflow-y: auto;
    transform: scale(0.94) translateY(16px);
    transition: transform 0.3s cubic-bezier(0.34,1.3,0.64,1);
    box-shadow: 0 28px 70px rgba(0,0,0,0.32);
    position: relative;
}
.modal-backdrop.open .modal-box { transform: scale(1) translateY(0); }
.modal-close {
    position: absolute; top: 12px; right: 12px;
    width: 30px; height: 30px; border-radius: 50%;
    background: rgba(0,0,0,0.07); border: none;
    font-size: 15px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background var(--transition); z-index: 2;
}
.modal-close:hover { background: rgba(0,0,0,0.14); }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1024px) {
    .nav-links a { padding: 7px 10px; font-size: 0.83rem; }
}
@media (max-width: 860px) {
    .nav-links { display: none; }
    .nav-right .btn-login,
    .nav-right .btn-signup { display: none; }
    .hamburger { display: flex; }
}
@media (max-width: 768px) {
    .section { padding: 52px 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-bottom-links { justify-content: center; }
    .page-hero { padding: 40px 0 44px; }
}
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .section { padding: 40px 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 26px; }
    .footer-desc { max-width: 100%; }
    .toast { left: 14px; right: 14px; max-width: none; }
    .btn { padding: 10px 20px; font-size: 0.84rem; }
}