/* ============================================================
   ALB2ALB — Components
   Header, Buttons, Cards, Hero, Forms, Footer, etc.
   ============================================================ */

/* ---- Scroll Progress ---- */
.scroll-progress { position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 1001; background: transparent; }
.scroll-progress-bar { width: 100%; height: 100%; background: var(--red); transform-origin: left; transform: scaleX(0); }

/* ---- Header ---- */
.site-header { position: sticky; top: 0; z-index: 1000; background: var(--white); border-bottom: 1px solid var(--border); transition: box-shadow var(--duration) var(--ease); height: var(--header-h); }
.site-header.scrolled { box-shadow: var(--shadow-md); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: var(--space-4); }

/* Logo */
.logo { display: flex; align-items: center; gap: var(--space-2); font-family: var(--font-display); font-weight: var(--weight-bold); font-size: var(--text-xl); white-space: nowrap; }
.logo-mark { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: var(--red); color: var(--fg-light); border-radius: var(--radius-md); font-size: var(--text-sm); font-weight: var(--weight-black); letter-spacing: 0.05em; }
.logo-text { color: var(--fg); }
.logo-text span { color: var(--red); }

/* Nav */
.main-nav { display: flex; align-items: center; gap: var(--space-1); }
.nav-link { display: flex; align-items: center; padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--fg-muted); transition: all var(--duration) var(--ease); }
.nav-link:hover, .nav-link.active { color: var(--fg); background: var(--red-light); }
.nav-link.active { color: var(--red); font-weight: var(--weight-bold); }

/* Mobile Toggle */
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: var(--space-2); z-index: 1001; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--fg); border-radius: 2px; transition: all 0.3s var(--ease); }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .main-nav { position: fixed; top: 0; right: -100%; width: 280px; height: 100vh; background: var(--white); flex-direction: column; align-items: stretch; padding: calc(var(--header-h) + var(--space-6)) var(--space-6) var(--space-6); gap: var(--space-2); box-shadow: var(--shadow-xl); transition: right 0.3s var(--ease); z-index: 999; }
  .main-nav.active { right: 0; }
  .nav-link { padding: var(--space-3) var(--space-4); font-size: var(--text-base); }
}

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); padding: var(--space-3) var(--space-6); border-radius: var(--radius-md); font-size: var(--text-sm); font-weight: var(--weight-bold); transition: all var(--duration) var(--ease); white-space: nowrap; border: 2px solid transparent; }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--red); color: var(--fg-light); border-color: var(--red); }
.btn-primary:hover { background: var(--red-dark); box-shadow: var(--shadow-red); }

.btn-secondary { background: var(--white); color: var(--fg); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--red); color: var(--red); }

.btn-dark { background: var(--black); color: var(--fg-light); border-color: var(--black); }
.btn-dark:hover { background: var(--black-soft); }

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

.btn-sm { padding: var(--space-2) var(--space-4); font-size: var(--text-xs); }
.btn-lg { padding: var(--space-4) var(--space-8); font-size: var(--text-base); }
.btn-icon { padding: var(--space-3); }

/* ---- Cards ---- */
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: all var(--duration) var(--ease); }
.card:hover { box-shadow: var(--shadow-md); }
.card-flat { border: none; box-shadow: none; }

/* ---- Badge ---- */
.badge { display: inline-flex; align-items: center; gap: var(--space-1); padding: var(--space-1) var(--space-3); font-size: var(--text-xs); font-weight: var(--weight-bold); text-transform: uppercase; letter-spacing: 0.08em; border-radius: var(--radius-full); }
.badge-red { background: var(--red-light); color: var(--red); }
.badge-gold { background: var(--gold-light); color: #92700C; }
.badge-dark { background: var(--black); color: var(--fg-light); }
.badge-green { background: var(--green-light); color: var(--green); }

/* ---- Hero ---- */
.hero { position: relative; padding: var(--space-24) 0 var(--space-20); background: var(--bg-dark); color: var(--fg-light); overflow: hidden; min-height: 70vh; display: flex; align-items: center; }
.hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(circle at 80% 20%, rgba(228,30,44,0.15) 0%, transparent 50%), radial-gradient(circle at 20% 80%, rgba(212,175,55,0.08) 0%, transparent 50%); pointer-events: none; }
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 680px; }
.hero-lead { font-size: var(--text-lg); color: rgba(255,255,255,0.7); line-height: var(--leading-relaxed); margin-top: var(--space-6); }
.hero-actions { display: flex; gap: var(--space-4); margin-top: var(--space-8); flex-wrap: wrap; }
.hero-stats { margin-top: var(--space-12); padding-top: var(--space-8); border-top: 1px solid rgba(255,255,255,0.1); }
.hero-stat-value { font-family: var(--font-display); font-size: var(--text-3xl); font-weight: var(--weight-black); color: var(--red); }
.hero-stat-label { font-size: var(--text-sm); color: rgba(255,255,255,0.5); margin-top: var(--space-1); }

