/* Audi Club Georgia — light, airy design with automatic dark mode */
:root {
  --bg: #ffffff; --bg-soft: #f5f6f8; --bg-softer: #eef0f3; --card: #ffffff;
  --text: #121316; --muted: #5d636e; --line: #e4e6ea; --line-strong: #d3d6dc;
  --accent: #bb0a30; --accent-hover: #9a0827; --accent-soft: rgba(187, 10, 48, .08);
  --shadow: 0 1px 2px rgba(16, 18, 22, .04), 0 6px 24px rgba(16, 18, 22, .06);
  --shadow-hover: 0 2px 4px rgba(16, 18, 22, .05), 0 16px 40px rgba(16, 18, 22, .10);
  --radius: 14px; --radius-sm: 10px;
  --header-bg: rgba(255, 255, 255, .82);
  --font: "Inter", "Noto Sans Georgian", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0f1012; --bg-soft: #15171a; --bg-softer: #1b1d21; --card: #17191c;
  --text: #f1f2f4; --muted: #a2a8b2; --line: #26292e; --line-strong: #353940;
  --accent: #f0284a; --accent-hover: #ff4562; --accent-soft: rgba(240, 40, 74, .12);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 24px rgba(0, 0, 0, .25);
  --shadow-hover: 0 2px 4px rgba(0, 0, 0, .35), 0 16px 40px rgba(0, 0, 0, .4);
  --header-bg: rgba(15, 16, 18, .8);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --bg: #0f1012; --bg-soft: #15171a; --bg-softer: #1b1d21; --card: #17191c;
    --text: #f1f2f4; --muted: #a2a8b2; --line: #26292e; --line-strong: #353940;
    --accent: #f0284a; --accent-hover: #ff4562; --accent-soft: rgba(240, 40, 74, .12);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 24px rgba(0, 0, 0, .25);
    --shadow-hover: 0 2px 4px rgba(0, 0, 0, .35), 0 16px 40px rgba(0, 0, 0, .4);
    --header-bg: rgba(15, 16, 18, .8);
    color-scheme: dark;
  }
}

/* logo switching */
.logo-d { display: none; }
:root[data-theme="dark"] .logo-l { display: none; }
:root[data-theme="dark"] .logo-d { display: block; }
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] .logo-l { display: none; }
  :root[data-theme="auto"] .logo-d { display: block; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; transition: background .25s, color .25s; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
p a, .prose a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; }
.lang-ka h1, .lang-ka h2, .lang-ka h3 { letter-spacing: 0; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(860px, 100% - 2.5rem); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 700; color: var(--accent); margin-bottom: .6rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none !important; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: .4rem; padding: .8rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: .95rem; border: 1px solid transparent; cursor: pointer; transition: all .2s; font-family: inherit; line-height: 1.2; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); }
.btn-ghost { border-color: var(--line-strong); background: transparent; color: var(--text); }
.btn-ghost:hover { border-color: var(--text); color: var(--text); }
.btn-sm { padding: .5rem .9rem; font-size: .85rem; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: 72px; }
.brand .logo { height: 40px; width: auto; }
.main-nav { display: flex; gap: .25rem; margin-left: auto; }
.main-nav a { padding: .5rem .75rem; border-radius: 8px; font-weight: 500; font-size: .93rem; color: var(--muted); white-space: nowrap; }
.main-nav a:hover { color: var(--text); background: var(--bg-soft); }
.main-nav a[aria-current] { color: var(--text); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.header-tools { display: flex; gap: .25rem; align-items: center; }
.tool { display: inline-grid; place-items: center; min-width: 40px; height: 40px; border-radius: 10px; border: 0; background: transparent; color: var(--text); cursor: pointer; font: 700 .8rem var(--font); letter-spacing: .04em; padding: 0 .4rem; }
.tool:hover { background: var(--bg-soft); color: var(--accent); }
.tool.lang { border: 1px solid var(--line-strong); height: 34px; min-width: 40px; }
.theme-toggle svg { display: none; }
:root[data-theme="auto"] .theme-toggle .i-auto, :root[data-theme="light"] .theme-toggle .i-sun, :root[data-theme="dark"] .theme-toggle .i-moon { display: block; }
.menu-btn { display: none; }

@media (max-width: 1080px) {
  .menu-btn { display: inline-grid; }
  .main-nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line); padding: .75rem 1.25rem 1.25rem; gap: 0; transform: translateY(-120%); transition: transform .25s; box-shadow: var(--shadow); margin: 0; max-height: calc(100vh - 72px); overflow-y: auto; }
  .main-nav.open { transform: none; }
  .main-nav a { padding: .85rem .5rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav a[aria-current] { box-shadow: inset 3px 0 0 var(--accent); padding-left: .9rem; }
  .header-tools { margin-left: auto; }
}
@media (max-width: 480px) { .brand .logo { height: 32px; } .header-inner { gap: .5rem; } }

