/* Fine Arts Nepal — brand tokens ported from finearts-next */

:root {
  --background: #f8f5ee;
  --foreground: #1a1a2e;
  --primary: #162b4f;
  --muted-foreground: #6b7280;
  --border: #e2ddd6;

  --navy: #162b4f;
  --navy-light: #1e3a6a;
  --navy-dark: #0e1d35;
  --gold: #c89b3c;
  --gold-light: #e5c06d;
  --gold-dark: #9a7428;
  --ivory: #f8f5ee;
  --sand: #eae1d2;
  --charcoal: #222222;
  --white: #ffffff;

  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-body: Inter, "Helvetica Neue", sans-serif;

  --header-h: 5.25rem;
  --header-pad-top: 0.75rem;
  --max-w: 80rem;
  --px: 1.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--foreground);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
}

p {
  margin: 0;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--sand);
}

::-webkit-scrollbar-thumb {
  background: var(--navy);
  border-radius: 3px;
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow--boxed {
  border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
  padding: 0.25rem 0.75rem;
  margin-bottom: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.875rem 2rem;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn--primary {
  background: var(--navy);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--navy-light);
}

.btn--ghost {
  border: 1px solid color-mix(in srgb, var(--sand) 40%, transparent);
  color: var(--sand);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--sand);
  background: color-mix(in srgb, var(--sand) 10%, transparent);
}

.btn--outline-gold {
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
}

.btn--outline-gold:hover {
  background: var(--gold);
  color: var(--white);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

/* Header — overlays hero photo, no fill */
.site-header {
  position: absolute;
  inset-inline: 0;
  top: 0;
  z-index: 40;
  height: auto;
  padding-top: max(var(--header-pad-top), env(safe-area-inset-top, 0px));
  padding-bottom: 0.75rem;
  background: none;
  background-color: transparent;
  box-shadow: none;
  border: 0;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.brand__logo {
  display: block;
  height: 4.25rem;
  width: auto;
  object-fit: contain;
}

.brand__logo--footer {
  height: 3.5rem;
}

.brand__name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--sand);
}

.brand__place {
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.2rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: color-mix(in srgb, var(--sand) 85%, transparent);
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--gold);
}

/* Hero — full-bleed photography */
.hero {
  position: relative;
  width: 100%;
  min-height: 100svh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: transparent;
}

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

.hero__media img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center right;
  will-change: transform;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    color-mix(in srgb, var(--navy-dark) 72%, transparent) 0%,
    color-mix(in srgb, var(--navy) 45%, transparent) 42%,
    transparent 78%
  );
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: var(--header-h);
}

.hero__copy {
  max-width: 36rem;
}

.hero__brand {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  color: var(--sand);
  letter-spacing: 0.01em;
  line-height: 0.95;
  margin-bottom: 0.35rem;
}

.hero__place {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.hero__promise {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  color: color-mix(in srgb, var(--sand) 82%, transparent);
  line-height: 1.65;
  max-width: 28rem;
  margin-bottom: 2rem;
}

/* Craft */
.craft {
  padding-block: 5rem;
  background: var(--ivory);
}

.craft__intro {
  max-width: 36rem;
  margin-bottom: 3rem;
}

.craft__intro h2 {
  font-size: clamp(2.25rem, 4vw, 3rem);
  color: var(--charcoal);
  margin-top: 0.75rem;
}

.craft__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .craft__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.craft__item {
  display: block;
}

.craft__figure {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  margin: 0 0 1.25rem;
  background: var(--white);
}

.craft__figure--product {
  background: linear-gradient(180deg, #fbfaf7 0%, #f0ebe3 100%);
}

.craft__figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 1.25rem;
  transition: transform 0.7s ease;
}

.craft__item:hover .craft__figure img {
  transform: scale(1.04);
}

.craft__figure::after {
  content: none;
}

.craft__label {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.35rem;
}

.craft__text {
  font-size: 0.9375rem;
  color: color-mix(in srgb, var(--charcoal) 75%, transparent);
  line-height: 1.6;
}

/* Visit */
.visit {
  padding-block: 5rem;
  background: var(--sand);
}

.visit__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .visit__grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
}

