/*
Theme Name: Morocco Way Child
Theme URI: https://travelonmoroccoway.com
Description: Morocco Way custom child theme built on GeneratePress
Author: Morocco Way
Author URI: https://travelonmoroccoway.com
Template: generatepress
Version: 1.0.0
Text Domain: morocway-child
*/

/* ============================================================
   MOROCCO WAY — GLOBAL DESIGN SYSTEM
   All custom styles go below this line
   ============================================================ */

/* ── GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,600&family=Outfit:wght@300;400;500;600&display=swap');

/* ── CSS VARIABLES ── */
:root {
  --mw-primary:        #1B2D4F;   /* Deep indigo */
  --mw-primary-dark:   #0F1C31;
  --mw-secondary:      #C65D3B;   /* Terracotta */
  --mw-secondary-light:#D4734F;
  --mw-gold:           #D9A44D;   /* Saffron gold */
  --mw-gold-light:     #F0B85A;
  --mw-sand:           #F5E8D6;   /* Desert sand */
  --mw-sand-light:     #FAF6F0;
  --mw-parchment:      #FBF8F4;
  --mw-text:           #1A1208;
  --mw-text-mid:       #4A3728;
  --mw-text-muted:     #8B7355;
  --mw-border:         rgba(181,69,27,0.12);
  --mw-white:          #FFFCF7;

  --mw-font-display:   'Cormorant Garamond', Georgia, serif;
  --mw-font-body:      'Outfit', system-ui, sans-serif;

  --mw-radius-sm:      4px;
  --mw-radius-md:      8px;
  --mw-radius-lg:      12px;

  --mw-shadow-sm:      0 2px 12px rgba(26,18,8,0.06);
  --mw-shadow-md:      0 8px 32px rgba(26,18,8,0.10);
  --mw-shadow-lg:      0 20px 60px rgba(26,18,8,0.14);

  --mw-transition:     all 0.3s ease;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--mw-font-body);
  background: var(--mw-parchment);
  color: var(--mw-text);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--mw-secondary); text-decoration: none; transition: var(--mw-transition); }
a:hover { color: var(--mw-primary); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--mw-font-display);
  color: var(--mw-primary);
  line-height: 1.15;
  font-weight: 500;
}

/* ── ZELLIGE PATTERN UTILITY ── */
.mw-zellige-bg {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='rgba(181,69,27,0.07)' stroke-width='0.8'%3E%3Cpolygon points='40,5 46,20 62,20 49,30 54,46 40,37 26,46 31,30 18,20 34,20'/%3E%3Ccircle cx='40' cy='40' r='34'/%3E%3Cline x1='40' y1='6' x2='40' y2='74'/%3E%3Cline x1='6' y1='40' x2='74' y2='40'/%3E%3Cline x1='17' y1='17' x2='63' y2='63'/%3E%3Cline x1='63' y1='17' x2='17' y2='63'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
}

.mw-zellige-divider {
  height: 6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='6' viewBox='0 0 40 6'%3E%3Cpath d='M0 3 L5 0 L10 3 L15 0 L20 3 L25 0 L30 3 L35 0 L40 3' fill='none' stroke='%23D9A44D' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  opacity: 0.5;
}

/* ── BUTTONS ── */
.mw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--mw-radius-sm);
  font-family: var(--mw-font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: var(--mw-transition);
  text-decoration: none;
  white-space: nowrap;
}

.mw-btn-primary {
  background: var(--mw-secondary);
  color: white;
}
.mw-btn-primary:hover {
  background: var(--mw-secondary-light);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(198,93,59,0.35);
}

.mw-btn-dark {
  background: var(--mw-primary);
  color: white;
}
.mw-btn-dark:hover {
  background: var(--mw-primary-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(27,45,79,0.3);
}

.mw-btn-outline {
  background: transparent;
  color: var(--mw-primary);
  border: 1.5px solid var(--mw-primary);
}
.mw-btn-outline:hover {
  background: var(--mw-primary);
  color: white;
}

.mw-btn-outline-white {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255,255,255,0.5);
}
.mw-btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
  color: white;
}

