/* ==========================================================================
   ANAR HOSPITALITY SERVICES — Design System
   Dark & dramatic: charcoal, ivory, brass.
   ========================================================================== */

:root {
  --ink:        #0E0D0B;   /* page background */
  --ink-2:      #161412;   /* raised surfaces */
  --ink-3:      #1F1C18;   /* cards / tiles */
  --ivory:      #F5EFE6;   /* primary text */
  --ivory-dim:  #B8B0A3;   /* secondary text */
  --gold:       #C9A961;   /* brass accent */
  --gold-soft:  #E4CE9A;   /* hover / highlights */
  --line:       rgba(201, 169, 97, 0.25);

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

  --max-w: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.section { padding-block: clamp(4.5rem, 10vw, 8.5rem); }

/* ---------- shared type ---------- */

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.15;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section__title em,
.hero__title em,
.about__statement em {
  font-style: italic;
  color: var(--gold-soft);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 1rem 2.2rem;
  border: 1px solid var(--gold);
  transition: all 0.4s var(--ease);
  cursor: pointer;
}

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

.btn--ghost { color: var(--ivory); border-color: rgba(245, 239, 230, 0.35); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-soft); }

.btn--full { width: 100%; }

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-block: 1.4rem;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.nav--scrolled {
  background: rgba(14, 13, 11, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding-block: 0.9rem;
  box-shadow: 0 1px 0 var(--line);
}

.nav__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand { display: flex; align-items: center; gap: 0.75rem; }

.nav__brand-mark {
  width: 2.6rem;
  height: 2.6rem;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}

.nav__brand-text {
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.nav__brand-text em { font-style: normal; color: var(--gold); }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.5vw, 2.4rem);
}

.nav__links a:not(.nav__cta) {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  position: relative;
  padding-bottom: 3px;
  transition: color 0.3s;
}
.nav__links a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.4s var(--ease);
}
.nav__links a:not(.nav__cta):hover { color: var(--ivory); }
.nav__links a:not(.nav__cta):hover::after { width: 100%; }

.nav__cta {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 0.6rem 1.4rem;
  transition: all 0.35s var(--ease);
}
.nav__cta:hover { background: var(--gold); color: var(--ink); }

.nav__toggle {
  display: none;
  background: none;
  border: none;
  width: 2rem;
  height: 1.4rem;
  position: relative;
  cursor: pointer;
}
.nav__toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--ivory);
  transition: all 0.35s var(--ease);
}
.nav__toggle span:first-child { top: 4px; }
.nav__toggle span:last-child { bottom: 4px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 50%; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { bottom: auto; top: 50%; transform: rotate(-45deg); }

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
}

/* Placeholder hero backdrop — swap for a real tablescape photo:
   background-image: url("../assets/images/hero.jpg"); */
.hero__bg {
  position: absolute;
  inset: -5%;
  background:
    radial-gradient(ellipse 60% 45% at 50% 38%, rgba(201, 169, 97, 0.22), transparent 65%),
    radial-gradient(ellipse 90% 60% at 50% 110%, rgba(201, 169, 97, 0.10), transparent 60%),
    linear-gradient(180deg, #14110D 0%, var(--ink) 100%);
  background-size: cover;
  background-position: center;
  animation: kenburns 24s ease-in-out infinite alternate;
}

@keyframes kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}

.hero__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 120% 90% at 50% 50%, transparent 40%, rgba(14, 13, 11, 0.75) 100%);
}

.hero__content { position: relative; z-index: 2; padding-inline: 1.5rem; }

.hero__mark {
  width: clamp(64px, 8vw, 96px);
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.5));
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.8rem, 8vw, 5.8rem);
  line-height: 1.08;
  margin-bottom: 1.5rem;
}

.hero__sub {
  color: var(--ivory-dim);
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  letter-spacing: 0.04em;
  margin-bottom: 2.75rem;
}

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

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  z-index: 2;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}

.hero__scroll-line {
  width: 1px;
  height: 3.2rem;
  background: var(--gold);
  transform-origin: top;
  animation: scrollpulse 2.2s var(--ease) infinite;
}

@keyframes scrollpulse {
  0%   { transform: scaleY(0); }
  50%  { transform: scaleY(1); }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ==========================================================================
   ABOUT
   ========================================================================== */

.about { background: var(--ink-2); }

.about__statement {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  line-height: 1.4;
  max-width: 54rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.about__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.5rem, 4vw, 4rem);
  color: var(--ivory-dim);
  max-width: 58rem;
}

/* ==========================================================================
   COLLECTIONS
   ========================================================================== */

.collections__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
}

.tile { grid-column: span 6; } /* mobile: stacked full-width */

