@font-face {
  font-family: Fraunces;
  src: url("fonts/fraunces-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("fonts/inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 650;
  font-display: swap;
}

:root {
  /* Acuan: docs/DESIGN-new-uwais-telur.md */
  --paper: #f7f4eb;
  --surface: #fff;
  --ink: #26332d;
  --forest: #365648;
  --forest-hover: #294537;
  --sage: #b6cbbd;
  --amber: #cba35c;
  --brown: #754e1a;
  --muted: #52645a;
  --border: #d5ded5;
  --night: #201e1a;
  --night-panel: #2a2722;
  --night-band: #302b24;
  --night-line: #544b3e;
  --night-muted: #d5c9b6;
  --page: var(--paper);
  --panel: var(--surface);
  --text: var(--ink);
  --title: var(--forest);
  --emphasis: var(--brown);
  --action: var(--forest);
  --action-hover: var(--forest-hover);
  --action-text: var(--paper);
  --brand-band: var(--forest);
  --soft-band: var(--sage);
  --soft-band-text: var(--ink);
  --faq-active: var(--soft-band);
  --location-bg: var(--forest);
  --location-text: var(--paper);
  --featured-label: var(--sage);
  --control-border: var(--muted);
  --logo-wordmark: transparent;
  --radius-control: 0.5rem;
  --radius-panel: 0.75rem;
  --gutter: clamp(1rem, 5vw, 4rem);
  --section-space: clamp(3rem, 7vw, 6rem);
  --display: Fraunces, Georgia, serif;
  --body: Inter, system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { color-scheme: light; scroll-padding-block-end: 5rem; }
html[data-theme="dark"] { color-scheme: dark; }

@supports (color: light-dark(white, black)) {
  :root {
    --page: light-dark(var(--paper), var(--night));
    --panel: light-dark(var(--surface), var(--night-panel));
    --text: light-dark(var(--ink), var(--paper));
    --title: light-dark(var(--forest), var(--paper));
    --emphasis: light-dark(var(--brown), var(--amber));
    --action: light-dark(var(--forest), var(--amber));
    --action-hover: light-dark(var(--forest-hover), var(--paper));
    --action-text: light-dark(var(--paper), var(--ink));
    --brand-band: light-dark(var(--forest), var(--night-band));
    --soft-band: light-dark(var(--sage), var(--night-panel));
    --soft-band-text: light-dark(var(--ink), var(--paper));
    --faq-active: light-dark(var(--sage), var(--night-band));
    --location-bg: light-dark(var(--forest), var(--night-band));
    --location-text: light-dark(var(--paper), var(--night-muted));
    --featured-label: light-dark(var(--sage), var(--amber));
    --muted: light-dark(#52645a, var(--night-muted));
    --border: light-dark(#d5ded5, var(--night-line));
    --control-border: light-dark(#52645a, #9b8d76);
    --logo-wordmark: light-dark(transparent, var(--paper));
  }
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 1rem/1.6 var(--body);
}

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

[hidden] { display: none !important; }

h1, h2, h3 {
  margin: 0;
  color: var(--title);
  font-family: var(--display);
  line-height: 1.12;
}

h1 {
  font-size: clamp(2.6rem, 6.1vw, 4.75rem);
  letter-spacing: -0.035em;
  text-wrap: balance;
}
h2 { font-size: clamp(1.9rem, 4vw, 2.5rem); letter-spacing: -0.025em; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); letter-spacing: -0.02em; }
p { margin: 0.75rem 0 0; }
figure { margin: 0; }
img { display: block; max-width: 100%; }
.icon { display: block; flex: none; width: 1.25rem; height: 1.25rem; }
a { color: inherit; text-underline-offset: 0.22em; }
address { font-style: normal; }

:focus-visible {
  outline: 2px solid var(--focus-color, var(--action));
  outline-offset: 4px;
}

.wrap {
  width: min(76rem, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.section { padding-block: var(--section-space); }

.skip-link {
  position: absolute;
  z-index: 1;
  inset: var(--gutter) auto auto var(--gutter);
  transform: translateY(calc(-100% - var(--gutter) - 0.5rem));
  background: var(--page);
  padding: 0.75rem 1rem;
}

.skip-link:focus { transform: none; }

.button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1rem;
  border: 1px solid var(--action);
  border-radius: var(--radius-control);
  background: var(--action);
  color: var(--action-text);
  font-size: 0.875rem;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
}

.button:hover { background: var(--action-hover); border-color: var(--action-hover); }
.button:active { opacity: 0.88; }
.button--outline { background: transparent; color: var(--title); }
.button--outline:hover { background: var(--action); border-color: var(--action); color: var(--action-text); }
.button--compact { padding-inline: 0.75rem; }

.location-bar {
  background: var(--location-bg);
  color: var(--location-text);
}

.location-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  column-gap: 1rem;
  padding-block: 0.375rem;
  font-size: 0.75rem;
  letter-spacing: 0.055em;
}

.location-bar__inner span + span { display: none; }

.site-header { border-bottom: 1px solid var(--border); }

.site-nav {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 1rem;
}

.brand {
  position: relative;
  justify-self: start;
  margin-block: 0.375rem;
}
.brand img { width: clamp(7rem, 12vw, 9rem); height: auto; }

.brand::after {
  /* Use the same artwork silhouette and reverse only the lettering in dark mode. */
  position: absolute;
  inset: 0;
  clip-path: inset(66% 0 0);
  mask: url("uwais-logo-web.png") center / contain no-repeat;
  background: var(--logo-wordmark);
  content: "";
  pointer-events: none;
}

.site-nav__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem 0.75rem;
}

.utility-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  border: 1px solid var(--control-border);
  border-radius: var(--radius-control);
  font-size: 0.875rem;
  text-decoration: none;
}

.utility-control:hover { background: var(--panel); }
.locale-link { padding-inline: 0.5rem; font-weight: 650; }

.theme-control {
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.site-nav__links {
  display: flex;
  grid-row: 2;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 0 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__links a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: 0.875rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav__links a:hover { text-decoration: underline; }
.site-nav__links .button:hover { text-decoration: none; }
.site-nav__whatsapp { display: none; }

.hero {
  --title: var(--paper);
  --focus-color: var(--amber);
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: clamp(35rem, 150vw, 43rem);
  padding-block: 11rem clamp(2rem, 6vw, 3.5rem);
  background: var(--night);
  color: var(--paper);
}

.hero__media, .hero::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__media { z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }

.hero::after {
  z-index: -1;
  background: linear-gradient(to top, #16130ffb 0%, #16130fe8 29%, #16130fc7 56%, #16130f52 73%, transparent 91%);
  content: "";
}

.hero__body {
  --action: var(--amber);
  --action-hover: var(--paper);
  --action-text: var(--ink);
  max-width: 35rem;
}

.hero em { color: var(--amber); font-style: normal; }
.hero__copy { max-width: 43ch; margin-top: 1.25rem; color: var(--paper); font-size: 1.0625rem; }
.hero .button--outline { border-color: var(--paper); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

.service-band {
  border-block: 1px solid var(--border);
  background: var(--soft-band);
  color: var(--soft-band-text);
}

.service-band ul {
  display: grid;
  gap: 0.625rem 1.5rem;
  margin-block: 0;
  padding: 1.125rem 0;
  list-style: none;
  font-size: 0.875rem;
}

.service-band strong, .service-band span { display: block; }
.service-band strong { font-size: 0.875rem; }
.service-band span { margin-top: 0.125rem; font-size: 0.8125rem; }

.section-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 0.75rem 2rem;
  margin-bottom: 1.5rem;
}

.section-heading p { max-width: 38ch; margin: 0; color: var(--muted); }
.products { display: grid; gap: clamp(0.75rem, 2vw, 1.5rem); }

.product {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  background: var(--panel);
}

.product img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; background: var(--sage); }
.product .product__photo--stock { object-position: center 81%; }

.product__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1rem, 3vw, 1.5rem);
}

.product__body p { margin-bottom: 0.5rem; font-size: 0.875rem; }
.product__body .product__label { margin-top: 0; font-weight: 650; color: var(--featured-label); }

.product__link {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.75rem;
  margin-top: auto;
  font-size: 0.875rem;
  font-weight: 650;
}

.product__link::after {
  width: 0.42rem;
  height: 0.42rem;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  content: "";
}

.product--featured {
  --title: var(--paper);
  --focus-color: var(--amber);
  border-color: var(--border);
  background: var(--brand-band);
  color: var(--paper);
}

.product--featured h3 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
.product__body .product__note { margin-block: 0.375rem 0; color: var(--muted); font-size: 0.75rem; }
.product--processed { margin-top: clamp(1.5rem, 4vw, 3rem); background: var(--soft-band); color: var(--soft-band-text); }
.product--processed h3 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
.product--processed .product__body .product__label { color: var(--title); }
.product--processed .product__link { margin-top: 0.5rem; }
.note { margin-top: 1rem; color: var(--muted); font-size: 0.875rem; }

.story, .site-footer {
  --title: var(--paper);
  --focus-color: var(--amber);
  background: var(--brand-band);
  color: var(--paper);
}

.story { border-block: 1px solid var(--border); }
.story__layout { display: grid; gap: 2rem; }
.story__layout > div p { max-width: 51ch; }
.story__photos { margin: clamp(1.5rem, 5vw, 3.75rem) auto 0; }
.story__photo-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(0.5rem, 2vw, 1.25rem); }
.story__photo-grid img {
  width: 100%;
  height: 100%;
  max-height: 30rem;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-panel);
  background: var(--panel);
}
.story__photos figcaption { margin-top: 0.75rem; font-size: 0.8125rem; }

