/* Funoon Kadah — homepage styles matched to funoonkadah.art */

:root {
  --text: #171717;
  --text-muted: #4e4e4e;
  --white: #ffffff;
  --bg: #ffffff;
  --bg-soft: #f7f6f2;
  --teal: #10383a;
  --teal-deep: #0b2e2e;
  --gold: #daa112;
  --olive: #666e51;
  --hover-lilac: #bdbdff;
  --footer-bg: #0a0a0a;
  --max: 1480px;
  --page-gutter: 1rem;
  --font-display: "Familjen Grotesk", system-ui, sans-serif;
  --font-body: "DM Sans", Helvetica, Arial, sans-serif;
  --header-h: 140px;
  --sage: #809276;
  --sticky-top: 145px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

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

/* Header sticky only while hero is in view */
.hero-sticky-scope {
  position: relative;
}

.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  overflow: visible;
  background:
    center / cover no-repeat
    url("../images/nav-bg.avif");
  border-bottom: 1px solid rgba(218, 161, 18, 0.28);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.header-inner {
  width: min(100% - (var(--page-gutter) * 2), var(--max));
  margin-inline: auto;
  height: var(--header-h);
  min-height: var(--header-h);
  max-height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  overflow: visible;
}

.logo {
  justify-self: start;
  z-index: 2;
  display: flex;
  align-items: center;
  height: var(--header-h);
  overflow: visible;
}

.logo img {
  height: 130px;
  width: auto;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 2px 6px rgba(255, 255, 255, 0.55)) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}

.nav-desktop {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 2.2vw, 2rem);
  justify-self: center;
  grid-column: 2;
}

.primary-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 2.2vw, 2rem);
}

.primary-menu li {
  margin: 0;
  padding: 0;
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 2;
  grid-column: 3;
  height: var(--header-h);
  overflow: visible;
}

.signup-icon {
  width: 130px;
  height: 130px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.28));
}

.header-signup {
  flex-shrink: 0;
}

.nav-desktop a {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffffff;
  position: relative;
  padding: 0.35rem 0;
  transition: color 0.2s ease, opacity 0.2s ease;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.45),
    0 0 12px rgba(0, 0, 0, 0.25);
}

.nav-desktop a:hover,
.nav-desktop a.active,
.nav-desktop .current-menu-item > a,
.nav-desktop .current_page_item > a {
  color: #ffffff;
  opacity: 0.95;
}

.nav-desktop a.active::after,
.nav-desktop a:hover::after,
.nav-desktop .current-menu-item > a::after,
.nav-desktop .current_page_item > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  padding: 10px;
  cursor: pointer;
  justify-self: end;
  grid-column: 3;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  transition: 0.2s ease;
}

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 99;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  padding: 2rem;
  gap: 1.25rem;
}

.mobile-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-menu-list li {
  margin: 0;
  padding: 0;
}

.mobile-menu[hidden] {
  display: none !important;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
}

body.menu-open {
  overflow: hidden;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-radius: 999px;
  padding: 0.2rem 0.3rem 0.2rem 1.35rem;
  min-height: 48px;
  font-size: 15px;
  line-height: 1.4;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.btn-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.btn-icon svg {
  display: block;
  fill: currentColor;
}

.btn-signup {
  padding: 0.65rem 1.6rem;
  border: 3px solid var(--gold);
  color: var(--text);
  background:
    no-repeat center / cover
    url("../images/btn-bg.jpg");
  box-shadow: 0 0 10px -67px black;
}

.btn-signup:hover {
  background: var(--hover-lilac);
}

.btn-signin {
  border: 1px solid var(--teal);
  color: var(--text);
  background:
    no-repeat 11% 79% / cover
    url("../images/btn-bg.jpg");
  box-shadow: 0 0 3px 1px black;
  padding-left: 1.4rem;
  padding-right: 0.35rem;
}

.btn-signin .btn-icon {
  background: transparent;
}

.btn-signin:hover {
  background: var(--hover-lilac);
}

.btn-contact {
  background: var(--olive);
  color: var(--text);
  border: 0;
  padding-left: 1.4rem;
  padding-right: 0.35rem;
}

.btn-contact:hover {
  background: var(--text);
  color: var(--white);
}

.btn-contact:hover .btn-icon svg {
  fill: var(--white);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: max(680px, 100svh);
  overflow: hidden;
  color: var(--text);
  margin-top: calc(var(--header-h) * -1);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% 49%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(229, 184, 46, 0.55) 0%, rgba(229, 184, 46, 0.18) 42%, rgba(255, 255, 255, 0.08) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(16, 56, 58, 0.12) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - (var(--page-gutter) * 2), var(--max));
  margin-inline: auto;
  min-height: inherit;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 1.5rem) 0 4rem;
}

