/* ==========================================================================
   DazlinQ Travel — Components: buttons, nav, footer, cards
   ========================================================================== */

/* --- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .95rem 2rem;
  border: 2px solid transparent;
  border-radius: var(--r-pill);
  cursor: pointer;
  text-align: center;
  transition: background-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--pink);
  color: #fff;
  box-shadow: 0 6px 18px rgba(216, 27, 118, .26);
}
.btn--primary:hover {
  background: var(--pink-deep);
  color: #fff;
  box-shadow: 0 10px 26px rgba(216, 27, 118, .34);
}

.btn--outline {
  background: transparent;
  color: var(--pink-text);
  border-color: var(--pink);
}
.btn--outline:hover {
  background: var(--pink);
  color: #fff;
}

/* On a photo: solid white so it never blends into the image beneath.
   (The old site put low-contrast text straight onto photos — the client
   flagged it as "text on the background image blends with the image".) */
.btn--onphoto {
  background: rgba(255, 255, 255, .96);
  color: var(--pink-text);
  box-shadow: var(--sh-md);
}
.btn--onphoto:hover { background: #fff; color: var(--pink-deep); }

.btn--sm { padding: .7rem 1.4rem; font-size: .72rem; }

/* Icons inside buttons inherit the label's colour and stay optically sized to
   it. Without this they fall back to the SVG default of solid black fill. */
.btn svg {
  width: 15px;
  height: 15px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn__arrow { transition: transform var(--dur) var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ==========================================================================
   NAV
   ========================================================================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  height: var(--nav-h);
  background: rgba(255, 251, 252, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.site-nav.is-scrolled {
  background: rgba(255, 251, 252, .97);
  box-shadow: 0 2px 20px rgba(160, 60, 105, .09);
}

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* --- Logo lockup ------------------------------------------------------
   Built in type so it stays crisp at any size and can be swapped for
   Kim's transparent PNG/SVG the moment she supplies one — see
   includes/header.php, which switches automatically if the file exists. */
.logo { display: flex; align-items: center; gap: .7rem; flex: none; }
/* The lockup now includes TRAVEL beneath the wordmark, which is much smaller
   than the script. Sized so that word stays readable — at the old 50px cap it
   was about 7px tall and turned to mush. 62px still leaves 8px of breathing
   room in the 78px bar; phones drop to 44px inside the 64px bar. */
.logo__img { height: clamp(44px, 5.2vw, 62px); width: auto; }


.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name {
  font-family: var(--font-script);
  font-size: clamp(1.65rem, 3.4vw, 2.1rem);
  font-weight: 700;
  color: var(--pink);
  line-height: 1;
}
.logo__sub {
  font-family: var(--font-body);
  font-size: .52rem;
  font-weight: 600;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-top: .28rem;
  padding-left: .2em;
}

/* --- Nav links -------------------------------------------------------- */
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(.9rem, 1.7vw, 1.7rem);
  list-style: none;
  padding: 0;
}

.nav__link {
  position: relative;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
  padding-block: .35rem;
}
.nav__link:hover { color: var(--pink-text); }

.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--pink);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--dur) var(--ease);
}
.nav__link:hover::after { transform: scaleX(1); }

.nav__link[aria-current="page"] { color: var(--pink-text); }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.nav__cta { margin-left: .4rem; }

/* --- Hamburger -------------------------------------------------------- */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  flex: none;
}
.nav__toggle span {
  display: block;
  width: 24px; height: 2px;
  margin-inline: auto;
  background: var(--pink);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.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); }

/* --- Mobile drawer ---------------------------------------------------- */
@media (max-width: 980px) {
  /* CRITICAL: backdrop-filter makes an element the containing block for its
     position:fixed descendants. With it on, the drawer below resolves
     `inset: var(--nav-h) 0 0 0` against the 64px header instead of the
     viewport and collapses to a ~72px strip — a broken menu on every phone.
     The frosted effect is dropped at drawer widths (the bar is near-opaque
     here anyway) and kept on desktop, where there is no fixed child. */
  .site-nav {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 251, 252, .98);
  }

  .nav__toggle { display: flex; }

  .nav__list {
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    z-index: var(--z-drawer);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 1.5rem var(--gutter) 3rem;
    background: var(--cream);
    overflow-y: auto;
    overscroll-behavior: contain;

    /* The closed drawer fades in place rather than sliding in from off-screen.
       A position:fixed element parked at translateX(100%) sits outside the
       viewport, and `overflow-x: hidden` on body cannot clip fixed elements —
       so it silently widened the page to 720px on a 375px phone and pushed
       the hamburger off the right edge. Staying within the viewport bounds
       keeps the page exactly as wide as the screen. */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .26s var(--ease), transform .26s var(--ease), visibility .26s;
  }
  .nav__list.is-open { opacity: 1; visibility: visible; transform: none; }

  .nav__list > li { border-bottom: 1px solid var(--line-soft); }
  .nav__list > li:last-child { border-bottom: 0; margin-top: 1.5rem; }

  .nav__link {
    display: block;
    font-size: 1rem;
    letter-spacing: .06em;
    padding-block: 1.05rem;
  }
  .nav__link::after { display: none; }
  .nav__link[aria-current="page"] { color: var(--pink-text); }

  .nav__cta { margin-left: 0; width: 100%; }
}

