/*
Theme Name: AweDeco
Theme URI: https://awedeco.com/
Author: Bogdan Sandu
Author URI: https://awedeco.com/
Description: A classic WordPress theme for the AweDeco interior design blog. Features a coral-and-ink palette, Playfair Display + DM Sans typography, a sidebar with MailerLite newsletter integration and a random Tools-category post, blog archives, single posts with comments, search, and a custom 404 page.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: awedeco
Tags: blog, two-columns, right-sidebar, custom-logo, featured-images, threaded-comments, sticky-post
*/

/* =============================================================
   AweDeco Homepage Styles
   Palette: #ff7675 coral, #111827 ink, #ffffff white
   Fonts: Playfair Display (headings), DM Sans (body)
   ============================================================= */

:root {
  /* Brand */
  --coral: #ff7675;
  --coral-text: #c2413f;
  --ink: #111827;

  /* Surfaces */
  --white: #ffffff;
  --soft: #f9fafb;
  --border: #e5e7eb;
  --coral-tint: #fff1f1;
  --placeholder: #f3f4f6;

  /* Text */
  --muted: #4b5563;
  --footer-text: #d1d5db;
  --footer-border: #374151;

  /* Type */
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: 24px;
  --section-y: 96px;
  --section-y-mobile: 64px;
  --radius-card: 24px;
  --radius-img: 28px;
  --radius-pill: 999px;

  /* Shadow */
  --shadow-badge: 0 8px 30px rgba(17, 24, 39, 0.12);

  /* Focus */
  --focus-ring: 3px solid var(--ink);
  --focus-offset: 2px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--coral-text);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 12px 20px;
  font-weight: 600;
  font-size: 14px;
  z-index: 1000;
  text-decoration: none;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
  color: var(--white);
}

/* Container */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Typography */
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  color: var(--ink);
}

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--coral-text);
  background: var(--coral-tint);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

.eyebrow-light {
  color: var(--coral);
  background: rgba(255, 118, 117, 0.15);
}

.section-title {
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.12;
  max-width: 720px;
}

.section-title-light {
  color: var(--white);
}

.section-header {
  margin-bottom: 56px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-header .section-title {
  text-align: center;
}

.section-subtitle {
  font-size: 19px;
  color: var(--muted);
  max-width: 560px;
  margin-top: 16px;
  line-height: 1.55;
}

.section-footer {
  text-align: center;
  margin-top: 48px;
}

.lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 520px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 16px;
  border-radius: var(--radius-pill);
  padding: 14px 28px;
  min-height: 48px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--coral);
  color: var(--ink);
}
.btn-primary:hover {
  background: #ff6362;
  color: var(--ink);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-secondary:hover {
  background: var(--ink);
  color: var(--white);
}

.btn-lg {
  min-height: 52px;
  font-size: 17px;
  padding: 16px 32px;
}

.btn-sm {
  min-height: 44px;
  font-size: 15px;
  padding: 10px 22px;
}

.btn-block {
  width: 100%;
}

.link-arrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  color: var(--coral-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-arrow:hover {
  color: var(--ink);
}

/* =============================================================
   Header
   ============================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 24px;
}

.logo {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 26px;
  color: var(--coral);
  text-decoration: none;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav a {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease;
}
.main-nav a:hover,
.main-nav a.nav-active {
  color: var(--coral-text);
}
.main-nav a.nav-active::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background: var(--coral);
  margin-top: 4px;
  border-radius: 2px;
}
.main-nav .btn {
  text-decoration: none;
}
.main-nav .btn.nav-active::after {
  display: none;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.menu-bar {
  width: 24px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* =============================================================
   Hero
   ============================================================= */
.hero {
  padding-top: 64px;
  padding-bottom: var(--section-y);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-title {
  font-size: clamp(42px, 5.4vw, 76px);
  line-height: 1.06;
  margin-bottom: 24px;
  max-width: 600px;
}

.hero-highlight {
  position: relative;
  font-style: italic;
  font-weight: 600;
  display: inline-block;
}
.hero-highlight::after {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: 0.08em;
  height: 0.22em;
  background: var(--coral);
  z-index: -1;
  border-radius: 4px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.hero-image-wrap {
  position: relative;
}

.hero-image-wrap img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-img);
}

.floating-badge {
  position: absolute;
  bottom: -24px;
  left: -24px;
  background: var(--white);
  border-radius: 18px;
  padding: 18px 24px;
  box-shadow: var(--shadow-badge);
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 220px;
}
.badge-number {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 28px;
  color: var(--ink);
  line-height: 1;
}
.badge-label {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.35;
}

/* =============================================================
   Trust strip
   ============================================================= */
.trust-strip {
  background: var(--ink);
  padding: 28px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: center;
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.trust-number {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 28px;
  color: var(--coral);
}
.trust-label {
  font-size: 14px;
  color: var(--footer-text);
  margin-top: 4px;
}
.trust-link {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  color: var(--coral);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.trust-link:hover {
  color: var(--white);
}

/* =============================================================
   Designer section
   ============================================================= */
.designer-section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  background: var(--soft);
}
.designer-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
}
.designer-image-wrap img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-img);
}
.designer-content {
  padding-top: 12px;
}
.designer-role {
  font-size: 17px;
  color: var(--coral-text);
  font-weight: 600;
  margin-bottom: 20px;
}
.designer-bio {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 24px;
  max-width: 560px;
}
.designer-quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 24px;
  color: var(--ink);
  border-left: 3px solid var(--coral);
  padding-left: 20px;
  margin-bottom: 32px;
  max-width: 480px;
}

