/* Recto Designs — Goodee Inspired Theme */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;500;700&display=swap');

:root {
  /* Palette */
  --bg: #ffffff;
  --text: #171717;
  --text-muted: #525252;
  --border: #e5e5e5;
  --card-bg: #ffffff;
  --accent: #a88b7d;
  /* Warm earthy tone */
  --accent-hover: #8c735a;

  /* Typography */
  --font-main: "DM Sans", system-ui, -apple-system, sans-serif;

  /* Layout */
  --max-width: 1440px;
  --header-height: 80px;
  --radius: 4px;
  /* Sharper corners like Goodee */
}

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

/* Layout Container */
.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

/* Header */
.topbar {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  /* Clean look */
  transition: border-color 0.3s;
}

.topbar.scrolled {
  border-color: var(--border);
}

.brand {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

.nav a:hover,
.nav a.active {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.header-actions {
  display: flex;
  gap: 20px;
}

/* Buttons */
.btn,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 40px;
  /* Pill shape */
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.primary {
  background-color: var(--text);
  color: #fff;
}

.primary:hover {
  background-color: var(--text-muted);
}

.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.ghost:hover {
  border-color: var(--text);
}

/* Hero Section */
.hero {
  position: relative;
  margin-top: 20px;
  height: 80vh;
  min-height: 600px;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

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

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.hero__content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  padding: 0 20px;
}

.hero__content h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.1;
}

.hero__content p {
  font-size: 1.1rem;
  margin-bottom: 32px;
  opacity: 0.9;
}

/* Filters / Categories */
.filters {
  padding: 80px 0;
}

.filters__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}

.filters__head h2 {
  font-size: 2rem;
  font-weight: 500;
}

.filter__controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.pill {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--text);
  background: transparent;
}

.pill:hover,
.pill.active {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 40px 24px;
}

.card {
  display: block;
  group: hover;
}

.card__media {
  position: relative;
  aspect-ratio: 3/4;
  /* Taller images like Goodee */
  background: #f5f5f5;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
}

.card__media img {
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
}

.card:hover .card__media img {
  transform: scale(1.05);
}

.card__meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.card .title {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 4px;
}

.card .price {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Footer */
.footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--border);
  margin-top: 80px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
}

.footer-brand h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  gap: 60px;
  justify-content: flex-end;
}

.link-group h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  color: var(--text-muted);
}

.link-group a {
  display: block;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--text);
}

.link-group a:hover {
  text-decoration: underline;
}

/* Mobile */
@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-direction: column;
    gap: 40px;
    justify-content: flex-start;
  }

  .hero {
    height: 60vh;
  }
}