/* ============================================================
   Elgin Auctions – Redesign CSS
   design.md compliant: clean, trustworthy, spacious, modern
   ============================================================ */

/* ── Fonts ─────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@600;700;800&family=Inter:wght@400;500;600&display=swap');

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --primary:           #1a3c5e;
  --primary-dark:      #132d47;
  --accent:            #00a0d2;
  --accent-dark:       #0080ab;
  --success:           #2e7d32;
  --warning:           #f57c00;
  --bg:                #f8fafc;
  --surface:           #ffffff;
  --text:              #0f172a;
  --text-secondary:    #334155;
  --text-muted:        #64748b;
  --border:            #e2e8f0;
  --footer-bg:         #0f172a;
  --shadow-sm:         0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow:            0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-md:         0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-lg:         0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --radius-sm:         0.375rem;
  --radius:            0.75rem;
  --radius-lg:         1rem;
  --transition:        0.2s ease;
  --max-width:         1152px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--accent-dark); }

ul, ol { padding-left: 1.5rem; }

/* ── Layout Utilities ──────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 2.5rem);
}

.section {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

/* ── Top Bar ───────────────────────────────────────────────── */
.top-bar {
  background: var(--primary-dark);
  color: #cbd5e1;
  font-size: 0.8125rem;
  padding: 0.4rem 0;
  text-align: center;
}
.top-bar .container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.top-bar a {
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color var(--transition);
}
.top-bar a:hover { color: var(--accent); }
@media (max-width: 640px) { .top-bar { display: none; } }

/* ── Header / Navigation ───────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--surface);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  border-color: var(--border);
  box-shadow: var(--shadow);
}
.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.site-logo img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 0.5rem 0.875rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: rgba(26, 60, 94, 0.07);
}
.nav-links a.active {
  font-weight: 600;
  position: relative;
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0.875rem;
  right: 0.875rem;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.hamburger:hover { background: var(--bg); }
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--surface);
  padding: 5rem 2rem 2rem;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.mobile-nav a {
  display: block;
  padding: 1rem 1.25rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: background var(--transition), border-color var(--transition);
}
.mobile-nav a:hover,
.mobile-nav a.active {
  background: rgba(26, 60, 94, 0.05);
  border-color: var(--primary);
  color: var(--primary);
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links { display: none; }
  .mobile-nav { display: block; }
}

/* ── Page Hero (non-homepage) ──────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding-block: clamp(3rem, 6vw, 5rem);
}
.page-hero h1 {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}
.page-hero p {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
}

/* ── Homepage Hero ─────────────────────────────────────────── */
.home-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding-block: clamp(4rem, 10vw, 8rem);
  position: relative;
  overflow: hidden;
}
.home-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");
}
.home-hero .container { position: relative; z-index: 1; }
.home-hero h1 {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.home-hero .hero-sub {
  font-size: clamp(1rem, 2vw, 1.1875rem);
  color: rgba(255,255,255,0.75);
  margin-bottom: 1.75rem;
  font-weight: 400;
}
.badge-award {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.9);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.75rem;
  letter-spacing: 0.015em;
}
.badge-award::before { content: '🏆'; }
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
  text-decoration: none;
  min-height: 48px;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

.btn-outline-white {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.55);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.8);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: white;
}

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* ── Auction Badge ─────────────────────────────────────────── */
.auction-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}
.badge-live {
  background: #dcfce7;
  color: var(--success);
}
.badge-live::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse-dot 1.5s ease-in-out infinite;
  display: inline-block;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}
.badge-upcoming { background: #fff7ed; color: var(--warning); }
.badge-booked   { background: #eff6ff; color: #2563eb; }

/* ── About Section ─────────────────────────────────────────── */
.about-section { background: var(--bg); }
.about-inner {
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
}
.section-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}
.about-inner p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* Hours callout card */
.hours-card {
  margin: 2rem auto 0;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 520px;
  border-left: 4px solid var(--accent);
}
.hours-card .hours-icon { font-size: 1.75rem; }
.hours-card .hours-text { text-align: left; }
.hours-card .hours-label {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.125rem;
}
.hours-card .hours-time {
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--text);
}

