/* PakiBaat website. Palette and type follow the app (pakki_baat/lib/app/theme). */

@font-face {
  font-family: "DM Serif Display";
  src: url("../fonts/dm-serif-display.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ivory: #fffbf4;
  --ivory-deep: #fbf3e6;
  --pale: #fbefdf;
  --surface: #ffffff;
  --maroon: #8a1424;
  --maroon-deep: #5e0b12;
  --maroon-night: #3a070c;
  --gold: #b07a2a;
  --gold-light: #e1b276;
  --gold-text: #8f5f17;
  --text: #2b1f1c;
  --muted: #6e5f58;
  --border: #efe0cc;
  --ink: #1c1110;

  --font-display: "DM Serif Display", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --text-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --text-h1: clamp(2.6rem, 1.55rem + 4.2vw, 4.6rem);
  --text-h2: clamp(2rem, 1.45rem + 2.3vw, 3.2rem);
  --text-h3: clamp(1.35rem, 1.2rem + 0.6vw, 1.65rem);

  --gutter: clamp(16px, 4vw, 32px);
  --space-section: clamp(4rem, 2.6rem + 5vw, 7rem);
  --radius-card: 28px;
  --radius-pill: 999px;

  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 18px 40px -24px rgba(94, 11, 18, 0.28);
  --shadow-lift: 0 30px 60px -28px rgba(94, 11, 18, 0.45);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 600ms;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--maroon);
  text-underline-offset: 0.2em;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--maroon-deep);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: min(1160px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  background: var(--maroon-deep);
  color: var(--ivory);
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 251, 244, 0.86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 300ms ease, box-shadow 300ms ease;
}
.site-header.is-scrolled {
  border-color: var(--border);
  box-shadow: 0 10px 30px -24px rgba(94, 11, 18, 0.5);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.brand-emblem {
  width: 42px;
  height: auto;
}
.brand-wordmark {
  width: 122px;
  height: auto;
}
.site-nav ul {
  display: flex;
  gap: clamp(1rem, 2.4vw, 2.2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  position: relative;
  color: var(--text);
  font-weight: 550;
  font-size: 0.95rem;
  text-decoration: none;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms var(--ease-out);
}
.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.5rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 200ms var(--ease-out), box-shadow 200ms ease, background-color 200ms ease;
}
.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}
.btn-primary {
  color: var(--ivory);
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-deep) 100%);
  box-shadow: 0 14px 28px -14px rgba(138, 20, 36, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 34px -16px rgba(138, 20, 36, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-primary:active {
  transform: translateY(0);
}
.btn-ghost {
  color: var(--maroon-deep);
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(138, 20, 36, 0.22);
}
.btn-ghost:hover {
  background: #fff;
  border-color: rgba(138, 20, 36, 0.4);
}
.btn-gold {
  color: var(--maroon-night);
  background: linear-gradient(135deg, #f0cf98 0%, var(--gold-light) 45%, #c99044 100%);
  box-shadow: 0 14px 30px -16px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-gold:hover {
  transform: translateY(-2px);
}
.btn-small {
  padding: 0.65rem 1.1rem;
  font-size: 0.92rem;
}

/* ---------- Shared type ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
  color: var(--gold-text);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
}
.gold-text {
  color: var(--gold);
  background: linear-gradient(100deg, #8f5f17 0%, #a86018 40%, #b8822e 55%, #8f5f17 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lead {
  color: var(--muted);
  font-size: var(--text-lead);
  line-height: 1.7;
  max-width: 34rem;
}
.section {
  padding-block: var(--space-section);
  position: relative;
}
.section-head {
  max-width: 44rem;
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}
.section-head h2 {
  font-size: var(--text-h2);
  margin-bottom: 1rem;
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.section-head.center .lead {
  margin-inline: auto;
}
.rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  color: var(--gold);
}
.rule::before,
.rule::after {
  content: "";
  height: 1px;
  width: min(140px, 22vw);
  background: linear-gradient(90deg, transparent, var(--gold));
}
.rule::after {
  transform: scaleX(-1);
}
.rule svg {
  width: 22px;
  height: 22px;
}

/* ---------- Phone mockup ---------- */

.phone {
  --w: 280px;
  position: relative;
  width: var(--w);
  padding: calc(var(--w) * 0.032);
  border-radius: calc(var(--w) * 0.16);
  background: linear-gradient(150deg, #4a2622 0%, #1c1110 38%, #120a09 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 0 0 calc(var(--w) * 0.008) #2b1714,
    var(--shadow-lift), 0 10px 20px -12px rgba(43, 31, 28, 0.4);
}
.phone-screen {
  overflow: hidden;
  border-radius: calc(var(--w) * 0.13);
  background: var(--ivory);
}
.phone-status {
  position: relative;
  display: block;
  height: calc(var(--w) * 0.11);
  background: var(--ivory) url("../img/status-icons.svg") no-repeat right calc(var(--w) * 0.075) center /
    calc(var(--w) * 0.2) auto;
}
.phone-status::before {
  content: "9:41";
  position: absolute;
  left: calc(var(--w) * 0.1);
  top: 50%;
  transform: translateY(-46%);
  font-weight: 700;
  font-size: calc(var(--w) * 0.046);
  color: var(--text);
}
.phone-status::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(var(--w) * 0.028);
  width: 27%;
  height: calc(var(--w) * 0.058);
  transform: translateX(-50%);
  border-radius: var(--radius-pill);
  background: #0d0707;
}
.phone img {
  width: 100%;
  aspect-ratio: 393 / 852;
  object-fit: cover;
  object-position: top;
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 4rem 2.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.93rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
}
.footer-brand p {
  margin-top: 1rem;
  color: var(--muted);
  max-width: 22rem;
}
.site-footer h2 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 1rem;
}
.site-footer ul {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer a {
  color: var(--text);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--maroon);
  text-decoration: underline;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- Motion ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--duration) var(--ease-out), transform var(--duration) var(--ease-out);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

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

@media (max-width: 900px) {
  .site-nav {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .brand-emblem {
    width: 36px;
  }
  .brand-wordmark {
    width: 104px;
  }
  .header-inner .btn-small {
    padding: 0.55rem 0.95rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-brand {
    grid-column: auto;
  }
}
