/* ============================================
   CAFFENATION DESIGN SYSTEM
   Warm & Colourful Specialty Coffee
   ============================================ */

/* --- DESIGN TOKENS --- */
:root {
  /* Colours */
  --coffee-dark: #2C1810;
  --coffee-medium: #5C3D2E;
  --coffee-light: #8B6F5E;
  --cream: #F5F0EB;
  --warm-white: #FAF8F5;
  --caramel: #C8956C;
  --caramel-hover: #B5804F;
  --espresso: #1A0E08;
  --green-bag: #4A6741;
  --pink-miss: #D4738C;
  --error: #C44D4D;
  --success: #4A6741;

  /* Typography */
  --font-display: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;

  /* Type Scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3.25rem;
  --text-6xl: 4rem;
  --text-7xl: 5rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Layout */
  --max-width: 1200px;
  --max-width-wide: 1400px;
  --gutter: 1.5rem;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(44, 24, 16, 0.06);
  --shadow-md: 0 4px 12px rgba(44, 24, 16, 0.08);
  --shadow-lg: 0 8px 30px rgba(44, 24, 16, 0.12);
  --shadow-xl: 0 16px 50px rgba(44, 24, 16, 0.16);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 200ms;
  --duration-base: 350ms;
  --duration-slow: 600ms;
}

/* --- RESET --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--coffee-dark);
  background-color: var(--cream);
  overflow-x: hidden;
}

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

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

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

/* --- UTILITY --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section-tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--coffee-light);
  margin-bottom: var(--space-4);
}

.section-tag--center {
  text-align: center;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  line-height: 1.1;
  font-weight: 400;
  color: var(--coffee-dark);
  max-width: 700px;
}

.section-title--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.85em 1.8em;
  border-radius: var(--radius-full);
  transition: all var(--duration-base) var(--ease-out);
  white-space: nowrap;
}

.btn--primary {
  background: var(--coffee-dark);
  color: var(--warm-white);
}

.btn--primary:hover {
  background: var(--coffee-medium);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  background: transparent;
  color: var(--warm-white);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn--outline {
  background: transparent;
  color: var(--coffee-dark);
  border: 1.5px solid var(--coffee-dark);
}

.btn--outline:hover {
  background: var(--coffee-dark);
  color: var(--warm-white);
}

.btn--sm {
  font-size: var(--text-xs);
  padding: 0.65em 1.4em;
}

.btn--lg {
  font-size: var(--text-base);
  padding: 1em 2.2em;
}

/* --- NAVIGATION --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-4) 0;
  transition: all var(--duration-base) var(--ease-out);
}

.nav.scrolled {
  background: rgba(245, 240, 235, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: var(--space-3) 0;
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--warm-white);
  transition: color var(--duration-fast);
}

.nav.scrolled .nav__logo {
  color: var(--coffee-dark);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--duration-fast);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--caramel);
  transition: width var(--duration-base) var(--ease-out);
}

.nav__link:hover::after {
  width: 100%;
}

.nav.scrolled .nav__link {
  color: var(--coffee-medium);
}

.nav__link:hover {
  color: var(--warm-white);
}

.nav.scrolled .nav__link:hover {
  color: var(--coffee-dark);
}

.nav__cta {
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 0.6em 1.4em;
  border-radius: var(--radius-full);
  background: var(--caramel);
  color: var(--warm-white);
  transition: all var(--duration-base) var(--ease-out);
}

.nav__cta:hover {
  background: var(--caramel-hover);
  transform: translateY(-1px);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--warm-white);
  transition: all var(--duration-base) var(--ease-out);
  border-radius: 2px;
}

.nav.scrolled .nav__toggle span {
  background: var(--coffee-dark);
}

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: heroZoom 20s var(--ease-in-out) infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1.05); }
  to { transform: scale(1.12); }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 14, 8, 0.85) 0%,
    rgba(44, 24, 16, 0.7) 40%,
    rgba(92, 61, 46, 0.5) 100%
  );
}

.hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 128px;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  padding-top: 120px;
}

.hero__tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--caramel);
  margin-bottom: var(--space-6);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.3s forwards;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: var(--space-6);
}

.hero__title-line {
  display: block;
  font-size: clamp(var(--text-5xl), 10vw, var(--text-7xl));
  color: var(--warm-white);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.5s forwards;
}

.hero__title-line--accent {
  color: var(--caramel);
  animation-delay: 0.7s;
}

.hero__sub {
  font-size: clamp(var(--text-base), 2vw, var(--text-lg));
  color: rgba(255, 255, 255, 0.75);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: var(--space-10);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.9s forwards;
}

.hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 1.1s forwards;
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  z-index: 2;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- SPOTLIGHT --- */
.spotlight {
  padding: var(--space-24) 0 var(--space-20);
  background: var(--cream);
}

