/*
Theme Name: CredFill Blog (Dark Edition)
Theme URI: https://credfill.com
Author: CredFill
Author URI: https://credfill.com
Description: Custom WordPress theme for blog.credfill.com, built to match the dark glassmorphic design system of the main CredFill website (credfill.com). Blog listing pages use the site's dark theme; individual article pages use a bright, high-readability paper panel for long-form reading.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: credfill-blog
*/

/* ==========================================================================
   Design tokens — ported 1:1 from credfill.com/style.css
   ========================================================================== */
:root {
  --cf-black: #000000;
  --cf-white: #ffffff;
  --cf-gray-100: #e0e0e0;
  --cf-gray-200: #cccccc;
  --cf-gray-300: #b0b0b0;
  --cf-gray-400: #999999;
  --cf-near-black: #1a1a1a;

  --cf-cyan: #00c2ff;
  --cf-green: #00ff88;
  --cf-gradient: linear-gradient(135deg, #00c2ff 0%, #00ff88 100%);
  --cf-gold: #ffd700;
  --cf-orange: #ff8c00;
  --cf-gold-gradient: linear-gradient(to right, #ffd700, #ff8c00);

  --cf-glass-bg: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.04) 50%, rgba(255,255,255,0.02) 100%);
  --cf-glass-border: rgba(255, 255, 255, 0.12);
  --cf-glass-blur: blur(20px);

  --cf-radius-sm: 8px;
  --cf-radius-md: 16px;
  --cf-radius-lg: 20px;
  --cf-radius-pill: 40px;

  --cf-ease: cubic-bezier(0.16, 1, 0.3, 1);

  --cf-font-ui: "FKGroteskNeue", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --cf-font-read: "Lora", Georgia, "Times New Roman", serif;
}

@font-face {
  font-family: 'FKGroteskNeue';
  src: url('https://r2cdn.perplexity.ai/fonts/FKGroteskNeue.woff2') format('woff2');
  font-display: swap;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  font-size: 16px;
  font-family: var(--cf-font-ui);
  line-height: 1.5;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--cf-black);
  color: var(--cf-white);
  overflow-x: hidden;
  width: 100%;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

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

/* Skip to content, screen-reader text (accessibility) */
.screen-reader-text {
  position: absolute;
  left: -9999px;
}
.screen-reader-text:focus {
  left: 16px;
  top: 16px;
  z-index: 100000;
  background: var(--cf-black);
  color: var(--cf-white);
  padding: 12px 20px;
  border-radius: var(--cf-radius-sm);
}

/* ==========================================================================
   Header
   ========================================================================== */
.cf-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--cf-glass-bg);
  backdrop-filter: var(--cf-glass-blur);
  -webkit-backdrop-filter: var(--cf-glass-blur);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}

.cf-navbar {
  padding: 16px 0;
}

.cf-nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cf-logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cf-logo-mark {
  height: 32px;
  width: auto;
}

.cf-logo-text {
  font-size: 26px;
  font-weight: 700;
  background: var(--cf-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(0,194,255,0.25);
}

.cf-logo-sub {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cf-gray-300);
  border-left: 1px solid rgba(255,255,255,0.2);
  padding-left: 10px;
  margin-left: 2px;
}

.cf-nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.cf-nav-menu li a {
  display: inline-block;
  color: var(--cf-white);
  font-weight: 500;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 20px;
  transition: all 0.3s var(--cf-ease);
}

.cf-nav-menu li a:hover,
.cf-nav-menu li.current-menu-item a {
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 100%);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(255,255,255,0.08);
}

.cf-nav-cta {
  background: var(--cf-gradient) !important;
  color: #000 !important;
  font-weight: 600 !important;
}

.cf-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  color: var(--cf-white);
  width: 42px;
  height: 42px;
  font-size: 20px;
  cursor: pointer;
}

.cf-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--cf-radius-pill);
  background: var(--cf-gradient);
  color: #000;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,194,255,0.3);
  transition: all 0.3s var(--cf-ease);
}
.cf-whatsapp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,194,255,0.4);
}

/* ==========================================================================
   Buttons (shared)
   ========================================================================== */
.cf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--cf-radius-pill);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--cf-ease);
}

.cf-btn-primary {
  background: var(--cf-gradient);
  color: #000000;
  box-shadow: 0 4px 16px rgba(0,194,255,0.3);
}
.cf-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,194,255,0.4);
}