.float-icon {
  position: absolute;
  width: 130px;
  height: 130px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.18));
  animation: floaty 5.5s ease-in-out infinite;
  z-index: 3;
  pointer-events: none;
}

.float-icon--left {
  top: 22%;
  left: 0;
  animation-delay: -1s;
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.hero-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1.75rem;
  max-width: 720px;
  padding: 2rem 0;
}

.hero-main h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #ffffff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.hero-social {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.hero-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #000000;
  color: var(--gold);
  border: 1.5px solid var(--gold);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hero-social a:hover {
  transform: translateY(-2px);
  background: var(--gold);
  color: #000000;
  border-color: #000000;
}

.hero-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ========== Post-hero sections (matched to funoonkadah.art) ========== */

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Story sticky stack + dandelion BG */
.story-stack-section {
  position: relative;
  padding: 110px 0 6rem;
  overflow: clip;
}

.story-stack-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.story-stack-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.story-stack {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 6vh, 4.5rem);
}

.story-heading {
  margin: 0 0 0.5rem;
  color: #ffffff;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(2rem, 4.2vw, 2.75rem);
  letter-spacing: -0.04em;
  line-height: 1.2;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.stack-card {
  border-radius: 22px;
  padding: clamp(2.25rem, 4.5vw, 3.5rem);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  min-height: min(72vh, 620px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sticky-card {
  position: sticky;
  top: var(--sticky-top);
}

.stack-card h3 {
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.stack-card p {
  margin: 0;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.6;
  text-align: justify;
}

.stack-card--teal {
  background: #10383a;
  color: #ffffff;
  z-index: 1;
}

.stack-card--olive {
  background: #666e51;
  color: #171717;
  z-index: 2;
}

.stack-card--gold {
  background: #daa112;
  color: #ffffff;
  z-index: 3;
}

.stack-card--sage {
  background: #809276;
  color: #171717;
  z-index: 4;
}

/* Visual break */
.break-section {
  position: relative;
  min-height: clamp(320px, 48vw, 560px);
  overflow: hidden;
}

.break-bg {
  position: absolute;
  inset: 0;
}

.break-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.break-ornament {
  position: absolute;
  width: 100px;
  height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.45));
  z-index: 2;
  will-change: transform;
}

.break-ornament--a {
  left: 18%;
  top: 28%;
}

.break-ornament--b {
  right: 16%;
  bottom: 22%;
}

/* Always connected */
.connected-section {
  position: relative;
  padding: clamp(4rem, 9vw, 7rem) 0;
  overflow: hidden;
}

.connected-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.connected-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.connected-inner {
  position: relative;
  z-index: 1;
}

.connected-title {
  margin: 0 0 clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  letter-spacing: 0.08em;
  color: #171717;
}

.connected-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.75rem);
}

.connected-card {
  text-align: center;
  max-width: 320px;
  margin-inline: auto;
  color: #171717;
}

.connected-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  color: var(--teal);
}

.connected-icon svg {
  width: 100%;
  height: 100%;
}

.connected-card h3 {
  margin: 0 0 0.85rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.connected-card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: #171717;
}

