/*
Theme Name: YT Thumbnail Downloader
Theme URI: https://github.com/your-username/yt-thumbnail-downloader
Author: Your Name
Author URI: https://yourwebsite.com
Description: A clean, fast YouTube Thumbnail Downloader theme ported from a React/Tailwind SPA. Features a hero tool section, blog, FAQ accordion, contact form, and full white/red brand aesthetic.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yt-thumbnail-downloader
Tags: blog, custom-header, custom-menu, featured-images, footer-widgets, full-width-template, theme-options, translation-ready
*/

/* ============================================================
   CSS CUSTOM PROPERTIES  (matches original Tailwind design tokens)
   ============================================================ */
:root {
  --background:    #ffffff;
  --foreground:    #333333;
  --card:          #ffffff;
  --card-foreground: #333333;
  --primary:       #ff0000;
  --primary-foreground: #ffffff;
  --secondary:     #f5f5f5;
  --secondary-foreground: #333333;
  --muted:         #f5f5f5;
  --muted-foreground: #737373;
  --border:        #e5e5e5;
  --input:         #e5e5e5;
  --radius:        0.75rem;
  --font-main:     'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  line-height: 1.6;
}

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

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { text-decoration: underline; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--foreground);
  text-wrap: balance;
  line-height: 1.15;
}

h1 { font-size: clamp(2rem, 5vw, 3.75rem); margin-bottom: 1.5rem; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); margin-top: 3rem; margin-bottom: 1.5rem; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.875rem); margin-top: 2rem; margin-bottom: 1rem; }
h4 { font-size: clamp(1.1rem, 2vw, 1.5rem); margin-top: 1.5rem; margin-bottom: 1rem; }

p { line-height: 1.75; margin-bottom: 1.5rem; max-width: 70ch; }

ul, ol { padding-left: 1.5rem; margin-bottom: 1.5rem; }
li { line-height: 1.75; margin-bottom: .5rem; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px)  { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

.flex   { display: flex; }
.grid   { display: grid; }
.hidden { display: none; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .625rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .9375rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .2s, color .2s, transform .1s, box-shadow .2s;
  text-decoration: none;
  line-height: 1;
  font-family: var(--font-main);
}
.btn:active { transform: scale(.98); }

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground) !important;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(255,0,0,.25);
}
.btn-primary:hover { background: #cc0000; border-color: #cc0000; text-decoration: none; }

.btn-secondary {
  background: var(--secondary);
  color: var(--foreground) !important;
  border-color: var(--border);
}
.btn-secondary:hover { background: #ebebeb; text-decoration: none; }

.btn-outline {
  background: transparent;
  color: var(--foreground) !important;
  border-color: var(--border);
}
.btn-outline:hover { background: var(--secondary); text-decoration: none; }

.btn-lg { padding: .875rem 1.75rem; font-size: 1rem; }
.btn-icon { padding: .625rem; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .3s, transform .3s;
}
.card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.1); transform: translateY(-2px); }

.card-content { padding: 1.5rem; }
.card-footer  { padding: 1rem 1.5rem; border-top: 1px solid var(--border); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  color: var(--foreground);
}
.site-logo:hover { text-decoration: none; }
.site-logo__icon {
  width: 2rem;
  height: 2rem;
  background: var(--primary);
  border-radius: .5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(255,0,0,.3);
  flex-shrink: 0;
  transition: transform .2s;
}
.site-logo:hover .site-logo__icon { transform: scale(1.05); }
.site-logo__icon svg { width: 1rem; height: 1rem; fill: #fff; }
.site-logo__name {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -.02em;
  color: var(--foreground);
}
.site-logo__name--short { display: none; }

@media (max-width: 639px) {
  .site-logo__name--full  { display: none; }
  .site-logo__name--short { display: block; }
}

/* Primary Nav */
.primary-nav { display: none; align-items: center; gap: .25rem; }
@media (min-width: 768px) { .primary-nav { display: flex; } }

.primary-nav a {
  padding: .5rem 1rem;
  border-radius: .5rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: background .2s, color .2s;
}
.primary-nav a:hover,
.primary-nav a.current-menu-item {
  background: var(--secondary);
  color: var(--foreground);
  text-decoration: none;
}
.primary-nav a.current-menu-item {
  background: var(--primary);
  color: #fff;
}

/* Hamburger */
.hamburger-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: .5rem;
  color: var(--foreground);
  transition: background .2s;
}
.hamburger-btn:hover { background: var(--secondary); }
@media (min-width: 768px) { .hamburger-btn { display: none; } }

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 4rem;
  right: 0;
  bottom: 0;
  width: 280px;
  background: var(--background);
  border-left: 1px solid var(--border);
  box-shadow: -4px 0 20px rgba(0,0,0,.12);
  z-index: 99;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}