/* =============================================================
   Services
   ============================================================= */
.services-section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.service-card {
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(17, 24, 39, 0.08);
}
.service-icon {
  width: 56px;
  height: 56px;
  background: var(--coral-tint);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--coral-text);
  margin-bottom: 8px;
}
.service-card-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
}
.service-card-desc {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 8px;
}
.service-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.service-bullets li {
  font-size: 15px;
  color: var(--ink);
  padding-left: 24px;
  position: relative;
  line-height: 1.5;
}
.service-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
}

/* =============================================================
   Process
   ============================================================= */
.process-section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  background: var(--soft);
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
.process-step {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  position: relative;
  transition: border-color 0.25s ease;
}
.process-step:hover {
  border-color: var(--coral);
}
.step-number {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 32px;
  color: var(--coral);
  line-height: 1;
  margin-bottom: 16px;
  display: block;
}
.step-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}
.step-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
}

/* =============================================================
   Portfolio
   ============================================================= */
.portfolio-section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}
.project-tile {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  border-radius: var(--radius-img);
  overflow: hidden;
  background: var(--soft);
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.project-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(17, 24, 39, 0.1);
  color: var(--ink);
}
.project-tile img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.project-tile:hover img {
  transform: scale(1.04);
}
.project-info {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.project-type {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--coral-text);
}
.project-name {
  font-size: 22px;
  font-weight: 600;
  margin-top: 4px;
}
.project-meta {
  font-size: 14px;
  color: var(--muted);
}
.project-result {
  font-size: 15px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.5;
}

/* =============================================================
   Testimonials
   ============================================================= */
.testimonials-section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  background: var(--soft);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.stars {
  display: flex;
  gap: 2px;
  color: var(--coral);
}
.testimonial-card blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
}
.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: auto;
}
.author-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}
.author-meta {
  font-size: 14px;
  color: var(--muted);
}


/* =============================================================
   Trust band (dark)
   ============================================================= */
.trust-band {
  background: var(--ink);
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}
.trust-band-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-bottom: 48px;
}
.trust-block-title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 18px;
  color: var(--coral);
  margin-bottom: 8px;
}
.trust-block-text {
  font-size: 15px;
  color: var(--footer-text);
  line-height: 1.55;
}


/* =============================================================
   Journal
   ============================================================= */
