/* ==========================================================================
   DADA Travel and Tours
   Palette: mosque green and white marble, gold used only as a hairline accent.
   ========================================================================== */

:root {
  --ink: #16241e;
  --ink-soft: #4a5b53;
  --ink-faint: #7d8b84;

  --green: #0b5d43;
  --green-deep: #05372a;
  --green-mid: #0e7352;
  --mist: #eaf1ed;
  --mist-deep: #d7e4dc;

  --gold: #c08a2e;
  --gold-soft: #e8c87a;

  --paper: #ffffff;
  --line: #dfe7e2;

  --font-display: "Amiri", Georgia, serif;
  --font-body: "Barlow", system-ui, -apple-system, sans-serif;
  --font-urdu: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", serif;

  --wrap: 1120px;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(22, 36, 30, .06), 0 8px 24px rgba(22, 36, 30, .06);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

img { max-width: 100%; display: block; }
a { color: var(--green); }

/* --- Language visibility -------------------------------------------------
   Both languages live in the HTML. CSS hides one, so there is no flash. */
html[data-lang="en"] [data-ur] { display: none !important; }
html[data-lang="ur"] [data-en] { display: none !important; }

html[data-lang="ur"] body { font-family: var(--font-urdu); line-height: 2.1; }
html[data-lang="ur"] h1,
html[data-lang="ur"] h2,
html[data-lang="ur"] h3,
html[data-lang="ur"] .btn,
html[data-lang="ur"] .brand-name { font-family: var(--font-urdu); }
html[data-lang="ur"] .num { font-family: var(--font-body); }

/* --- Typography ---------------------------------------------------------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--green-deep);
  margin: 0 0 .6rem;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; max-width: 68ch; }

html[data-lang="ur"] h1 { font-size: clamp(1.7rem, 4.2vw, 2.5rem); line-height: 1.9; }
html[data-lang="ur"] h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.9; }

.lede { font-size: 1.1rem; color: var(--ink-soft); }

/* --- Layout -------------------------------------------------------------- */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: clamp(3rem, 7vw, 5rem); }
.section--mist { background: var(--mist); }
.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-head p { margin-inline: auto; }

/* A small gold diamond rule, a manuscript device. Used between major sections only. */
.rule {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; margin: 0 auto 1.25rem; max-width: 180px;
}
.rule::before, .rule::after {
  content: ""; height: 1px; flex: 1; background: var(--gold); opacity: .45;
}
.rule i { width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }

.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* --- Header -------------------------------------------------------------- */
.topbar {
  background: var(--green-deep);
  color: #cfe0d8;
  font-size: .85rem;
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 40px; flex-wrap: wrap;
}
.topbar a { color: #cfe0d8; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar-contact { display: flex; gap: 1.25rem; flex-wrap: wrap; }

.langswitch { display: flex; align-items: center; gap: 2px; }
.langswitch button {
  font: inherit; font-family: var(--font-body);
  background: none; border: 1px solid transparent; color: #cfe0d8;
  padding: 2px 10px; border-radius: 999px; cursor: pointer;
}
.langswitch button[aria-pressed="true"] {
  background: var(--gold); color: var(--green-deep); font-weight: 600;
}

.masthead { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 74px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand svg { flex: none; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--green-deep); line-height: 1.2; }
.brand-tag { font-family: var(--font-body); font-size: .75rem; color: var(--gold); letter-spacing: .02em; }
html[data-lang="ur"] .brand-tag { font-family: var(--font-urdu); font-size: .8rem; }

.nav { display: flex; gap: .35rem; align-items: center; }
.nav a {
  text-decoration: none; color: var(--ink-soft); font-weight: 500;
  padding: .5rem .8rem; border-radius: var(--radius); font-size: .97rem;
}
.nav a:hover { color: var(--green); background: var(--mist); }
.nav a[aria-current="page"] { color: var(--green-deep); font-weight: 600; box-shadow: inset 0 -2px 0 var(--gold); }

.navtoggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: var(--radius); padding: .5rem .65rem; cursor: pointer; color: var(--green-deep);
}

@media (max-width: 900px) {
  .navtoggle { display: block; }
  .nav {
    position: absolute; inset-inline: 0; top: 100%;
    flex-direction: column; align-items: stretch;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: .5rem 20px 1rem; gap: 0; display: none;
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .75rem .5rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .masthead .wrap { position: relative; }
}

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: .78rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: background-color .18s, color .18s, border-color .18s;
}
html[data-lang="ur"] .btn { font-family: var(--font-urdu); padding-block: .95rem; }