.mobile-menu.is-open { display: block; }
.mobile-menu nav { display: flex; flex-direction: column; gap: .5rem; }
.mobile-menu nav a {
  display: block;
  padding: .75rem 1rem;
  border-radius: .5rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: background .2s, color .2s;
}
.mobile-menu nav a:hover { background: var(--secondary); color: var(--foreground); }
.mobile-menu nav a.current-menu-item { background: var(--primary); color: #fff; }
.mobile-menu__divider { border-top: 1px solid var(--border); margin-top: 1rem; padding-top: 1rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--secondary);
  border-top: 1px solid var(--border);
  margin-top: 6rem;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 3rem 0;
}
@media (min-width: 768px) { .site-footer__inner { grid-template-columns: repeat(3, 1fr); } }

.site-footer__brand p { font-size: .875rem; color: var(--muted-foreground); line-height: 1.6; max-width: 28ch; }
.site-footer__col-title { font-weight: 700; font-size: .9375rem; color: var(--foreground); margin-bottom: 1rem; }
.site-footer__nav { display: flex; flex-direction: column; gap: .75rem; }
.site-footer__nav a { font-size: .875rem; font-weight: 500; color: var(--muted-foreground); text-decoration: none; transition: color .2s; }
.site-footer__nav a:hover { color: var(--primary); }

.site-footer__bottom {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.site-footer__copyright { font-size: .875rem; font-weight: 500; color: var(--muted-foreground); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  padding: 5rem 0 7rem;
  overflow: hidden;
  background: var(--background);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(255,0,0,.04) 0%, transparent 60%);
  pointer-events: none;
}

.hero__content { text-align: center; margin-bottom: 3rem; }
.hero__title { margin-bottom: 1.5rem; }
.hero__title .text-primary { color: var(--primary); }
.hero__subtitle { font-size: clamp(1rem, 2.5vw, 1.25rem); color: var(--muted-foreground); max-width: 40rem; margin: 0 auto; font-weight: 500; line-height: 1.65; }

.hero__tool-wrapper {
  max-width: 50rem;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(0,0,0,.08);
  padding: 1.75rem 2rem;
}

/* ============================================================
   THUMBNAIL GRABBER TOOL
   ============================================================ */
.grabber-label { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: .5rem; }
.grabber-row { display: flex; gap: .625rem; }
.grabber-input {
  flex: 1;
  padding: .6875rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-size: .9375rem;
  color: var(--foreground);
  background: var(--background);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.grabber-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,0,0,.12); }
.grabber-input::placeholder { color: var(--muted-foreground); }

.grabber-error {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  padding: 1rem;
  background: rgba(255,0,0,.06);
  border: 1px solid rgba(255,0,0,.2);
  border-radius: var(--radius);
  margin-top: 1rem;
  font-size: .875rem;
  color: var(--primary);
}
.grabber-error svg { flex-shrink: 0; width: 1.25rem; height: 1.25rem; margin-top: .1rem; }

.thumbnail-results { margin-top: 2.5rem; }
.thumbnail-results__title { font-size: 1.375rem; font-weight: 700; margin-bottom: 1.5rem; }
.thumbnail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 500px) { .thumbnail-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .thumbnail-grid { grid-template-columns: repeat(3, 1fr); } }