.cf-btn-secondary {
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.06) 100%);
  backdrop-filter: blur(10px);
  color: var(--cf-white);
  border: 1px solid rgba(255,255,255,0.15);
}
.cf-btn-secondary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.1) 100%);
}

/* ==========================================================================
   Blog hero / masthead (dark)
   ========================================================================== */
.cf-blog-hero {
  padding: 72px 0 48px;
  text-align: center;
  position: relative;
  z-index: 5;
}

.cf-blog-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #ffffff 0%, #cccccc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cf-blog-hero p {
  color: var(--cf-gray-200);
  font-size: 16px;
  max-width: 640px;
  margin: 0 auto;
}

/* ==========================================================================
   Post grid / cards (dark, glass) — blog index & archive
   ========================================================================== */
.cf-blog-layout {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 40px;
  padding: 0 0 96px;
  align-items: start;
}

.cf-post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.cf-post-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 50%, rgba(255,255,255,0.04) 100%);
  border: 1px solid var(--cf-glass-border);
  border-radius: var(--cf-radius-lg);
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: all 0.4s var(--cf-ease);
  display: flex;
  flex-direction: column;
}

.cf-post-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255,255,255,0.25);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 30px rgba(0,194,255,0.08);
}

.cf-post-card-thumb {
  aspect-ratio: 16/9;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, #111 0%, #000 100%);
}

.cf-post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--cf-ease);
}

.cf-post-card:hover .cf-post-card-thumb img {
  transform: scale(1.06);
}

.cf-post-card-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cf-post-cat {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  background: rgba(0,194,255,0.12);
  border: 1px solid rgba(0,194,255,0.3);
  color: var(--cf-cyan);
}

.cf-post-card-body h2,
.cf-post-card-body h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 10px;
  color: var(--cf-white);
}

.cf-post-card-body h2 a,
.cf-post-card-body h3 a {
  transition: color 0.2s;
}
.cf-post-card-body h2 a:hover,
.cf-post-card-body h3 a:hover {
  color: var(--cf-cyan);
}

.cf-post-excerpt {
  color: var(--cf-gray-200);
  font-size: 13.5px;
  line-height: 1.6;
  margin-bottom: 18px;
  flex: 1;
}

.cf-post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--cf-gray-400);
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.cf-post-meta .sep { opacity: 0.5; }

.cf-featured-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 340px;
}
.cf-featured-card .cf-post-card-thumb { aspect-ratio: auto; height: 100%; }
.cf-featured-card .cf-post-card-body { justify-content: center; padding: 32px 36px; }
.cf-featured-card .cf-post-card-body h2 { font-size: 26px; }

/* ==========================================================================
   Sidebar widgets (dark, glass)
   ========================================================================== */
.cf-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.widget {
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.04) 100%);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--cf-radius-md);
  padding: 24px;
  backdrop-filter: blur(10px);
}

.widget-title {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  color: var(--cf-white);
}

.widget ul li {
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 13.5px;
  color: var(--cf-gray-200);
}
.widget ul li:last-child { border-bottom: none; }
.widget ul li a:hover { color: var(--cf-cyan); }

.cf-search-form {
  display: flex;
  gap: 8px;
}
.cf-search-form input[type="search"] {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 10px 16px;
  color: #fff;
  font-size: 13px;
}
.cf-search-form input[type="search"]::placeholder { color: var(--cf-gray-400); }
.cf-search-form button {
  background: var(--cf-gradient);
  border: none;
  border-radius: 20px;
  width: 42px;
  color: #000;
  cursor: pointer;
  font-weight: 700;
}

.cf-tag-cloud a {
  display: inline-block;
  font-size: 12px !important;
  padding: 6px 14px;
  margin: 0 6px 8px 0;
  border-radius: 20px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--cf-gray-200);
}
.cf-tag-cloud a:hover { color: var(--cf-cyan); border-color: rgba(0,194,255,0.4); }

/* ==========================================================================
   Pagination
   ========================================================================== */
.cf-pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.cf-pagination a,
.cf-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 21px;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--cf-white);
  font-size: 13px;
  font-weight: 600;
}
.cf-pagination a:hover { border-color: rgba(0,194,255,0.4); color: var(--cf-cyan); }
.cf-pagination .current {
  background: var(--cf-gradient);
  color: #000;
  border-color: transparent;
}

