/* ============================================================
   BombichMac — style.css
   Colors: #1d1d1f (text), #6e6e73 (secondary), #0066cc (accent),
           #f5f5f7 (light bg), #ffffff (white)
   ============================================================ */

/* ===== CSS VARIABLES ===== */
:root {
  --white:        #ffffff;
  --bg:           #f5f5f7;
  --bg-section:   #fbfbfd;
  --border:       #d2d2d7;
  --text:         #1d1d1f;
  --text-sec:     #6e6e73;
  --text-dim:     #a1a1a6;
  --accent:       #0066cc;
  --accent-dark:  #0055b3;
  --accent-light: #e8f1fb;
  --max-w:        960px;
  --r-sm:         6px;
  --r:            12px;
  --r-lg:         18px;
}

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

html  { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               Helvetica Neue, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a               { color: var(--accent); text-decoration: none; }
a:hover         { color: var(--accent-dark); text-decoration: underline; }
img             { max-width: 100%; display: block; }
ul, ol          { padding-left: 1.5rem; }
p               { margin-bottom: 1rem; }
p:last-child    { margin-bottom: 0; }

/* ===== TYPOGRAPHY ===== */
h1 { font-size: clamp(1.75rem, 4vw, 2.625rem); font-weight: 700;
     line-height: 1.15; letter-spacing: -0.022em; }
h2 { font-size: clamp(1.3rem, 3vw, 1.875rem);  font-weight: 600;
     line-height: 1.25; letter-spacing: -0.015em; }
h3 { font-size: clamp(1.05rem, 2vw, 1.25rem);  font-weight: 600; line-height: 1.3; }
h4 { font-size: 1rem; font-weight: 600; }

.lead        { font-size: 1.1rem;  color: var(--text-sec); line-height: 1.7; }
.text-sec    { color: var(--text-sec); }
.text-small  { font-size: 0.875rem; }
.text-mono   { font-family: ui-monospace, SFMono-Regular, monospace; font-size: 0.875rem; }

/* ===== LAYOUT ===== */
.container        { max-width: var(--max-w); margin-inline: auto; padding-inline: 1.25rem; }
.section          { padding-block: 4rem; }
.section-sm       { padding-block: 2.5rem; }
.section + .section { border-top: 1px solid var(--border); }

/* ===== HEADER ===== */
.site-header {
  position: sticky; top: 0;
  background: rgba(255,255,255,0.88);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.header-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 52px;
}

.site-logo              { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text); text-decoration: none; }
.site-logo:hover        { color: var(--text); text-decoration: none; }
.site-logo span         { color: var(--accent); }

.site-nav               { display: flex; align-items: center; gap: 1.75rem; }
.site-nav a             { font-size: 0.88rem; color: var(--text-sec); transition: color 0.15s; }
.site-nav a:hover       { color: var(--text); text-decoration: none; }
.site-nav a.active      { color: var(--text); font-weight: 500; }

.nav-toggle {
  display: none; background: none; border: none;
  cursor: pointer; padding: 4px; color: var(--text);
}

/* ===== HERO ===== */
.hero {
  padding-block: 5rem 4rem;
  background: var(--bg-section);
  border-bottom: 1px solid var(--border);
}

.hero-label {
  display: inline-block; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
}

.hero h1    { margin-bottom: 1.25rem; max-width: 620px; }
.hero .lead { max-width: 540px; margin-bottom: 2rem; }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: var(--bg-section);
  border-bottom: 1px solid var(--border);
  padding-block: 3rem;
}
.page-hero h1    { font-size: clamp(1.4rem, 3.5vw, 2.1rem); margin-bottom: 0.75rem; }
.page-hero .lead { max-width: 540px; }

/* ===== CARDS ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.5rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.card:hover { box-shadow: 0 4px 18px rgba(0,0,0,0.08); border-color: #b8b8bf; }

.card-icon {
  width: 40px; height: 40px;
  background: var(--accent-light);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.card-icon svg { width: 20px; height: 20px; color: var(--accent); }
.card h3       { margin-bottom: 0.45rem; }
.card p        { font-size: 0.9rem; color: var(--text-sec); margin: 0; }

/* ===== GUIDE CARDS ===== */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}

.guide-card {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
}
.guide-card:hover        { box-shadow: 0 4px 20px rgba(0,0,0,0.09); text-decoration: none; color: inherit; }