.thumb-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .3s, transform .3s;
}
.thumb-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.1); transform: translateY(-2px); }
.thumb-card__image-wrap {
  position: relative;
  padding-top: 56.25%; /* 16:9 */
  background: var(--muted);
}
.thumb-card__image-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumb-card__badge {
  position: absolute;
  top: .5rem;
  right: .5rem;
  background: rgba(0,0,0,.7);
  color: #fff;
  padding: .2rem .55rem;
  border-radius: .35rem;
  font-size: .75rem;
  font-weight: 600;
}
.thumb-card__footer { padding: 1rem; margin-top: auto; }
.thumb-card__footer .btn { width: 100%; justify-content: center; }

/* ============================================================
   FEATURES SECTION
   ============================================================ */
.features-section { padding: 5rem 0 6rem; border-top: 1px solid var(--border); }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { margin-top: 0; }
.section-header p { font-size: 1.125rem; color: var(--muted-foreground); max-width: 40rem; margin: .75rem auto 0; font-weight: 500; }

.feature-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}
@media (min-width: 768px) { .feature-item { grid-template-columns: 1fr 1fr; } }
.feature-item:last-child { margin-bottom: 0; }

.feature-item__icon-wrap {
  width: 4rem;
  height: 4rem;
  background: rgba(255,0,0,.08);
  border: 1px solid rgba(255,0,0,.15);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(255,0,0,.08);
}
.feature-item__icon-wrap svg { width: 2rem; height: 2rem; color: var(--primary); stroke: var(--primary); }

.feature-item h3 { font-size: 1.5rem; margin-top: 0; margin-bottom: 1rem; }
.feature-item p  { color: var(--muted-foreground); font-weight: 500; max-width: 40ch; margin-bottom: 0; }

.feature-item__visual {
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.feature-item__visual-inner {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, rgba(255,0,0,.08), var(--background));
  border-radius: 1rem;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-item__visual-inner svg { width: 6rem; height: 6rem; color: rgba(255,0,0,.3); stroke: rgba(255,0,0,.3); }

/* Reverse layout for even items */
@media (min-width: 768px) {
  .feature-item--reverse .feature-item__text { order: 1; }
  .feature-item--reverse .feature-item__visual { order: 0; }
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-section {
  padding: 5rem 0 6rem;
  background: rgba(245,245,245,.5);
  border-top: 1px solid var(--border);
}

.steps-list { display: flex; flex-direction: column; gap: 1.5rem; }

.step-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.75rem 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  transition: box-shadow .2s;
}
.step-item:hover { box-shadow: 0 6px 20px rgba(0,0,0,.08); }

.step-item__number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary);
  opacity: .8;
  flex-shrink: 0;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.step-item__body { padding-top: .375rem; }
.step-item h3 { font-size: 1.25rem; margin-top: 0; margin-bottom: .5rem; }
.step-item p  { color: var(--muted-foreground); font-weight: 500; max-width: 45ch; margin-bottom: 0; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band { padding: 5rem 0; background: var(--background); }
.cta-band__inner {
  background: linear-gradient(135deg, var(--primary), #cc0000);
  border-radius: 1.5rem;
  padding: 3rem 2rem;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(255,0,0,.25);
}
.cta-band__inner::before {
  content: '';
  position: absolute;
  top: -4rem;
  right: -4rem;
  width: 16rem;
  height: 16rem;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  filter: blur(3rem);
  pointer-events: none;
}
.cta-band__inner > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3.5vw, 2.25rem); margin-top: 0; margin-bottom: 1rem; }
.cta-band p  { color: rgba(255,255,255,.9); max-width: 40rem; margin: 0 auto 2rem; font-size: 1.0625rem; font-weight: 500; }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  padding: 4rem 0 5rem;
  background: linear-gradient(135deg, rgba(245,245,245,.5), var(--background));
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.page-hero h1 { margin-bottom: 1rem; }
.page-hero p { color: var(--muted-foreground); font-size: 1.125rem; font-weight: 500; max-width: 40rem; margin: 0 auto; }
.page-hero__meta { font-size: .9375rem; color: var(--muted-foreground); font-weight: 500; margin-top: .75rem; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-hero {
  background: rgba(245,245,245,.4);
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
}
.about-hero h1 { margin-bottom: 1.5rem; }
.about-hero p { font-size: 1.25rem; color: var(--muted-foreground); font-weight: 500; line-height: 1.65; max-width: 50rem; margin-bottom: 2rem; }
.about-cta-row { display: flex; flex-wrap: wrap; gap: 1rem; }

.mission-section { padding: 5rem 0; }
.mission-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 6rem;
}
@media (min-width: 768px) { .mission-grid { grid-template-columns: 1fr 1fr; } }
.mission-grid:last-child { margin-bottom: 0; }

