/* ============================================================
   altmash.com — SHARED CSS (included via <?php include ?>)
   All pages share this. index.php has its own hero overrides.
   ============================================================ */

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

:root {
  --bg: #f0ede6;
  --bg2: #e8e5de;
  --ink: #0d0d0d;
  --muted: rgba(13, 13, 13, .64);
  --border: rgba(13, 13, 13, .09);
  --border2: rgba(13, 13, 13, .05);
  --accent: #e63939;
  --accent2: #e8ff47;
  --white: #ffffff;
  --display: 'Bebas Neue', sans-serif;
  --serif: 'DM Serif Display', serif;
  --body: 'Space Grotesk', sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.65;
  overflow-x: hidden
}

body.js-loaded {
  cursor: none
}

::selection {
  background: var(--ink);
  color: var(--bg)
}

::-webkit-scrollbar {
  width: 3px
}

::-webkit-scrollbar-thumb {
  background: var(--ink)
}

/* CURSOR */
#cur {
  position: fixed;
  top: 0;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .3s var(--ease-out), height .3s var(--ease-out);
  mix-blend-mode: difference;
  display: none
}

#cur2 {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(13, 13, 13, .22);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width .4s var(--ease-out), height .4s var(--ease-out);
  display: none
}

body.js-loaded #cur,
body.js-loaded #cur2 {
  display: block
}

body.hovering #cur {
  width: 14px;
  height: 14px
}

body.hovering #cur2 {
  width: 48px;
  height: 48px
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px 52px;
  z-index: 500;
  transition: padding .4s var(--ease-out), background .4s, border .4s
}

nav.stuck {
  padding: 13px 52px;
  background: rgba(240, 237, 230, .93);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border)
}

.nav-logo {
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .88);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0
}

.nav-logo {
  justify-self: start
}

.nav-logo-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease infinite
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1
  }

  50% {
    transform: scale(1.6);
    opacity: .5
  }
}

.nav-center {
  display: flex;
  gap: 30px;
  list-style: none
}

.nav-center {
  justify-self: center
}

.nav-center a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .58);
  text-decoration: none;
  transition: color .2s;
  position: relative
}

.nav-center a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: rgba(255, 255, 255, .85);
  transition: width .3s var(--ease-out)
}

.nav-center a:hover,
.nav-center a.active {
  color: rgba(255, 255, 255, .9)
}

.nav-center a:hover::after,
.nav-center a.active::after {
  width: 100%
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0
}

.nav-right {
  justify-self: end
}

.nav-available {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .11em;
  color: rgba(255, 255, 255, .68);
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid rgba(34, 197, 94, .4);
  border-radius: 100px;
  background: rgba(34, 197, 94, .07)
}

.avail-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, .5);
  animation: ping 2s ease infinite;
  flex-shrink: 0
}

@keyframes ping {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, .5)
  }

  50% {
    box-shadow: 0 0 0 5px rgba(34, 197, 94, 0)
  }
}

.nav-btn {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .9);
  padding: 9px 20px;
  border-radius: 2px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .2);
  transition: background .2s, transform .15s, border-color .2s
}

.nav-btn:hover {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .36);
  transform: translateY(-1px)
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 600
}

.nav-burger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: rgba(255, 255, 255, .88);
  transition: all .3s var(--ease-out)
}

.nav-burger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg)
}

.nav-burger.open span:nth-child(2) {
  opacity: 0
}

.nav-burger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg)
}

.stuck .nav-logo {
  color: var(--ink)
}

.stuck .nav-center a {
  color: var(--muted)
}

.stuck .nav-center a::after {
  background: var(--ink)
}

.stuck .nav-center a:hover,
.stuck .nav-center a.active {
  color: var(--ink)
}

.stuck .nav-available {
  color: var(--ink)
}

.stuck .nav-btn {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink)
}

.stuck .nav-btn:hover {
  background: var(--accent);
  border-color: var(--accent)
}

.stuck .nav-burger span {
  background: var(--ink)
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 75%;
  max-width: 300px;
  height: 100vh;
  background: var(--ink);
  z-index: 550;
  display: flex;
  flex-direction: column;
  padding: 72px 32px 36px;
  gap: 6px;
  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform .4s var(--ease-out), opacity .3s
}

.nav-drawer.open {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto
}

.nav-drawer a {
  font-family: var(--display);
  font-size: 36px;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .65);
  text-decoration: none;
  transition: color .2s;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  padding-bottom: 9px
}