/* ==========================================================================
   Single post — bright reading panel
   ========================================================================== */
.cf-post-hero {
  padding: 56px 0 0;
}

.cf-breadcrumb {
  font-size: 12.5px;
  color: var(--cf-gray-400);
  margin-bottom: 18px;
}
.cf-breadcrumb a:hover { color: var(--cf-cyan); }

.cf-post-hero .cf-post-cat { margin-bottom: 16px; }

.cf-post-hero h1 {
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--cf-white);
  margin-bottom: 20px;
  max-width: 900px;
}

.cf-post-hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--cf-gray-300);
  font-size: 13.5px;
  padding-bottom: 40px;
}

.cf-author-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--cf-gradient);
}

.cf-post-panel-wrap {
  background: var(--cf-black);
  padding: 0 0 96px;
}

.cf-post-panel {
  background: #ffffff;
  color: #16181d;
  border-radius: var(--cf-radius-lg) var(--cf-radius-lg) 0 0;
  padding: 56px clamp(24px, 6vw, 96px) 64px;
  box-shadow: 0 -20px 60px rgba(0,0,0,0.35);
}

.cf-post-thumb-full {
  border-radius: var(--cf-radius-md);
  overflow: hidden;
  margin-bottom: 40px;
  transform: translateY(-88px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.1);
}
.cf-post-panel:has(.cf-post-thumb-full) { padding-top: 56px; }

.cf-article {
  max-width: 740px;
  margin: 0 auto;
  font-family: var(--cf-font-read);
  font-size: 18.5px;
  line-height: 1.8;
  color: #24262b;
}

.cf-article p { margin-bottom: 24px; }

.cf-article h2, .cf-article h3, .cf-article h4 {
  font-family: var(--cf-font-ui);
  color: #0e0f12;
  font-weight: 700;
  line-height: 1.3;
  margin: 44px 0 18px;
}
.cf-article h2 { font-size: 28px; }
.cf-article h3 { font-size: 22px; }
.cf-article h4 { font-size: 18px; }

.cf-article a {
  color: #007fa8;
  text-decoration: underline;
  text-decoration-color: rgba(0,194,255,0.4);
  text-underline-offset: 3px;
}
.cf-article a:hover { color: #00c2ff; }

.cf-article img {
  border-radius: var(--cf-radius-md);
  margin: 8px 0 32px;
}

.cf-article blockquote {
  border-left: 4px solid;
  border-image: var(--cf-gradient) 1;
  background: #f6f8fa;
  padding: 20px 28px;
  margin: 32px 0;
  font-style: italic;
  color: #3a3d44;
  border-radius: 0 var(--cf-radius-sm) var(--cf-radius-sm) 0;
}

.cf-article ul, .cf-article ol {
  margin: 0 0 24px 24px;
}
.cf-article li { margin-bottom: 10px; }
.cf-article ul { list-style: disc; }
.cf-article ol { list-style: decimal; }

.cf-article pre, .cf-article code {
  font-family: "SFMono-Regular", Consolas, monospace;
  background: #f0f2f5;
  border-radius: 6px;
}
.cf-article code { padding: 2px 6px; font-size: 0.9em; }
.cf-article pre { padding: 20px; overflow-x: auto; margin-bottom: 24px; }

.cf-article hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 40px 0;
}

.cf-share-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 740px;
  margin: 8px auto 48px;
  padding-top: 28px;
  border-top: 1px solid #e5e7eb;
}
.cf-share-bar span {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
}
.cf-share-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f2f5;
  color: #24262b;
  font-size: 15px;
  transition: all 0.2s;
}
.cf-share-link:hover {
  background: var(--cf-gradient);
  color: #000;
  transform: translateY(-2px);
}