.visit__figure {
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--white);
}

.visit__figure--product {
  background: linear-gradient(180deg, #fbfaf7 0%, #ebe4d8 100%);
}

.visit__figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 1.5rem;
}

.visit__copy h2 {
  font-size: clamp(2.25rem, 4vw, 3rem);
  color: var(--charcoal);
  margin-top: 0.75rem;
  margin-bottom: 1.5rem;
}

.visit__copy p {
  font-size: 1rem;
  color: color-mix(in srgb, var(--charcoal) 75%, transparent);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.visit__meta {
  margin-top: 2rem;
  margin-bottom: 2rem;
  display: grid;
  gap: 0.85rem;
}

.visit__meta a,
.visit__meta span {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--charcoal);
  transition: color 0.2s ease;
}

.visit__meta a:hover {
  color: var(--gold);
}

.visit__meta svg {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.15rem;
  color: var(--gold);
}

/* Contact / Footer */
.contact {
  background: var(--navy);
  color: color-mix(in srgb, var(--white) 80%, transparent);
  padding-block: 5rem 0;
}

.contact__inner {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
  padding-bottom: 4rem;
}

.contact__inner .eyebrow {
  margin-bottom: 0.75rem;
}

.contact__inner h2 {
  font-size: clamp(2.25rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 1rem;
}

.contact__inner > p {
  font-size: 1rem;
  color: color-mix(in srgb, var(--white) 70%, transparent);
  margin-bottom: 2rem;
  line-height: 1.65;
}

.contact__actions {
  justify-content: center;
  margin-bottom: 2.5rem;
}

.contact .btn--primary {
  background: var(--gold);
  color: var(--white);
}

.contact .btn--primary:hover {
  background: var(--gold-dark);
}

.contact .btn--ghost {
  border-color: color-mix(in srgb, var(--white) 25%, transparent);
  color: var(--white);
}

.contact .btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: transparent;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.socials a {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid color-mix(in srgb, var(--white) 20%, transparent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: color-mix(in srgb, var(--white) 80%, transparent);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.socials a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.socials svg {
  width: 1rem;
  height: 1rem;
}

.site-footer {
  border-top: 1px solid color-mix(in srgb, var(--white) 10%, transparent);
  padding-block: 1.5rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer .brand__name {
  font-size: 1.25rem;
  color: var(--white);
}

.site-footer__copy {
  font-size: 0.8125rem;
  color: color-mix(in srgb, var(--white) 55%, transparent);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.8125rem;
}

.site-footer__links a {
  color: color-mix(in srgb, var(--white) 70%, transparent);
  transition: color 0.2s ease;
}

.site-footer__links a:hover {
  color: var(--gold);
}

/* Reveal helpers for GSAP */
.reveal,
.hero__brand,
.hero__place,
.hero__promise,
.hero .btn-row,
.eyebrow--boxed {
  will-change: transform, opacity;
}

@media (max-width: 900px) {
  .hero__media img {
    object-position: 70% center;
  }

  /* Keep photo visible at the top; darken mainly behind copy */
  .hero__overlay {
    background: linear-gradient(
      to bottom,
      color-mix(in srgb, var(--navy-dark) 28%, transparent) 0%,
      color-mix(in srgb, var(--navy) 45%, transparent) 38%,
      color-mix(in srgb, var(--navy-dark) 78%, transparent) 100%
    );
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 4.75rem;
    --header-pad-top: 0.875rem;
  }

  .site-nav {
    gap: 1rem;
  }

  .site-nav a:not(.site-nav__primary) {
    display: none;
  }

  .brand__logo {
    height: 3.5rem;
  }

  .hero {
    height: auto;
    min-height: 100svh;
  }

  .hero__content {
    padding-block: calc(var(--header-h) + 1.75rem) 4rem;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
  }

  .site-footer__copy {
    order: 3;
  }

  .site-footer__links {
    width: 100%;
    justify-content: center;
    gap: 2rem;
  }

  .craft,
  .visit,
  .contact {
    padding-block: 3.5rem;
  }

  .contact {
    padding-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .craft__figure img {
    transition: none;
  }

  .craft__item:hover .craft__figure img {
    transform: none;
  }
}