.nav-drawer a:hover {
  color: var(--accent2)
}

.nav-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .38);
  z-index: 540;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity .3s
}

.nav-drawer-overlay.open {
  opacity: 1;
  pointer-events: all;
  visibility: visible
}

/* PAGE HERO (used on all inner pages) */
.page-hero {
  background: var(--ink);
  padding: 130px 52px 60px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, .06)
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: .35
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px
}

.page-hero-eyebrow {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .28);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px
}

.page-hero-eyebrow::before {
  content: '';
  width: 20px;
  height: 1px;
  background: rgba(255, 255, 255, .28)
}

.page-hero-title {
  font-family: var(--display);
  font-size: clamp(48px, 7vw, 88px);
  line-height: .9;
  letter-spacing: .04em;
  color: var(--bg);
  margin-bottom: 18px
}

.page-hero-title span {
  color: var(--accent)
}

.page-hero-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, .38);
  line-height: 1.7;
  max-width: 520px
}

/* SHARED SECTION STYLES */
.section-wrap {
  padding: 64px 52px;
  border-bottom: 1px solid var(--border)
}

.sec-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px
}

.sec-eyebrow::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--muted)
}

.sec-title {
  font-family: var(--display);
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: .92;
  letter-spacing: .04em
}

.sec-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px
}

.sec-header-right {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .09em;
  text-transform: uppercase;
  text-align: right;
  max-width: 220px;
  line-height: 1.55
}

/* BREADCRUMB */
.breadcrumb {
  padding: 14px 52px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted)
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color .2s
}

.breadcrumb a:hover {
  color: var(--ink)
}

.breadcrumb span {
  color: var(--border)
}

/* PILLS / TAGS */
.tag {
  font-size: 10px;
  padding: 3px 9px;
  border: 1px solid var(--border);
  border-radius: 1px;
  color: var(--muted);
  background: var(--bg);
  letter-spacing: .03em
}

.tag-dark {
  font-size: 10px;
  padding: 3px 9px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 1px;
  color: rgba(255, 255, 255, .5);
  letter-spacing: .03em
}

/* BUTTONS */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--ink);
  color: var(--bg);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 9px 20px;
  border-radius: 2px;
  text-decoration: none;
  transition: background .2s, transform .2s var(--ease-out)
}

.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-2px)
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--border);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 9px 20px;
  border-radius: 2px;
  text-decoration: none;
  transition: border-color .2s, transform .2s var(--ease-out)
}

.btn-outline:hover {
  border-color: var(--ink);
  transform: translateY(-2px)
}

/* FOOTER */
footer {
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, .05);
  padding: 24px 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px
}

.foot-logo {
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .45)
}

.foot-copy {
  font-size: 10px;
  color: rgba(255, 255, 255, .18)
}

.foot-links {
  display: flex;
  gap: 18px
}

.foot-links a {
  font-size: 10px;
  color: rgba(255, 255, 255, .18);
  text-decoration: none;
  transition: color .2s
}

.foot-links a:hover {
  color: rgba(255, 255, 255, .65)
}

/* SCROLL REVEAL */
.sr {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out)
}

.sr.in {
  opacity: 1;
  transform: none
}

/* MARQUEE */
.mq-wrap {
  overflow: hidden;
  background: var(--ink);
  padding: 12px 0
}

.mq-track {
  display: flex;
  width: max-content;
  animation: mq 22s linear infinite
}

.mq-track span {
  font-family: var(--display);
  font-size: clamp(13px, 1.8vw, 18px);
  color: rgba(255, 255, 255, 1);
  padding: 0 16px;
  white-space: nowrap;
  letter-spacing: .07em;
  font-weight: 700
}

.mq-track span.hi {
  color: var(--accent2);
  opacity: .92
}

@keyframes mq {
  0% {
    transform: translateX(0)
  }

  100% {
    transform: translateX(-50%)
  }
}

/* RESPONSIVE */
@media(max-width:1024px) {

  nav,
  nav.stuck {
    padding: 14px 24px
  }

  .nav-center,
  .nav-available {
    display: none
  }

  .nav-burger {
    display: flex
  }

  .section-wrap,
  .page-hero,
  .breadcrumb {
    padding-left: 24px;
    padding-right: 24px
  }

  footer {
    padding: 20px 24px
  }
}

@media(min-width:1025px) {

  .nav-drawer,
  .nav-drawer-overlay {
    display: none !important
  }
}