.journal-section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}
.journal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.article-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--soft);
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(17, 24, 39, 0.08);
}
.article-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.article-body {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.article-meta {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
.article-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
}
.journal-grid .article-body {
  gap: 4px;
}
.journal-grid .article-meta {
  margin: 0 0 6px;
}
.journal-grid .article-title {
  margin: 0;
}
.journal-grid .article-title a,
.journal-grid .article-title a:hover,
.journal-grid .article-title a:focus {
  color: var(--ink);
  text-decoration: none !important;
}
.article-summary {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
}
.article-byline {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}
.author-link {
  color: var(--coral-text);
  text-decoration: underline;
}

/* =============================================================
   FAQ
   ============================================================= */
.faq-section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  background: var(--soft);
}
.faq-container {
  max-width: 820px;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq-item[open] {
  border-color: var(--coral);
}
.faq-item summary {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  padding: 22px 28px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background 0.2s ease;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  font-size: 24px;
  font-weight: 400;
  color: var(--coral);
  flex-shrink: 0;
  transition: transform 0.25s ease;
  line-height: 1;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item summary:hover {
  background: var(--coral-tint);
}
.faq-item p {
  padding: 0 28px 22px;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
}

/* =============================================================
   Contact
   ============================================================= */
.contact-section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-label {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.contact-value {
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
}
a.contact-value:hover {
  color: var(--coral-text);
}
.contact-cta {
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.contact-cta-text {
  font-size: 18px;
  color: var(--ink);
  line-height: 1.55;
}

/* =============================================================
   Footer
   ============================================================= */
.site-footer {
  background: var(--ink);
  padding-top: 64px;
  padding-bottom: 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--footer-border);
}
.footer-logo {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 28px;
  color: var(--coral);
  margin-bottom: 12px;
}
.footer-desc {
  font-size: 15px;
  color: var(--footer-text);
  line-height: 1.55;
  margin-bottom: 20px;
  max-width: 320px;
}
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.social-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--footer-text);
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid var(--footer-border);
  border-radius: var(--radius-pill);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.social-links a:hover {
  color: var(--coral);
  border-color: var(--coral);
}
.footer-col-title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col li {
  font-size: 15px;
  color: var(--footer-text);
}
.footer-col a {
  font-size: 15px;
  color: var(--footer-text);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-col a:hover {
  color: var(--coral);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p {
  font-size: 13px;
  color: var(--footer-text);
}
.footer-legal {
  display: flex;
  gap: 20px;
}
.footer-legal a {
  font-size: 13px;
  color: var(--footer-text);
  text-decoration: none;
}
.footer-legal a:hover {
  color: var(--coral);
}

/* =============================================================
   Responsive
   ============================================================= */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  :root {
    --section-y: var(--section-y-mobile);
  }

  .menu-toggle {
    display: flex;
  }
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 80px 32px 32px;
    gap: 20px;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 99;
  }
  .main-nav.open {
    transform: translateX(0);
  }
  .main-nav a {
    font-size: 17px;
  }
  .menu-toggle.active .menu-bar:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }
  .menu-toggle.active .menu-bar:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active .menu-bar:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-image-wrap {
    order: -1;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }
  .floating-badge {
    left: 16px;
    bottom: -16px;
  }

  .trust-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .designer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .designer-image-wrap {
    max-width: 420px;
    margin: 0 auto;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    width: 100%;
  }
}

/* =============================================================
   Back to top button
   ============================================================= */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--coral);
  color: var(--ink);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(17, 24, 39, 0.18);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
  z-index: 90;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}
.back-to-top:hover {
  background: #ff6362;
}

/* =============================================================
   Blog single article
   ============================================================= */
.breadcrumbs {
  padding-top: 24px;
  padding-bottom: 8px;
}
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}
.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumbs li:not(:last-child)::after {
  content: "/";
  color: var(--border);
  font-weight: 400;
}
.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.breadcrumbs a:hover {
  color: var(--coral-text);
}
.breadcrumbs li[aria-current="page"] {
  color: var(--ink);
  font-weight: 500;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  padding-top: 24px;
  padding-bottom: var(--section-y);
  align-items: start;
}

/* Article content column */
.article-content {
  min-width: 0;
}

.article-header {
  margin-bottom: 32px;
}
.article-title {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.12;
  margin-bottom: 16px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--muted);
}
.article-meta a {
  color: var(--coral-text);
  text-decoration: none;
  font-weight: 500;
}
.article-meta a:hover {
  text-decoration: underline;
}
.article-meta-sep {
  color: var(--border);
}