.mission-quote-box {
  background: rgba(255,0,0,.04);
  border: 1px solid rgba(255,0,0,.1);
  border-radius: 1.5rem;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.mission-quote-box svg { width: 3.5rem; height: 3.5rem; stroke: var(--primary); margin-bottom: 1.5rem; }
.mission-quote-box blockquote { font-size: 1.5rem; font-weight: 800; line-height: 1.3; color: var(--foreground); }

.features-list-box {
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2.5rem;
}
.features-list-box ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1rem; }
.features-list-box li { display: flex; align-items: center; gap: 1rem; font-size: 1.125rem; font-weight: 700; }
.features-list-box li svg { width: 1.5rem; height: 1.5rem; stroke: var(--primary); flex-shrink: 0; }

/* ============================================================
   FAQ PAGE
   ============================================================ */
.faq-section { padding: 4rem 0 6rem; }
.faq-list { max-width: 50rem; margin: 0 auto; display: flex; flex-direction: column; gap: 0; }

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

.faq-toggle {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.5rem 0;
  font-family: var(--font-main);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--foreground);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: color .2s;
}
.faq-toggle:hover { color: var(--primary); }
.faq-toggle svg { width: 1.25rem; height: 1.25rem; flex-shrink: 0; stroke: currentColor; transition: transform .3s; }
.faq-item.is-open .faq-toggle svg { transform: rotate(45deg); color: var(--primary); }

.faq-body {
  display: none;
  padding-bottom: 1.5rem;
  color: var(--muted-foreground);
  font-size: .9375rem;
  line-height: 1.75;
  font-weight: 500;
}
.faq-body p { margin-bottom: 0; max-width: 60ch; }
.faq-item.is-open .faq-body { display: block; }

/* ============================================================
   BLOG PAGE
   ============================================================ */
.blog-section { padding: 4rem 0 6rem; }
.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 640px)  { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .posts-grid { grid-template-columns: repeat(3, 1fr); } }