.cf-author-box {
  max-width: 740px;
  margin: 0 auto 48px;
  display: flex;
  gap: 18px;
  align-items: center;
  background: #f6f8fa;
  border-radius: var(--cf-radius-md);
  padding: 24px;
}
.cf-author-box img { width: 56px; height: 56px; border-radius: 50%; }
.cf-author-box h4 { font-family: var(--cf-font-ui); font-size: 15px; margin-bottom: 4px; color: #0e0f12; }
.cf-author-box p { font-size: 13px; color: #6b7280; margin: 0; }

.cf-tags-row {
  max-width: 740px;
  margin: 0 auto 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cf-tags-row a {
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 20px;
  background: #f0f2f5;
  color: #4b5563;
}
.cf-tags-row a:hover { background: var(--cf-gradient); color: #000; }

/* Related posts strip (dark, back on brand background) */
.cf-related {
  background: var(--cf-black);
  padding: 0 0 96px;
}
.cf-related h3 {
  font-size: 22px;
  margin-bottom: 24px;
  color: var(--cf-white);
}

/* Comments (light panel continuation) */
.cf-comments-wrap {
  background: #ffffff;
  padding: 8px 0 64px;
}
.cf-comments-inner {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 24px;
  color: #24262b;
}
.cf-comments-inner .comment-reply-title,
.cf-comments-inner h2 {
  font-family: var(--cf-font-ui);
  font-size: 22px;
  color: #0e0f12;
  margin-bottom: 24px;
}
.cf-comments-inner textarea,
.cf-comments-inner input[type="text"],
.cf-comments-inner input[type="email"],
.cf-comments-inner input[type="url"] {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px 14px;
  font-family: var(--cf-font-ui);
  font-size: 14px;
  margin-bottom: 14px;
}
.cf-comments-inner .form-submit input[type="submit"] {
  background: var(--cf-gradient);
  border: none;
  color: #000;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 24px;
  cursor: pointer;
}
.cf-comments-inner ol.comment-list { list-style: none; margin: 24px 0; }
.cf-comments-inner .comment-body {
  padding: 18px 0;
  border-bottom: 1px solid #e5e7eb;
}
.cf-comments-inner .comment-author { font-weight: 700; font-size: 14px; }
.cf-comments-inner .comment-metadata { font-size: 12px; color: #9ca3af; margin-bottom: 8px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.cf-footer {
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 64px 0 32px;
  backdrop-filter: blur(20px);
  position: relative;
  z-index: 10;
}

.cf-footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

.cf-footer-tagline {
  color: var(--cf-gray-100);
  font-size: 14px;
}

.cf-footer-details p {
  font-size: 12.5px;
  margin-bottom: 6px;
}
.cf-footer-details a { color: var(--cf-gray-200); }
.cf-footer-details a:hover { color: #fff; }

.cf-footer h3 {
  font-size: 22px;
  font-weight: 700;
  background: var(--cf-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 14px;
}

.cf-footer p { color: var(--cf-gray-200); font-size: 13px; line-height: 1.6; margin-bottom: 10px; }

.cf-footer h4 { font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 14px; }

.cf-footer ul li { margin-bottom: 8px; }
.cf-footer ul li a { color: var(--cf-gray-200); font-size: 13px; }
.cf-footer ul li a:hover { color: #fff; }

.cf-social-icons { display: flex; gap: 10px; margin-top: 16px; }
.cf-social-icons a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  transition: all 0.3s;
}
.cf-social-icons a:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.1) 100%);
}

.cf-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--cf-gray-400);
}
.cf-footer-bottom a:hover { color: #fff; }

/* ==========================================================================
   404 / search-no-results
   ========================================================================== */
.cf-empty-state {
  text-align: center;
  padding: 96px 24px;
}
.cf-empty-state h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  background: var(--cf-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}
.cf-empty-state p { color: var(--cf-gray-200); margin-bottom: 28px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .cf-blog-layout { grid-template-columns: 1fr; }
  .cf-featured-card { grid-template-columns: 1fr; }
  .cf-featured-card .cf-post-card-thumb { aspect-ratio: 16/9; height: auto; }
  .cf-footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .cf-footer-company { grid-column: 1 / -1; }
}

@media (max-width: 782px) {
  .cf-nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(0,0,0,0.96);
    backdrop-filter: blur(20px);
    padding: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: none;
  }
  .cf-nav-menu.is-open { display: flex; }
  .cf-menu-toggle { display: flex; align-items: center; justify-content: center; order: 2; }
  .cf-whatsapp-btn { padding: 10px; order: 3; }
  .cf-whatsapp-btn span { display: none; }
  .cf-post-panel { padding: 40px 20px 48px; }
  .cf-post-thumb-full { transform: none; margin-top: 8px; }
  .cf-post-panel:has(.cf-post-thumb-full) { padding-top: 40px; }
  .cf-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .cf-footer-grid { grid-template-columns: 1fr; }
  .cf-post-grid { grid-template-columns: 1fr; }
  .cf-article { font-size: 17px; }
}