/* Hero decorative eagle silhouette */
.hero-eagle { position: absolute; right: -5%; top: 50%; transform: translateY(-50%); font-size: 28rem; opacity: 0.03; color: var(--red); pointer-events: none; line-height: 1; }

/* ---- Search Bar ---- */
.search-bar { display: flex; align-items: center; background: var(--white); border: 2px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: border-color var(--duration) var(--ease); max-width: 600px; }
.search-bar:focus-within { border-color: var(--red); box-shadow: 0 0 0 3px rgba(228,30,44,0.1); }
.search-bar input { flex: 1; padding: var(--space-4) var(--space-5); border: none; outline: none; font-size: var(--text-base); background: transparent; }
.search-bar button { padding: var(--space-3) var(--space-5); background: var(--red); color: var(--fg-light); border: none; font-weight: var(--weight-bold); font-size: var(--text-sm); cursor: pointer; transition: background var(--duration) var(--ease); }
.search-bar button:hover { background: var(--red-dark); }

/* ---- Category Cards ---- */
.category-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: var(--space-8) var(--space-4); background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); transition: all var(--duration) var(--ease); }
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--red); }
.category-card-icon { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-lg); font-size: 1.75rem; margin-bottom: var(--space-4); }
.category-card-title { font-weight: var(--weight-bold); margin-bottom: var(--space-1); }
.category-card-count { font-size: var(--text-sm); color: var(--fg-muted); }

/* ---- Business Cards ---- */
.business-card { display: flex; gap: var(--space-5); padding: var(--space-5); background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); transition: all var(--duration) var(--ease); }
.business-card:hover { box-shadow: var(--shadow-md); border-color: var(--red); }
.business-card-img { width: 120px; height: 120px; border-radius: var(--radius-md); overflow: hidden; flex-shrink: 0; background: var(--bg); }
.business-card-img img { width: 100%; height: 100%; object-fit: cover; }
.business-card-body { flex: 1; min-width: 0; }
.business-card-category { font-size: var(--text-xs); font-weight: var(--weight-bold); text-transform: uppercase; letter-spacing: 0.05em; color: var(--red); margin-bottom: var(--space-1); }
.business-card-title { font-size: var(--text-lg); font-weight: var(--weight-bold); margin-bottom: var(--space-1); }
.business-card-desc { font-size: var(--text-sm); color: var(--fg-muted); line-height: var(--leading-relaxed); margin-bottom: var(--space-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.business-card-meta { display: flex; gap: var(--space-4); font-size: var(--text-xs); color: var(--fg-subtle); flex-wrap: wrap; }
.business-card-meta span { display: flex; align-items: center; gap: var(--space-1); }
.business-card-featured { border-color: var(--gold); border-width: 2px; }

/* ---- Offer Cards ---- */
.offer-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: all var(--duration) var(--ease); }
.offer-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.offer-card-badge { position: absolute; top: var(--space-3); left: var(--space-3); background: var(--red); color: var(--fg-light); padding: var(--space-1) var(--space-3); border-radius: var(--radius-full); font-size: var(--text-xs); font-weight: var(--weight-bold); }
.offer-card-img { height: 180px; background: var(--bg); position: relative; overflow: hidden; }
.offer-card-img img { width: 100%; height: 100%; object-fit: cover; }
.offer-card-body { padding: var(--space-5); }
.offer-card-title { font-weight: var(--weight-bold); margin-bottom: var(--space-1); }
.offer-card-business { font-size: var(--text-sm); color: var(--fg-muted); margin-bottom: var(--space-2); }
.offer-card-price { display: flex; align-items: baseline; gap: var(--space-2); }
.offer-card-price .current { font-size: var(--text-xl); font-weight: var(--weight-black); color: var(--red); }
.offer-card-price .old { font-size: var(--text-sm); color: var(--fg-subtle); text-decoration: line-through; }
.offer-card-expiry { font-size: var(--text-xs); color: var(--fg-subtle); margin-top: var(--space-3); }

/* ---- Section Titles ---- */
.section-header { text-align: center; margin-bottom: var(--space-12); }
.section-header h2 { font-family: var(--font-display); font-size: var(--text-3xl); font-weight: var(--weight-black); margin-top: var(--space-3); }
.section-header p { color: var(--fg-muted); margin-top: var(--space-3); max-width: 560px; margin-left: auto; margin-right: auto; }

/* ---- Stats ---- */
.stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); padding: var(--space-10) 0; }
.stat-item { text-align: center; }
.stat-number { font-family: var(--font-display); font-size: var(--text-3xl); font-weight: var(--weight-black); color: var(--red); }
.stat-label { font-size: var(--text-sm); color: var(--fg-muted); margin-top: var(--space-1); }
@media (max-width: 768px) { .stats-bar { grid-template-columns: repeat(2, 1fr); } }

