/*
 Theme Name:   Phoenix Home Exports (Astra Child)
 Theme URI:    https://phoenixdn.com/
 Description:  Astra Child Theme customized for Phoenix Home Exports.
 Author:       Phoenix Team
 Author URI:   https://phoenixdn.com/
 Template:     astra
 Version:      2.0.0
 Text Domain:  astra-child
*/

:root {
  --amber: #E8872B;
  --amber-dark: #C96E18;
  --teal: #2D9B8A;
  --teal-dark: #1E7A6D;
  --dark: #141210;
  --mid: #5C564E;
  --muted: #9C948A;
  --rule: #E5E2DC;
  --bg: #F8F7F4;
  --white: #FEFDFB;
  --section-pad: clamp(60px, 8vw, 100px);
  --phx-wrap: 1180px;
  --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--dark);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  font-family: 'Barlow Condensed', sans-serif;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.phx-wrap { max-width: var(--phx-wrap); margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); width: 100% !important; box-sizing: border-box !important; }
img, video { max-width: 100%; display: block; }

/* ── NAV ── */
nav.phx-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(20,18,16,0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 32px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { height: 40px; width: 40px; object-fit: contain; border-radius: 50%; }
.nav-logo-text { color: #fff; font-family: 'Barlow Condensed', sans-serif; font-size: 18px; font-weight: 700; letter-spacing: 0.02em; }
.nav-logo-text span { color: var(--amber); }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 14px; font-weight: 500; letter-spacing: 0.03em; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-cta {
  background: var(--amber); color: #fff; text-decoration: none;
  font-size: 14px; font-weight: 600; padding: 10px 20px; border-radius: var(--radius);
  white-space: nowrap; transition: background 0.2s;
}
.nav-cta:hover { background: var(--amber-dark); color: #fff; }
.nav-mobile-btn {
  display: none; background: none; border: none; color: #fff;
  cursor: pointer; padding: 6px; flex-direction: column; gap: 5px;
}
.nav-mobile-btn span {
  display: block; width: 22px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-mobile-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-mobile-btn.open span:nth-child(2) { opacity: 0; }
.nav-mobile-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE MENU ── */
.phx-mobile-menu {
  display: none; position: fixed; top: 68px; left: 0; right: 0; bottom: 0;
  background: rgba(20,18,16,0.98); backdrop-filter: blur(16px);
  z-index: 99; flex-direction: column; padding: 32px 24px; overflow-y: auto;
}
.phx-mobile-menu.open { display: flex; }
.phx-mobile-menu a {
  color: rgba(255,255,255,0.8); text-decoration: none;
  font-size: 22px; font-weight: 600; font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 0.02em; padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07); transition: color 0.2s;
}
.phx-mobile-menu a:hover { color: var(--amber); }
.phx-mobile-menu .mobile-sub { padding-left: 16px; }
.phx-mobile-menu .mobile-sub a { font-size: 17px; font-weight: 500; color: rgba(255,255,255,0.5); padding: 10px 0; border-bottom: none; }
.phx-mobile-menu .mobile-sub a:hover { color: var(--amber); }
.phx-mobile-menu .mobile-cta {
  margin-top: 28px; background: var(--amber); color: #fff;
  text-align: center; border-radius: var(--radius); padding: 16px;
  font-size: 16px; font-weight: 600; border-bottom: none;
}
.phx-mobile-menu .mobile-cta:hover { background: var(--amber-dark); color: #fff; }

/* ── NAV DROPDOWN ── */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ' ▾'; font-size: 10px; opacity: 0.6; }
.dropdown-menu {
  display: none; position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  background: rgba(20,18,16,0.97); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 8px;
  padding: 20px 0 8px; min-width: 180px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}
.dropdown-menu a { display: block; padding: 10px 18px; color: rgba(255,255,255,0.7); font-size: 13.5px; white-space: nowrap; transition: color 0.15s, background 0.15s; }
.dropdown-menu a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.nav-dropdown:hover .dropdown-menu { display: block; }

/* ── FOOTER ── */
footer.phx-footer { background: var(--dark); padding: 56px 0 32px; border-top: 1px solid rgba(255,255,255,0.06); }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; margin-bottom: 48px; }
.footer-logo-wrap { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo-wrap img { height: 44px; width: 44px; object-fit: contain; border-radius: 50%; }
.footer-brand { font-family: 'Barlow Condensed', sans-serif; font-size: 20px; font-weight: 700; color: #fff; }
.footer-brand span { color: var(--amber); }
.footer-desc { font-size: 13.5px; color: rgba(255,255,255,0.45); line-height: 1.7; max-width: 280px; }
.footer-col-title { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 16px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; }
.footer-links a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-contact-list { display: flex; flex-direction: column; gap: 12px; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; }
.footer-contact-item svg { width: 14px; height: 14px; stroke: var(--amber); fill: none; stroke-width: 1.8; stroke-linecap: round; flex-shrink: 0; margin-top: 2px; }
.footer-contact-item span { font-size: 13.5px; color: rgba(255,255,255,0.55); }
.footer-contact-item a { color: rgba(255,255,255,0.55); text-decoration: none; }
.footer-contact-item a:hover { color: var(--amber); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.3); }
.footer-badge { display: flex; gap: 16px; }
.badge-item { font-size: 11px; color: rgba(255,255,255,0.3); display: flex; align-items: center; gap: 5px; }
.badge-item::before { content: '✓'; color: var(--teal); font-weight: 700; }

/* ── WP ADMIN BAR FIX ── */
.admin-bar nav.phx-nav { top: 32px !important; }
.admin-bar .phx-mobile-menu { top: 100px !important; }
@media screen and (max-width: 782px) {
  .admin-bar nav.phx-nav { top: 46px !important; }
  .admin-bar .phx-mobile-menu { top: 114px !important; }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-mobile-btn { display: flex; }
  .nav-cta { display: none; }
  .nav-inner { gap: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 580px) {
  .nav-logo-text { font-size: 15px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-desc { max-width: 100%; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 12px; }
  .footer-badge { flex-wrap: wrap; justify-content: center; }
}

/* ══════════════════════════════════════════════════
   BLOG ARCHIVE PAGE STYLES
   ══════════════════════════════════════════════════ */
#blog-header {
  background: var(--dark);
  padding: clamp(96px, 12vw, 160px) 0 clamp(64px, 8vw, 96px);
  position: relative; overflow: hidden; text-align: center;
}
.blog-header-bg {
  position: absolute; inset: 0;
  background-image: url('https://phoenixdn.com/wp-content/uploads/2026/04/fabric_production.png');
  background-size: cover; background-position: center; opacity: 0.08;
}
.blog-header-inner { position: relative; z-index: 2; max-width: 680px; margin: 0 auto; }
.blog-header-tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); margin-bottom: 16px; }
.blog-header-h1 { font-size: clamp(48px, 6vw, 72px); font-weight: 800; color: #fff; margin-bottom: 16px; }
.blog-header-sub { font-size: 17px; color: rgba(255,255,255,0.55); line-height: 1.7; }
#blog-main { padding: var(--section-pad) 0; background: var(--bg); }
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.post-card { background: var(--white); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s; height: 100%; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(20,18,16,0.06); border-color: transparent; }
.post-thumb { width: 100%; aspect-ratio: 16/10; overflow: hidden; position: relative; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.post-card:hover .post-thumb img { transform: scale(1.05); }
.post-thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.color-teal { background: linear-gradient(135deg, #2D9B8A, #1a6b60); }
.color-amber { background: linear-gradient(135deg, #E8872B, #c96e18); }
.color-green { background: linear-gradient(135deg, #4a9b5c, #317a41); }
.post-thumb-placeholder svg { width: 32px; height: 32px; stroke: rgba(255,255,255,0.4); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.post-content { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.post-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 12px; }
.post-cat { font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.cat-insights { color: var(--amber); }
.post-date { color: var(--muted); }
.post-title { font-family: 'Barlow Condensed', sans-serif; font-size: 24px; font-weight: 700; color: var(--dark); line-height: 1.2; margin-bottom: 12px; }
.post-excerpt { font-size: 14.5px; color: var(--mid); line-height: 1.6; margin-bottom: 24px; flex: 1; }
.post-author { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--rule); }
.author-avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--teal), var(--teal-dark)); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; }
.author-name { font-size: 13px; font-weight: 600; color: var(--dark); }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 60px; }
.page-num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--mid); background: var(--white); border: 1px solid var(--rule); transition: all 0.2s; }
.page-num:hover { color: var(--dark); border-color: var(--dark); }
.page-num.active { background: var(--dark); color: #fff; border-color: var(--dark); }
@media (max-width: 900px) { .posts-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .posts-grid { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════════
   SINGLE POST PAGE STYLES
   ══════════════════════════════════════════════════ */
#post-header { background: var(--dark); padding: clamp(96px, 12vw, 140px) 0 clamp(48px, 6vw, 72px); position: relative; overflow: hidden; }
.post-header-bg { position: absolute; inset: 0; background-image: url('https://phoenixdn.com/wp-content/uploads/2026/04/fabric_production.png'); background-size: cover; background-position: center; opacity: 0.07; }
.post-header-inner { position: relative; z-index: 2; max-width: 780px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 28px; flex-wrap: wrap; }
.breadcrumb a { color: rgba(255,255,255,0.4); text-decoration: none; font-size: 13px; transition: color 0.2s; }
.breadcrumb a:hover { color: rgba(255,255,255,0.7); }
.breadcrumb-sep { color: rgba(255,255,255,0.2); font-size: 12px; }
.breadcrumb span { color: rgba(255,255,255,0.6); font-size: 13px; }
.post-header-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.post-header-date, .post-header-read { font-size: 13px; color: rgba(255,255,255,0.4); }
.post-header-read::before { content: '·'; margin-right: 8px; }
.post-header-h1 { font-size: clamp(34px, 4.5vw, 58px); font-weight: 800; color: #fff; margin-bottom: 24px; line-height: 1.1; text-wrap: pretty; }
.post-header-excerpt { font-size: 17px; color: rgba(255,255,255,0.55); line-height: 1.7; max-width: 640px; margin-bottom: 36px; }
.post-header-author { display: flex; align-items: center; gap: 12px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.1); }
.author-avatar-lg { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--amber), var(--amber-dark)); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; color: #fff; flex-shrink: 0; }
.author-info-name { font-size: 14px; font-weight: 600; color: #fff; }
.author-info-role { font-size: 12.5px; color: rgba(255,255,255,0.4); margin-top: 1px; }

#post-hero-img { background: var(--dark); }
.post-hero-img-wrap { max-width: 900px; margin: 0 auto; aspect-ratio: 16/7; overflow: hidden; }
.post-hero-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-hero-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #2D9B8A 0%, #1a6b60 100%); display: flex; align-items: center; justify-content: center; position: relative; }
.post-hero-placeholder::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 24px); }
.post-hero-placeholder svg { width: 64px; height: 64px; stroke: rgba(255,255,255,0.3); fill: none; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; position: relative; z-index: 1; }

#post-body { padding: clamp(48px, 6vw, 80px) 0 var(--section-pad); background: var(--bg); }
.post-layout { display: grid; grid-template-columns: 1fr 300px; gap: 60px; align-items: start; }

.article { background: var(--white); border: 1px solid var(--rule); border-radius: 16px; padding: clamp(32px, 5vw, 56px); min-width: 0; }
.article-content h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; color: var(--dark); margin: 48px 0 18px; padding-top: 16px; border-top: 2px solid var(--rule); }
.article-content h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }
.article-content h3 { font-size: clamp(20px, 2.5vw, 26px); font-weight: 700; color: var(--dark); margin: 32px 0 14px; }
.article-content p { font-size: 16px; color: var(--mid); line-height: 1.8; margin-bottom: 20px; }
.article-content p:last-child { margin-bottom: 0; }
.article-content strong { color: var(--dark); font-weight: 600; }
.article-content a { color: var(--amber); text-decoration: none; border-bottom: 1px solid rgba(232,135,43,0.3); transition: border-color 0.2s; }
.article-content a:hover { border-color: var(--amber); }
.article-content ul, .article-content ol { padding-left: 24px; margin-bottom: 20px; }
.article-content li { font-size: 16px; color: var(--mid); line-height: 1.75; margin-bottom: 8px; }
.article-content li::marker { color: var(--amber); }

.callout { background: rgba(232,135,43,0.07); border-left: 3px solid var(--amber); border-radius: 0 8px 8px 0; padding: 20px 24px; margin: 28px 0; }
.callout-label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); margin-bottom: 6px; }
.callout p { font-size: 15px; color: var(--mid); margin-bottom: 0; }

.key-box { background: var(--dark); border-radius: 12px; padding: 28px 32px; margin: 32px 0; }
.key-box-label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); margin-bottom: 14px; }
.key-box ul { padding-left: 0; list-style: none; margin-bottom: 0; }
.key-box li { font-size: 15px; color: rgba(255,255,255,0.7); line-height: 1.65; margin-bottom: 10px; padding-left: 22px; position: relative; }
.key-box li:last-child { margin-bottom: 0; }
.key-box li::before { content: '→'; position: absolute; left: 0; color: var(--amber); font-weight: 700; }