.btn--gold { background: var(--gold); color: var(--green-deep); }
.btn--gold:hover { background: var(--gold-soft); }
.btn--green { background: var(--green); color: #fff; }
.btn--green:hover { background: var(--green-mid); }
.btn--outline { border-color: var(--line); color: var(--green-deep); background: var(--paper); }
.btn--outline:hover { border-color: var(--green); }
.btn--onDark { border-color: rgba(255,255,255,.45); color: #fff; }
.btn--onDark:hover { background: rgba(255,255,255,.12); }
.btn--wa { background: #1f9d55; color: #fff; }
.btn--wa:hover { background: #178045; }
.btn--sm { padding: .5rem 1rem; font-size: .9rem; }
.btn--block { display: flex; width: 100%; }

/* --- Hero ---------------------------------------------------------------- */
.hero {
  background: var(--green-deep);
  color: #fff;
  position: relative;
  overflow: hidden;
  text-align: center;
}
/* Geometric tile pattern, very low contrast so the headline always wins. */
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.06) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.06) 0 1px, transparent 1px 34px);
  mask-image: radial-gradient(ellipse at 50% 40%, transparent 20%, #000 85%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, transparent 20%, #000 85%);
}
.hero .wrap { position: relative; padding-block: clamp(3.5rem, 9vw, 6rem); }

/* The dome arch that frames the hero content. */
.hero-arch {
  max-width: 720px; margin-inline: auto;
  border: 1px solid rgba(232, 200, 122, .5);
  border-radius: 50% 50% var(--radius) var(--radius) / 34% 34% var(--radius) var(--radius);
  padding: clamp(2.2rem, 5vw, 3.4rem) clamp(1.25rem, 4vw, 2.5rem) clamp(2rem, 4vw, 2.75rem);
}
.hero h1 { color: #fff; margin-bottom: .75rem; }
.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  color: var(--gold-soft); margin: 0 auto 1.5rem; max-width: 34ch;
}
html[data-lang="ur"] .hero-tagline { font-family: var(--font-urdu); }
.hero-kicker { color: #a9c6b9; font-size: .95rem; margin-bottom: .75rem; }
.hero-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* --- Package card -------------------------------------------------------- */
.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
}
.card-window {
  height: 168px; background: linear-gradient(180deg, #dfeae4, var(--mist));
  display: flex; align-items: center; justify-content: center;
  /* dome top, flat bottom */
  border-radius: 50% 50% 0 0 / 26% 26% 0 0;
  overflow: hidden; position: relative;
  border-bottom: 1px solid var(--line);
}
.card-window img { width: 100%; height: 100%; object-fit: cover; }
.card-window svg { opacity: .5; }
.card-body { padding: 1.25rem 1.35rem 1.35rem; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin-bottom: .4rem; }
.card p { font-size: .95rem; color: var(--ink-soft); flex: 1; margin-bottom: 1rem; }

.tag {
  display: inline-block; font-family: var(--font-body); font-size: .75rem; font-weight: 600;
  color: var(--green); background: var(--mist); border-radius: 999px;
  padding: .2rem .7rem; margin-bottom: .6rem; letter-spacing: .01em;
}
.card-meta {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: .75rem; padding-top: .85rem; border-top: 1px solid var(--line); margin-bottom: 1rem;
}
.price { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--green-deep); }
html[data-lang="ur"] .price { font-family: var(--font-body); }
.duration { font-size: .9rem; color: var(--ink-faint); }

/* --- Filters ------------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2.5rem; }
.filters button {
  font: inherit; font-family: var(--font-body); font-size: .93rem; font-weight: 500;
  background: var(--paper); border: 1px solid var(--line); color: var(--ink-soft);
  padding: .5rem 1.1rem; border-radius: 999px; cursor: pointer;
}
html[data-lang="ur"] .filters button { font-family: var(--font-urdu); }
.filters button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }

/* --- Feature list (why choose us / services) ----------------------------- */
.feature { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.feature-icon {
  width: 44px; height: 44px; border-radius: 50%; background: var(--mist);
  display: flex; align-items: center; justify-content: center; color: var(--green); margin-bottom: .9rem;
}
.feature h3 { font-size: 1.1rem; }
.feature p { font-size: .95rem; color: var(--ink-soft); margin: 0; }

/* --- Checklist ----------------------------------------------------------- */
.checklist { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .6rem; }
.checklist li { display: flex; gap: .65rem; align-items: flex-start; font-size: .98rem; }
.checklist li::before {
  content: ""; flex: none; width: 8px; height: 8px; margin-top: .55em;
  background: var(--gold); transform: rotate(45deg);
}

/* --- Detail page --------------------------------------------------------- */
.detail-banner {
  height: clamp(180px, 32vw, 300px); background: var(--mist);
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius); overflow: hidden; margin-bottom: 2rem;
}
.detail-banner img { width: 100%; height: 100%; object-fit: cover; }
.pricebox {
  background: var(--mist); border: 1px solid var(--mist-deep);
  border-radius: var(--radius); padding: 1.4rem; margin-bottom: 1.5rem;
}
.pricebox .price { font-size: 1.8rem; display: block; }
.backlink { display: inline-block; margin-bottom: 1.25rem; font-size: .95rem; text-decoration: none; font-weight: 500; }
.backlink:hover { text-decoration: underline; }

/* --- Announcements ------------------------------------------------------- */
.note {
  background: var(--paper); border: 1px solid var(--line);
  border-inline-start: 3px solid var(--gold);
  border-radius: var(--radius); padding: 1.35rem 1.5rem; margin-bottom: 1rem;
}
.note time { font-size: .82rem; color: var(--ink-faint); font-family: var(--font-body); }
.note h3 { margin: .3rem 0 .5rem; }
.note p { margin: 0; color: var(--ink-soft); }

/* --- Forms --------------------------------------------------------------- */
.form { display: grid; gap: 1rem; }
.field label { display: block; font-family: var(--font-body); font-weight: 600; font-size: .9rem; margin-bottom: .3rem; }
html[data-lang="ur"] .field label { font-family: var(--font-urdu); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 1rem;
  padding: .7rem .85rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green);
}
.field small { color: var(--ink-faint); font-size: .82rem; font-family: var(--font-body); }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2rem); }