.guide-card-thumb {
  height: 6px;
  background: var(--accent-light);
}
.guide-card-thumb.t2 { background: #e0f0e8; }
.guide-card-thumb.t3 { background: #fdf0e0; }
.guide-card-thumb.t4 { background: #f0e8f8; }
.guide-card-thumb.t5 { background: #e8f8f8; }
.guide-card-thumb.t6 { background: #f8e8e8; }

.guide-card-body { padding: 1.25rem; flex: 1; }

.guide-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.55rem;
}

.guide-card h3  { font-size: 1rem; margin-bottom: 0.4rem; }
.guide-card p   { font-size: 0.875rem; color: var(--text-sec); margin: 0; }

.guide-card-meta {
  padding: 0.7rem 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-dim);
  display: flex; gap: 1rem;
}

/* ===== ARTICLE LAYOUT ===== */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 268px;
  gap: 3rem;
  align-items: start;
}

.article-body h2    { margin-top: 2.25rem; margin-bottom: 0.75rem; }
.article-body h3    { margin-top: 1.75rem; margin-bottom: 0.6rem; }
.article-body p     { margin-bottom: 1.1rem; }
.article-body li    { margin-bottom: 0.45rem; }
.article-body ul,
.article-body ol    { margin-bottom: 1.1rem; }

.article-meta {
  display: flex; align-items: center; gap: 1.25rem;
  font-size: 0.85rem; color: var(--text-sec);
  margin-bottom: 2rem; padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.article-sidebar { position: sticky; top: 68px; }

.sidebar-box {
  background: var(--bg);
  border-radius: var(--r);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.sidebar-box h4 {
  font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--text-sec); margin-bottom: 0.85rem;
}
.sidebar-box ul       { list-style: none; padding: 0; }
.sidebar-box ul li    { padding: 0.35rem 0; border-bottom: 1px solid var(--border); font-size: 0.875rem; }
.sidebar-box ul li:last-child { border-bottom: none; }
.sidebar-box ul li a  { color: var(--text); }
.sidebar-box ul li a:hover { color: var(--accent); }

/* ===== CALLOUTS ===== */
.story-callout {
  background: var(--bg);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}
.story-callout p { font-size: 0.95rem; color: var(--text-sec); font-style: italic; }
.story-callout p:last-child { margin-bottom: 0; }

.info-box {
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--white);
}
.info-box-title {
  font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-sec); margin-bottom: 0.75rem;
}

.highlight-bar {
  background: var(--accent-light);
  border-radius: var(--r);
  padding: 1.4rem 1.5rem;
  margin: 2rem 0;
}
.highlight-bar p { margin: 0; font-size: 0.95rem; }

/* ===== FAQ ===== */
.faq-list    { list-style: none; padding: 0; }

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

.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem 0; cursor: pointer; font-weight: 500; font-size: 1rem;
  gap: 1rem; user-select: none; list-style: none;
}
.faq-question svg    { flex-shrink: 0; transition: transform 0.25s; color: var(--text-sec); }
.faq-item.open .faq-question svg { transform: rotate(180deg); }

.faq-answer        { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-answer-inner  { padding-bottom: 1.1rem; font-size: 0.95rem; color: var(--text-sec); line-height: 1.65; }
.faq-item.open .faq-answer { max-height: 600px; }

/* ===== BREADCRUMB ===== */
.breadcrumb {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; color: var(--text-sec);
  margin-bottom: 1.5rem; flex-wrap: wrap;
}
.breadcrumb a       { color: var(--text-sec); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep     { color: var(--border); }

/* ===== FORM ===== */
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.4rem; }

.form-control {
  width: 100%; padding: 0.65rem 0.9rem;
  font-size: 0.95rem; font-family: inherit;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--white); color: var(--text);
  transition: border-color 0.15s; outline: none;
}
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,102,204,0.12); }
textarea.form-control { resize: vertical; min-height: 120px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.65rem 1.5rem; font-size: 0.95rem; font-weight: 500;
  border-radius: var(--r-sm); cursor: pointer; border: none;
  font-family: inherit; transition: background 0.15s;
}
.btn-primary       { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }

/* ===== CONTACT INFO ===== */
.contact-info-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--border);
}
.contact-info-item h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-sec); margin-bottom: 0.5rem; }
.contact-info-item p  { font-size: 0.95rem; margin: 0; }

/* ===== COOKIE BANNER ===== */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #1a1a1e; color: #e8e8ea;
  padding: 1rem 1.25rem; z-index: 9999; display: none;
}
#cookie-banner.visible { display: block; }