.post-card { display: flex; flex-direction: column; }
.post-card__image {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--muted);
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}
.post-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .post-card__image img { transform: scale(1.04); }
.post-card__badge {
  position: absolute;
  top: .75rem;
  left: .75rem;
  background: var(--primary);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 100px;
}
.post-card__badge--featured { background: #e67e00; }

.post-card__body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.post-card__meta { display: flex; gap: 1rem; align-items: center; font-size: .8125rem; color: var(--muted-foreground); font-weight: 500; margin-bottom: .75rem; }
.post-card h3 { font-size: 1.125rem; margin: 0 0 .75rem; line-height: 1.35; }
.post-card p  { font-size: .9375rem; color: var(--muted-foreground); margin-bottom: 1.25rem; flex: 1; }
.post-card__link { font-size: .875rem; font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: .35rem; }
.post-card__link:hover { text-decoration: underline; }

/* Single post */
.single-post { padding: 4rem 0 6rem; }
.single-post__inner { max-width: 44rem; margin: 0 auto; }
.single-post__header { margin-bottom: 2.5rem; }
.single-post__meta { font-size: .875rem; color: var(--muted-foreground); font-weight: 500; margin-bottom: 1rem; }
.single-post__thumbnail { border-radius: var(--radius); overflow: hidden; margin-bottom: 2.5rem; aspect-ratio: 16/9; background: var(--muted); }
.single-post__thumbnail img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-section { padding: 4rem 0 6rem; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 60rem;
  margin: 0 auto;
}
@media (min-width: 768px) { .contact-grid { grid-template-columns: 5fr 7fr; } }

.contact-info h2 { margin-top: 0; font-size: 1.75rem; }
.contact-info p  { color: var(--muted-foreground); font-weight: 500; }
.contact-info__items { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 2rem; }
.contact-info__item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-info__item-icon { width: 2.5rem; height: 2.5rem; background: rgba(255,0,0,.08); border-radius: .75rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-info__item-icon svg { width: 1.25rem; height: 1.25rem; stroke: var(--primary); }
.contact-info__item-body strong { display: block; font-size: .9375rem; font-weight: 700; margin-bottom: .15rem; }
.contact-info__item-body p { font-size: .875rem; color: var(--muted-foreground); margin: 0; font-weight: 500; }

/* Contact Form */
.contact-form { background: var(--card); border: 1px solid var(--border); border-radius: 1rem; padding: 2rem; box-shadow: 0 4px 20px rgba(0,0,0,.06); }
.contact-form h2 { margin-top: 0; font-size: 1.5rem; margin-bottom: .5rem; }
.contact-form__desc { color: var(--muted-foreground); font-size: .9375rem; font-weight: 500; margin-bottom: 1.75rem; }

.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; font-size: .875rem; margin-bottom: .4rem; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .6875rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-size: .9375rem;
  color: var(--foreground);
  background: var(--background);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,0,0,.1); }
.form-group textarea { min-height: 8rem; }

.form-success {
  padding: 1rem 1.25rem;
  background: rgba(0,160,0,.08);
  border: 1px solid rgba(0,160,0,.2);
  border-radius: var(--radius);
  color: #007a00;
  font-weight: 600;
  margin-bottom: 1rem;
  display: none;
}
.form-success.is-visible { display: block; }

/* ============================================================
   ARTICLE CONTENT
   ============================================================ */
.article-content { font-size: 1.0625rem; color: rgba(51,51,51,.9); }
.article-content h2 { margin-top: 3rem; }
.article-content h3 { margin-top: 2.25rem; }
.article-content a { color: var(--primary); font-weight: 500; }
.article-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: rgba(245,245,245,.5);
  border-radius: 0 .75rem .75rem 0;
  font-style: italic;
}
.article-content code { background: var(--secondary); padding: .15rem .4rem; border-radius: .35rem; font-size: .875em; font-family: monospace; }
.article-content pre { background: var(--secondary); padding: 1.25rem 1.5rem; border-radius: .75rem; overflow-x: auto; border: 1px solid var(--border); margin: 1.5rem 0; }
.article-content pre code { background: none; padding: 0; }
.article-content strong { font-weight: 700; color: var(--foreground); }

/* ============================================================
   PRIVACY / TERMS PAGES
   ============================================================ */
.legal-section { padding: 4rem 0 6rem; }
.legal-inner { max-width: 44rem; margin: 0 auto; }
.legal-block { margin-bottom: 3rem; }
.legal-block h2 { margin-top: 0; font-size: 1.5rem; margin-bottom: 1rem; }
.legal-block p  { color: var(--muted-foreground); font-weight: 500; margin-bottom: .75rem; }
.legal-block ul { color: var(--muted-foreground); font-weight: 500; }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-primary  { color: var(--primary); }
.text-muted    { color: var(--muted-foreground); }
.text-center   { text-align: center; }
.font-bold     { font-weight: 700; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fadein { animation: fadeInUp .6s ease both; }
.animate-fadein--delay { animation-delay: .2s; }

.spinner {
  display: inline-block;
  width: 1rem; height: 1rem;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  vertical-align: middle;
  margin-right: .5rem;
}
@keyframes spin { to { transform: rotate(360deg); } }
