@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Source+Sans+3:wght@300;400;600&display=swap');

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

:root {
  --green-deep:   #1a3a2a;
  --green-mid:    #2d6a4f;
  --green-light:  #52b788;
  --gold:         #c9a84c;
  --gold-light:   #e8c96d;
  --cream:        #f8f4ec;
  --cream-dark:   #ede7d9;
  --text-dark:    #1a1a1a;
  --text-mid:     #4a4a4a;
  --text-light:   #7a7a7a;
  --card-bg:      #ffffff;
  --shadow-sm:    0 2px 8px rgba(26,58,42,0.08);
  --shadow-md:    0 8px 32px rgba(26,58,42,0.14);
  --shadow-lg:    0 20px 60px rgba(26,58,42,0.2);
  --radius:       14px;
}

body {
  font-family: 'Source Sans 3', sans-serif;
  background-color: var(--cream);
  color: var(--text-dark);
  min-height: 100vh;
}

/* ── HEADER ─────────────────────────────────── */
header {
  background: var(--green-deep);
  padding: 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--gold-light);
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--green-light);
}

nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-left: 28px;
  opacity: 0.8;
  transition: opacity 0.2s, color 0.2s;
}

nav a:hover {
  opacity: 1;
  color: var(--gold-light);
}

/* ── HERO ────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--green-deep) 0%, var(--green-mid) 100%);
  padding: 80px 40px 88px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 18px;
  position: relative;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold-light);
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  font-weight: 300;
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.7;
  position: relative;
}

.btn-hero {
  display: inline-block;
  background: var(--gold);
  color: var(--green-deep);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 8px;
  position: relative;
  transition: background 0.2s, transform 0.15s;
}

.btn-hero:hover {
  background: var(--gold-light);
  transform: scale(1.03);
}

/* ── MAIN CONTENT ────────────────────────────── */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 24px 80px;
}

/* ── RANKINGS SECTION HEADER ─────────────────── */
.rankings-header {
  text-align: center;
  margin-bottom: 52px;
}

.rankings-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  color: var(--green-deep);
  line-height: 1.2;
  margin-bottom: 14px;
}

.rankings-header p {
  font-size: 1.05rem;
  color: var(--text-mid);
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── SECTION LABELS (fallback generic) ───────── */
.section-label {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 8px;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 40px;
  font-weight: 300;
  line-height: 1.65;
}

/* ── CARD GRID ───────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ── INDIVIDUAL CARD ─────────────────────────── */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(26,58,42,0.06);
  animation: fadeUp 0.5s ease both;
}

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

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

.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.10s; }
.card:nth-child(3) { animation-delay: 0.15s; }
.card:nth-child(4) { animation-delay: 0.20s; }
.card:nth-child(5) { animation-delay: 0.25s; }
.card:nth-child(6) { animation-delay: 0.30s; }

/* Rank badge */
.card-rank {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--green-deep);
  color: var(--gold-light);
  font-family: 'Playfair Display', serif;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  z-index: 2;
}

/* Image area */
.card-image-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .card-image-wrap img {
  transform: scale(1.04);
}

.img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--green-mid);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.5;
}

.img-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.6;
}

/* Card body */
.card-body {
  padding: 22px 24px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green-deep);
  line-height: 1.2;
}

/* Stars */
.card-stars {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stars {
  display: flex;
  gap: 2px;
}

.stars span {
  font-size: 1rem;
  color: var(--gold);
}

.stars span.empty {
  color: var(--cream-dark);
}

.rating-num {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-mid);
}

/* Description */
.card-desc {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.6;
  font-weight: 300;
  flex: 1;
}

/* Card footer */
.card-footer {
  padding: 0 24px 22px;
}

.btn-review {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--green-mid);
  color: #fff;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 20px;
  border-radius: 8px;
  transition: background 0.2s, transform 0.15s;
  border: none;
  cursor: pointer;
}

.btn-review:hover {
  background: var(--green-deep);
  transform: scale(1.02);
}

/* ── BUYING GUIDE ────────────────────────────── */
.buying-guide {
  background: var(--green-deep);
  padding: 80px 24px 88px;
}

.guide-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.buying-guide h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  color: var(--gold-light);
  text-align: center;
  margin-bottom: 14px;
  line-height: 1.2;
}

.buying-guide .guide-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.72);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 52px;
  line-height: 1.7;
  font-weight: 300;
}

.guide-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.guide-col {
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius);
  padding: 28px 30px 32px;
  border: 1px solid rgba(255,255,255,0.08);
}

.guide-col-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}

.guide-col-title.look  { color: var(--green-light); }
.guide-col-title.avoid { color: #e07070; }

.guide-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.guide-col ul li {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.6;
  padding-left: 12px;
  border-left: 2px solid rgba(255,255,255,0.12);
}

.guide-col ul li strong {
  color: #fff;
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}

/* ── FAQ SECTION ─────────────────────────────── */
.faq-section {
  background: var(--cream);
  padding: 80px 24px 88px;
  border-top: 1px solid var(--cream-dark);
}

.faq-inner {
  max-width: 800px;
  margin: 0 auto;
}

.faq-inner h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 900;
  color: var(--green-deep);
  text-align: center;
  margin-bottom: 12px;
  line-height: 1.2;
}

.faq-inner .faq-sub {
  font-size: 1.05rem;
  color: var(--text-light);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 52px;
  line-height: 1.7;
  font-weight: 300;
}

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  padding: 32px 0;
  border-bottom: 1px solid var(--cream-dark);
}

.faq-item:first-child {
  border-top: 1px solid var(--cream-dark);
}

.faq-q {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 12px;
  line-height: 1.35;
}

.faq-a {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.75;
  font-weight: 300;
}

.faq-a em {
  font-style: italic;
  color: var(--text-dark);
  font-weight: 400;
}

/* ── FOOTER ──────────────────────────────────── */
footer {
  background: var(--green-deep);
  text-align: center;
  padding: 52px 40px 44px;
}

.footer-links {
  margin-bottom: 28px;
}

.footer-links a {
  color: var(--gold-light);
  text-decoration: none;
  margin: 0 14px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 0.7;
}

.footer-disclaimer {
  max-width: 720px;
  margin: 0 auto;
  color: rgba(255,255,255,0.45);
  font-size: 0.84rem;
  line-height: 1.8;
  font-weight: 300;
}

.footer-disclaimer p {
  margin-bottom: 12px;
}

.footer-disclaimer p:last-child {
  margin-bottom: 0;
}

.footer-copy {
  margin-top: 32px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  font-weight: 300;
}

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

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

@media (max-width: 640px) {
  header { padding: 16px 20px; }
  nav { display: none; }
  .hero { padding: 52px 20px 60px; }
  main { padding: 52px 16px 64px; }
  .card-grid { grid-template-columns: 1fr; }
  footer { padding: 40px 20px 32px; }
  .footer-links a { display: inline-block; margin: 4px 10px; }
}