.article-featured {
  margin-bottom: 36px;
  border-radius: var(--radius-img);
  overflow: hidden;
}
.article-featured img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* Article body typography */
.article-body {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
}
.article-lead {
  font-size: 20px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 28px;
  font-weight: 400;
}
.article-body h2 {
  font-size: 28px;
  margin-top: 40px;
  margin-bottom: 16px;
  line-height: 1.2;
}
.article-body h3 {
  font-size: 22px;
  margin-top: 32px;
  margin-bottom: 12px;
  line-height: 1.25;
}
.article-body p {
  margin-bottom: 20px;
}
.article-body ul,
.article-body ol {
  margin-bottom: 20px;
  padding-left: 24px;
}
.article-body ul li,
.article-body ol li {
  margin-bottom: 8px;
  line-height: 1.65;
}
.article-pullquote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.4;
  color: var(--ink);
  border-left: 3px solid var(--coral);
  padding: 8px 0 8px 24px;
  margin: 36px 0;
}
.article-inline-img {
  margin: 36px 0;
  border-radius: var(--radius-img);
  overflow: hidden;
}
.article-inline-img img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.article-inline-img figcaption {
  font-size: 14px;
  color: var(--muted);
  margin-top: 12px;
  text-align: center;
  font-style: italic;
}

/* Social share */
.article-share {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  margin-top: 16px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.article-share-label {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.share-buttons {
  display: flex;
  gap: 10px;
}
.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  color: var(--muted);
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.share-btn:hover {
  transform: translateY(-2px);
  border-color: var(--coral);
  color: var(--coral-text);
}
.share-facebook:hover {
  background: #1877f2;
  border-color: #1877f2;
  color: #fff;
}
.share-x:hover {
  background: #000;
  border-color: #000;
  color: #fff;
}
.share-pinterest:hover {
  background: #bd081c;
  border-color: #bd081c;
  color: #fff;
}
.share-email:hover {
  background: var(--coral);
  border-color: var(--coral);
  color: var(--ink);
}

/* Author bio */
.author-bio {
  display: flex;
  gap: 24px;
  padding: 32px;
  margin-top: 32px;
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}
.author-bio-image {
  flex-shrink: 0;
}
.author-bio-image img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
}
.author-bio-name {
  font-size: 22px;
  margin-bottom: 2px;
}
.author-bio-role {
  font-size: 15px;
  color: var(--coral-text);
  font-weight: 600;
  margin-bottom: 12px;
}
.author-bio-text {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* Related posts */
.related-posts {
  margin-top: 48px;
}
.related-posts-title {
  font-size: 28px;
  margin-bottom: 24px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.related-card-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.related-card-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(17, 24, 39, 0.08);
}
.related-card-link img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.related-card-body {
  padding: 20px 22px 24px;
}
.related-card-cat {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--coral-text);
  margin-bottom: 8px;
}
.related-card-title {
  font-size: 18px;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 8px;
}
.related-card-date {
  font-size: 13px;
  color: var(--muted);
}

/* Sidebar */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: sticky;
  top: 80px;
}
.sidebar-card {
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px 24px;
}
.sidebar-title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: 20px;
}

/* Featured tool card */
.sidebar-tool-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}
.sidebar-tool-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.sidebar-tool-body {
  padding: 20px 22px 24px;
}
.sidebar-tool-name {
  font-size: 18px;
  margin-bottom: 8px;
}
.sidebar-tool-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 0;
}

/* Subscribe form */
.sidebar-subscribe-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 16px;
}
.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.subscribe-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.subscribe-input {
  font-family: var(--sans);
  font-size: 15px;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.2s ease;
}
.subscribe-input:focus {
  outline: none;
  border-color: var(--coral);
}
.subscribe-input::placeholder {
  color: #9ca3af;
}
.subscribe-note {
  font-size: 13px;
  color: var(--coral-text);
  font-weight: 500;
}
.subscribe-note.error {
  color: #dc2626;
}