/* CTA — radial brand gradients */
.cta-section {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #171717;
  background:
    radial-gradient(circle at 94.35% 89.62%, rgba(128, 146, 118, 0.81) 0%, transparent 40%),
    radial-gradient(circle at 6.5% 88.04%, rgba(128, 146, 118, 0.91) 0%, transparent 64%),
    radial-gradient(circle at 6.17% 12.62%, #daa112 0%, transparent 83%),
    radial-gradient(circle at 93.69% 11.43%, #10383a 0%, transparent 70%),
    radial-gradient(circle at 48.9% 49.52%, #ffffff 0%, #ffffff 100%);
}

.cta-inner {
  position: relative;
  z-index: 1;
  padding: 5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.cta-ornament {
  position: absolute;
  width: 110px;
  height: 110px;
  left: 8%;
  top: 18%;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.2));
  will-change: transform;
}

.cta-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 520px;
}

.cta-inner h2 {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  letter-spacing: -0.04em;
  color: #171717;
}

.cta-inner p {
  margin: 0 0 0.5rem;
  max-width: 42ch;
  font-size: 1.05rem;
  color: #171717;
  opacity: 0.92;
}

/* Footer */
.site-footer {
  background: #daa112;
  color: #e8e8e8;
  padding: 0;
}

.footer-shell {
  background: transparent;
  border-radius: 0;
  margin-top: 0;
  padding: 0;
}

.footer-yellow {
  width: 100%;
  background: #daa112;
  padding: 3rem 0 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 2rem 1.5rem;
  background: transparent;
  border-radius: 0;
  padding: 0;
  color: #fff;
}

.footer-brand img {
  height: 96px;
  width: auto;
  margin-bottom: 1.5rem;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
  padding: 0;
  will-change: transform;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.event-form label {
  display: block;
  margin-bottom: 0.65rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #10383a;
}

.event-row {
  display: flex;
  border: 1px solid rgba(16, 56, 58, 0.35);
  border-radius: 999px;
  overflow: hidden;
  max-width: 280px;
  background: rgba(255, 255, 255, 0.35);
}

.event-row input {
  flex: 1;
  border: 0;
  background: transparent;
  color: #10383a;
  padding: 0.7rem 1rem;
  outline: none;
  min-width: 0;
}

.event-row input::placeholder {
  color: rgba(16, 56, 58, 0.55);
}

.event-row button {
  border: 0;
  background: #10383a;
  color: #fff;
  padding: 0.7rem 1.1rem;
  cursor: pointer;
  font-weight: 600;
}

.footer-col h4 {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: #fff;
}

.footer-col a,
.footer-col p {
  display: block;
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #ffffff;
}

.footer-col a:hover {
  opacity: 0.85;
}

.footer-bottom {
  width: 100%;
  margin: 0;
  padding: 1.25rem 1.5rem;
  background: rgba(16, 56, 58, 0.74);
  font-size: 0.85rem;
  color: #ffffff;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  width: min(100% - 0rem, var(--max));
  margin-inline: auto;
}

/* Responsive */
@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .nav-desktop {
    display: none;
  }

  .header-actions {
    display: none;
  }

  .mobile-signup {
    display: flex;
    margin-top: 0.5rem;
  }

  .menu-toggle {
    display: block;
  }

  .hero-content {
    justify-content: center;
    text-align: center;
    padding-top: 4.5rem;
  }

  .hero-main {
    max-width: none;
    align-items: center;
  }

  .hero-social {
    justify-content: center;
  }

  .float-icon--left {
    top: auto;
    bottom: 12%;
    left: 1rem;
  }

  .connected-grid {
    grid-template-columns: 1fr;
  }

  .stack-card {
    min-height: min(68vh, 520px);
    padding: 2rem 1.35rem;
  }

  .story-stack {
    gap: 2rem;
  }

  .sticky-card {
    position: relative;
    top: auto;
  }

  .cta-ornament {
    position: relative;
    left: auto;
    top: auto;
    margin-bottom: 0.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 100px;
  }

  .logo img {
    height: 100px;
  }

  .signup-icon {
    width: 100px;
    height: 100px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .float-icon {
    width: 100px;
    height: 100px;
  }

  .hero-content {
    padding-top: 1.25rem;
  }

  .break-section {
    max-height: 280px;
    min-height: 220px;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  .parallax {
    transform: none !important;
  }
}