/* hero */
.hero { position: relative; overflow: hidden; padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 5rem); background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%); border-bottom: 1px solid var(--line); }
.hero.has-img { background: linear-gradient(90deg, var(--bg) 25%, color-mix(in srgb, var(--bg) 70%, transparent) 55%, transparent), var(--hero-img) center / cover no-repeat; }
.hero-lines { position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(115deg, transparent 0 58%, var(--accent-soft) 58% 59.2%, transparent 59.2% 61%, var(--accent-soft) 61% 61.6%, transparent 61.6%),
  linear-gradient(115deg, transparent 0 66%, var(--bg-softer) 66% 100%); opacity: .9; }
.hero.has-img .hero-lines { display: none; }
.hero-inner { position: relative; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1.02; margin-bottom: 1rem; }
.hero h1 span { color: var(--accent); }
.hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; margin: 1.75rem 0 2.5rem; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 160px)); gap: 1rem; margin: 0; }
.stats div { border-left: 2px solid var(--accent); padding-left: .9rem; }
.stats dd { margin: 0; font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 800; line-height: 1.1; order: -1; }
.stats div { display: flex; flex-direction: column; }
.stats dt { color: var(--muted); font-size: .85rem; }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* page head */
.page-head { padding: clamp(2.5rem, 6vw, 4rem) 0 1.5rem; background: linear-gradient(180deg, var(--bg-soft), var(--bg)); }
.page-head h1 { margin-bottom: .35rem; }
.big-search { display: flex; gap: .5rem; margin-top: 1.5rem; max-width: 640px; }
.big-search input { flex: 1; }