.section-header {
  margin-bottom: var(--space-12);
}

.spotlight__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.spotlight__card {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--warm-white);
  transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
}

.spotlight__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.spotlight__img-wrap {
  aspect-ratio: 1;
  overflow: hidden;
}

.spotlight__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.spotlight__card:hover .spotlight__img {
  transform: scale(1.06);
}

.spotlight__info {
  padding: var(--space-5);
}

.spotlight__label {
  display: block;
  font-weight: 600;
  font-size: var(--text-sm);
  margin-bottom: var(--space-1);
}

.spotlight__meta {
  display: block;
  font-size: var(--text-xs);
  color: var(--coffee-light);
  margin-bottom: var(--space-2);
}

.spotlight__price {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--caramel);
}

.spotlight__more {
  text-align: center;
  margin-top: var(--space-12);
}

/* --- VALUES --- */
.values {
  padding: var(--space-24) 0;
  background: var(--warm-white);
}

.values__header {
  margin-bottom: var(--space-16);
}

.values__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-10);
}

.values__card {
  position: relative;
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  background: var(--cream);
  transition: transform var(--duration-base) var(--ease-out);
}

.values__card:hover {
  transform: translateY(-3px);
}

.values__number {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--caramel);
  display: block;
  margin-bottom: var(--space-4);
}

.values__name {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 400;
  margin-bottom: var(--space-4);
  color: var(--coffee-dark);
}

.values__text {
  font-size: var(--text-sm);
  color: var(--coffee-medium);
  line-height: 1.7;
}

/* --- SPECIALTY --- */
.specialty {
  padding: var(--space-24) 0;
  background: var(--espresso);
  color: var(--warm-white);
  position: relative;
  overflow: hidden;
}

.specialty::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.25;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 128px;
  pointer-events: none;
}

.specialty__header {
  margin-bottom: var(--space-12);
  position: relative;
}

.specialty .section-tag {
  color: var(--caramel);
}

.specialty .section-title {
  color: var(--warm-white);
}

.specialty__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  position: relative;
}

.specialty__card {
  padding: var(--space-8) var(--space-6);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--duration-base) var(--ease-out);
}

.specialty__card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

.specialty__icon {
  font-size: 2rem;
  margin-bottom: var(--space-5);
}

.specialty__name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  margin-bottom: var(--space-3);
}

.specialty__text {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
}

/* --- FAVOURITES --- */
.favourites {
  padding: var(--space-24) 0;
  background: var(--cream);
}

.favourites__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-12);
}

.favourites__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.product-card {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--warm-white);
  transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-card__img-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}

.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.product-card:hover .product-card__img {
  transform: scale(1.06);
}

.product-card__badge {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  padding: 0.3em 0.7em;
  border-radius: var(--radius-full);
  background: var(--caramel);
  color: var(--warm-white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-card__info {
  padding: var(--space-5);
}

.product-card__name {
  font-weight: 600;
  font-size: var(--text-sm);
  margin-bottom: var(--space-1);
  line-height: 1.3;
}

.product-card__origin {
  font-size: var(--text-xs);
  color: var(--coffee-light);
  margin-bottom: var(--space-2);
}

.product-card__price {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--caramel);
}

/* --- BANNER --- */
.banner {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.banner__bg {
  position: absolute;
  inset: 0;
}

.banner__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(74, 103, 65, 0.85) 0%,
    rgba(44, 24, 16, 0.75) 100%
  );
}

.banner__content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.banner__tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--caramel);
  margin-bottom: var(--space-4);
}

.banner__title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-4xl), 6vw, var(--text-6xl));
  font-weight: 400;
  color: var(--warm-white);
  line-height: 1.05;
  margin-bottom: var(--space-4);
}

.banner__text {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-8);
  line-height: 1.7;
}