/* Latest posts list */
.latest-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.latest-list li {
  border-bottom: 1px solid var(--border);
}
.latest-list li:last-child {
  border-bottom: none;
}
.latest-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  text-decoration: none;
  transition: color 0.2s ease;
}
.latest-item img {
  flex-shrink: 0;
  width: 72px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
}
.latest-item-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.latest-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  transition: color 0.2s ease;
}
.latest-item:hover .latest-item-title {
  color: var(--coral-text);
}
.latest-item-date {
  font-size: 12px;
  color: var(--muted);
}

/* WordPress post body elements */
.article-body ul,
.article-body ol {
  margin-bottom: 24px;
  padding-left: 24px;
}
.article-body ul li {
  margin-bottom: 10px;
  line-height: 1.65;
  position: relative;
  padding-left: 4px;
}
.article-body ul li::marker {
  color: var(--coral);
}
.article-body ol li {
  margin-bottom: 10px;
  line-height: 1.65;
  padding-left: 4px;
}
.article-body ol li::marker {
  color: var(--coral-text);
  font-weight: 700;
}
.article-body li > ul,
.article-body li > ol {
  margin-top: 10px;
  margin-bottom: 0;
}

.article-body dl {
  margin-bottom: 24px;
}
.article-body dt {
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.article-body dd {
  margin-left: 0;
  margin-bottom: 12px;
  color: var(--muted);
  line-height: 1.65;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 28px;
  font-size: 15px;
  overflow-x: auto;
  display: block;
}
.article-body table thead {
  background: var(--soft);
}
.article-body table th {
  font-family: var(--sans);
  font-weight: 700;
  text-align: left;
  padding: 14px 16px;
  border-bottom: 2px solid var(--ink);
  color: var(--ink);
}
.article-body table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  line-height: 1.5;
}
.article-body table tbody tr:last-child td {
  border-bottom: none;
}
.article-body table tbody tr:hover td {
  background: var(--coral-tint);
  color: var(--ink);
}

.article-body blockquote:not(.article-pullquote) {
  margin: 28px 0;
  padding: 16px 24px;
  border-left: 3px solid var(--coral);
  background: var(--soft);
  border-radius: 0 12px 12px 0;
  font-size: 17px;
  font-style: italic;
  color: var(--muted);
}
.article-body blockquote:not(.article-pullquote) p {
  margin-bottom: 0;
}
.article-body blockquote cite {
  display: block;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  color: var(--coral-text);
  margin-top: 8px;
}

.article-body address {
  font-style: normal;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 20px;
}

.article-body pre {
  background: var(--ink);
  color: #e5e7eb;
  padding: 20px 24px;
  border-radius: 12px;
  overflow-x: auto;
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.6;
}
.article-body code {
  font-family: "SF Mono", "Monaco", "Consolas", monospace;
  font-size: 0.88em;
}
.article-body pre code {
  background: none;
  padding: 0;
  color: inherit;
}
.article-body p code,
.article-body li code {
  background: var(--soft);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--coral-text);
}

.article-body kbd {
  font-family: "SF Mono", "Monaco", "Consolas", monospace;
  font-size: 0.85em;
  background: var(--white);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 2px 6px;
  color: var(--ink);
}

.article-body abbr,
.article-body acronym {
  cursor: help;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
}

.article-body mark {
  background: var(--coral-tint);
  color: var(--coral-text);
  padding: 2px 4px;
  border-radius: 4px;
}

.article-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 36px 0;
}

.article-body img {
  border-radius: var(--radius-img);
  margin: 0;
}

.article-body figcaption {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  font-style: italic;
  margin-top: 10px;
}

.article-body a {
  color: var(--coral-text);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}
.article-body a:hover {
  color: var(--ink);
}

.article-body strong {
  font-weight: 700;
  color: var(--ink);
}
.article-body em {
  font-style: italic;
}
.article-body s,
.article-body del {
  color: var(--muted);
}

.article-body cite {
  font-style: italic;
  color: var(--muted);
}

.article-body sub,
.article-body sup {
  font-size: 0.75em;
  line-height: 0;
}

