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

:root {
  --canvas: #f7f7f4;
  --canvas-soft: #fafaf7;
  --surface-card: #ffffff;
  --surface-strong: #e6e5e0;
  --primary: #f54e00;
  --primary-active: #d04200;
  --on-primary: #ffffff;
  --ink: #26251e;
  --body: #5a5852;
  --body-strong: #26251e;
  --muted: #807d72;
  --muted-soft: #a09c92;
  --hairline: #e6e5e0;
  --hairline-soft: #efeee8;
  --hairline-strong: #cfcdc4;
  --success: #1f8a65;
  --error: #cf2d56;
}

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

body {
  font-family: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: var(--canvas);
  color: var(--body);
  line-height: 1.5;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--primary); }

img { max-width: 100%; height: auto; display: block; }

/* NAV */
.site-header {
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
}

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

.nav-logo {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links li a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.15s;
  display: block;
}

.nav-links li a:hover { background: var(--surface-strong); color: var(--ink); }

.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 8px;
  list-style: none;
  min-width: 240px;
  box-shadow: 0 4px 16px rgba(38,37,30,0.07);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu li a { font-size: 14px; padding: 8px 12px; border-radius: 6px; white-space: nowrap; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* HERO */
.hero {
  padding: 80px 0 72px;
  border-bottom: 1px solid var(--hairline-soft);
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  background: var(--surface-strong);
  color: var(--ink);
  padding: 4px 10px;
  border-radius: 9999px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 48px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--ink);
  margin-bottom: 20px;
}
.hero p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.6;
  max-width: 420px;
}
.hero-img { border-radius: 12px; overflow: hidden; border: 1px solid var(--hairline); }
.hero-img img { width: 100%; height: 360px; object-fit: cover; }

/* SECTIONS */
.section { padding: 80px 0; }
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.section-title {
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.72px;
  color: var(--ink);
  margin-bottom: 16px;
  line-height: 1.2;
}
.section-subtitle { font-size: 16px; color: var(--body); max-width: 560px; line-height: 1.6; }

/* ARTICLE CARDS */
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.article-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.article-card:hover { border-color: var(--hairline-strong); }
.article-card-img { width: 100%; height: 200px; object-fit: cover; }
.article-card-body { padding: 24px; }
.article-card-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.article-card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 10px;
}
.article-card-excerpt { font-size: 14px; color: var(--body); line-height: 1.6; margin-bottom: 16px; }
.article-card-link { font-size: 14px; font-weight: 500; color: var(--primary); }
.article-card-link:hover { color: var(--primary-active); }