/* --- BARS --- */
.bars {
  padding: var(--space-24) 0;
  background: var(--warm-white);
}

.bars__header {
  margin-bottom: var(--space-12);
}

.bars__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.bars__card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--cream);
  transition: transform var(--duration-base) var(--ease-out);
}

.bars__card:hover {
  transform: translateY(-3px);
}

.bars__card-img-wrap {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.bars__card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.bars__card:hover .bars__card-img {
  transform: scale(1.04);
}

.bars__card-body {
  padding: var(--space-6);
}

.bars__card-name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  margin-bottom: var(--space-2);
}

.bars__card-address {
  font-size: var(--text-sm);
  color: var(--coffee-medium);
  margin-bottom: var(--space-1);
}

.bars__card-hours {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--caramel);
  margin-bottom: var(--space-3);
}

.bars__card-desc {
  font-size: var(--text-sm);
  color: var(--coffee-light);
  line-height: 1.6;
}

/* --- TESTIMONIALS --- */
.testimonials {
  padding: var(--space-24) 0;
  background: var(--cream);
}

.testimonials__slider {
  margin-top: var(--space-12);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.testimonials__track {
  position: relative;
  min-height: 200px;
}

.testimonial {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--duration-slow) var(--ease-out);
  pointer-events: none;
}

.testimonial[data-active] {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
}

.testimonial__text {
  font-family: var(--font-display);
  font-size: clamp(var(--text-xl), 3vw, var(--text-2xl));
  font-style: italic;
  line-height: 1.5;
  color: var(--coffee-dark);
  margin-bottom: var(--space-6);
}

.testimonial__cite {
  font-style: normal;
  font-size: var(--text-sm);
  color: var(--coffee-light);
}

.testimonial__cite span {
  color: var(--caramel);
  font-weight: 500;
}

.testimonials__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.testimonials__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--coffee-dark);
  color: var(--coffee-dark);
  transition: all var(--duration-fast);
}

.testimonials__btn:hover {
  background: var(--coffee-dark);
  color: var(--warm-white);
}

.testimonials__dots {
  display: flex;
  gap: var(--space-2);
}

.testimonials__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coffee-light);
  opacity: 0.3;
  transition: all var(--duration-base);
  cursor: pointer;
  border: none;
}

.testimonials__dot[data-active] {
  opacity: 1;
  background: var(--caramel);
  transform: scale(1.2);
}

/* --- CTA BANNER --- */
.cta-banner {
  padding: var(--space-20) 0;
  background: var(--caramel);
}

.cta-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

.cta-banner__title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  font-weight: 400;
  color: var(--warm-white);
  line-height: 1.15;
  margin-bottom: var(--space-2);
}

.cta-banner__sub {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.8);
}

.cta-banner__actions {
  display: flex;
  gap: var(--space-4);
  flex-shrink: 0;
}

.cta-banner .btn--primary {
  background: var(--warm-white);
  color: var(--coffee-dark);
}

.cta-banner .btn--primary:hover {
  background: var(--cream);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.cta-banner .btn--ghost {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--warm-white);
}

/* --- NEWS --- */
.news {
  padding: var(--space-24) 0;
  background: var(--cream);
}

.news__header {
  margin-bottom: var(--space-12);
}

.news__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: var(--space-6);
}

.news__card {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--warm-white);
  transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
}

.news__card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.news__card--large {
  grid-row: 1 / 3;
}

.news__card-img-wrap {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.news__card--large .news__card-img-wrap {
  aspect-ratio: 4/3;
}

.news__card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.news__card:hover .news__card-img {
  transform: scale(1.04);
}

.news__card-body {
  padding: var(--space-6);
}

.news__card-date {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--caramel);
  display: block;
  margin-bottom: var(--space-2);
}

.news__card-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: var(--space-2);
}

.news__card--large .news__card-title {
  font-size: var(--text-2xl);
}

.news__card-excerpt {
  font-size: var(--text-sm);
  color: var(--coffee-light);
  line-height: 1.6;
}

.news__more {
  text-align: center;
  margin-top: var(--space-12);
}

/* --- INSTAGRAM --- */
.instagram {
  padding: var(--space-20) 0 var(--space-24);
  background: var(--warm-white);
}

.instagram .section-title {
  margin-bottom: var(--space-10);
}

.instagram__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-3);
}

.instagram__item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: block;
}