/* sections */
.section { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section.pt0 { padding-top: .5rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.see-all { color: var(--accent); font-weight: 600; font-size: .95rem; white-space: nowrap; }
.year-h { margin: 2.25rem 0 1rem; font-size: 1.35rem; display: flex; align-items: center; gap: .6rem; }
.year-h::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.count { display: inline-block; background: var(--bg-softer); color: var(--muted); border-radius: 999px; padding: 0 .55rem; font-size: .8rem; font-weight: 600; }

/* grids & cards */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.card-link { display: block; height: 100%; color: inherit; }
.card-link:hover { color: inherit; }
.card-body { padding: 1rem 1.15rem 1.2rem; }
.card-body h3 { margin-bottom: .35rem; }
.more { color: var(--accent); font-weight: 600; font-size: .9rem; }

/* member card */
.car-photo { aspect-ratio: 16 / 10; background: var(--bg-softer); overflow: hidden; }
.car-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .car-photo img { transform: scale(1.04); }
.car-ph { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(115deg, var(--bg-softer) 0 60%, var(--accent-soft) 60% 62%, var(--bg-softer) 62%); color: var(--muted); font-weight: 700; letter-spacing: .05em; }
.car-ph.big { aspect-ratio: 16 / 10; border-radius: var(--radius); font-size: 1.5rem; }
.member-body { position: relative; padding: 2.4rem 1.15rem 1.15rem; }
.avatar { position: absolute; top: -32px; left: 1.15rem; width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--card); background: var(--bg-softer); overflow: hidden; display: grid; place-items: center; font-weight: 700; color: var(--muted); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.big { position: static; width: 110px; height: 110px; font-size: 2rem; border: 4px solid var(--bg); box-shadow: var(--shadow); margin-bottom: 1rem; }
.member-card h3 { font-size: 1.05rem; margin-bottom: .15rem; }
.member-card h3 small { font-weight: 500; color: var(--muted); }
.car-line { font-weight: 600; margin: 0 0 .4rem; font-size: .95rem; }
.specs { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 .65rem; }
.specs span { font-size: .78rem; background: var(--bg-soft); border: 1px solid var(--line); padding: .1rem .5rem; border-radius: 6px; color: var(--muted); }
.tenure { font-size: .85rem; color: var(--muted); margin: 0; }
.badge { display: inline-block; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: .75rem; padding: .1rem .5rem; border-radius: 6px; margin-right: .25rem; }
.muted-badge { background: var(--bg-softer); color: var(--muted); }
.is-former .car-photo img { filter: grayscale(.55); }

/* member detail */
.member-hero { padding: 1.5rem 0 3rem; background: linear-gradient(180deg, var(--bg-soft), var(--bg)); }
.back { display: inline-block; margin-bottom: 1.25rem; color: var(--muted); font-weight: 500; }
.member-detail { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: start; }
.member-car img { border-radius: var(--radius); box-shadow: var(--shadow-hover); width: 100%; }
.spec-table { margin: 1.25rem 0; border-top: 1px solid var(--line); }
.spec-table div { display: grid; grid-template-columns: 140px 1fr; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.spec-table dt { color: var(--muted); font-size: .9rem; }
.spec-table dd { margin: 0; font-weight: 600; }
@media (max-width: 860px) { .member-detail { grid-template-columns: 1fr; } }

/* events */
.event-cover { position: relative; aspect-ratio: 16 / 9; background: var(--bg-softer); overflow: hidden; }
.event-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .event-cover img { transform: scale(1.04); }
.cover-ph { width: 100%; height: 100%; background: linear-gradient(115deg, var(--bg-softer) 0 55%, var(--accent-soft) 55% 58%, var(--bg-soft) 58%); }
.date-badge { position: absolute; left: .85rem; top: .85rem; background: var(--card); color: var(--text); border-radius: 10px; padding: .35rem .6rem; text-align: center; line-height: 1.1; box-shadow: var(--shadow); min-width: 54px; }
.date-badge b { display: block; font-size: 1.35rem; color: var(--accent); }
.date-badge span { display: block; font-size: .7rem; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.event-hero { padding: 2rem 0 2.5rem; background: linear-gradient(180deg, var(--bg-soft), var(--bg)); }
.event-hero.has-img { position: relative; padding: clamp(10rem, 28vw, 18rem) 0 2.5rem; background: linear-gradient(0deg, var(--bg) 2%, color-mix(in srgb, var(--bg) 55%, transparent) 45%, transparent), var(--hero-img) center / cover; }
.event-meta { color: var(--muted); font-weight: 500; }

/* toolbar / filters */
.toolbar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin: 1rem 0 1.25rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { padding: .4rem .9rem; border-radius: 999px; border: 1px solid var(--line-strong); font-weight: 600; font-size: .88rem; color: var(--muted); }
.chip:hover { border-color: var(--text); color: var(--text); }
.chip.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.tabs { display: flex; gap: .25rem; background: var(--bg-soft); padding: .3rem; border-radius: 12px; border: 1px solid var(--line); }
.tab { padding: .5rem 1rem; border-radius: 9px; font-weight: 600; font-size: .92rem; color: var(--muted); }
.tab.active { background: var(--card); color: var(--text); box-shadow: var(--shadow); }
.filter { display: flex; gap: .5rem; flex: 1; justify-content: flex-end; min-width: min(100%, 300px); }
input[type="search"], input[type="text"], input[type="password"], select, textarea {
  font: inherit; color: var(--text); background: var(--card); border: 1px solid var(--line-strong); border-radius: 10px; padding: .7rem .95rem; min-width: 0; }
.filter input { flex: 1; max-width: 380px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.result-count { margin: -.25rem 0 1rem; }
.empty { padding: 3rem 1rem; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius); }

/* video */
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; cursor: pointer; background: #000; overflow: hidden; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .92; transition: opacity .2s, transform .4s; }
.yt:hover img { opacity: 1; transform: scale(1.03); }
.yt .play { position: absolute; inset: 0; display: grid; place-items: center; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card:hover { transform: none; }

/* gallery */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: .6rem; }
.photo-grid .ph { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-sm); background: var(--bg-softer); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.photo-grid .ph:hover img { transform: scale(1.05); }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8, 9, 10, .94); display: grid; place-items: center; padding: 3rem 4rem; }
.lightbox img { max-height: calc(100vh - 8rem); max-width: 100%; object-fit: contain; border-radius: 6px; }
.lightbox figcaption { color: #ddd; text-align: center; margin-top: .75rem; font-size: .95rem; }
.lb-btn { position: absolute; background: rgba(255, 255, 255, .1); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { background: rgba(255, 255, 255, .22); }
.lb-close { top: 1rem; right: 1rem; } .lb-prev { left: 1rem; top: 50%; } .lb-next { right: 1rem; top: 50%; }
@media (max-width: 640px) { .lightbox { padding: 3.5rem .5rem; } .lb-prev, .lb-next { top: auto; bottom: 1rem; } }

/* partners */
.partner-logo { aspect-ratio: 16 / 7; display: grid; place-items: center; background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 1.25rem; font-weight: 800; font-size: 1.3rem; }
.partner-logo img { max-height: 100%; max-width: 70%; object-fit: contain; }
.offer { background: var(--accent-soft); border-radius: 8px; padding: .5rem .7rem; font-size: .9rem; }
.logo-strip { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.logo-strip a { flex: 0 0 auto; height: 72px; min-width: 140px; display: grid; place-items: center; padding: .75rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); font-weight: 700; }
.logo-strip img { max-height: 44px; max-width: 140px; object-fit: contain; filter: grayscale(1); opacity: .8; transition: all .2s; }
.logo-strip a:hover img { filter: none; opacity: 1; }

/* about */
.about-band { background: var(--bg-soft); border-block: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: center; }
.wwd { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.wwd-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); margin-top: 1.25rem; }
.wwd li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; border-top: 3px solid var(--accent); }
.wwd p { color: var(--muted); margin: 0; font-size: .93rem; }
.prose-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 3rem; }
.prose p { font-size: 1.05rem; }
.timeline ol { list-style: none; margin: 0; padding: 0 0 0 1.25rem; border-left: 2px solid var(--line-strong); }
.timeline li { position: relative; padding: 0 0 1.5rem .5rem; }
.timeline li::before { content: ""; position: absolute; left: -1.25rem; top: .45rem; width: 12px; height: 12px; margin-left: -7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--bg); }
.timeline b { display: block; font-size: 1.25rem; }
.timeline span { color: var(--muted); }
@media (max-width: 860px) { .about-grid, .prose-grid { grid-template-columns: 1fr; gap: 2rem; } .wwd { grid-template-columns: 1fr; } }

