/* Coffee++ Australia — presentation site
   Palette from the brand signature: black, gold, cream. */

:root {
  --black: #0d0d0d;
  --black-soft: #141211;
  --black-card: #191714;
  --cream: #f6f1e8;
  --cream-soft: #ebe4d6;
  --gold: #c2b07a;
  --gold-bright: #d4c49a;
  --gold-deep: #8a7344;
  --ink: #1a1612;
  --ink-soft: #5a544b;
  --paper: #faf7f1;
  --line: rgba(194, 176, 122, 0.3);
  --line-strong: rgba(194, 176, 122, 0.55);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 4.25rem;
  --max: 72rem;
  --measure: 40rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--cream);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

figure {
  margin: 0;
  width: 100%;
}

a {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s var(--ease);
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  background: var(--gold);
  color: var(--black);
  padding: 0.6rem 1rem;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
  color: var(--black);
}

/* ---------- layout ---------- */

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

.wrap-narrow {
  width: min(100% - 2rem, 46rem);
  margin-inline: auto;
}

.section {
  padding: 4.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto 3rem;
}

.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.85rem;
}

.lead {
  font-size: 1.125rem;
  color: var(--cream-soft);
  line-height: 1.75;
}

.muted {
  color: #cfc6b6;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(13, 13, 13, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(13, 13, 13, 0.96);
}

.header-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.logo img {
  width: auto;
  height: 2.35rem;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 2px;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.nav-toggle-bar {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  background: var(--gold);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-of-type {
  transform: translateY(3.75px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-of-type {
  transform: translateY(-3.75px) rotate(-45deg);
}

.site-nav ul {
  display: flex;
  gap: 0.25rem 1.75rem;
}

.site-nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.4rem 0;
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

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

.site-nav a[aria-current="page"]::after,
.site-nav a:hover::after {
  transform: scaleX(1);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.4rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--gold);
  border-radius: 2px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s;
}

.btn-gold {
  background: var(--gold);
  color: var(--black);
}

.btn-gold:hover {
  background: var(--gold-bright);
  color: var(--black);
  border-color: var(--gold-bright);
}

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

.btn-ghost:hover {
  background: var(--gold);
  color: var(--black);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

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

.hero {
  position: relative;
  padding: 3.5rem 0 2.5rem;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 8rem;
  background: linear-gradient(to top, var(--black), transparent);
  pointer-events: none;
  z-index: 1;
}

.hero-kicker {
  margin-bottom: 1.6rem;
}

.hero-logo {
  width: min(22rem, 78vw);
  margin: 0 auto 0.85rem;
}

.hero-logo img {
  width: 100%;
  height: auto;
  margin-inline: auto;
}

.hero-place {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.6rem;
}

.hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 3.4vw, 2.35rem);
  line-height: 1.3;
  color: var(--cream);
  max-width: 22em;
  margin: 0 auto 1.1rem;
}

.hero-intro {
  max-width: 34rem;
  margin: 0 auto 1.75rem;
  color: #d8d0c3;
}

.hero-packs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem 1rem;
  align-items: end;
  max-width: 68rem;
  margin: 2.5rem auto 0;
  position: relative;
  z-index: 2;
}

.hero-packs a {
  display: block;
  text-decoration: none;
  color: var(--gold);
}

.hero-packs img {
  width: 100%;
  height: auto;
  margin-inline: auto;
  transition: transform 0.45s var(--ease);
}

.hero-packs a:hover img,
.hero-packs a:focus-visible img {
  transform: translateY(-0.4rem);
}

.hero-packs figcaption {
  margin-top: 0.45rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  color: var(--gold);
}

/* ---------- stats ---------- */

.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--black-soft);
  padding: 2rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem 1rem;
  text-align: center;
}

.stat-value {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-weight: 500;
  color: var(--gold);
  line-height: 1.1;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #cfc6b6;
}

/* ---------- featured products ---------- */

.featured {
  padding: 5rem 0 4.5rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem 1.1rem;
}

