/* ============================================================
   ComicChronicle — Main Stylesheet
   ============================================================ */

/* ── Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&family=Space+Grotesk:wght@400;500;700&display=swap');

/* ── Design Tokens ── */
:root {
  --color-bg:        #F5F3EE;
  --color-surface:   #FFFFFF;
  --color-dark:      #1A1A2E;
  --color-mid:       #2D2D44;
  --color-accent:    #E63946;
  --color-accent-2:  #F4A261;
  --color-muted:     #6B6B80;
  --color-border:    #DCDCD6;
  --color-placeholder: #C8C4BB;

  --font-heading: 'Space Grotesk', 'Noto Sans JP', sans-serif;
  --font-body:    'Noto Sans JP', 'Space Grotesk', sans-serif;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;

  --max-w: 1200px;
  --gutter: 1.5rem;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; background: var(--color-bg); }
body {
  font-family: var(--font-body);
  color: var(--color-dark);
  background: var(--color-bg);
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ── Utilities ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section-label {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-dark);
}
.section-body {
  font-size: 1rem;
  color: var(--color-muted);
  line-height: 1.7;
  max-width: 640px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 2px solid transparent;
  line-height: 1;
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.btn-primary:hover { background: #c1121f; border-color: #c1121f; }
.btn-outline {
  background: transparent;
  color: var(--color-dark);
  border-color: var(--color-dark);
}
.btn-outline:hover { background: var(--color-dark); color: #fff; }
.btn-accent2 {
  background: var(--color-accent-2);
  color: var(--color-dark);
  border-color: var(--color-accent-2);
}
.btn-accent2:hover { background: #e08a3e; border-color: #e08a3e; }

/* ── Placeholder Image ── */
.img-placeholder {
  background: var(--color-placeholder);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.img-placeholder::after {
  content: 'PHOTO';
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #a09a91;
  position: absolute;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--color-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--color-accent);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 2rem;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.header-logo .brand-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}
.header-logo .brand-name span {
  color: var(--color-accent);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.site-nav a {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.03em;
}
.site-nav a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav-cta {
  background: var(--color-accent) !important;
  color: #fff !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 700 !important;
}
.nav-cta:hover { background: #c1121f !important; }
.hamburger {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* ============================================================
   SECTION 1 — HERO
   ============================================================ */
.hero {
  background: var(--color-dark);
  color: #fff;
  padding: 0;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
}
.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem var(--gutter) 5rem 0;
}
.hero-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent-2);
  margin-bottom: 1rem;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  color: #fff;
}
.hero-title em {
  color: var(--color-accent);
  font-style: normal;
}
.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 480px;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-image {
  position: relative;
}
.hero-image .img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 400px;
  background: var(--color-mid);
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 400px;
}
.hero-image .img-placeholder::after { color: #555; }
.hero-badge {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ============================================================
   SECTION 2 — ABOUT SUMMARY (stats)
   ============================================================ */
.about-summary {
  background: var(--color-surface);
  padding: 4rem 0;
  border-bottom: 1px solid var(--color-border);
}
.about-summary-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.stat-item {
  text-align: center;
  padding: 1.5rem 1rem;
  border-right: 1px solid var(--color-border);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--color-muted);
  font-weight: 500;
}

/* ============================================================
   SECTION 3 — CATEGORIES / UNIVERSES
   ============================================================ */
.categories {
  padding: 5rem 0;
  background: var(--color-bg);
}
.categories-header {
  text-align: center;
  margin-bottom: 3rem;
}
.categories-header .section-body {
  margin: 0.75rem auto 0;
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.category-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.category-card-img {
  height: 180px;
}
.category-card-img .img-placeholder {
  height: 100%;
  width: 100%;
}
.category-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.category-card-body {
  padding: 1.25rem;
}
.category-card-tag {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  margin-bottom: 0.6rem;
}
.category-card-tag.tag-dc { background: var(--color-dark); }
.category-card-tag.tag-indie { background: var(--color-accent-2); color: var(--color-dark); }
.category-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.4rem;
}
.category-card p {
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.6;
}

/* ============================================================
   SECTION 4 — FEATURED GUIDE (full-width)
   ============================================================ */
.featured-guide {
  background: var(--color-dark);
  color: #fff;
  padding: 5rem 0;
}
.featured-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.featured-img {
  height: 380px;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.featured-img .img-placeholder {
  height: 100%;
  width: 100%;
  background: var(--color-mid);
}
.featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.featured-img .img-placeholder::after { color: #555; }
.featured-content .section-label { color: var(--color-accent-2); }
.featured-content .section-title { color: #fff; }
.featured-content .section-body { color: rgba(255,255,255,0.65); margin-bottom: 2rem; max-width: 100%; }
.featured-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.featured-meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}
.featured-meta-item svg { color: var(--color-accent-2); }

/* ============================================================
   SECTION 5 — HOW IT WORKS
   ============================================================ */
.how-it-works {
  padding: 5rem 0;
  background: var(--color-surface);
}
.hiw-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.hiw-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}
.hiw-steps::before {
  content: '';
  position: absolute;
  top: 2.2rem;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--color-border);
}
.step-card {
  text-align: center;
  position: relative;
}
.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  position: relative;
  z-index: 1;
}
.step-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}
.step-card p {
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.6;
}

/* ============================================================
   SECTION 6 — LATEST GUIDES (article cards)
   ============================================================ */
.latest-guides {
  padding: 5rem 0;
  background: var(--color-bg);
}
.lg-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
  gap: 1rem;
}
.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.guide-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
}
.guide-card-img {
  height: 200px;
}
.guide-card-img .img-placeholder {
  height: 100%;
  width: 100%;
}
.guide-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.guide-card-content {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.guide-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.6rem;
}
.guide-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.4;
  margin-bottom: 0.5rem;
}
.guide-card p {
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.6;
  flex: 1;
}
.guide-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.78rem;
  color: var(--color-muted);
}
.guide-card-footer a {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-accent);
}
.guide-card-footer a:hover { text-decoration: underline; }