/* Editorial layout: 4+2 / 3+3 / full-width finale */
@media (min-width: 780px) {
  .tile[data-collection="crockery"]   { grid-column: span 4; }
  .tile[data-collection="cutlery"]    { grid-column: span 2; }
  .tile[data-collection="glassware"]  { grid-column: span 3; }
  .tile[data-collection="buffetware"] { grid-column: span 3; }
  .tile[data-collection="setup"]      { grid-column: span 6; min-height: clamp(300px, 30vw, 380px); }
}

.tile {
  position: relative;
  min-height: clamp(320px, 42vw, 440px);
  overflow: hidden;
  cursor: pointer;
  background: var(--ink-3);
  border: 1px solid rgba(201, 169, 97, 0.12);
}

.tile__media {
  position: absolute;
  inset: -14px; /* overscan so per-tile blur never shows a transparent fringe */
  background-size: cover;
  background-position: center;
  transition: transform 1.2s var(--ease), filter 0.6s var(--ease);
  filter: brightness(var(--tile-bright, 0.8)) saturate(0.95) blur(var(--tile-blur, 0px));
}

.tile:hover .tile__media {
  transform: scale(1.05);
  --tile-bright: 0.95;
}

/* Tile cover photos (from the equipment brochure).
   Brochure photos are modest resolution, so instead of stretching them
   full-bleed we anchor each photo at near-native scale on the tile's right,
   fading into charcoal on the left where the text sits. The cutlery shot is
   large enough to run full-bleed. */
.tile__media--crockery,
.tile__media--glassware,
.tile__media--buffetware,
.tile__media--setup {
  background-repeat: no-repeat;
  background-size: auto, auto 105%;
  background-position: 0 0, right center;
  background-color: #14110D;
  --tile-blur: 1px;
}

.tile__media--crockery   { background-image: linear-gradient(78deg, #14110D 30%, rgba(20, 17, 13, 0.55) 62%, rgba(20, 17, 13, 0.2) 100%), url("../assets/images/crockery-blue-cup-saucer.jpg"); }
.tile__media--cutlery    { background-image: linear-gradient(200deg, rgba(35, 32, 28, 0.5) 0%, rgba(18, 17, 16, 0.5) 100%), url("../assets/images/cutlery-ss-set.jpg"); }
.tile__media--glassware  { background-image: linear-gradient(78deg, #14110D 28%, rgba(20, 17, 13, 0.5) 60%, rgba(20, 17, 13, 0.18) 100%), url("../assets/images/glassware-whisky.jpg"); }
.tile__media--buffetware { background-image: linear-gradient(78deg, #14110D 28%, rgba(20, 17, 13, 0.5) 60%, rgba(20, 17, 13, 0.18) 100%), url("../assets/images/buffetware-chafing-dish-5l-skyra.jpg"); }
.tile__media--setup      { background-image: linear-gradient(78deg, #14110D 35%, rgba(20, 17, 13, 0.5) 68%, rgba(20, 17, 13, 0.15) 100%), url("../assets/images/setup-riser-marble-checkered.jpg"); }

.tile__overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: linear-gradient(180deg, transparent 0%, rgba(10, 9, 7, 0.92) 70%);
  z-index: 2;
}

.tile__eyebrow {
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.tile__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  margin-bottom: 0.5rem;
}

.tile__desc {
  color: var(--ivory-dim);
  font-size: 0.9rem;
  max-width: 34rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.6s var(--ease), opacity 0.6s var(--ease), margin 0.6s var(--ease);
}

.tile:hover .tile__desc,
.tile:focus-within .tile__desc {
  max-height: 8rem;
  opacity: 1;
  margin-bottom: 0.9rem;
}

.tile__cta {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 3px;
  transition: color 0.3s, border-color 0.3s;
}
.tile:hover .tile__cta { color: var(--gold-soft); border-color: var(--gold-soft); }

/* ==========================================================================
   WHY ANAR
   ========================================================================== */

.why { background: var(--ink-2); }

.why__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}

.why__item {
  border: 1px solid var(--line);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: rgba(14, 13, 11, 0.5);
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.why__item:hover { border-color: var(--gold); transform: translateY(-4px); }

.why__num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 1.25rem;
}

.why__item h3 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.why__item p { color: var(--ivory-dim); font-size: 0.92rem; }

/* ==========================================================================
   OCCASIONS
   ========================================================================== */

.occasions { text-align: center; }
.occasions .eyebrow { text-align: center; }

.occasions__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.occasions__badge {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  border: 1px solid var(--line);
  padding: 0.85rem 1.6rem;
  transition: all 0.35s var(--ease);
}
.occasions__badge:hover { color: var(--gold-soft); border-color: var(--gold); }

.occasions__quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  line-height: 1.4;
  max-width: 46rem;
  margin-inline: auto;
  color: var(--gold-soft);
}

.occasions__quote cite {
  display: block;
  margin-top: 1.5rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}

/* ==========================================================================
   ENQUIRY
   ========================================================================== */

.enquire {
  background:
    radial-gradient(ellipse 70% 50% at 85% 10%, rgba(201, 169, 97, 0.08), transparent 60%),
    var(--ink-2);
}

.enquire__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
}

@media (min-width: 900px) {
  .enquire__grid { grid-template-columns: 5fr 7fr; align-items: start; }
}

.enquire__intro p { color: var(--ivory-dim); max-width: 26rem; }

.enquire__contacts {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2.5rem;
}

.enquire__contact {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--ivory);
  width: fit-content;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: all 0.3s;
}
.enquire__contact:hover { color: var(--gold-soft); border-color: var(--gold); }

.enquire__contact--wa {
  border: 1px solid var(--gold);
  padding: 0.85rem 1.6rem;
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.enquire__contact--wa:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }

/* ---------- form ---------- */

.enquire__form {
  background: rgba(14, 13, 11, 0.6);
  border: 1px solid var(--line);
  padding: clamp(1.75rem, 4vw, 3rem);
}

.form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.form__field { margin-bottom: 1.4rem; }

.form__field label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  margin-bottom: 0.5rem;
}

.form__field input,
.form__field select,
.form__field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(245, 239, 230, 0.25);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  padding: 0.65rem 0.1rem;
  transition: border-color 0.3s;
  border-radius: 0;
}

.form__field select { cursor: pointer; }
.form__field select option { background: var(--ink-2); color: var(--ivory); }

.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  outline: none;
  border-bottom-color: var(--gold);
}