.product-card {
  text-align: center;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.product-card .thumb {
  background: #0b0b0b;
  width: 100%;
  margin-bottom: 1rem;
  overflow: hidden;
}

.product-card img {
  width: 100%;
  transition: transform 0.5s var(--ease);
}

.product-card:hover img,
.product-card:focus-visible img {
  transform: scale(1.03);
}

.product-card h3 {
  font-size: 1.45rem;
  margin: 0 0 0.3rem;
  color: var(--cream);
}

.product-card .card-meta {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- split teaser ---------- */

.teaser {
  background: var(--cream);
  color: var(--ink);
  padding: 5rem 0;
}

.teaser h2,
.teaser .eyebrow {
  color: var(--ink);
}

.teaser .eyebrow {
  color: var(--gold-deep);
}

.teaser p {
  color: #3d3830;
}

.teaser-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.teaser-copy h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.gold-rule {
  width: 3.5rem;
  height: 2px;
  background: var(--gold);
  border: 0;
  margin: 0 0 1.4rem;
}

/* ---------- page hero (inner) ---------- */

.page-hero {
  padding: 4rem 0 3rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  margin-bottom: 0.6rem;
}

.page-hero p {
  max-width: 36rem;
  margin: 0.75rem auto 0;
  color: #d8d0c3;
}

/* ---------- about ---------- */

.about-story {
  background: var(--cream);
  color: var(--ink);
  padding: 5rem 0;
}

.about-story h2,
.about-story h3 {
  color: var(--ink);
}

.about-story .eyebrow {
  color: var(--gold-deep);
}

.about-story p,
.about-story li {
  color: #3d3830;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem 4rem;
  align-items: start;
}

.about-grid h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
}

.facts {
  padding: 4.5rem 0;
}

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

.fact-card {
  border: 1px solid var(--line);
  background: var(--black-card);
  padding: 1.6rem 1.25rem 1.4rem;
  text-align: center;
  min-height: 100%;
}

.fact-card .stat-value {
  display: block;
}

.award,
.values {
  padding: 0 0 5rem;
}

.award-box,
.values-box {
  width: min(100% - 2rem, 48rem);
  margin-inline: auto;
  text-align: center;
}

.award-box h2,
.values-box h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.prose {
  max-width: 42rem;
  margin-inline: auto;
}

.prose + .prose,
.award-box p + p {
  margin-top: 1em;
}

/* ---------- products ---------- */

.products-intro {
  padding: 3.5rem 0 1.5rem;
  text-align: center;
}

.products-intro p {
  max-width: 40rem;
  margin-inline: auto;
  color: #d8d0c3;
}

.format-toggle-wrap {
  display: flex;
  justify-content: center;
  margin: 1.75rem 0 0.5rem;
}

.format-toggle {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.25rem;
  gap: 0.15rem;
  background: var(--black-soft);
}

.format-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--gold-bright);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  min-height: 2.5rem;
}

.format-toggle button[aria-pressed="true"] {
  background: var(--gold);
  color: var(--black);
}

.product-list {
  padding: 2rem 0 5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  padding: 3.5rem 0;
  border-top: 1px solid var(--line);
}

.product:last-child {
  border-bottom: 1px solid var(--line);
}

.product:nth-child(even) .product-media {
  order: 2;
}

.product-media {
  background: #0b0b0b;
}

.product-media img {
  width: min(100%, 28rem);
  margin-inline: auto;
}

.product-copy h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.35rem;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.9rem 0 1.1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.6rem;
  border-radius: 99px;
}

.badge.is-active {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}

.specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  margin: 1.25rem 0 1.35rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.spec dt {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.2rem;
}

.spec dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--cream);
}

.tasting {
  font-size: 1.05rem;
  color: var(--cream);
}

.tasting strong {
  font-weight: 600;
  color: var(--gold-bright);
}

.format-line {
  margin-top: 1rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

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

.site-footer {
  background: #0a0a0a;
  border-top: 1px solid var(--line);
  padding: 3.5rem 0 1.5rem;
  color: #cfc6b6;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1.2fr;
  gap: 2.5rem 2rem;
  padding-bottom: 2.5rem;
}

.footer-logo {
  height: 2.5rem;
  width: auto;
  margin-bottom: 1rem;
}

.footer-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.footer-by {
  color: #b9b0a2;
}

.site-footer h2 {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer-links li + li,
.footer-contact li + li {
  margin-top: 0.45rem;
}

.site-footer a {
  color: var(--cream);
  text-decoration: none;
}

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

.footer-legal {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  font-size: 0.8rem;
  color: #8f877c;
}

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .product-grid,
  .hero-packs {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .facts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .hero-packs {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .teaser-inner,
  .about-grid,
  .product,
  .footer-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .product:nth-child(even) .product-media {
    order: 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1rem;
  }

  .footer-grid {
    gap: 2rem;
  }

  .teaser-inner,
  .about-grid {
    gap: 2rem;
  }

  .product {
    gap: 1.5rem;
    padding: 2.5rem 0;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #0d0d0d;
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1rem 1.4rem;
    display: none;
    z-index: 200;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav a::after {
    display: none;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav a {
    display: block;
    padding: 0.85rem 0.4rem;
    font-size: 0.85rem;
  }

  .hero {
    padding-top: 2.5rem;
  }

  .hero-packs {
    gap: 0.15rem;
  }

  .hero-packs figcaption {
    font-size: 0.55rem;
    letter-spacing: 0.04em;
  }

  .section,
  .featured,
  .teaser,
  .about-story,
  .facts {
    padding: 3.25rem 0;
  }

  .specs {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 0.75rem;
  }

  .product-card h3 {
    font-size: 1.15rem;
  }

  .btn {
    width: 100%;
  }

  .btn-row {
    width: min(100%, 20rem);
    margin-inline: auto;
  }

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

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}


.product {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.product-media img,
.teaser img {
  max-height: 34rem;
  width: auto;
  max-width: 100%;
  margin-inline: auto;
}

.featured.featured-cta {
  padding: 4rem 0 3.5rem;
}

@media (max-width: 700px) {
  .hero-packs {
    grid-template-columns: 1fr 1fr;
    gap: 1.15rem 0.9rem;
    max-width: 22rem;
  }

  .hero-packs a {
    grid-column: auto;
    min-width: 0;
  }

  .hero-packs a:nth-child(4) {
    grid-column: auto;
  }

  .hero-packs a:nth-child(5) {
    grid-column: 1 / -1;
    max-width: calc(50% - 0.45rem);
    justify-self: center;
  }

  .hero-packs figcaption {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    line-height: 1.35;
  }

  .product-media img,
  .teaser img {
    max-height: 22rem;
  }
}

.nowrap {
  white-space: nowrap;
}