/* ============================================================
   SECTION 7 — TIMELINE BANNER
   ============================================================ */
.timeline-banner {
  background: var(--color-accent);
  color: #fff;
  padding: 3.5rem 0;
}
.timeline-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.timeline-text .section-label { color: rgba(255,255,255,0.7); }
.timeline-text .section-title { color: #fff; }
.timeline-text .section-body { color: rgba(255,255,255,0.75); margin-top: 0.5rem; }
.btn-white {
  background: #fff;
  color: var(--color-accent);
  border-color: #fff;
}
.btn-white:hover { background: #ffe0e2; border-color: #ffe0e2; }

/* ============================================================
   SECTION 8 — PRODUCTS (Guides / Subscriptions)
   ============================================================ */
.products {
  padding: 5rem 0;
  background: var(--color-surface);
}
.products-header {
  text-align: center;
  margin-bottom: 3rem;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.product-card {
  border-radius: var(--radius-md);
  border: 2px solid var(--color-border);
  overflow: hidden;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
}
.product-card.featured-product {
  border-color: var(--color-accent);
}
.product-card-img {
  height: 200px;
}
.product-card-img .img-placeholder {
  height: 100%;
  width: 100%;
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-badge {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  margin-bottom: 0.75rem;
}
.product-badge.badge-new { background: var(--color-accent-2); color: var(--color-dark); }
.product-badge.badge-pro { background: var(--color-dark); }
.product-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}
.product-card p {
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}
.product-price {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-dark);
  margin-bottom: 1rem;
}
.product-price span {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--color-muted);
}
.product-card .btn { width: 100%; justify-content: center; }

/* ============================================================
   SECTION 9 — TESTIMONIALS
   ============================================================ */
.testimonials {
  padding: 5rem 0;
  background: var(--color-bg);
}
.testimonials-header {
  text-align: center;
  margin-bottom: 3rem;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testimonial-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  border: 1px solid var(--color-border);
}
.testimonial-quote {
  font-size: 2rem;
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.75rem;
}
.testimonial-card p {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-placeholder);
  flex-shrink: 0;
  overflow: hidden;
}
.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.author-avatar .img-placeholder {
  height: 100%;
  width: 100%;
}
.author-avatar .img-placeholder::after { content: ''; }
.author-name {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-dark);
}
.author-role {
  font-size: 0.78rem;
  color: var(--color-muted);
}

/* ============================================================
   SECTION 10 — CONTACTS
   ============================================================ */
.contacts {
  padding: 5rem 0;
  background: var(--color-dark);
  color: #fff;
}
.contacts-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contacts-info .section-label { color: var(--color-accent-2); }
.contacts-info .section-title { color: #fff; margin-bottom: 1rem; }
.contacts-info .section-body { color: rgba(255,255,255,0.65); max-width: 100%; }
.contact-items {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg { color: var(--color-accent-2); }
.contact-detail-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.2rem;
}
.contact-detail-value {
  font-size: 0.95rem;
  color: #fff;
  font-weight: 500;
}
.contact-detail-value a { color: var(--color-accent-2); }
.contact-detail-value a:hover { text-decoration: underline; }
.contact-map {
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 360px;
}
.contact-map .img-placeholder {
  height: 100%;
  width: 100%;
  background: var(--color-mid);
}
.contact-map .img-placeholder::after { content: 'MAP'; color: #555; }
.contact-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #0F0F1A;
  color: rgba(255,255,255,0.6);
  padding: 3rem 0 1.5rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .brand-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.footer-brand .brand-name span { color: var(--color-accent); }
.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
  max-width: 280px;
}
.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1rem;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-col ul li a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
}
.footer-col ul li a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}
.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}
.footer-bottom-links a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}
.footer-bottom-links a:hover { color: rgba(255,255,255,0.7); }

/* ============================================================
   CENTER ALIGNMENT FOR MAIN SECTIONS (except header, contacts, footer)
   ============================================================ */
