/* ---------------------------------------------------------------------------
   Lahori Chaska House - "Lahori Legacy" design system
   Tokens taken from DESIGN.md (dark, gold-accented, editorial).
--------------------------------------------------------------------------- */

:root {
  --surface: #131313;
  --on-surface: #e5e2e1;
  --on-surface-variant: #d0c5af;
  --primary: #f2ca50;

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

  --unit: 8px;
  --margin-mobile: 20px;
  --margin-desktop: 64px;

  /* Floating WhatsApp button. The hero reserves this much extra bottom
     padding so centred text never sits underneath it. */
  --wa-size: 56px;
  --wa-offset: 20px;
  --wa-clearance: 48px;
}

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

body {
  margin: 0;
  padding: 0;
  overscroll-behavior: none;
  background-color: var(--surface);
  color: var(--on-surface);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* --- Hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Vertical rhythm scales with viewport height so short screens compress
     instead of scrolling. Fixed fallback first for browsers without svh. */
  padding: 40px var(--margin-mobile);
  padding: clamp(28px, 6svh, 64px) var(--margin-mobile);
  text-align: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../img/hero.jpg");
  background-size: cover;
  background-position: center;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    to bottom,
    rgba(19, 19, 19, 0.9) 0%,
    rgba(19, 19, 19, 0.7) 50%,
    rgba(19, 19, 19, 0.95) 100%
  );
}

.hero__inner {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 768px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  gap: clamp(16px, 3.2svh, 32px);
}

.hero__logo-link {
  display: inline-block;
  border-radius: 4px;
  -webkit-tap-highlight-color: transparent;
}

.hero__logo-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 12px;
}

.hero__logo {
  height: 110px;
  height: clamp(84px, 15svh, 128px);
  width: auto;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.hero__logo-link:hover .hero__logo,
.hero__logo-link:focus-visible .hero__logo {
  opacity: 1;
  transform: scale(1.05);
}

.hero__heading-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--unit) * 2);
  margin-top: 16px;
  margin-top: clamp(8px, 2svh, 32px);
}

.eyebrow {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 7vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--on-surface);
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.hero__title em {
  font-style: italic;
  color: var(--primary);
}

.divider {
  width: 96px;
  height: 1px;
  margin-top: calc(var(--unit) * 2);
  background-image: linear-gradient(
    to right,
    transparent,
    var(--primary),
    transparent
  );
}

/* --- Location ------------------------------------------------------------- */

.location {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 7px 16px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  border: 1px solid rgba(242, 202, 80, 0.35);
  border-radius: 9999px;
  background-color: rgba(19, 19, 19, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.location__pin {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.hero__lede {
  max-width: 42rem;
  margin: 16px 0 0;
  margin: clamp(12px, 2.4svh, 24px) 0 0;
  font-size: 17px;
  font-size: clamp(15px, 1.4svh + 0.55rem, 18px);
  line-height: 1.65;
  color: var(--on-surface-variant);
  text-wrap: balance;
}

/* --- Floating WhatsApp button --------------------------------------------- */

.whatsapp {
  position: fixed;
  left: 20px;
  bottom: 20px;
  /* Keep clear of iOS home indicator / Android gesture bar. */
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  left: calc(20px + env(safe-area-inset-left, 0px));
  z-index: 100;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background-color: #25d366;
  border-radius: 9999px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.whatsapp:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 26px rgba(37, 211, 102, 0.4);
}

.whatsapp:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

.whatsapp__icon {
  width: 30px;
  height: 30px;
}

/* --- Responsive ----------------------------------------------------------- */

/* Phones. The floating button sits in the bottom-left corner, where centred
   text can reach on narrow screens, so reserve clearance for it and tighten
   the stack to pay for that space. */
@media (max-width: 560px) {
  .hero {
    padding-bottom: calc(clamp(24px, 5svh, 48px) + var(--wa-clearance));
    padding-top: clamp(24px, 5svh, 48px);
  }

  .hero__inner {
    gap: 14px;
    gap: clamp(12px, 2.4svh, 22px);
  }

  .hero__logo {
    height: 82px;
    height: clamp(72px, 12.5svh, 104px);
  }

  .hero__heading-group {
    margin-top: 6px;
    margin-top: clamp(4px, 1.2svh, 16px);
  }

  .hero__lede {
    margin-top: 8px;
    margin-top: clamp(8px, 1.6svh, 16px);
    font-size: 15.5px;
    font-size: clamp(14px, 1.1svh + 0.48rem, 16.5px);
    line-height: 1.55;
  }

  .whatsapp {
    width: 48px;
    height: 48px;
    left: calc(16px + env(safe-area-inset-left, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }

  .whatsapp__icon {
    width: 26px;
    height: 26px;
  }
}

@media (min-width: 768px) {
  .hero__logo {
    height: 160px;
    height: clamp(104px, 22svh, 192px);
  }
}

/* Landscape phones and other very short viewports: compress hard so the
   whole message still lands in one screen. */
@media (max-height: 560px) {
  /* Button is smaller here, so it needs less clearance than the phone tier. */
  .hero {
    padding-top: clamp(20px, 4svh, 40px);
    padding-bottom: calc(clamp(20px, 4svh, 40px) + 40px);
  }

  .hero__logo,
  .hero__heading-group {
    margin-top: 0;
  }

  .hero__logo {
    height: clamp(56px, 17svh, 96px);
  }

  .hero__title {
    font-size: clamp(1.6rem, 4.5vw, 2.5rem);
  }

  .divider {
    margin-top: 4px;
  }

  .location {
    padding: 5px 12px;
    font-size: 11px;
    letter-spacing: 0.12em;
  }

  .location__pin {
    width: 13px;
    height: 13px;
  }

  .whatsapp {
    width: 46px;
    height: 46px;
    left: 12px;
    bottom: 12px;
  }

  .whatsapp__icon {
    width: 24px;
    height: 24px;
  }
}

/* Very short screens (small phones in landscape, ~320px tall). The clamp
   floors above are still too generous here, so drop them further. */
@media (max-height: 430px) {
  .hero {
    padding: 12px var(--margin-mobile);
    /* Longhand, not the shorthand above: text runs nearly full width here,
       so the button's corner must stay reserved. */
    padding-bottom: 54px;
  }

  .hero__logo {
    height: clamp(40px, 13svh, 64px);
  }

  .hero__inner {
    gap: 10px;
    gap: clamp(8px, 2svh, 16px);
  }

  .hero__lede {
    margin-top: 6px;
    font-size: 13.5px;
    line-height: 1.45;
  }

  .location {
    padding: 4px 10px;
    font-size: 10px;
  }

  .whatsapp {
    width: 40px;
    height: 40px;
    left: calc(10px + env(safe-area-inset-left, 0px));
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }

  .whatsapp__icon {
    width: 22px;
    height: 22px;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding-inline: var(--margin-desktop);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