/* ---- CTA Banner ---- */
.cta-banner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-8); padding: var(--space-10) var(--space-12); background: var(--red); color: var(--fg-light); border-radius: var(--radius-xl); }
.cta-banner h3 { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: var(--weight-black); margin-bottom: var(--space-2); }
.cta-banner p { opacity: 0.85; }
@media (max-width: 768px) {
  .cta-banner { flex-direction: column; text-align: center; padding: var(--space-8); }
}

/* ---- Forms ---- */
.form-group { margin-bottom: var(--space-5); }
.form-label { display: block; font-size: var(--text-sm); font-weight: var(--weight-bold); margin-bottom: var(--space-2); }
.form-input, .form-select, .form-textarea { width: 100%; padding: var(--space-3) var(--space-4); border: 2px solid var(--border); border-radius: var(--radius-md); font-size: var(--text-base); font-family: var(--font-body); transition: border-color var(--duration) var(--ease); background: var(--white); }
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(228,30,44,0.1); }
.form-textarea { min-height: 120px; resize: vertical; }
.form-status { margin-top: var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); font-size: var(--text-sm); font-weight: var(--weight-medium); display: none; }
.form-status.error { display: block; background: var(--red-light); color: var(--red); }
.form-status.success { display: block; background: var(--green-light); color: var(--green); }

/* ---- Filter Tabs ---- */
.filter-tabs { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: center; margin-bottom: var(--space-8); }
.filter-tab { padding: var(--space-2) var(--space-5); border-radius: var(--radius-full); font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--fg-muted); border: 2px solid var(--border); background: var(--white); transition: all var(--duration) var(--ease); cursor: pointer; }
.filter-tab:hover { border-color: var(--red); color: var(--red); }
.filter-tab.active { background: var(--red); color: var(--fg-light); border-color: var(--red); }

/* ---- Info Strip ---- */
.info-strip { display: flex; justify-content: center; gap: var(--space-8); padding: var(--space-5) 0; background: var(--black); color: var(--fg-light); font-size: var(--text-sm); flex-wrap: wrap; }
.info-strip-item { display: flex; align-items: center; gap: var(--space-2); }

/* ---- Footer ---- */
.site-footer { background: var(--bg-dark); color: rgba(255,255,255,0.7); padding: var(--space-16) 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-10); padding-bottom: var(--space-10); border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand p { margin-top: var(--space-4); line-height: var(--leading-relaxed); font-size: var(--text-sm); }
.footer-title { color: var(--fg-light); font-size: var(--text-sm); font-weight: var(--weight-bold); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: var(--space-4); }
.footer-links { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-links a { font-size: var(--text-sm); transition: color var(--duration) var(--ease); }
.footer-links a:hover { color: var(--red); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: var(--space-6) 0; font-size: var(--text-sm); }
.footer-legal { display: flex; gap: var(--space-6); }
.footer-legal a:hover { color: var(--red); }
.footer-social { display: flex; gap: var(--space-3); }
.footer-social a { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-full); background: rgba(255,255,255,0.1); transition: all var(--duration) var(--ease); }
.footer-social a:hover { background: var(--red); color: var(--fg-light); }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: var(--space-3); text-align: center; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
