/*
Theme Name: Dur Adari City Tours
Theme URI: https://duradari.org
Author: Dur Adari Tour & Travel
Description: Custom theme for Dur Adari — guided Addis Ababa city tours with a built-in booking system, user accounts, and easy editing. Deep eucalyptus green, meskel gold, and a route-line motif.
Version: 2.0
License: GNU General Public License v2 or later
Text Domain: duradari
*/

/* =====================================================
   DESIGN TOKENS  ✏️ EDIT here to recolor the whole site
   ===================================================== */
:root {
  --forest:  #1C3A2E;   /* deep eucalyptus green (Entoto) */
  --forest-2:#12291F;   /* darker shade for gradients */
  --meskel:  #E3A81C;   /* meskel-daisy gold */
  --meskel-2:#C08D0F;
  --bone:    #FBF8F1;   /* warm ivory background */
  --ink:     #182220;   /* near-black text */
  --sage:    #9DB8A6;   /* soft support green */
  --mist:    #EDF2EC;   /* pale green tint for cards */
  --line:    rgba(24,34,32,.12);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Karla", "Segoe UI", sans-serif;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(18,41,31,.10);
  --shadow-lg: 0 24px 60px rgba(18,41,31,.16);
  --wrap: 1140px;
}

/* ============ RESET / BASE ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); text-decoration: none; }
a:hover { color: var(--meskel-2); }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--meskel);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--forest);
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.35rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.section { padding: 84px 0; }
.section--tint { background: var(--mist); }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--meskel-2);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px; height: 2px;
  background: var(--meskel);
  vertical-align: middle;
  margin-right: 10px;
}
.lede { font-size: 1.15rem; max-width: 640px; color: rgba(24,34,32,.78); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .04em;
  padding: 14px 30px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn--gold {
  background: var(--meskel);
  color: var(--forest-2);
}
.btn--gold:hover { background: #F0B62E; color: var(--forest-2); box-shadow: 0 8px 22px rgba(227,168,28,.4); }
.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.55);
}
.btn--ghost:hover { border-color: var(--meskel); color: var(--meskel); }
.btn--forest { background: var(--forest); color: #fff; }
.btn--forest:hover { background: var(--forest-2); color: #fff; box-shadow: var(--shadow); }
.btn--wide { width: 100%; text-align: center; }

/* ============ TOP BAR + HEADER ============ */
.topbar {
  background: var(--forest-2);
  color: rgba(255,255,255,.85);
  font-size: .85rem;
  padding: 7px 0;
}
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar a { color: rgba(255,255,255,.85); }
.topbar a:hover { color: var(--meskel); }
.topbar-contact span { margin-right: 18px; }

.site-header {
  background: var(--forest);
  position: sticky;
  top: 0;
  z-index: 60;
  box-shadow: 0 2px 14px rgba(0,0,0,.18);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand:hover { color: #fff; }
.brand-mark {
  width: 42px; height: 42px; flex: none;
  border-radius: 50%;
  background: var(--meskel);
  display: grid; place-items: center;
  color: var(--forest-2);
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1;
}
.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--meskel);
  margin-top: 4px;
}
.brand-logo-img { max-height: 46px; width: auto; border-radius: 8px; }

.main-nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block;
  padding: 10px 14px;
  color: rgba(255,255,255,.9);
  font-weight: 700;
  font-size: .93rem;
  border-radius: 8px;
}
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--meskel); background: rgba(255,255,255,.06); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.header-cta .btn { padding: 10px 22px; font-size: .85rem; }