/* ── SECTION LAYOUT ── */
.mw-section { padding: 5rem 1.5rem; }
.mw-section-inner { max-width: 1200px; margin: 0 auto; }
.mw-section-header { text-align: center; margin-bottom: 3rem; }

.mw-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mw-secondary);
  margin-bottom: 0.6rem;
}
.mw-eyebrow::before, .mw-eyebrow::after {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.mw-section-title {
  font-family: var(--mw-font-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 400;
  color: var(--mw-primary);
  margin: 0 0 0.5rem;
  line-height: 1.15;
}
.mw-section-title em {
  font-style: italic;
  color: var(--mw-secondary);
}

.mw-section-sub {
  font-size: 0.95rem;
  color: var(--mw-text-muted);
  max-width: 480px;
  margin: 0.5rem auto 0;
  font-weight: 300;
  line-height: 1.7;
}

/* ── TOUR CARD (used everywhere) ── */
.mw-tour-card {
  background: white;
  border-radius: var(--mw-radius-md);
  overflow: hidden;
  border: 1px solid var(--mw-border);
  transition: var(--mw-transition);
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.mw-tour-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--mw-shadow-md);
  border-color: rgba(198,93,59,0.2);
}

.mw-tour-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.mw-tour-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.mw-tour-card:hover .mw-tour-card-img img {
  transform: scale(1.05);
}

.mw-tour-badge {
  position: absolute;
  top: 0.75rem; left: 0.75rem;
  background: var(--mw-secondary);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: var(--mw-radius-sm);
}

.mw-wishlist-btn {
  position: absolute;
  top: 0.75rem; right: 0.75rem;
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.92);
  border: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--mw-transition);
}
.mw-wishlist-btn:hover { background: white; transform: scale(1.1); }
.mw-wishlist-btn.active { color: #e53e3e; }

.mw-tour-card-body {
  padding: 1.1rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.mw-tour-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
}
.mw-tour-dest {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mw-secondary);
}
.mw-tour-duration {
  font-size: 0.72rem;
  color: var(--mw-text-muted);
  display: flex;
  align-items: center;
  gap: 3px;
}
.mw-tour-duration::before {
  content: '·';
  color: var(--mw-border);
}

.mw-tour-title {
  font-family: var(--mw-font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--mw-primary);
  line-height: 1.3;
  margin: 0 0 0.5rem;
  flex: 1;
}

.mw-tour-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  margin-top: 0.75rem;
  border-top: 1px solid var(--mw-border);
}
.mw-tour-price-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mw-text-muted);
  display: block;
}
.mw-tour-price-amount {
  font-family: var(--mw-font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--mw-secondary);
  line-height: 1;
}
.mw-tour-price-per {
  font-size: 0.65rem;
  color: var(--mw-text-muted);
}

/* ── NAVIGATION ── */
.mw-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 70px;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  transition: var(--mw-transition);
  background: transparent;
}
.mw-nav.scrolled {
  background: rgba(251,248,244,0.97);
  backdrop-filter: blur(10px);
  box-shadow: var(--mw-shadow-sm);
  border-bottom: 1px solid var(--mw-border);
}

/* ── FORMS ── */
.mw-input {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(181,69,27,0.2);
  border-radius: var(--mw-radius-sm);
  font-family: var(--mw-font-body);
  font-size: 0.9rem;
  color: var(--mw-text);
  background: white;
  transition: border-color 0.2s;
  outline: none;
}
.mw-input:focus {
  border-color: var(--mw-secondary);
  box-shadow: 0 0 0 3px rgba(198,93,59,0.1);
}

.mw-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238B7355' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* ── BOOKING STATUS BADGES ── */
.mw-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.mw-badge-confirmed  { background: #edf7f1; color: #1a5c38; }
.mw-badge-pending    { background: #fff8e1; color: #7a5c00; }
.mw-badge-request    { background: #e8f0fe; color: #1a3a7a; }
.mw-badge-cancelled  { background: #fce8e8; color: #7a1a1a; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .mw-section { padding: 3.5rem 1rem; }
  .mw-nav { padding: 0 1rem; }
}

/* ── HIDE GENERATEPRESS DEFAULT HEADER ── */
.site-header { display: none !important; }
.site-footer { display: none !important; }