.about-summary,
.categories,
.featured-guide,
.how-it-works,
.latest-guides,
.timeline-banner,
.products,
.testimonials {
  text-align: center;
}
.categories-header,
.hiw-header,
.lg-header,
.products-header,
.testimonials-header {
  margin-left: auto;
  margin-right: auto;
}
.about-summary-inner,
.categories-grid,
.featured-inner,
.hiw-steps,
.guides-grid,
.products-grid,
.testimonials-grid {
  margin-left: auto;
  margin-right: auto;
}
.section-body {
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-dark);
  color: rgba(255,255,255,0.9);
  padding: 1.5rem;
  z-index: 9999;
  border-top: 3px solid var(--color-accent);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.2);
  font-size: 0.9rem;
  line-height: 1.6;
  animation: slideUp 0.3s ease-out;
}
@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner.hidden {
  display: none;
}
.cookie-banner-container {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  justify-content: space-between;
  padding: 0 var(--gutter);
}
.cookie-banner-content {
  flex: 1;
}
.cookie-banner-content h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
}
.cookie-banner-content p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0;
}
.cookie-banner-content a {
  color: var(--color-accent-2);
  text-decoration: underline;
}
.cookie-banner-content a:hover {
  color: #ffb35a;
}
.cookie-banner-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.cookie-banner button {
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.cookie-accept {
  background: var(--color-accent);
  color: #fff;
}
.cookie-accept:hover {
  background: #c1121f;
}
.cookie-customize {
  background: transparent;
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.3);
}
.cookie-customize:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
}
.cookie-decline {
  background: transparent;
  color: rgba(255,255,255,0.6);
  border: none;
  font-weight: 500;
}
.cookie-decline:hover {
  color: rgba(255,255,255,1);
}

/* ── Cookie Customization Modal ── */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1rem;
}
.cookie-modal.hidden {
  display: none;
}
.cookie-modal-content {
  background: #fff;
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: modalSlideIn 0.3s ease-out;
}
@keyframes modalSlideIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
.cookie-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}
.cookie-modal-header h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0;
}
.cookie-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #999;
}
.cookie-modal-close:hover {
  color: var(--color-dark);
}
.cookie-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}
.cookie-intro {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.cookie-option {
  border: none;
  padding: 0;
  margin-bottom: 1.25rem;
  display: block;
}
.cookie-option legend {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
  cursor: pointer;
}
.cookie-option legend input[type="checkbox"] {
  cursor: pointer;
  accent-color: var(--color-accent);
  width: 18px;
  height: 18px;
}
.cookie-option legend input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
.cookie-badge {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.65rem;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  margin-left: 0.5rem;
}
.cookie-option p {
  font-size: 0.85rem;
  color: #666;
  margin: 0;
  margin-left: 2rem;
}
.cookie-modal-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.cookie-modal-link {
  font-size: 0.85rem;
  color: var(--color-accent);
  text-decoration: underline;
}
.cookie-modal-link:hover {
  color: #c1121f;
}
.cookie-modal-actions {
  display: flex;
  gap: 0.75rem;
}
.cookie-modal-actions .btn {
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
}

/* ── Improved Footer ── */
.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  flex: 1;
}
.footer-section h4 {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1rem;
}
.footer-section ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-section ul li a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
}
.footer-section ul li a:hover {
  color: #fff;
}

/* ── Responsive Footer ── */
@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
  }
  .footer-nav {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .footer-brand {
    flex-direction: column;
  }
}
@media (max-width: 480px) {
  .footer-nav {
    grid-template-columns: 1fr;
  }
  .cookie-modal-footer {
    flex-direction: column;
  }
  .cookie-modal-actions {
    width: 100%;
    flex-direction: column;
  }
  .cookie-modal-actions .btn {
    width: 100%;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .about-summary-inner { grid-template-columns: repeat(2, 1fr); }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .hiw-steps { grid-template-columns: repeat(2, 1fr); }
  .hiw-steps::before { display: none; }
}
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-content { padding: 3rem var(--gutter); }
  .hero-image { display: none; }
  .about-summary-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid var(--color-border); }
  .stat-item:last-child { border-bottom: none; }
  .featured-inner { grid-template-columns: 1fr; }
  .featured-img { height: 240px; }
  .guides-grid { grid-template-columns: 1fr; }
  .timeline-inner { flex-direction: column; text-align: center; }
  .products-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .contacts-inner { grid-template-columns: 1fr; }
  .contact-map { height: 240px; }
  .footer-inner { grid-template-columns: 1fr; }
  .lg-header { flex-direction: column; align-items: flex-start; }
  .hamburger { display: flex; }
  .site-nav { display: none; }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-dark);
    padding: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .cookie-banner-container {
    flex-direction: column;
    gap: 1rem;
  }
  .cookie-banner-actions {
    width: 100%;
    flex-direction: column;
  }
  .cookie-banner button {
    width: 100%;
    text-align: center;
  }
}
@media (max-width: 480px) {
  .about-summary-inner { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: 1fr; }
  .hiw-steps { grid-template-columns: 1fr; }
}