.cookie-inner {
  max-width: var(--max-w); margin-inline: auto;
  display: flex; align-items: center;
  justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.cookie-text       { font-size: 0.875rem; line-height: 1.55; }
.cookie-text a     { color: #70b3f0; }
.cookie-actions    { display: flex; gap: 0.65rem; flex-shrink: 0; }

.btn-cookie-accept {
  background: var(--accent); color: #fff; border: none;
  padding: 0.45rem 1.1rem; font-size: 0.85rem; font-weight: 500;
  border-radius: 6px; cursor: pointer; font-family: inherit;
}
.btn-cookie-accept:hover { background: var(--accent-dark); }

.btn-cookie-decline {
  background: transparent; color: #aaa;
  border: 1px solid #444; padding: 0.45rem 1.1rem;
  font-size: 0.85rem; border-radius: 6px;
  cursor: pointer; font-family: inherit;
}
.btn-cookie-decline:hover { border-color: #888; color: #ccc; }

/* ===== FOOTER ===== */
.site-footer {
  background: #1d1d1f; color: #a1a1a6;
  padding-block: 3rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 2.5rem; margin-bottom: 2.5rem;
}

.footer-brand .site-logo      { color: #f5f5f7; display: inline-block; }
.footer-brand .site-logo span  { color: #5cadff; }
.footer-brand p                { font-size: 0.875rem; margin-top: 0.75rem; line-height: 1.6; }

.footer-col h5 {
  font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.09em;
  color: #e0e0e2; margin-bottom: 1rem;
}
.footer-col ul         { list-style: none; padding: 0; }
.footer-col ul li      { margin-bottom: 0.5rem; }
.footer-col ul li a    { font-size: 0.875rem; color: #a1a1a6; transition: color 0.15s; }
.footer-col ul li a:hover { color: #f5f5f7; text-decoration: none; }

.footer-contact p      { font-size: 0.875rem; margin-bottom: 0.45rem; line-height: 1.5; }
.footer-contact a      { color: #a1a1a6; }
.footer-contact a:hover { color: #f5f5f7; text-decoration: none; }

.footer-bottom {
  padding-top: 1.5rem; border-top: 1px solid #333;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.78rem; flex-wrap: wrap; gap: 0.5rem;
}

/* ===== LEGAL PAGES ===== */
.legal-content h2    { margin-top: 2.5rem; margin-bottom: 0.75rem; font-size: 1.2rem; }
.legal-content h3    { margin-top: 1.75rem; margin-bottom: 0.6rem; font-size: 1.05rem; }
.legal-content p     { margin-bottom: 1rem; }
.legal-content ul,
.legal-content ol    { margin-bottom: 1rem; }
.legal-content li    { margin-bottom: 0.4rem; }
.legal-update        { font-size: 0.85rem; color: var(--text-sec); margin-bottom: 2rem; }

/* ===== STORY HERO (index) ===== */
.story-block {
  background: var(--bg-section);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  padding: 2rem;
  margin-block: 0;
}
.story-block .story-label {
  font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--text-sec); margin-bottom: 0.75rem;
}
.story-block h2 { margin-bottom: 1rem; font-size: 1.35rem; }
.story-block p  { font-size: 0.95rem; color: var(--text-sec); }

/* ===== DIVIDER ===== */
hr.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ===== SECTION HEADER ===== */
.section-header { margin-bottom: 2rem; }
.section-header h2 { margin-bottom: 0.4rem; }
.section-header p  { color: var(--text-sec); margin: 0; }

/* ===== STAT ROW ===== */
.stat-row { display: flex; gap: 2.5rem; flex-wrap: wrap; margin: 2rem 0; }
.stat-item h3 { font-size: 2rem; font-weight: 700; color: var(--accent); }
.stat-item p  { font-size: 0.875rem; color: var(--text-sec); margin: 0; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .site-nav {
    display: none; position: absolute; top: 52px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem; flex-direction: column;
    align-items: flex-start; gap: 1rem;
  }
  .site-nav.open { display: flex; }
  .nav-toggle    { display: flex; }

  .hero          { padding-block: 3rem 2.5rem; }
  .section       { padding-block: 2.5rem; }

  .footer-grid   { grid-template-columns: 1fr 1fr; gap: 1.75rem; }
  .footer-brand  { grid-column: 1 / -1; }

  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }

  .form-row      { grid-template-columns: 1fr; }
  .contact-info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .footer-grid   { grid-template-columns: 1fr; }
  .cookie-inner  { flex-direction: column; }
  .stat-row      { gap: 1.5rem; }
  .guide-grid    { grid-template-columns: 1fr; }
}