/* --- Contact info -------------------------------------------------------- */
.infoline { display: flex; gap: .9rem; align-items: flex-start; margin-bottom: 1.4rem; }
.infoline svg { flex: none; color: var(--green); margin-top: 3px; }
.infoline dt { font-family: var(--font-body); font-size: .8rem; color: var(--ink-faint); font-weight: 600; margin-bottom: .1rem; }
.infoline dd { margin: 0; }
.infoline a { text-decoration: none; }
.infoline a:hover { text-decoration: underline; }
.mapframe { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 280px; }
.mapframe iframe { width: 100%; height: 100%; border: 0; display: block; }

/* --- CTA band ------------------------------------------------------------ */
.cta { background: var(--green); color: #fff; text-align: center; }
.cta h2 { color: #fff; }
.cta p { color: #cfe4da; margin-inline: auto; }
.cta .hero-actions { margin-top: 1.5rem; }

/* --- Footer -------------------------------------------------------------- */
.footer { background: var(--green-deep); color: #b6ccc2; font-size: .95rem; padding-block: 3rem 1.5rem; }
.footer h3 { color: #fff; font-size: 1rem; margin-bottom: .8rem; }
.footer a { color: #b6ccc2; text-decoration: none; overflow-wrap: anywhere; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.footer-grid { display: grid; gap: 2rem 2.5rem; overflow-wrap: anywhere; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.footer-base {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.25rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem;
}

/* --- Floating WhatsApp --------------------------------------------------- */
.wa-float {
  position: fixed; inset-block-end: 20px; inset-inline-end: 20px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; background: #1f9d55; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.22); text-decoration: none;
}
.wa-float:hover { background: #178045; }

/* --- Admin --------------------------------------------------------------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.admin { width: 100%; border-collapse: collapse; font-size: .93rem; background: var(--paper); }
table.admin th, table.admin td { padding: .7rem .85rem; text-align: start; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.admin th { background: var(--mist); font-family: var(--font-body); font-weight: 600; font-size: .82rem; color: var(--ink-soft); }
table.admin tr:last-child td { border-bottom: 0; }
.linkbtn { background: none; border: 0; font: inherit; font-family: var(--font-body); color: var(--green); cursor: pointer; padding: 0; text-decoration: underline; }
.linkbtn.danger { color: #b3261e; }
.banner { border-radius: var(--radius); padding: .9rem 1.1rem; margin-bottom: 1.25rem; font-size: .95rem; }
.banner--warn { background: #fdf3e0; border: 1px solid #e8c87a; color: #6b4c10; }
.banner--ok { background: #e6f4ec; border: 1px solid #a7d5bb; color: #0b5d43; }

/* --- Utility ------------------------------------------------------------- */
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }
.muted { color: var(--ink-faint); }
.hidden { display: none !important; }
@media (max-width: 560px) { .hide-sm { display: none; } }
.skip {
  position: absolute; inset-inline-start: -9999px;
  background: var(--gold); color: var(--green-deep); padding: .6rem 1rem; z-index: 100;
}
.skip:focus { inset-inline-start: 8px; top: 8px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .masthead, .topbar, .footer, .wa-float, .hero-actions, .filters { display: none !important; }
}
