/* ==========================================================================
   Nüsantara Mercantile Company — Site Styles
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --brown: #8f613b;
  --brown-deep: #6e4a2c;
  --brown-darker: #55381f;
  --yellow: #f6ed62;
  --cream: #fbf6ea;
  --ink: #2b2013;
  --olive-dark: #2c2810;
  --white: #ffffff;
  --max-width: 1200px;
  --radius-lg: 28px;
  --radius-md: 16px;
  --font-display: 'Archivo Black', 'Arial Black', sans-serif;
  --font-body: 'Poppins', sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--brown);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* Focus visibility for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--brown);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--white);
}

.logo img {
  height: 34px;
  width: auto;
  flex-shrink: 0;
}

.logo .logo-sub {
  display: block;
  font-weight: 400;
  font-size: 12px;
  opacity: 0.75;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  border-color: var(--yellow);
}

.main-nav .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border-bottom: none;
  transition: background 0.2s ease, transform 0.15s ease;
}

.main-nav .social-link:hover {
  background: var(--yellow);
  border-color: transparent;
  transform: translateY(-1px);
}

.main-nav .social-link:hover svg { fill: var(--ink); }

.main-nav .social-link svg {
  width: 15px;
  height: 15px;
  fill: var(--yellow);
  transition: fill 0.2s ease;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 8px;
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 780px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--brown-deep);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .main-nav.open { max-height: 300px; }
  .main-nav a {
    width: 100%;
    padding: 16px 32px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .main-nav .social-link {
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
  }
  .main-nav .social-link:hover { background: none; }
  .main-nav .social-link:hover svg { fill: var(--yellow); }
  .nav-toggle { display: inline-flex; }
}

/* ---------------------------------------------------------------- eyebrow */

.eyebrow {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  margin: 0 0 14px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 1;
  margin: 0;
  color: var(--yellow);
}

.section-heading {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--yellow);
  font-family: var(--font-body);
  margin: 0 0 16px;
}

.body-copy {
  font-size: 17px;
  color: var(--white);
  max-width: 640px;
}

.body-copy.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.btn {
  display: inline-block;
  background: var(--white);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 22px;
  border-radius: 4px;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover {
  background: var(--yellow);
  transform: translateY(-1px);
}

/* ---------------------------------------------------------------- hero */

.hero {
  padding: 56px 0 0;
  text-align: center;
}

.hero h1 {
  font-size: clamp(48px, 9vw, 110px);
  letter-spacing: -0.01em;
  margin-bottom: 36px;
}

.hero-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-photo img {
  width: 100%;
  height: clamp(260px, 45vw, 560px);
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* ---------------------------------------------------------------- generic section */

.section {
  padding: 80px 0;
  text-align: center;
}

.section-inner {
  max-width: 700px;
  margin: 0 auto;
}

.section .btn { margin-top: 26px; }

/* ------------------------------------------------------------ photo strip */

.photo-strip {
  display: flex;
  gap: 16px;
  max-width: var(--max-width);
  margin: 56px auto 0;
  padding: 0 32px 12px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.photo-strip img {
  height: 300px;
  width: auto;
  object-fit: cover;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  scroll-snap-align: start;
}

/* ------------------------------------------------------------- big photo */

.big-photo {
  max-width: var(--max-width);
  margin: 48px auto 0;
  padding: 0 32px;
}

.big-photo img {
  width: 100%;
  height: clamp(280px, 42vw, 520px);
  object-fit: cover;
  border-radius: var(--radius-md) / var(--radius-md);
}

/* --------------------------------------------------------------- footer */

.site-footer {
  position: relative;
  margin-top: 80px;
  color: var(--white);
  overflow: hidden;
}

.footer-photo-wrap {
  position: relative;
  height: 420px;
}

.footer-photo-wrap .footer-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(44,40,16,0) 0%, rgba(44,40,16,0.55) 55%, rgba(44,40,16,0.92) 100%);
}

.footer-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: auto;
  opacity: 0.95;
}

.footer-content {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 0 32px 32px;
  max-width: var(--max-width);
  margin: -90px auto 0;
}

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-meta {
  font-size: 13px;
  opacity: 0.8;
}

/* --------------------------------------------------------------- utility */

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 780px) {
  .wrap { padding: 0 20px; }
  .section { padding: 56px 0; }
  .hero { padding-top: 40px; }
  .big-photo, .photo-strip { padding: 0 20px; }
  .footer-content { padding: 0 20px 24px; }
}

/* ==========================================================================
   Beans page
   ========================================================================== */

.beans-page-header {
  padding: 56px 0 40px;
}

.beans-page-header h1 {
  font-size: clamp(44px, 8vw, 90px);
  margin-bottom: 18px;
}

.beans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px 40px;
}

.bean-card {
  text-align: left;
}

.bean-swatch {
  border-radius: var(--radius-md);
  height: 180px;
  margin-bottom: 18px;
}

.bean-card h3 {
  font-family: var(--font-body);
  text-transform: none;
  font-size: 19px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.bean-meta {
  font-size: 13px;
  color: var(--yellow);
  font-weight: 600;
  margin-bottom: 10px;
}

.bean-notes {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  margin: 0;
}

@media (max-width: 900px) {
  .beans-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .beans-grid { grid-template-columns: 1fr; padding: 0 20px 24px; }
}

/* ==========================================================================
   About page
   ========================================================================== */

.about-header {
  padding: 56px 0 40px;
}

.about-header h1 {
  font-size: clamp(44px, 8vw, 90px);
  margin-bottom: 18px;
}

.team-grid {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto 40px;
  padding: 0 32px;
}

.team-member {
  width: 220px;
}

.team-member img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  filter: grayscale(1);
  background: none;
}

.team-member .name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
}

.about-copy-block {
  max-width: 720px;
  margin: 0 auto 56px;
  padding: 0 32px;
  text-align: left;
}

.about-copy-block p {
  color: var(--white);
  font-size: 16px;
  margin: 0 0 20px;
}

.about-copy-block .highlight {
  color: var(--yellow);
  font-weight: 600;
  font-size: 18px;
}

.small-photo-row {
  display: flex;
  gap: 16px;
  max-width: var(--max-width);
  margin: 0 auto 56px;
  padding: 0 32px;
}

.small-photo-row img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.about-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px 56px;
  text-align: left;
}

.about-section .section-heading { text-align: left; }

.about-section p {
  color: var(--white);
  font-size: 16px;
  margin: 0 0 20px;
}

.about-section img {
  width: 100%;
  height: clamp(220px, 32vw, 380px);
  object-fit: cover;
  border-radius: var(--radius-md);
  margin: 28px 0;
}

@media (max-width: 780px) {
  .team-grid { gap: 20px; }
  .team-member { width: 160px; }
  .small-photo-row { flex-direction: column; }
  .small-photo-row img { height: 200px; }
}