.nav-toggle {
  display: none;
  background: none; border: 0;
  width: 44px; height: 44px;
  cursor: pointer;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: #fff; margin: 5px auto;
  transition: transform .2s ease, opacity .2s ease;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--forest-2);
    display: none;
    padding: 12px 22px 20px;
    box-shadow: 0 18px 30px rgba(0,0,0,.3);
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; }
  .header-cta { display: none; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(227,168,28,.16), transparent 60%),
    linear-gradient(160deg, var(--forest) 0%, var(--forest-2) 70%);
  color: #fff;
  overflow: hidden;
}
.hero::before {
  /* topographic contour lines — the Dur Adari signature */
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420' viewBox='0 0 420 420'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.06' stroke-width='1.4'%3E%3Cpath d='M0 330 C90 290 140 350 210 320 S340 250 420 290'/%3E%3Cpath d='M0 285 C90 245 150 305 220 275 S345 205 420 245'/%3E%3Cpath d='M0 240 C95 200 155 260 225 230 S350 160 420 200'/%3E%3Cpath d='M0 195 C100 155 160 215 230 185 S355 115 420 155'/%3E%3Cpath d='M0 150 C105 110 165 170 235 140 S360 70 420 110'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-inner {
  position: relative;
  padding: 110px 0 150px;
  max-width: 760px;
}
.hero .eyebrow { color: var(--meskel); }
.hero h1 { color: #fff; }
.hero h1 em { font-style: italic; color: var(--meskel); }
.hero p { font-size: 1.18rem; color: rgba(255,255,255,.85); max-width: 560px; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-facts {
  display: flex; gap: 34px; flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.18);
}
.hero-facts b { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--meskel); }
.hero-facts span { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.65); }

/* ridgeline divider under hero */
.ridge { display: block; width: 100%; height: 70px; margin-top: -1px; }

/* ============ TOUR CARDS ============ */
.tour-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 44px;
}
.tour-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease;
}
.tour-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.tour-media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.tour-media img { width: 100%; height: 100%; object-fit: cover; }
.tour-media--placeholder {
  display: grid; place-items: center;
  background:
    radial-gradient(500px 220px at 80% 0%, rgba(227,168,28,.25), transparent 60%),
    linear-gradient(150deg, var(--forest), var(--forest-2));
}
.tour-media--placeholder svg { width: 74px; height: 74px; color: rgba(255,255,255,.85); }
.tour-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--meskel);
  color: var(--forest-2);
  font-size: .72rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}
.tour-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.tour-body h3 { margin-bottom: 6px; }
.tour-body h3 a { color: var(--forest); }
.tour-meta { font-size: .85rem; color: rgba(24,34,32,.6); margin-bottom: 14px; }
.tour-meta strong { color: var(--meskel-2); }

/* the route line — signature element */
.route { list-style: none; margin: 0 0 20px; padding: 0; position: relative; }
.route li {
  position: relative;
  padding: 0 0 16px 30px;
  font-size: .95rem;
}
.route li::before {
  content: "";
  position: absolute; left: 6px; top: 8px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--meskel);
  box-shadow: 0 0 0 3px rgba(227,168,28,.25);
}
.route li::after {
  content: "";
  position: absolute; left: 10px; top: 20px; bottom: -4px;
  border-left: 2px dashed rgba(227,168,28,.55);
}
.route li:last-child { padding-bottom: 0; }
.route li:last-child::after { display: none; }

.tour-foot {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.tour-price { font-family: var(--font-display); font-size: 1.5rem; color: var(--forest); }
.tour-price small { font-family: var(--font-body); font-size: .78rem; color: rgba(24,34,32,.55); display: block; }

/* ============ WHY US ============ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 26px;
  margin-top: 44px;
}
.feature {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--meskel);
}
.feature svg { width: 34px; height: 34px; color: var(--forest); margin-bottom: 14px; }
.feature h3 { font-size: 1.1rem; }
.feature p { font-size: .95rem; color: rgba(24,34,32,.7); margin: 0; }

/* ============ CTA BAND ============ */
.cta-band {
  background:
    radial-gradient(800px 300px at 15% 110%, rgba(227,168,28,.2), transparent 60%),
    linear-gradient(140deg, var(--forest), var(--forest-2));
  color: #fff;
  border-radius: 20px;
  padding: 60px 50px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 30px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { color: rgba(255,255,255,.8); margin: 8px 0 0; }

/* ============ PAGE HERO (inner pages) ============ */
.page-hero {
  background: linear-gradient(160deg, var(--forest), var(--forest-2));
  color: #fff;
  padding: 70px 0 60px;
  position: relative;
  overflow: hidden;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: inherit; }
.page-hero h1 { color: #fff; margin: 0; font-size: clamp(2rem, 4.5vw, 3rem); }
.page-hero p { color: rgba(255,255,255,.8); margin: 12px 0 0; max-width: 620px; }

/* ============ FORMS ============ */
.form-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  max-width: 640px;
}
.form-card--center { margin: 0 auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.field label {
  display: block;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--bone);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--meskel);
  background: #fff;
}
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: .85rem; color: rgba(24,34,32,.6); }