/* forum / 404 */
.soon { padding: clamp(2rem, 5vw, 3.5rem); text-align: center; }
.soon .lead { margin-inline: auto; }
.big-404 { font-size: clamp(5rem, 15vw, 9rem); font-weight: 800; color: var(--accent); line-height: 1; margin: 0; }
.center .lead { margin-inline: auto; }

/* ads */
.ad-slot { margin: 1.5rem auto; text-align: center; min-height: 0; }
.ad-label { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: .25rem; }
.ad-preview { min-height: 110px; display: grid; place-items: center; border: 2px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); font-weight: 600; background: var(--bg-soft); }

/* footer */
.site-footer { margin-top: 3rem; background: var(--bg-soft); border-top: 1px solid var(--line); padding: 3rem 0 1.5rem; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; }
.site-footer .logo { height: 40px; width: auto; margin-bottom: 1rem; }
.site-footer nav { display: grid; gap: .4rem; align-content: start; }
.site-footer nav a, .site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }
.footer-h { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text); }
.footer-grid p { margin: 0 0 .4rem; }
.social { display: flex; gap: .5rem; margin-top: 1rem; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--text); }
.social a:hover { border-color: var(--accent); color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1.25rem; color: var(--muted); }
.footer-bottom p { margin: 0 0 .3rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