.article-body small {
  font-size: 0.85em;
  color: var(--muted);
}

/* WordPress caption wrapper */
.article-body .wp-caption {
  max-width: 100%;
  margin-bottom: 28px;
}
.article-body .wp-caption img {
  width: 100%;
  border-radius: var(--radius-img);
}
.article-body .wp-caption-text,
.article-body .gallery-caption {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  font-style: italic;
  margin-top: 10px;
}

/* WordPress gallery */
.article-body .gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}
.article-body .gallery .gallery-item {
  margin: 0;
}
.article-body .gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
}

/* =============================================================
   Category page
   ============================================================= */
.category-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  padding-top: 24px;
  padding-bottom: var(--section-y);
  align-items: start;
}

.category-content {
  min-width: 0;
}

.category-header {
  margin-bottom: 32px;
}
.category-title {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.12;
  margin-bottom: 16px;
}
.category-desc {
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 12px;
}
.category-count {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}

/* Category sub-nav */
.category-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.category-subnav a {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--white);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.category-subnav a:hover {
  color: var(--ink);
  border-color: var(--ink);
}
.category-subnav a.active {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

/* Post grid */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.post-card-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--white);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.post-card-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(17, 24, 39, 0.08);
}
.post-card-img {
  overflow: hidden;
}
.post-card-img img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.post-card-link:hover .post-card-img img {
  transform: scale(1.05);
}
.post-card-body {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.post-card-cat {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--coral-text);
  margin-bottom: 4px;
}
.post-card-title {
  font-size: 20px;
  line-height: 1.25;
  color: var(--ink);
  transition: color 0.2s ease;
}
.post-card-link:hover .post-card-title {
  color: var(--coral-text);
}
.post-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.post-card-excerpt {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
  margin-top: 4px;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.page-current {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}
.pagination-next {
  text-decoration: none;
}

/* Author page header */
.author-header {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  margin-bottom: 40px;
  padding: 32px;
  background: var(--coral-tint);
  border-radius: var(--radius-card);
}
.author-header-avatar {
  flex-shrink: 0;
}
.author-header-avatar img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--white);
  box-shadow: 0 4px 16px rgba(17, 24, 39, 0.08);
}
.author-header-info {
  min-width: 0;
}
.author-header-name {
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.15;
  margin-bottom: 4px;
}
.author-header-role {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  color: var(--coral-text);
  margin-bottom: 16px;
}
.author-header-bio {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 16px;
  max-width: 540px;
}
.author-header-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.author-header-social a {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--white);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.author-header-social a:hover {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}
.author-header-count {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}

