/* ============================================================
   YOUR WAY TRAVEL — global.css
   Shared styles: variables, reset, navbar, footer, utilities
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Lato:wght@300;400;700&display=swap');

/* ── Design Tokens ── */
:root {
  --color-bg:          #FAF6F0;   /* warm linen background */
  --color-nav:         #C8A97E;   /* earthy tan — navbar & footer */
  --color-accent:      #4A7C59;   /* forest green — buttons, links */
  --color-blue:        #4A6FA5;   /* slate blue — secondary accent */
  --color-card:        #EDE0CE;   /* light tan — card backgrounds */
  --color-text:        #1A1A1A;   /* all body text */
  --color-text-light:  #5C5346;   /* muted secondary text */
  --color-white:       #FFFFFF;
  --color-border:      #D6C5AE;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Lato', Helvetica, sans-serif;

  --shadow-card: 0 4px 18px rgba(74, 55, 30, 0.10);
  --shadow-hover: 0 8px 28px rgba(74, 55, 30, 0.18);
  --radius: 10px;
  --nav-height: 72px;
  --transition: 0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, video { max-width: 100%; display: block; }

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--color-blue); }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-text);
  line-height: 1.25;
}

/* ── Utility Classes ── */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--color-text-light);
  margin-bottom: 2.5rem;
  font-style: italic;
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
}
.btn-primary:hover {
  background: #3a6347;
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(74, 124, 89, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}
.btn-outline:hover {
  background: var(--color-accent);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* ── Navbar ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-nav);
  height: var(--nav-height);
  box-shadow: 0 2px 12px rgba(74, 55, 30, 0.18);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* ── LOGO ──
   Replace the text logo block below with an <img> tag when
   the real logo file is ready.

   Example:
   <a href="/index.html" class="navbar__logo">
     <img src="/assets/images/logo.png" alt="Your Way Travel" height="48">
   </a>
   ── */
.navbar__logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.02em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.navbar__logo:hover { color: var(--color-bg); }
.navbar__logo-icon {
  width: 38px;
  height: 38px;
  background: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.navbar__links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.navbar__links a {
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition), color var(--transition);
}
.navbar__links a:hover,
.navbar__links a.active {
  color: var(--color-bg);
  border-bottom-color: var(--color-bg);
}

/* Hamburger — mobile */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.navbar__hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.navbar__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__hamburger.open span:nth-child(2) { opacity: 0; }
.navbar__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Footer ── */
footer {
  background: var(--color-nav);
  color: var(--color-white);
  padding: 2.5rem 0 1.5rem;
  margin-top: auto;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer__brand p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  max-width: 220px;
  margin-top: 0.4rem;
}

.footer__brand strong {
  font-family: var(--font-heading);
  font-size: 1.2rem;
}

.footer__links h4 {
  color: var(--color-white);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.footer__links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer__links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--color-white); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 1rem;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
}

/* ── Page Header Banner (used on inner pages) ── */
.page-header {
  background: linear-gradient(135deg, var(--color-nav) 0%, #a8855a 100%);
  padding: 4rem 0 3rem;
  text-align: center;
}
.page-header h1 {
  color: var(--color-white);
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.5rem;
}
.page-header p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  font-style: italic;
  max-width: 560px;
  margin: 0 auto;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .navbar__links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-nav);
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }
  .navbar__links.open { display: flex; }
  .navbar__links li a {
    display: block;
    padding: 0.8rem 1.5rem;
    border-bottom: none;
  }
  .navbar__hamburger { display: flex; }
  .navbar { position: relative; }

  .footer__inner { flex-direction: column; }
}