/* FEATURE STRIP */
.feature-strip { padding: 80px 0; border-top: 1px solid var(--hairline-soft); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.feature-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 24px;
}
.feature-icon { font-size: 24px; margin-bottom: 16px; }
.feature-title { font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.feature-text { font-size: 14px; color: var(--body); line-height: 1.6; }

/* CONTACT FORM SECTION */
.contact-section { padding: 80px 0; border-top: 1px solid var(--hairline-soft); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-info h2 { font-size: 36px; font-weight: 400; letter-spacing: -0.72px; color: var(--ink); margin-bottom: 16px; }
.contact-info p { font-size: 16px; color: var(--body); line-height: 1.6; }

form .form-group { margin-bottom: 20px; }
form label { display: block; font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
form input, form textarea {
  width: 100%;
  background: var(--surface-card);
  border: 1px solid var(--hairline-strong);
  border-radius: 8px;
  padding: 12px 16px;
  height: 44px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  transition: border-color 0.15s;
}
form textarea { height: auto; min-height: 100px; resize: vertical; }
form input:focus, form textarea:focus { outline: none; border-color: var(--ink); }
form input::placeholder, form textarea::placeholder { color: var(--muted-soft); }

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  height: 40px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary:hover { background: var(--primary-active); }
.btn-primary:disabled { opacity: 0.65; cursor: not-allowed; }

.btn-secondary {
  background: var(--surface-card);
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
  border-radius: 8px;
  padding: 10px 18px;
  height: 40px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-secondary:hover { background: var(--surface-strong); }

.form-msg {
  display: none;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-top: 12px;
}
.form-msg.success { background: #e6f4ef; color: var(--success); border: 1px solid #b5dfd3; display: block; }
.form-msg.error { background: #fce8ed; color: var(--error); border: 1px solid #f3b4c1; display: block; }

/* ARTICLE PAGE */
.article-page { padding: 64px 0 80px; }
.article-header { max-width: 720px; margin: 0 auto 48px; }
.article-header .tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.article-header h1 {
  font-size: 42px;
  font-weight: 400;
  letter-spacing: -1.2px;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 20px;
}
.article-header .meta { font-size: 13px; color: var(--muted); }
.article-hero-img { border-radius: 12px; overflow: hidden; margin-bottom: 48px; border: 1px solid var(--hairline); }
.article-hero-img img { width: 100%; height: 420px; object-fit: cover; }
.article-body { max-width: 720px; margin: 0 auto; }
.article-body h2 { font-size: 26px; font-weight: 400; letter-spacing: -0.325px; color: var(--ink); margin: 40px 0 16px; }
.article-body h3 { font-size: 20px; font-weight: 600; color: var(--ink); margin: 32px 0 12px; }
.article-body p { font-size: 16px; line-height: 1.7; margin-bottom: 20px; color: var(--body); }
.article-body ul, .article-body ol { margin: 0 0 20px 24px; }
.article-body li { font-size: 16px; line-height: 1.7; color: var(--body); margin-bottom: 6px; }
.article-body a { color: var(--primary); text-decoration: underline; }
.article-body a:hover { color: var(--primary-active); }
.article-body blockquote {
  border-left: 3px solid var(--primary);
  padding: 16px 20px;
  margin: 32px 0;
  background: var(--canvas-soft);
  border-radius: 0 8px 8px 0;
  font-size: 16px;
  color: var(--body);
  font-style: italic;
}
.article-body .info-box {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 24px;
  margin: 32px 0;
}
.article-body .info-box h4 { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.article-body .info-box p { font-size: 14px; margin-bottom: 0; }
.article-body .img-caption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.article-img-block { margin: 32px 0; }
.article-img-block img { border-radius: 12px; border: 1px solid var(--hairline); width: 100%; }

.related-articles { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--hairline-soft); }
.related-articles h3 { font-size: 22px; font-weight: 400; letter-spacing: -0.11px; color: var(--ink); margin-bottom: 24px; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* PAGE HEADER */
.page-header { padding: 64px 0 40px; border-bottom: 1px solid var(--hairline-soft); }
.page-header h1 { font-size: 42px; font-weight: 400; letter-spacing: -1.2px; color: var(--ink); margin-bottom: 12px; }
.page-header p { font-size: 16px; color: var(--body); max-width: 560px; }
.page-content { padding: 64px 0; max-width: 720px; }
.page-content h2 { font-size: 26px; font-weight: 400; letter-spacing: -0.325px; color: var(--ink); margin: 40px 0 16px; }
.page-content h3 { font-size: 18px; font-weight: 600; color: var(--ink); margin: 28px 0 10px; }
.page-content p { font-size: 16px; line-height: 1.7; color: var(--body); margin-bottom: 16px; }
.page-content ul { margin: 0 0 16px 24px; }
.page-content li { font-size: 16px; color: var(--body); line-height: 1.7; margin-bottom: 4px; }
.page-content a { color: var(--primary); }

/* FOOTER */
.site-footer { background: var(--canvas); border-top: 1px solid var(--hairline); padding: 64px 0 48px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 48px; }
.footer-brand { font-size: 16px; font-weight: 600; color: var(--ink); display: block; margin-bottom: 12px; }
.footer-tagline { font-size: 14px; color: var(--body); line-height: 1.6; }
.footer-col-title { font-size: 11px; font-weight: 600; letter-spacing: 0.88px; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 12px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 14px; color: var(--body); }
.footer-col ul li a:hover { color: var(--ink); }
.footer-disclaimer { font-size: 12px; color: var(--muted-soft); line-height: 1.5; margin-top: 12px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--hairline-soft);
  font-size: 13px;
  color: var(--muted);
}

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface-card);
  border: 1px solid var(--hairline-strong);
  border-radius: 12px;
  padding: 16px 24px;
  max-width: 520px;
  width: calc(100% - 48px);
  z-index: 999;
  box-shadow: 0 4px 24px rgba(38,37,30,0.1);
  display: none;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-banner.visible { display: flex; }
.cookie-banner.hidden { display: none !important; }
.cookie-banner p { font-size: 14px; color: var(--body); flex: 1; min-width: 200px; }
.cookie-banner p a { color: var(--primary); }
.cookie-btns { display: flex; gap: 8px; }

/* BREADCRUMB */
.breadcrumb { padding: 16px 0 0; }
.breadcrumb ol { list-style: none; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.breadcrumb li { font-size: 13px; color: var(--muted); }
.breadcrumb li a { color: var(--muted); }
.breadcrumb li a:hover { color: var(--ink); }
.breadcrumb li + li::before { content: '/'; margin-right: 6px; color: var(--muted-soft); }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero h1 { font-size: 40px; }
  .section-title { font-size: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    padding: 12px 24px 20px;
    gap: 2px;
  }
  .nav-links.open { display: flex; }
  .nav-inner { position: relative; }
  .nav-dropdown-menu { position: static; border: none; box-shadow: none; padding: 0 0 0 16px; border-radius: 0; }
  .nav-dropdown:hover .nav-dropdown-menu { display: none; }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 32px; letter-spacing: -1px; }
  .hero-img img { height: 240px; }
  .articles-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .related-grid { grid-template-columns: 1fr; }
  .article-header h1 { font-size: 30px; }
  .article-hero-img img { height: 240px; }
  .page-header h1 { font-size: 30px; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .hero { padding: 48px 0; }
  .section { padding: 56px 0; }
  .feature-strip { padding: 56px 0; }
  .contact-section { padding: 56px 0; }
  .section-title { font-size: 26px; }
}
