/* ================================================================
   مطبخ هزار — Main Stylesheet
   Mobile-first, RTL, Arabic-optimized
   ================================================================ */

/* ----------------------------------------------------------------
   CSS Custom Properties
   ---------------------------------------------------------------- */
:root {
  --color-primary:      #e5562e;
  --color-primary-dark: #c23d18;
  --color-secondary:    #f5a623;
  --color-bg:           #fffaf6;
  --color-bg-card:      #ffffff;
  --color-text:         #2b2b2b;
  --color-text-muted:   #6b6b6b;
  --color-border:       #e8e0d8;
  --color-accent-bg:    #fef3eb;

  /* Arabic fonts */
  --font-sans:    'Tajawal', system-ui, -apple-system, Arial, sans-serif;
  --font-serif:   'Noto Naskh Arabic', 'Tajawal', serif;
  --font-size-base: 1rem;       /* 16px */
  --line-height: 1.85;

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

  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,.12);

  --container-max: 1200px;
  --container-pad: 1rem;

  --header-height: 64px;
}

/* ----------------------------------------------------------------
   Reset & Base
   ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  direction: rtl;
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: var(--line-height);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--color-primary); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ----------------------------------------------------------------
   Typography
   ---------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  line-height: 1.4;
  font-weight: 700;
  color: var(--color-text);
}
h1 { font-size: clamp(1.5rem, 4vw, 2.2rem); }
h2 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }

p { margin-bottom: 1rem; }

/* ----------------------------------------------------------------
   Layout
   ---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ----------------------------------------------------------------
   Buttons
   ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .6rem 1.4rem;
  border-radius: var(--radius-md);
  font-size: .95rem;
  font-weight: 600;
  transition: background .2s, color .2s, transform .1s;
  text-decoration: none;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover { background: var(--color-primary-dark); color: #fff; }
.btn-secondary {
  background: var(--color-accent-bg);
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

/* ----------------------------------------------------------------
   Header
   ---------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
}

.site-logo {
  flex-shrink: 0;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: .01em;
}

.main-nav { display: none; flex: 1; }

.nav-list {
  display: flex;
  gap: .25rem;
  flex-wrap: wrap;
}

.nav-list a {
  padding: .4rem .75rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 500;
  color: var(--color-text);
  transition: background .2s, color .2s;
}
.nav-list a:hover {
  background: var(--color-accent-bg);
  color: var(--color-primary);
}

.header-actions { display: flex; align-items: center; gap: .5rem; margin-inline-start: auto; }

.btn-search-toggle,
.btn-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  color: var(--color-text);
}
.btn-search-toggle:hover,
.btn-menu-toggle:hover { background: var(--color-accent-bg); }

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 22px; height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  position: relative;
  transition: transform .25s;
}
.hamburger::before,
.hamburger::after { content: ''; position: absolute; right: 0; }
.hamburger::before { top: -6px; }
.hamburger::after  { top: 6px; }

/* Mobile nav drawer */
.mobile-nav {
  position: fixed;
  top: var(--header-height);
  right: 0; left: 0;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  z-index: 99;
  padding: 1rem;
  box-shadow: var(--shadow-md);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav-list { display: flex; flex-direction: column; gap: .25rem; }
.mobile-nav-list a {
  display: block;
  padding: .6rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
}
.mobile-nav-list a:hover { background: var(--color-accent-bg); color: var(--color-primary); }

/* Search overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 200;
  display: flex;
  align-items: flex-start;
  padding-top: 80px;
  justify-content: center;
}
.search-overlay[hidden] { display: none; }
.search-form {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 600px;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.search-form input {
  flex: 1;
  padding: .9rem 1.25rem;
  font-size: 1.1rem;
  border: none;
  outline: none;
  font-family: inherit;
  direction: rtl;
}
.search-form button {
  padding: .9rem 1.25rem;
  color: var(--color-text-muted);
}
.search-form button:hover { color: var(--color-primary); }
.search-overlay-close {
  position: fixed;
  top: 1rem; left: 1rem;
  color: #fff;
  font-size: 1.5rem;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
}

/* ----------------------------------------------------------------
   Hero Carousel
   ---------------------------------------------------------------- */
.hero-section {
  background: var(--color-accent-bg);
  padding: 0;
  overflow: hidden;
}

/* Carousel wrapper */
.hero-carousel {
  position: relative;
  overflow: hidden;
  direction: ltr;
}

/* Track holds all slides side-by-side; JS moves it with transform */
.hero-track {
  display: flex;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

/* Each slide */
.hero-slide {
  flex: 0 0 100%;
  width: 100%;
  padding: 2rem 0;
  direction: rtl;
}

/* Slide content layout (reuses hero-inner grid) */
.hero-inner {
  display: grid;
  gap: 1.5rem;
}
.hero-image img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.hero-content { display: flex; flex-direction: column; gap: .75rem; }
.hero-title { font-size: clamp(1.4rem, 4vw, 2rem); }
.hero-title a:hover { color: var(--color-primary); }
.hero-excerpt { color: var(--color-text-muted); line-height: 1.7; }

/* Prev / Next arrows */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.85);
  border: none;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  transition: background .2s, transform .2s;
  z-index: 10;
}
.hero-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.hero-arrow--prev { right: .75rem; }
.hero-arrow--next { left: .75rem; }