@media (max-width: 640px) {
  .author-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px;
  }
  .author-header-social {
    justify-content: center;
  }
  .author-header-bio {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Page (About, Contact, etc.) */
.page-author-intro {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  margin-bottom: 32px;
}
.page-author-photo {
  flex-shrink: 0;
  width: 183px;
  height: 183px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--white);
  box-shadow: 0 4px 16px rgba(17, 24, 39, 0.08);
}
.page-author-text {
  min-width: 0;
}
.page-author-text p {
  margin-bottom: 16px;
}
.page-author-text p:last-child {
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .page-author-intro {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .page-author-photo {
    width: 140px;
    height: 140px;
  }
}

/* Search page */
.search-header {
  margin-bottom: 40px;
}
.search-form {
  margin: 24px 0 16px;
}
.search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.search-input-wrap {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  transition: border-color 0.2s ease;
  overflow: hidden;
}
.search-input-wrap:focus-within {
  border-color: var(--coral);
}
.search-icon {
  flex-shrink: 0;
  margin: auto 0 auto 16px;
  color: var(--muted);
}
.search-input {
  flex: 1;
  font-family: var(--sans);
  font-size: 16px;
  padding: 14px 16px;
  border: none;
  color: var(--ink);
  background: transparent;
  min-width: 0;
}
.search-input:focus {
  outline: none;
}
.search-input::placeholder {
  color: #9ca3af;
}
.search-submit {
  border-radius: 0;
  flex-shrink: 0;
}
.search-results-info {
  font-size: 15px;
  color: var(--muted);
  font-weight: 500;
}
.search-no-results {
  text-align: center;
  padding: 60px 20px;
  font-size: 18px;
  color: var(--muted);
}

@media (max-width: 600px) {
  .search-input-wrap {
    flex-direction: column;
  }
  .search-icon {
    display: none;
  }
  .search-input {
    padding: 14px 16px;
  }
  .search-submit {
    border-radius: 0 0 10px 10px;
    width: 100%;
    padding: 14px;
  }
  .search-input-wrap {
    border-radius: 12px;
  }
}

/* Category responsive */
@media (max-width: 1024px) {
  .category-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .article-sidebar {
    position: static;
  }
}

@media (max-width: 480px) {
  .post-grid {
    grid-template-columns: 1fr;
  }
  .pagination {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
}

/* =============================================================
   404 error page
   ============================================================= */
.error-page {
  padding: 80px 0 100px;
  background: linear-gradient(180deg, var(--coral-tint) 0%, var(--white) 60%);
  text-align: center;
}
.error-inner {
  max-width: 640px;
  margin: 0 auto;
}
.error-code {
  font-family: var(--serif);
  font-size: clamp(96px, 18vw, 200px);
  line-height: 0.9;
  font-weight: 600;
  color: var(--coral);
  margin-bottom: 16px;
  letter-spacing: -0.04em;
  animation: errorFadeIn 0.6s ease-out both;
}
.error-title {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
  margin-bottom: 16px;
  animation: errorFadeIn 0.6s ease-out 0.1s both;
}
.error-text {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 32px;
  animation: errorFadeIn 0.6s ease-out 0.2s both;
}
.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 56px;
  animation: errorFadeIn 0.6s ease-out 0.3s both;
}

.error-suggestions {
  text-align: left;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px;
  animation: errorFadeIn 0.6s ease-out 0.4s both;
}
.error-suggestions-title {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--coral-text);
  margin-bottom: 20px;
}
.error-suggestions-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.error-suggestions-list li {
  border-bottom: 1px solid var(--border);
}
.error-suggestions-list li:last-child {
  border-bottom: none;
}
.error-suggestions-list a {
  display: block;
  padding: 14px 0;
  font-size: 16px;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.error-suggestions-list a:hover {
  color: var(--coral-text);
  padding-left: 8px;
}

@keyframes errorFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .error-actions {
    flex-direction: column;
  }
  .error-actions .btn {
    width: 100%;
  }
  .error-suggestions {
    padding: 24px;
  }
}

/* Blog responsive */
@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .article-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .article-share {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .author-bio {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
  }
  .author-bio-image img {
    width: 90px;
    height: 90px;
  }
}

@media (max-width: 480px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* WordPress navigation and embeds */
.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav > ul > li {
  margin: 0;
  padding: 0;
}
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
  color: var(--coral-text);
}
.sidebar-tool-card > a,
.sidebar-tool-card > a:hover,
.sidebar-tool-card > a:focus {
  display: block;
  color: inherit;
  text-decoration: none;
}
.article-body .wp-block-embed,
.article-body .wp-block-video {
  max-width: 100%;
  margin: 28px 0;
}
.article-body .wp-block-embed__wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.article-body .wp-block-embed__wrapper iframe,
.article-body iframe,
.article-body video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 0;
}
.article-body .wp-block-embed__wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