.article-table-wrap { overflow-x: auto; overflow-y: hidden; border-radius: 10px; border: 1px solid var(--rule); margin: 28px 0; }
.article-table { width: 100%; border-collapse: collapse; min-width: 460px; }
.article-table thead { background: var(--dark); }
.article-table thead th { font-family: 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.7); padding: 14px 18px; text-align: left; }
.article-table tbody tr { border-bottom: 1px solid var(--rule); transition: background 0.15s; }
.article-table tbody tr:last-child { border-bottom: none; }
.article-table tbody tr:hover { background: rgba(232,135,43,0.04); }
.article-table td { padding: 14px 18px; font-size: 14px; color: var(--mid); }
.article-table td:first-child { font-weight: 600; color: var(--dark); }

.article-img { width: 100%; border-radius: 10px; margin: 28px 0; object-fit: cover; display: block; }

.article-footer { margin-top: 48px; padding-top: 32px; border-top: 2px solid var(--rule); }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.article-tag { font-size: 12px; font-weight: 500; padding: 5px 14px; border-radius: 100px; border: 1px solid var(--rule); color: var(--mid); text-decoration: none; transition: all 0.2s; }
.article-tag:hover { border-color: var(--amber); color: var(--amber); }
.share-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.share-label { font-size: 13px; font-weight: 600; color: var(--dark); }
.share-btn { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; padding: 8px 16px; border-radius: var(--radius); border: 1.5px solid var(--rule); color: var(--mid); text-decoration: none; cursor: pointer; background: none; font-family: 'Inter', sans-serif; transition: all 0.2s; }
.share-btn:hover { border-color: var(--dark); color: var(--dark); }
.share-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }

.sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar-card { background: var(--white); border: 1px solid var(--rule); border-radius: 12px; padding: 24px; }
.sidebar-title { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.sidebar-cta { background: var(--dark); border: none; border-radius: 12px; padding: 28px 24px; }
.sidebar-cta-tag { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber); margin-bottom: 12px; }
.sidebar-cta-title { font-family: 'Barlow Condensed', sans-serif; font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 12px; line-height: 1.15; }
.sidebar-cta-sub { font-size: 13.5px; color: rgba(255,255,255,0.45); line-height: 1.65; margin-bottom: 20px; }
.sidebar-cta-btn { display: block; text-align: center; text-decoration: none; background: var(--amber); color: #fff; font-size: 14px; font-weight: 600; padding: 13px 20px; border-radius: var(--radius); transition: background 0.2s; }
.sidebar-cta-btn:hover { background: var(--amber-dark); color: #fff; }
.sidebar-cta-wa { display: flex; align-items: center; justify-content: center; gap: 7px; text-decoration: none; color: rgba(255,255,255,0.4); font-size: 13px; margin-top: 12px; transition: color 0.2s; }
.sidebar-cta-wa:hover { color: #25D366; }
.sidebar-cta-wa svg { width: 15px; height: 15px; fill: currentColor; }
.related-post { display: flex; gap: 12px; text-decoration: none; color: inherit; padding: 12px 0; border-bottom: 1px solid var(--rule); transition: opacity 0.2s; }
.related-post:last-child { border-bottom: none; padding-bottom: 0; }
.related-post:first-child { padding-top: 0; }
.related-post:hover { opacity: 0.75; }
.related-thumb { width: 64px; height: 48px; border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.related-thumb-placeholder { width: 64px; height: 48px; border-radius: 6px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.color-amber-sm { background: linear-gradient(135deg, #E8872B, #c96e18); }
.related-thumb-placeholder svg { width: 20px; height: 20px; stroke: rgba(255,255,255,0.5); fill: none; stroke-width: 1.5; }
.related-cat { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--amber); margin-bottom: 3px; }
.related-title { font-size: 13px; font-weight: 600; color: var(--dark); line-height: 1.35; }
.sidebar-sticky { position: sticky; top: 92px; }

@media (max-width: 900px) {
  .post-layout { grid-template-columns: 1fr; }
  .sidebar-sticky { position: static; }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; }
  .sidebar-card:first-child { grid-column: 1 / -1; }
}
@media (max-width: 580px) {
  .sidebar { grid-template-columns: 1fr; }
  .post-header-meta { gap: 8px; }
}