body.nav-open { overflow: hidden; }

/* ==========================================================================
   CARDS
   ========================================================================== */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 2.6vw, 2.1rem);
  box-shadow: var(--sh-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
  height: 100%;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
  border-color: var(--pink-soft);
}

.card__icon {
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 1.15rem;
  border-radius: var(--r-pill);
  background: var(--pink-mist);
  color: var(--pink);
}
.card__icon svg { width: 26px; height: 26px; stroke: currentColor; fill: none;
                  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.card h3 { margin-bottom: .55rem; color: var(--ink); }
.card p  { font-size: var(--t-small); line-height: 1.78; color: var(--ink-soft); }

/* Compact variant for the four travel-style cards */
.card--style { text-align: center; padding-block: clamp(1.75rem, 3vw, 2.35rem); }
.card--style .card__icon { margin-inline: auto; width: 62px; height: 62px; }
.card--style .card__icon svg { width: 30px; height: 30px; }

/* ==========================================================================
   CREDENTIAL ROW
   Two verified credentials the client confirmed she stands behind.
   Deliberately NOT a 4-up stats grid — the two unverifiable claims
   ("70+ countries", "24/7 support") were removed, and a 4-column grid with
   two cells deleted reads as broken rather than intentional.
   ========================================================================== */
.creds {
  display: flex;
  align-items: stretch;
  gap: clamp(1.5rem, 4vw, 3.25rem);
  margin-top: 2.25rem;
  flex-wrap: wrap;
}

.cred { display: flex; flex-direction: column; gap: .15rem; }

.cred + .cred {
  padding-left: clamp(1.5rem, 4vw, 3.25rem);
  border-left: 1px solid var(--line-gold);
}

/* Numerals are set in the sans, not the display serif: Cormorant's "1" has a
   full serif head and foot, so "10+" reads as "IO+" at this size — bad for a
   figure whose whole job is to be believed at a glance. */
.cred__num {
  font-family: var(--font-body);
  font-size: clamp(2.1rem, 1.5rem + 1.9vw, 2.9rem);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.1;
  color: var(--pink);
  font-variant-numeric: lining-nums tabular-nums;
}
/* Scaled down, but deliberately NOT recoloured. Tinting the star gold while
   the numeral stays pink would put two colours in a single figure — the exact
   thing the client objected to. Size creates the hierarchy instead. */
.cred__star {
  font-size: .6em;
  vertical-align: .28em;
  margin-left: .05em;
  color: inherit;
}

.cred__label {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Up to four credentials now, so the dividers have to cope with wrapping.
   A left border on the first item of a wrapped row would hang in space with
   nothing beside it — so below the width where four still fit in one line,
   the dividers come off and spacing alone separates them. */
@media (max-width: 780px) {
  .cred + .cred { padding-left: 0; border-left: 0; }
  .creds { gap: 1.5rem 2rem; }
}

/* About: a narrower column beside the photo, so two-up is the right shape. */
.creds--stacked { gap: 1.25rem 2rem; }
.creds--stacked .cred + .cred { padding-left: 0; border-left: 0; }

/* ==========================================================================
   FOOTER — light, never dark. Replaces the old near-black footer.
   ========================================================================== */
.site-footer {
  background: linear-gradient(180deg, var(--blush) 0%, var(--blush-deep) 100%);
  border-top: 1px solid var(--line-gold);
  padding-top: clamp(3rem, 5vw, 4.5rem);
}

.footer__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
  padding-bottom: clamp(2.5rem, 4vw, 3.5rem);
}
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer__grid { grid-template-columns: 1fr; } }

.footer__brand .logo { margin-bottom: 1rem; }
.footer__tagline {
  font-family: var(--font-script);
  font-size: 1.35rem;
  color: var(--pink-text);
  margin-bottom: .6rem;
}
.footer__blurb {
  font-size: var(--t-small);
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 34ch;
}

.footer__col h4 {
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 1.1rem;
}

.footer__col ul { list-style: none; padding: 0; display: grid; gap: .7rem; }

/* `:not(.social)` matters. Without it this rule — one class plus one element,
   so more specific than `.social` alone — repainted the social icons in the
   muted body colour and overrode their layout, which is why they rendered as
   grey blobs instead of pink brand marks. */
.footer__col a:not(.social),
.footer__col span {
  font-size: var(--t-small);
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
.footer__col a:not(.social):hover { color: var(--pink-text); }
.footer__col a:not(.social) svg,
.footer__col span svg { width: 16px; height: 16px; flex: none; stroke: var(--gold);
                   fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Social icons */
.socials { display: flex; gap: .6rem; margin-top: .3rem; }
.social {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--pink);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.social:hover { background: var(--pink); color: #fff; transform: translateY(-2px); }
.social svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }

.footer__bottom {
  border-top: 1px solid var(--line-gold);
  padding-block: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: .78rem;
  color: var(--ink-faint);
}
.footer__bottom p { margin: 0; }