.notice {
  padding: 16px 20px;
  border-radius: 10px;
  margin-bottom: 26px;
  font-weight: 700;
}
.notice--ok { background: #E5F2E7; color: #1E5631; border-left: 4px solid #2F7D45; }
.notice--err { background: #FBEAE7; color: #8A2B1D; border-left: 4px solid #C0402C; }

.booking-total {
  display: flex; justify-content: space-between; align-items: baseline;
  background: var(--mist);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 6px 0 18px;
}
.booking-total b { font-family: var(--font-display); font-size: 1.6rem; color: var(--forest); }

/* ============ ACCOUNT / TABLES ============ */
.booking-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.booking-table th, .booking-table td { padding: 14px 18px; text-align: left; font-size: .93rem; }
.booking-table th { background: var(--forest); color: #fff; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.booking-table tr:nth-child(even) td { background: var(--mist); }
.status-pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .75rem; font-weight: 800; letter-spacing: .05em; }
.status-pill--pending { background: #FFF3D6; color: #8a6100; }
.status-pill--confirmed { background: #E5F2E7; color: #1E5631; }
.status-pill--cancelled { background: #FBEAE7; color: #8A2B1D; }

/* ============ CONTACT ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-item { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-item svg { width: 26px; height: 26px; color: var(--meskel-2); flex: none; margin-top: 2px; }
.contact-item b { display: block; color: var(--forest); }

/* ============ ABOUT ============ */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.about-figure {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
  background:
    radial-gradient(400px 300px at 20% 10%, rgba(227,168,28,.3), transparent 55%),
    linear-gradient(160deg, var(--forest), var(--forest-2));
  display: grid; place-items: center;
}
.about-figure img { width: 100%; height: 100%; object-fit: cover; }
.about-figure svg { width: 110px; height: 110px; color: rgba(255,255,255,.8); }
.values-list { list-style: none; padding: 0; margin: 24px 0 0; }
.values-list li { padding: 10px 0 10px 34px; position: relative; }
.values-list li::before {
  content: "✦";
  position: absolute; left: 6px;
  color: var(--meskel);
}

/* ============ SINGLE TOUR ============ */
.single-tour-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 44px; align-items: start; }
@media (max-width: 900px) { .single-tour-grid { grid-template-columns: 1fr; } }
.tour-sidebar {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  position: sticky; top: 100px;
}
.tour-sidebar .tour-price { font-size: 2rem; }
.entry-content p { margin: 0 0 1.2em; }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--forest-2);
  color: rgba(255,255,255,.78);
  margin-top: 90px;
  position: relative;
}
.footer-ridge { display: block; width: 100%; height: 60px; background: var(--bone); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding: 60px 0 40px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--meskel); font-family: var(--font-body); font-size: .82rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer a:hover { color: var(--meskel); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 20px 0;
  font-size: .85rem;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}

/* ============ REVEAL ANIMATION ============ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ============ WORDPRESS DEFAULTS ============ */
.alignleft { float: left; margin: 0 20px 12px 0; }
.alignright { float: right; margin: 0 0 12px 20px; }
.aligncenter { margin-left: auto; margin-right: auto; }
.screen-reader-text {
  clip: rect(1px,1px,1px,1px);
  position: absolute !important;
  height: 1px; width: 1px; overflow: hidden;
}