/* Dots */
.hero-dots {
  display: flex;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 0 1rem;
}
.hero-dot {
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  border: none;
  background: #cbd5e1;
  cursor: pointer;
  padding: 0;
  transition: background .2s, transform .2s;
}
.hero-dot.is-active {
  background: var(--color-primary);
  transform: scale(1.3);
}

/* ----------------------------------------------------------------
   Category chips
   ---------------------------------------------------------------- */
.category-chips-section { padding: 1.5rem 0; }
.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.category-chip {
  padding: .4rem 1rem;
  border-radius: 999px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  font-size: .875rem;
  font-weight: 500;
  color: var(--color-text);
  transition: background .2s, color .2s, border-color .2s;
}
.category-chip:hover,
.category-chip:focus {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.chip-count { color: var(--color-text-muted); font-size: .8em; }

/* ----------------------------------------------------------------
   Section titles
   ---------------------------------------------------------------- */
.section-title {
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: .5rem;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 3rem; height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
}

/* ----------------------------------------------------------------
   Posts grid
   ---------------------------------------------------------------- */
.recipes-section,
.popular-section { padding: 2rem 0; }

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.posts-grid--small {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

/* ----------------------------------------------------------------
   Post card
   ---------------------------------------------------------------- */
.post-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.post-card-link { display: block; }
.post-card-image-wrap { overflow: hidden; }
.post-card-image-wrap img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  transition: transform .3s;
}
.post-card:hover .post-card-image-wrap img { transform: scale(1.04); }
.post-card-image--placeholder {
  width: 100%;
  aspect-ratio: 3/2;
  background: var(--color-border);
}

.post-card-body { padding: 1rem; }
.post-card-title {
  font-size: 1rem;
  line-height: 1.4;
  margin: .4rem 0 .5rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.post-card-title a:hover { color: var(--color-primary); }
.post-card-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .8rem;
  color: var(--color-text-muted);
}

/* ----------------------------------------------------------------
   Category badge
   ---------------------------------------------------------------- */
.post-category-badge {
  display: inline-block;
  padding: .2rem .65rem;
  background: var(--color-accent-bg);
  color: var(--color-primary);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  text-decoration: none;
}
.post-category-badge:hover { background: var(--color-primary); color: #fff; }

/* ----------------------------------------------------------------
   Single post
   ---------------------------------------------------------------- */
.post-container {
  display: grid;
  gap: 2rem;
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}
.post-main { min-width: 0; }

.post-title { margin: .75rem 0; }
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.25rem;
  font-size: .875rem;
  color: var(--color-text-muted);
}
.post-featured-image { margin-bottom: 1.5rem; }
.post-featured-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* Post content typography */
.post-content {
  font-size: 1.05rem;
  line-height: 1.9;
}
.post-content h2 {
  margin: 1.75rem 0 .75rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid var(--color-accent-bg);
}
.post-content h3 { margin: 1.25rem 0 .5rem; }
.post-content ul, .post-content ol {
  padding-inline-start: 1.5rem;
  margin-bottom: 1rem;
  list-style: disc;
}
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: .4rem; }
.post-content img {
  border-radius: var(--radius-md);
  margin: 1rem 0;
}
.post-content a { color: var(--color-primary); text-decoration: underline; }
.post-content blockquote {
  border-inline-start: 4px solid var(--color-primary);
  background: var(--color-accent-bg);
  padding: .75rem 1.25rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1rem 0;
}

/* Tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}
.tags-label { font-weight: 600; font-size: .875rem; }
.post-tag {
  padding: .25rem .75rem;
  background: var(--color-accent-bg);
  border-radius: 999px;
  font-size: .8rem;
  color: var(--color-text-muted);
}
.post-tag:hover { background: var(--color-primary); color: #fff; }

/* Share */
.post-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--color-accent-bg);
  border-radius: var(--radius-md);
}
.share-label { font-weight: 600; font-size: .9rem; }
.share-buttons { display: flex; gap: .5rem; flex-wrap: wrap; }
.share-btn {
  padding: .4rem .9rem;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: opacity .2s;
}
.share-btn:hover { opacity: .85; }
.share-btn--whatsapp { background: #25D366; color: #fff; }
.share-btn--facebook { background: #1877F2; color: #fff; }
.share-btn--copy { background: var(--color-bg-card); color: var(--color-text); border: 1px solid var(--color-border); }

/* Sidebar */
.post-sidebar { display: none; }

/* ----------------------------------------------------------------
   Sidebar widgets
   ---------------------------------------------------------------- */
.sidebar-widget {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.widget-title {
  font-size: 1rem;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--color-accent-bg);
}

.sidebar-posts-list { display: flex; flex-direction: column; gap: .75rem; }
.sidebar-post-item { display: flex; gap: .75rem; align-items: flex-start; }
.sidebar-post-thumb img {
  width: 72px; height: 72px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.sidebar-post-title { font-size: .875rem; font-weight: 500; line-height: 1.4; display: block; }
.sidebar-post-title:hover { color: var(--color-primary); }
.sidebar-post-date { font-size: .75rem; color: var(--color-text-muted); }

.sidebar-cat-list { display: flex; flex-direction: column; gap: .25rem; }
.sidebar-cat-list a {
  display: flex; justify-content: space-between;
  padding: .4rem .5rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
}
.sidebar-cat-list a:hover { background: var(--color-accent-bg); color: var(--color-primary); }
.cat-count { color: var(--color-text-muted); font-size: .85em; }

/* ----------------------------------------------------------------
   Archive / category header
   ---------------------------------------------------------------- */
.archive-header {
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 2rem;
}
.archive-title { margin-bottom: .5rem; }
.archive-description { color: var(--color-text-muted); }
.archive-count { font-size: .875rem; color: var(--color-text-muted); margin-top: .5rem; }

/* ----------------------------------------------------------------
   Breadcrumbs
   ---------------------------------------------------------------- */
.breadcrumbs { padding: 1rem 0 .5rem; }
.breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem;
  font-size: .82rem;
  color: var(--color-text-muted);
}
.breadcrumb-item a { color: var(--color-text-muted); }
.breadcrumb-item a:hover { color: var(--color-primary); }
.breadcrumb-item [aria-current="page"] { color: var(--color-text); font-weight: 500; }
.breadcrumb-sep { color: var(--color-border); }

/* ----------------------------------------------------------------
   Pagination
   ---------------------------------------------------------------- */
.pagination { margin: 2.5rem 0; }
.pagination-list {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  justify-content: center;
  align-items: center;
}
.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px; height: 38px;
  padding: 0 .75rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  color: var(--color-text);
  transition: background .15s, color .15s, border-color .15s;
}
.pagination-btn:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.pagination-btn--current {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  font-weight: 700;
}
.pagination-ellipsis { padding: 0 .5rem; color: var(--color-text-muted); }

/* ----------------------------------------------------------------
   Ad slots
   ---------------------------------------------------------------- */
.ad-slot {
  display: block;
  width: 100%;
  min-height: 100px;
  margin: 1.5rem 0;
  overflow: visible;
  text-align: center;
}
.ad-slot ins.adsbygoogle {
  display: block !important;
  width: 100% !important;
}
.ad-slot--placeholder {
  background: var(--color-accent-bg);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  font-size: .8rem;
  min-height: 100px;
}

/* ----------------------------------------------------------------
   Search page
   ---------------------------------------------------------------- */
.search-form--inline {
  margin-bottom: 2rem;
  max-width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

/* ----------------------------------------------------------------
   Related posts
   ---------------------------------------------------------------- */
.related-posts { padding: 2rem 0; }

/* ----------------------------------------------------------------
   Footer
   ---------------------------------------------------------------- */
.site-footer {
  background: #1a1a2e;
  color: #b0b8d0;
  margin-top: 4rem;
  position: relative;
}

/* Wave divider */
.footer-wave {
  line-height: 0;
  margin-bottom: -1px;
  background: var(--color-bg);
}
.footer-wave svg { display: block; width: 100%; height: 60px; }

/* Main grid */
.footer-body { padding: 3rem 0 2rem; }

.footer-grid {
  display: grid;
  gap: 2.5rem;
}

/* Brand */
.footer-brand { display: flex; flex-direction: column; gap: .75rem; }

.footer-logo { display: inline-block; text-decoration: none; }
.footer-logo-ar {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: .02em;
  display: block;
  line-height: 1.2;
}
.footer-tagline {
  font-size: .875rem;
  color: #8892b0;
  line-height: 1.7;
  max-width: 300px;
}

/* Social buttons */
.footer-social {
  display: flex;
  gap: .5rem;
  margin-top: .25rem;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  color: #b0b8d0;
  border: 1px solid rgba(255,255,255,.1);
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.social-btn:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

/* Columns */
.footer-col {}

.footer-heading {
  font-family: var(--font-sans);
  font-size: .8rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: .45rem;
}
.footer-heading-icon { font-style: normal; font-size: 1rem; }

.footer-links-list { display: flex; flex-direction: column; gap: .4rem; }
.footer-links-list--2col { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem .75rem; }
.footer-links-list a {
  font-size: .875rem;
  color: #8892b0;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .25rem 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
  transition: color .15s, padding-right .15s;
}
.footer-links-list a:hover { color: var(--color-primary); padding-right: .35rem; }
.footer-link-count {
  font-size: .72rem;
  background: rgba(255,255,255,.08);
  color: #64748b;
  padding: .1rem .45rem;
  border-radius: 999px;
  flex-shrink: 0;
}

/* Bottom bar */
.footer-bottom {
  background: rgba(0,0,0,.25);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 1.1rem 0;
}
.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.footer-copy {
  font-size: .8rem;
  color: #64748b;
  margin: 0;
}
.footer-copy strong { color: #94a3b8; }
.footer-made {
  font-size: .8rem;
  color: #64748b;
  margin: 0;
}

/* ----------------------------------------------------------------
   Empty / utility
   ---------------------------------------------------------------- */
.empty-message { color: var(--color-text-muted); padding: 2rem 0; }
mark { background: var(--color-accent-bg); color: var(--color-primary); padding: 0 .2em; border-radius: 2px; }

/* ================================================================
   Responsive — Tablet (768px+)
   ================================================================ */
@media (min-width: 768px) {
  :root { --container-pad: 1.5rem; }

  .main-nav { display: flex; }
  .btn-menu-toggle { display: none; }

  .hero-inner { grid-template-columns: 1fr 1fr; align-items: center; gap: 2.5rem; }

  .post-container { grid-template-columns: 1fr 320px; }
  .post-sidebar { display: block; }

  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }

  .sidebar-ad-sticky {
    position: sticky;
    top: calc(var(--header-height) + 1rem);
  }
}

/* ================================================================
   Responsive — Desktop (1024px+)
   ================================================================ */
@media (min-width: 1024px) {
  :root { --container-pad: 2rem; }

  .posts-grid { grid-template-columns: repeat(3, 1fr); }
  .posts-grid--small { grid-template-columns: repeat(4, 1fr); }

  .hero-inner { gap: 3rem; }
  .hero-image img { aspect-ratio: 4/3; }
}

/* ================================================================
   Static pages (Contact / Privacy Policy)
   ================================================================ */
.page-static {
  padding: 2rem 0 3rem;
}

.static-page {
  max-width: 780px;
  margin: 0 auto;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.static-page__title {
  font-size: 2rem;
  color: var(--color-heading);
  margin-bottom: .5rem;
}

.static-page__date {
  font-size: .85rem;
  color: var(--color-text-muted);
  margin-bottom: 1.75rem;
}

.static-page__body h2 {
  font-size: 1.2rem;
  margin: 1.75rem 0 .6rem;
  color: var(--color-heading);
  border-right: 3px solid var(--color-primary);
  padding-right: .65rem;
}

.static-page__body p,
.static-page__body ul,
.static-page__body ol {
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.static-page__body ul,
.static-page__body ol {
  padding-right: 1.5rem;
}

.static-page__body li { margin-bottom: .4rem; }

.static-page__body a {
  color: var(--color-primary);
  text-decoration: underline;
}

.static-page__body code {
  background: var(--color-bg);
  padding: .1em .4em;
  border-radius: 3px;
  font-size: .9em;
  direction: ltr;
  display: inline-block;
}

/* Contact cards */
.contact-cards {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
}

.contact-card__icon { font-size: 1.75rem; line-height: 1; }

.contact-card h3 {
  font-size: .9rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: .2rem;
}

.contact-card p { margin: 0; font-size: .9rem; }
.contact-card a { color: var(--color-primary); }

/* Contact form */
.contact-form { margin-top: 1.25rem; }

.contact-form__group { margin-bottom: 1.1rem; }

.contact-form__group label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  margin-bottom: .35rem;
  color: var(--color-heading);
}

.contact-form__group input,
.contact-form__group textarea {
  width: 100%;
  padding: .65rem .9rem;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  font-size: .95rem;
  font-family: inherit;
  direction: rtl;
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color .2s;
}

.contact-form__group input:focus,
.contact-form__group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.contact-form__group textarea { min-height: 140px; resize: vertical; }

@media (min-width: 640px) {
  .contact-cards { grid-template-columns: repeat(3, 1fr); }
}

/* ================================================================
   Print
   ================================================================ */
@media print {
  .site-header, .site-footer, .footer-wave, .ad-slot, .post-sidebar,
  .post-share, .related-posts, .pagination { display: none !important; }
  body { background: #fff; color: #000; }
  .post-content { font-size: 12pt; line-height: 1.6; }
}