.steps {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding-left: 1.75rem;
}

.steps li { padding: 0.9rem 0 0; border-top: 1px solid var(--control-border); }
.story .steps li { border-color: var(--featured-label); }
.story .steps li::marker { color: var(--amber); }
.steps li::marker { font-family: var(--display); font-weight: 700; }
.steps p { margin-top: 0.35rem; }
.ordering { padding-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.order-flow {
  --step-size: 2.75rem;
  --step-gap: 1.25rem;
  display: grid;
  gap: var(--step-gap);
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.order-flow > li {
  position: relative;
  display: grid;
  grid-template-columns: var(--step-size) minmax(0, 1fr);
  align-items: start;
  gap: 0.875rem;
}

.order-flow > li:not(:last-child)::before,
.order-flow > li:not(:last-child)::after {
  position: absolute;
  inset: var(--step-size) auto calc(-1 * var(--step-gap)) calc(var(--step-size) / 2);
  width: 1px;
  background: var(--border);
  content: "";
}

.order-flow > li:not(:last-child)::after {
  background: var(--emphasis);
  transform: scaleY(0);
  transform-origin: top;
}

.order-flow__mark {
  display: grid;
  width: var(--step-size);
  height: var(--step-size);
  place-items: center;
  border: 1px solid var(--control-border);
  border-radius: 50%;
  background: var(--panel);
  color: var(--emphasis);
}

.order-flow__number {
  display: block;
  margin-bottom: 0.375rem;
  color: var(--emphasis);
  font-size: 0.75rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.order-flow h3 { font-size: clamp(1.25rem, 2.1vw, 1.625rem); }
.order-flow p { max-width: 31ch; margin-top: 0.375rem; color: var(--muted); font-size: 0.9375rem; }

.faq {
  display: grid;
  align-items: start;
  gap: 1.5rem clamp(2rem, 5vw, 5rem);
  border-top: 1px solid var(--border);
}

.faq__intro p { max-width: 31ch; color: var(--muted); }
.faq__contact {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  margin-top: 0.5rem;
  color: var(--title);
  font-weight: 650;
}

.faq__panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  background: var(--panel);
}

.faq details + details { border-top: 1px solid var(--border); }
.faq details:first-child { border-start-start-radius: inherit; border-start-end-radius: inherit; }
.faq details:last-child { border-end-start-radius: inherit; border-end-end-radius: inherit; }
.faq details[open] { background: var(--faq-active); color: var(--soft-band-text); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.75rem;
  padding: 1rem clamp(0.875rem, 2.5vw, 1.5rem);
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline-offset: -4px; border-radius: var(--radius-control); }
.faq summary:hover .faq__chevron { color: var(--emphasis); }
.faq__topic {
  display: block;
  margin-bottom: 0.125rem;
  color: var(--muted);
  font-size: 0.75rem;
}
.faq details[open] .faq__topic { color: inherit; }
.faq details[open] .faq__chevron { transform: rotate(180deg); }
.faq details > p { margin: 0; padding: 0 clamp(0.875rem, 2.5vw, 1.5rem) 1rem; }

.contact {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: var(--section-space);
  padding: clamp(1.25rem, 4vw, 3rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  background: var(--soft-band);
  color: var(--soft-band-text);
}

.contact address { max-width: 50ch; margin-top: 0.25rem; }
.contact__links { display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; margin-top: 1rem; }
.contact__links > a:last-child { display: flex; min-height: 2.75rem; align-items: center; font-size: 0.875rem; }
.contact__map {
  display: block;
  width: 100%;
  height: auto;
  min-height: 15rem;
  aspect-ratio: 3 / 2;
  border: 1px solid var(--control-border);
  border-radius: var(--radius-panel);
  background: var(--panel);
}
.site-footer { padding-block: 1.5rem max(5.25rem, env(safe-area-inset-bottom)); }
.site-footer__layout { display: flex; gap: 0.5rem 2rem; justify-content: space-between; flex-wrap: wrap; font-size: 0.875rem; }
.site-footer p { margin: 0; }
.error-page .button { margin-top: 1.5rem; }

.quick-contact {
  position: fixed;
  z-index: 5;
  inset-inline-end: max(0.875rem, env(safe-area-inset-right));
  inset-block-end: max(0.875rem, env(safe-area-inset-bottom));
  display: grid;
  width: 3.5rem;
  height: 3.5rem;
  place-items: center;
  border: 1px solid var(--sage);
  border-radius: 50%;
  background: var(--forest);
  color: var(--paper);
  box-shadow: 0 3px 12px #14110e40;
}

.quick-contact:hover { background: var(--forest-hover); }
.quick-contact .icon { width: 1.65rem; height: 1.65rem; }

@media (max-width: 35.99rem) {
  .faq summary { padding-inline-end: 3rem; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero h1 { animation: hero-arrival 450ms var(--ease-out) both; }
  .hero__copy, .hero .actions { animation: hero-arrival 450ms 75ms var(--ease-out) both; }
  .product--featured[data-in-view] img { animation: featured-arrival 650ms var(--ease-out) both; }
  .faq details[open] > p { animation: hero-arrival 200ms var(--ease-out) both; }
  .faq__chevron { transition: transform 180ms var(--ease-out); }
  .order-flow[data-in-view] > li:not(:last-child)::after { animation: order-trace-y 340ms var(--ease-out) forwards; }
  .order-flow[data-in-view] > li:nth-child(2)::after { animation-delay: 220ms; }
  .button, .product__link::after { transition: transform 150ms var(--ease-out), background-color 150ms ease, color 150ms ease; }
  .button:active { transform: translateY(1px); }

  @keyframes hero-arrival {
    from { opacity: 0.45; transform: translateY(0.5rem); }
    to { opacity: 1; transform: none; }
  }

  @keyframes featured-arrival {
    from { transform: scale(1.04); }
    to { transform: none; }
  }

  @keyframes order-trace-y { to { transform: scaleY(1); } }
  @keyframes order-trace-x { to { transform: scaleX(1); } }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .product__link:hover::after { transform: translateX(0.2rem) rotate(45deg); }
}

@media (min-width: 36rem) {
  .location-bar__inner span + span { display: inline; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product--featured { grid-column: span 2; grid-template: auto / repeat(2, minmax(0, 1fr)); align-items: center; }
  .product--featured img { height: 100%; aspect-ratio: 4 / 3; }
  .product--processed { grid-template: auto / minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
  .product--processed img { aspect-ratio: 4 / 3; }
  .product--processed .product__body { padding: clamp(1.5rem, 5vw, 4rem); }
  .story__photo-grid img { aspect-ratio: 4 / 3; }
  .service-band ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 52rem) {
  .site-nav { grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr); }
  .site-nav__links { grid-area: auto; justify-content: center; gap: 0 1.5rem; }
  .site-nav__whatsapp { display: list-item; }
  .hero { align-items: center; min-height: clamp(34rem, 53vw, 46rem); padding-block: clamp(3rem, 6vw, 5.5rem); }
  .hero__body { max-width: min(35rem, 54vw); }
  .hero__media img { object-position: 50% 56%; }
  .hero::after {
    background:
      linear-gradient(90deg, #16130ff5 0%, #16130fdf 24%, #16130fb5 40%, #16130f26 64%, transparent 87%),
      linear-gradient(0deg, #14110e30, transparent 32%);
  }
  .story__layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); --step-gap: 2rem; }
  .order-flow > li { grid-template-columns: minmax(0, 1fr); }
  .order-flow > li:not(:last-child)::before,
  .order-flow > li:not(:last-child)::after {
    inset: calc(var(--step-size) / 2) calc(-1 * var(--step-gap)) auto var(--step-size);
    width: auto;
    height: 1px;
  }
  .order-flow > li:not(:last-child)::after { transform: scaleX(0); transform-origin: left; }
  .faq { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
}

@media (min-width: 52rem) and (prefers-reduced-motion: no-preference) {
  .order-flow[data-in-view] > li:not(:last-child)::after { animation-name: order-trace-x; }
}

@media (min-width: 64rem) {
  .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
