/* ── Variables ─────────────────────────────── */
:root {
  --ac:      #1b7a5a;
  --ac-d:    #145c43;
  --ac-l:    #eaf6f1;
  --ac-b:    #a9dcc7;
  --fg:      #1a1a1a;
  --fg2:     #555;
  --fg3:     #888;
  --bg:      #f7f9f8;
  --surface: #ffffff;
  --border:  #ececec;
  --footer:  #0a0b0d;
  --radius:  12px;
  --shadow:  0 2px 12px rgba(0,0,0,.07);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Apple SD Gothic Neo','Noto Sans KR','Pretendard',sans-serif; background: var(--bg); color: var(--fg); line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ── Header ────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 100; background: #0e1512; border-bottom: 3px solid var(--ac); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; padding-top: 12px; padding-bottom: 12px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { display: block; }
.gnb { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.gnb a { font-size: .85rem; color: #bbb; padding: 6px 12px; border-radius: 6px; font-weight: 600; transition: color .2s; white-space: nowrap; }
.gnb a:hover { color: var(--ac-b); }
.btn-call { background: var(--ac); color: #fff; padding: 8px 16px; border-radius: 24px; font-size: .85rem; font-weight: 700; white-space: nowrap; }

/* ── Breadcrumb ────────────────────────────── */
.breadcrumb { background: #fff; border-bottom: 1px solid var(--border); padding: 10px 0; font-size: .85rem; color: var(--fg3); }
.breadcrumb a { color: var(--ac-d); }
.breadcrumb a:hover { text-decoration: underline; }

/* ── Hero ──────────────────────────────────── */
.hero { position: relative; background: #0e1512; overflow: hidden; min-height: 360px; display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: brightness(.35); }
.hero-inner { position: relative; z-index: 1; padding: 64px 0; }
.hero-kw { display: inline-block; background: var(--ac); color: #fff; font-size: .78rem; font-weight: 800; padding: 4px 14px; border-radius: 20px; margin-bottom: 18px; letter-spacing: .05em; }
.hero-eyebrow { font-size: .88rem; font-weight: 600; color: rgba(255,255,255,.6); letter-spacing: .04em; margin-bottom: 10px; }
.hero h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 900; color: #fff; line-height: 1.3; margin-bottom: 16px; }
.hero h1 em { color: var(--ac-b); font-style: normal; }
.hero-sub { font-size: 1rem; color: rgba(255,255,255,.8); margin-bottom: 28px; max-width: 720px; }
.hero-pill { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { display: inline-block; padding: 7px 16px; border-radius: 24px; font-size: .82rem; font-weight: 700; border: 1.5px solid rgba(255,255,255,.25); color: rgba(255,255,255,.85); }
.pill.ac { background: var(--ac); color: #fff; border-color: var(--ac); }

/* ── Spec Strip ─────────────────────────────── */
.spec-strip { background: var(--ac); }
.spec-strip .wrap { display: flex; flex-wrap: wrap; }
.spec-item { flex: 1; min-width: 25%; text-align: center; padding: 16px 10px; }
.spec-item + .spec-item { border-left: 1px solid rgba(255,255,255,.2); }
.spec-num { font-size: 1.35rem; font-weight: 900; color: #fff; }
.spec-lbl { font-size: .74rem; color: rgba(255,255,255,.85); margin-top: 2px; }

/* ── Sections ──────────────────────────────── */
.section { padding: 56px 0; }
.section-alt { background: #fff; }
.section-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 8px; }
.section-title .ac { color: var(--ac); }
.section-lead { color: var(--fg2); font-size: .93rem; margin-bottom: 32px; }
.section-head { margin-bottom: 32px; }

.guide-box { background: var(--ac-l); border-left: 5px solid var(--ac); border-radius: 0 var(--radius) var(--radius) 0; padding: 26px 30px; margin-bottom: 28px; }
.guide-box p { font-size: 1rem; line-height: 1.75; color: var(--fg); }
.guide-box strong { color: var(--ac-d); }

/* ── Car Grid ──────────────────────────────── */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(206px, 1fr)); gap: 14px; }
.car-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.card, .car-card { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.card:hover, .car-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.card-img, .card-thumb img { width: 100%; height: 170px; object-fit: cover; display: block; }
.card-body, .card-info { padding: 12px 14px 14px; }
.car-name, .card-name { font-size: .95rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 6px; }
.car-meta, .card-trim { font-size: .8rem; color: var(--fg2); line-height: 1.6; margin-bottom: 10px; }
.car-meta b { color: var(--fg); }
.price-row { display: flex; justify-content: space-between; align-items: baseline; font-size: .8rem; margin-bottom: 3px; }
.price-lbl { color: var(--fg3); }
.price, .card-price { font-size: 1.05rem; font-weight: 800; color: var(--ac-d); }

.grid-cta { margin-top: 22px; border: 2px dashed var(--ac-b); border-radius: var(--radius); padding: 16px 22px; text-align: center; color: var(--fg2); font-size: .9rem; background: var(--ac-l); }
.grid-cta b { color: var(--fg); }

/* ── Model / Feature Grids ─────────────────── */
.model-grid, .feat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.model-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.model-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.model-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--ac-l); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.model-name { font-weight: 700; font-size: .93rem; }
.model-sub { font-size: .77rem; color: var(--fg3); }
.model-stat { font-size: .82rem; color: var(--fg2); line-height: 1.7; }

.feat-item { display: flex; gap: 14px; align-items: flex-start; }
.feat-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--ac); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.feat-text h3 { font-size: .93rem; font-weight: 700; margin-bottom: 4px; }
.feat-text p { font-size: .81rem; color: var(--fg2); line-height: 1.65; }

/* ── Checkpoint ────────────────────────────── */
.checkpoint-list { display: flex; flex-direction: column; gap: 16px; }
.cp-item { display: flex; gap: 14px; align-items: flex-start; }
.cp-num { font-size: 1.5rem; font-weight: 900; color: var(--ac-b); line-height: 1; flex-shrink: 0; width: 40px; }
.cp-body h3 { font-size: .96rem; font-weight: 700; margin-bottom: 4px; }
.cp-body p { font-size: .84rem; color: var(--fg2); line-height: 1.65; }

/* ── Tables ────────────────────────────────── */
.cmp-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.cmp-table, .price-table { width: 100%; border-collapse: collapse; font-size: .87rem; }
.cmp-table th, .price-table th { background: var(--ac); color: #fff; padding: 11px 16px; text-align: center; font-weight: 700; }
.cmp-table th:first-child { background: #0e1512; }
.cmp-table td, .price-table td { padding: 10px 16px; border-bottom: 1px solid var(--border); text-align: center; }
.cmp-table td:first-child { text-align: left; font-weight: 600; }
.cmp-table tr:last-child td, .price-table tr:last-child td { border-bottom: none; }
.cmp-table tr:hover td, .price-table tr:hover td { background: var(--ac-l); }
.price-table caption { text-align: left; font-size: .8rem; color: var(--fg3); margin-bottom: 8px; caption-side: top; }

/* ── FAQ ───────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-q { display: flex; align-items: center; justify-content: space-between; padding: 17px 20px; cursor: pointer; font-weight: 700; font-size: .93rem; background: var(--surface); transition: background .15s; user-select: none; }
.faq-q:hover { background: var(--ac-l); }
.faq-icon { font-size: 1.25rem; font-weight: 400; color: var(--ac); transition: transform .2s; flex-shrink: 0; margin-left: 12px; }
.faq-a { display: none; padding: 0 20px 18px; font-size: .89rem; color: var(--fg2); line-height: 1.75; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-item.open .faq-q { background: var(--ac-l); }

/* faq-item variant used for plain (non-JS) article FAQ blocks on car.php */
article.faq-item { padding: 18px 0; border-bottom: 1px solid var(--border); }
article.faq-item h3 { font-size: 1rem; font-weight: 700; color: var(--ac-d); margin-bottom: 8px; }
article.faq-item p { font-size: .9rem; color: var(--fg2); line-height: 1.75; }

/* ── Shop / Contact ────────────────────────── */
.shop-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.shop-info { display: flex; flex-direction: column; gap: 12px; }
.shop-row { display: flex; }
.shop-lbl { font-size: .8rem; font-weight: 700; color: var(--fg3); width: 76px; flex-shrink: 0; padding-top: 2px; }
.shop-val { font-size: .9rem; color: var(--fg); }
.shop-map { background: var(--border); border-radius: var(--radius); overflow: hidden; min-height: 220px; display: flex; align-items: center; justify-content: center; }
.shop-map-placeholder { text-align: center; color: var(--fg3); font-size: .85rem; padding: 36px; }

.contact-section { background: var(--bg); padding: 56px 0; }
.contact-box { background: #fafbfc; border-top: 4px solid var(--ac); border-radius: 18px; padding: 36px 44px; max-width: 620px; margin: 0 auto; text-align: center; box-shadow: var(--shadow); }
.contact-eyebrow { font-size: .78rem; font-weight: 800; letter-spacing: .1em; color: var(--ac-d); margin-bottom: 10px; text-transform: uppercase; }
.contact-title { font-size: 1.4rem; font-weight: 900; margin-bottom: 8px; }
.contact-sub { font-size: .9rem; color: var(--fg2); margin-bottom: 24px; }
.contact-tel { display: inline-block; font-size: 1.6rem; font-weight: 900; color: var(--ac-d); text-decoration: underline; text-underline-offset: 4px; margin-bottom: 8px; }
.contact-hours { font-size: .82rem; color: var(--fg3); }

/* ── Footer ────────────────────────────────── */
.site-footer { background: var(--footer); color: #888; padding: 44px 0 28px; }
.footer-inner { display: flex; flex-direction: column; gap: 8px; }
.footer-brand { font-size: 1rem; font-weight: 800; color: #fff; margin-bottom: 4px; }
.footer-row { display: flex; font-size: .82rem; line-height: 1.7; }
.footer-lbl { width: 92px; flex-shrink: 0; color: #666; font-weight: 600; }
.footer-val { color: #999; }
.footer-copy { margin-top: 20px; font-size: .78rem; color: #444; border-top: 1px solid #1e2028; padding-top: 18px; }

/* ── Pagination ────────────────────────────── */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.page-btn { padding: 8px 14px; border-radius: 8px; border: 1px solid var(--border); background: #fff; color: var(--fg2); font-size: .87rem; font-weight: 600; }
.page-btn:hover { border-color: var(--ac); color: var(--ac-d); }
.page-btn.active { background: var(--ac); color: #fff; border-color: var(--ac); }
.result-count { font-size: .9rem; color: var(--fg2); margin-bottom: 18px; }
.result-count strong { color: var(--ac-d); font-size: 1rem; }
.no-result { text-align: center; padding: 70px 20px; color: var(--fg3); font-size: 1rem; }

/* ── Detail Page ───────────────────────────── */
.detail-main { padding: 30px 0; }
.detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.gallery-main { position: relative; aspect-ratio: 4/3; background: #eaeaea; border-radius: 12px; overflow: hidden; margin-bottom: 10px; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-prev, .gallery-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,.45); color: #fff; border: none; cursor: pointer; width: 38px; height: 38px; border-radius: 50%; font-size: 1.3rem; display: flex; align-items: center; justify-content: center; }
.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.gallery-thumbs img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; cursor: pointer; border: 2px solid transparent; opacity: .7; }
.gallery-thumbs img:hover, .gallery-thumbs img.active { border-color: var(--ac); opacity: 1; }

.detail-title { font-size: 1.6rem; font-weight: 800; margin-bottom: 6px; }
.detail-trim { font-size: 1rem; color: var(--fg2); margin-bottom: 18px; }
.detail-price { font-size: 1.9rem; font-weight: 900; color: var(--ac-d); margin-bottom: 22px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: .92rem; margin-bottom: 22px; }
.spec-table th { background: var(--ac-l); width: 30%; padding: 10px 14px; text-align: left; font-weight: 700; color: var(--fg2); border-bottom: 1px solid var(--border); }
.spec-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.cta-box { text-align: center; }
.btn-primary { display: inline-block; background: var(--ac); color: #fff; padding: 15px 38px; border-radius: 50px; font-size: 1.05rem; font-weight: 800; margin-bottom: 8px; }
.cta-sub { font-size: .82rem; color: var(--fg3); }

.faq-section { padding: 56px 0; background: #fff; border-top: 1px solid var(--border); }
.faq-section h2 { font-size: 1.35rem; font-weight: 800; margin-bottom: 26px; }

/* ── Responsive ────────────────────────────── */
@media (max-width: 900px) { .shop-wrap, .detail-layout { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .gnb { display: none; } }
@media (max-width: 500px) {
  .gallery, .car-grid { grid-template-columns: 1fr 1fr; }
  .contact-box { padding: 26px 18px; }
  .hero { min-height: 300px; }
  .hero h1 { font-size: 1.4rem; }
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
}