@media (max-width: 768px) {
  .main-nav > ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

.article-content {
  container-type: inline-size;
}
.article-body > iframe,
.article-body > p > iframe,
.article-body iframe[src*="youtube.com"],
.article-body iframe[src*="youtu.be"] {
  width: 100% !important;
  max-width: 100% !important;
  height: 56.25cqw !important;
  min-height: 180px;
  aspect-ratio: 16 / 9;
}
.article-body .wp-block-embed__wrapper iframe {
  height: 100% !important;
  min-height: 0;
}

/* Sidebar newsletter (isolated from third-party form styles) */
#awd-newsletter.awd-newsletter {
  background: var(--soft) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-card) !important;
  padding: 28px 24px !important;
  text-align: left !important;
}
#awd-newsletter .awd-newsletter-form,
#awd-newsletter .awd-newsletter-success {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}
#awd-newsletter .awd-newsletter-title {
  font-family: var(--sans) !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink) !important;
  margin: 0 0 16px !important;
  text-align: left !important;
}
#awd-newsletter .awd-newsletter-text {
  font-family: var(--sans) !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
  color: var(--muted) !important;
  margin: 0 0 16px !important;
  text-align: left !important;
}
#awd-newsletter .awd-newsletter-fields {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  margin: 0 !important;
}
#awd-newsletter .awd-newsletter-label {
  font-family: var(--sans) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--ink) !important;
  margin: 0 !important;
}
#awd-newsletter .awd-newsletter-input {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
  font-family: var(--sans) !important;
  font-size: 15px !important;
  line-height: 1.4 !important;
  padding: 12px 16px !important;
  height: auto !important;
  border: 1.5px solid var(--border) !important;
  border-radius: 12px !important;
  background: var(--white) !important;
  color: var(--ink) !important;
  box-shadow: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
#awd-newsletter .awd-newsletter-input::placeholder {
  color: #9ca3af !important;
}
#awd-newsletter .awd-newsletter-input:focus {
  outline: none !important;
  border-color: var(--coral) !important;
  box-shadow: 0 0 0 3px rgba(255, 118, 117, 0.2) !important;
}
#awd-newsletter .awd-newsletter-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  min-height: 48px;
  padding: 14px 28px !important;
  font-family: var(--sans) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  color: var(--ink) !important;
  background: var(--coral) !important;
  border: 0 !important;
  border-radius: var(--radius-pill) !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
#awd-newsletter .awd-newsletter-button:hover {
  background: #ff6362 !important;
  transform: translateY(-1px);
}
#awd-newsletter .awd-newsletter-button:focus-visible {
  outline: 2px solid var(--ink) !important;
  outline-offset: 2px;
}

/* Primary menu dropdowns */
.main-nav li {
  position: relative;
  list-style: none;
}
.main-nav .menu-item-has-children > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.main-nav .menu-item-has-children > a::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s ease;
}
.main-nav .sub-menu {
  list-style: none;
  margin: 0;
  padding: 8px;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.12);
  position: absolute;
  top: 100%;
  left: -16px;
  z-index: 120;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.main-nav > ul > li > .sub-menu {
  margin-top: 12px;
}
.main-nav > ul > li > .sub-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}
.main-nav .sub-menu .sub-menu {
  top: -9px;
  left: 100%;
  margin-left: 8px;
}
.main-nav .sub-menu .sub-menu::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -10px;
  width: 10px;
}
.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.main-nav > ul > li:hover > a::after,
.main-nav > ul > li:focus-within > a::after {
  transform: translateY(1px) rotate(225deg);
}
.main-nav .sub-menu .menu-item-has-children > a::after {
  margin-left: auto;
  transform: rotate(-45deg);
}
.main-nav .sub-menu a {
  display: flex;
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
  color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease;
}
.main-nav .sub-menu a:hover,
.main-nav .sub-menu a:focus-visible,
.main-nav .sub-menu .current-menu-item > a {
  background: var(--coral-tint);
  color: var(--coral-text);
}
.main-nav .current-menu-ancestor > a,
.main-nav .current-menu-parent > a {
  color: var(--coral-text);
}

@media (max-width: 768px) {
  .main-nav {
    overflow-y: auto;
  }
  .main-nav > ul,
  .main-nav li {
    width: 100%;
  }
  .main-nav .sub-menu,
  .main-nav .sub-menu .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    min-width: 0;
    margin: 8px 0 0;
    padding: 0 0 0 16px;
    background: transparent;
    border: 0;
    border-left: 2px solid var(--border);
    border-radius: 0;
    box-shadow: none;
  }
  .main-nav .sub-menu::before {
    display: none;
  }
  .main-nav .menu-item-has-children > a::after {
    display: none;
  }
  .main-nav .sub-menu a {
    font-size: 15px;
    padding: 8px 12px;
    white-space: normal;
  }
}