/* Testimonial blockquote */
.testimonial {
  margin: 2.5rem auto 0;
  max-width: 660px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
  text-align: left;
}
.testimonial blockquote {
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.7;
}
.testimonial cite {
  font-size: 0.8125rem;
  font-style: normal;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Video Link Card ───────────────────────────────────────── */
.video-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding-block: clamp(3rem, 6vw, 5rem);
  text-align: center;
}
.video-card h2 {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.video-card p {
  color: rgba(255,255,255,0.75);
  margin-bottom: 1.5rem;
}

/* ── Auctions Section ──────────────────────────────────────── */
.auctions-section { background: var(--bg); }
.auctions-header {
  margin-bottom: 2.5rem;
}
.auctions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 1.5rem;
}
.auction-card h3 {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.625rem;
}
.auction-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.65;
}
.auction-card .auction-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
}
.auction-card .auction-link:hover { color: var(--accent-dark); }
.auction-card .auction-link::after { content: '→'; }

/* ── Book CTA Strip ────────────────────────────────────────── */
.book-strip {
  background: var(--primary);
  color: white;
  text-align: center;
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.book-strip h2 {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.625rem;
}
.book-strip p {
  color: rgba(255,255,255,0.78);
  margin-bottom: 1.5rem;
  font-size: 1.0625rem;
}

/* ── Recycles Section ──────────────────────────────────────── */
.recycles-section { background: var(--surface); }
.recycles-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 768px) { .recycles-inner { grid-template-columns: 1fr; } }
.recycles-inner h2 {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 1rem;
}
.recycles-inner p { color: var(--text-secondary); margin-bottom: 1rem; }
.recycles-list {
  columns: 2;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
}
@media (max-width: 480px) { .recycles-list { columns: 1; } }
.recycles-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  break-inside: avoid;
}
.recycles-list li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05em;
}

/* ── Hours & Contact Strip ─────────────────────────────────── */
.contact-strip {
  background: var(--primary);
  color: white;
  padding-block: clamp(3rem, 6vw, 5rem);
}
.contact-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}
@media (max-width: 640px) { .contact-strip-grid { grid-template-columns: 1fr; } }
.contact-item .contact-label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.5rem;
}
.contact-item .contact-value {
  font-size: 1.0625rem;
  font-weight: 500;
  color: white;
  margin-bottom: 0.75rem;
}
.contact-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: var(--footer-bg);
  color: #94a3b8;
  padding-top: clamp(3rem, 6vw, 5rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand h3 {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}
.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: #64748b;
}
.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #cbd5e1;
  margin-bottom: 1rem;
}
.footer-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-links a {
  font-size: 0.9375rem;
  color: #64748b;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent); }
.footer-contact-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  font-size: 0.9375rem;
}
.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  color: #64748b;
}
.footer-contact-list a { color: #64748b; }
.footer-contact-list a:hover { color: var(--accent); }
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #64748b;
  font-size: 0.9375rem;
  transition: color var(--transition);
}
.footer-social a:hover { color: var(--accent); }
.newsletter-note {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: #475569;
  font-style: italic;
}
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.8125rem;
  color: #475569;
}

/* ── Consignment Page ──────────────────────────────────────── */
.content-section { background: var(--surface); }
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
@media (max-width: 768px) { .content-grid { grid-template-columns: 1fr; } }
.content-box {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border);
}
.content-box h2 {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent);
}
.content-box p { color: var(--text-secondary); line-height: 1.7; }

/* ── Directions / Contact Page ─────────────────────────────── */
.directions-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 768px) { .directions-layout { grid-template-columns: 1fr; } }
.directions-info h2 {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.info-item {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.info-item:last-child { border-bottom: none; }
.info-icon {
  width: 40px;
  height: 40px;
  background: rgba(0,160,210,0.1);
  color: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  flex-shrink: 0;
}
.info-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}
.info-value {
  font-size: 0.9375rem;
  color: var(--text);
  font-weight: 500;
}
.info-value a { color: var(--text); }
.info-value a:hover { color: var(--accent); }
.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.map-embed iframe {
  width: 100%;
  height: 380px;
  display: block;
  border: none;
}
@media (max-width: 480px) { .map-embed iframe { height: 260px; } }

/* ── Next Auction Page ─────────────────────────────────────── */
.auction-placeholder {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 4rem 2rem;
  text-align: center;
  max-width: 560px;
  margin-inline: auto;
}
.auction-placeholder .placeholder-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}
.auction-placeholder h2 {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.auction-placeholder p { color: var(--text-secondary); margin-bottom: 1.5rem; }

/* ── Utilities ─────────────────────────────────────────────── */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.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;
}