.instagram__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.instagram__item:hover .instagram__img {
  transform: scale(1.08);
}

.instagram__hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(44, 24, 16, 0.5);
  opacity: 0;
  transition: opacity var(--duration-base);
  color: var(--warm-white);
}

.instagram__item:hover .instagram__hover {
  opacity: 1;
}

/* --- NEWSLETTER --- */
.newsletter {
  padding: var(--space-20) 0;
  background: var(--coffee-dark);
  color: var(--warm-white);
}

.newsletter__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-12);
}

.newsletter__title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 4vw, var(--text-4xl));
  font-weight: 400;
  margin-bottom: var(--space-2);
}

.newsletter__sub {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
}

.newsletter__form {
  flex-shrink: 0;
  max-width: 440px;
}

.newsletter__form-label {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-4);
}

.newsletter__input-wrap {
  display: flex;
  gap: var(--space-2);
}

.newsletter__input {
  flex: 1;
  padding: 0.85em 1.2em;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  color: var(--warm-white);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  outline: none;
  transition: border-color var(--duration-fast);
}

.newsletter__input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.newsletter__input:focus {
  border-color: var(--caramel);
}

.newsletter__btn {
  flex-shrink: 0;
}

.newsletter__success {
  font-size: var(--text-sm);
  color: var(--caramel);
  margin-top: var(--space-3);
}

/* --- FOOTER --- */
.footer {
  padding: var(--space-16) 0 var(--space-8);
  background: var(--espresso);
  color: rgba(255, 255, 255, 0.6);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-12);
}

.footer__logo {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--warm-white);
  display: block;
  margin-bottom: var(--space-3);
}

.footer__tagline {
  font-size: var(--text-sm);
  margin-bottom: var(--space-5);
}

.footer__social {
  display: flex;
  gap: var(--space-4);
}

.footer__social a {
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--duration-fast);
}

.footer__social a:hover {
  color: var(--caramel);
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__col-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--warm-white);
  margin-bottom: var(--space-2);
}

.footer__col a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--duration-fast);
}

.footer__col a:hover {
  color: var(--caramel);
}

.footer__bottom {
  grid-column: 1 / -1;
  padding-top: var(--space-8);
  margin-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: var(--text-xs);
}

/* --- REVEAL ANIMATION --- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .spotlight__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .values__card:last-child {
    grid-column: 1 / -1;
    max-width: 500px;
  }

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

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

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

  .bars__card:last-child {
    grid-column: 1 / -1;
    max-width: 500px;
  }

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

  .news__card--large {
    grid-row: auto;
  }

  .cta-banner__inner {
    flex-direction: column;
    text-align: center;
  }

  .newsletter__inner {
    flex-direction: column;
    text-align: center;
  }

  .newsletter__form {
    max-width: 100%;
    width: 100%;
  }

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

@media (max-width: 768px) {
  :root {
    --gutter: 1.25rem;
  }

  .nav__links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--espresso);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-8);
    z-index: 999;
  }

  .nav__links.open {
    display: flex;
  }

  .nav__links .nav__link {
    font-size: var(--text-2xl);
    color: var(--warm-white);
  }

  .nav__links .nav__cta {
    font-size: var(--text-lg);
  }

  .nav__toggle {
    display: flex;
    z-index: 1001;
  }

  .nav__toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav__toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav__toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero__content {
    padding-top: 100px;
  }

  .hero__scroll {
    display: none;
  }

  .spotlight__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
  }

  .values__grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .values__card:last-child {
    max-width: none;
  }

  .specialty__grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .favourites__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
  }

  .favourites__header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
  }

  .bars__grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .bars__card:last-child {
    max-width: none;
  }

  .instagram__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cta-banner {
    padding: var(--space-16) 0;
  }

  .cta-banner__actions {
    flex-direction: column;
    width: 100%;
  }

  .cta-banner__actions .btn {
    width: 100%;
  }

  .newsletter__input-wrap {
    flex-direction: column;
  }

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

@media (max-width: 480px) {
  .spotlight__grid {
    grid-template-columns: 1fr;
  }

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

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

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

/* --- PRINT --- */
@media print {
  .nav, .hero__scroll, .testimonials__nav, .instagram, .newsletter {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .hero {
    min-height: auto;
    padding: 2rem 0;
  }
}