.form__field input::placeholder,
.form__field textarea::placeholder { color: rgba(184, 176, 163, 0.5); }

.form__field input.field--error,
.form__field select.field--error { border-bottom-color: #C96161; }

/* Dark-theme native pickers (date input) */
.form__field input[type="date"] { color-scheme: dark; }

.form__status {
  margin-top: 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--gold-soft);
  min-height: 1.2em;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  border-top: 1px solid var(--line);
  padding-block: 3rem;
}

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

.footer__brand { display: flex; align-items: center; gap: 1rem; }
.footer__brand p { font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.5; }
.footer__brand small { color: var(--ivory-dim); text-transform: none; letter-spacing: 0.05em; }

.footer__meta { font-size: 0.85rem; color: var(--ivory-dim); }

.footer__copy { font-size: 0.75rem; color: rgba(184, 176, 163, 0.6); }

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 9, 7, 0.96);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}

.lightbox--open { opacity: 1; visibility: visible; }

.lightbox__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 2rem;
  max-height: 100vh;
}

.lightbox__media {
  width: min(72vw, 760px);
  height: min(60vh, 560px);
  background-size: contain;      /* product photos vary in size — never crop or over-stretch */
  background-repeat: no-repeat;
  background-position: center;
  border: 1px solid var(--line);
  background-color: var(--ink-3);
}

.lightbox__caption {
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}

.lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--ivory);
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.3s, transform 0.3s;
  z-index: 2;
}
.lightbox__close:hover { color: var(--gold); transform: rotate(90deg); }

.lightbox__arrow {
  background: none;
  border: none;
  color: var(--ivory-dim);
  font-size: 3.2rem;
  font-family: var(--font-display);
  cursor: pointer;
  padding: 1rem 1.5rem;
  transition: color 0.3s;
}
.lightbox__arrow:hover { color: var(--gold); }

/* ==========================================================================
   REVEAL ANIMATION
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

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

/* JS adds .no-anim to <html> when ?noanim is in the URL (testing) */
html.no-anim { scroll-behavior: auto; }
html.no-anim .reveal { opacity: 1; transform: none; transition: none; }
html.no-anim .hero__bg { animation: none; }
html.no-anim .hero { min-height: 760px; } /* fixed hero height for full-page captures */

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__bg { animation: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   MOBILE NAV
   ========================================================================== */

@media (max-width: 820px) {
  .nav__toggle { display: block; }

  .nav__links {
    position: fixed;
    inset: 0;
    background: rgba(14, 13, 11, 0.98);
    flex-direction: column;
    justify-content: center;
    gap: 2.2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0.4s;
    z-index: -1;
  }

  .nav__links--open {
    opacity: 1;
    visibility: visible;
    z-index: 99;
  }

  .nav__links a:not(.nav__cta) { font-size: 1rem; }

  .lightbox__arrow { font-size: 2.2rem; padding: 0.75rem; }
  .lightbox__media { width: 86vw; height: 52vh; }
  .lightbox__close { right: 1.25rem; }
}
