/*
Theme Name: Defrehn Architectural Material Portal
Template: kadence
Version: 3.0.0
Text Domain: defrehn-material-journal
*/

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  --df-bg: #FAF8F5;
  --df-surface: #FFFFFF;
  --df-soft: #F3EFE6;
  --df-ink: #1C1917;
  --df-body: #292524;
  --df-muted: #57534E;
  --df-copper: #B45309;
  --df-copper-dark: #92400E;
  --df-copper-light: #FEF3C7;
  --df-forest: #166534;
  --df-border: #E5DEC9;
  --df-radius: 14px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--df-bg) !important;
  color: var(--df-body) !important;
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 17px !important;
  line-height: 1.75 !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif !important;
  color: var(--df-ink);
  letter-spacing: -0.015em !important;
  font-weight: 700;
  margin-top: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

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

.df-container {
  width: min(1340px, calc(100% - 48px));
  margin-inline: auto;
}

/* Top Utility Bar */
.df-utility-bar {
  background: #231F1D;
  color: #E7E5E4;
  font-size: 13.5px;
  font-weight: 500;
  padding: 10px 0;
  border-bottom: 2px solid var(--df-copper);
}
.df-utility-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.df-utility-badge {
  background: var(--df-copper);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 11.5px;
  padding: 3px 10px;
  border-radius: 99px;
  margin-right: 10px;
  letter-spacing: 0.04em;
}
.df-utility-links {
  display: flex;
  gap: 22px;
  align-items: center;
}
.df-utility-links span {
  color: #D6D3D1;
}
.df-utility-links strong {
  color: #FCD34D;
}

/* Sticky Portal Header */
.df-header {
  background: #FFFFFF;
  border-bottom: 1px solid var(--df-border);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(28, 25, 23, 0.04);
}
.df-header-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.df-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}
.df-logo-mark {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: linear-gradient(135deg, #166534 0%, #14532D 100%);
  border: 2px solid var(--df-copper);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  flex-shrink: 0;
}
.df-logo-text strong {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--df-ink);
  line-height: 1.1;
}
.df-logo-text span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--df-copper);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 3px;
}

.df-nav ul {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  flex-wrap: wrap;
}
.df-nav a {
  display: block;
  padding: 9px 15px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--df-body);
  border-radius: 8px;
}
.df-nav a:hover {
  background: var(--df-soft);
  color: var(--df-copper);
}
.df-header-cta {
  background: var(--df-copper);
  color: #FFFFFF !important;
  font-size: 14.5px;
  font-weight: 700;
  padding: 11px 20px;
  border-radius: 9px;
  white-space: nowrap;
}
.df-header-cta:hover {
  background: var(--df-copper-dark);
}

/* Bento Magazine Hero */
.df-hero-section {
  padding: 38px 0 32px;
}
.df-bento-hero {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 28px;
  align-items: stretch;
}
.df-hero-main-card {
  background: var(--df-surface);
  border: 1px solid var(--df-border);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 32px rgba(28, 25, 23, 0.06);
}
.df-hero-main-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #292524;
}
.df-hero-main-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.df-hero-main-card:hover .df-hero-main-thumb img {
  transform: scale(1.03);
}
.df-hero-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background: rgba(22, 101, 52, 0.94);
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 99px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.df-hero-main-body {
  padding: 28px 32px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.df-hero-main-body h1 {
  font-size: clamp(24px, 2.5vw, 32px);
  line-height: 1.32;
  margin: 0 0 14px;
}
.df-hero-main-body h1 a:hover {
  color: var(--df-copper);
}
.df-hero-main-body p {
  font-size: 16.5px;
  color: var(--df-muted);
  margin: 0 0 20px;
  line-height: 1.7;
}
.df-hero-meta-row {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--df-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--df-muted);
  font-weight: 600;
}

/* Right Column of Bento Hero */
.df-hero-side-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.df-side-intro-box {
  background: linear-gradient(135deg, #1C1917 0%, #292524 100%);
  color: #FFFFFF;
  padding: 24px 26px;
  border-radius: 16px;
  border-left: 5px solid var(--df-copper);
}
.df-side-intro-box span {
  display: inline-block;
  color: #FCD34D;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.df-side-intro-box h2 {
  color: #FFFFFF !important;
  font-size: 20px;
  line-height: 1.35;
  margin: 0 0 10px;
}
.df-side-intro-box p {
  color: #D6D3D1;
  font-size: 14.5px;
  line-height: 1.65;
  margin: 0;
}
.df-side-story {
  background: var(--df-surface);
  border: 1px solid var(--df-border);
  border-radius: 14px;
  padding: 14px;
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 16px;
  align-items: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.df-side-story:hover {
  transform: translateY(-2px);
  border-color: var(--df-copper);
}
.df-side-thumb {
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  background: var(--df-soft);
}
.df-side-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.df-side-info span {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--df-copper);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.df-side-info h3 {
  font-size: 16px;
  line-height: 1.4;
  margin: 0;
  font-weight: 700;
}
.df-side-info h3 a:hover {
  color: var(--df-copper);
}

/* 4-Pillar Category Strip */
.df-cat-strip {
  padding: 20px 0 36px;
}
.df-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--df-border);
}
.df-section-head h2 {
  font-size: 26px;
  margin: 0;
}
.df-section-head p {
  margin: 0;
  font-size: 15px;
  color: var(--df-muted);
}
.df-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.df-cat-box {
  background: var(--df-surface);
  border: 1px solid var(--df-border);
  border-top: 4px solid var(--df-copper);
  border-radius: 14px;
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.df-cat-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(28, 25, 23, 0.07);
}
.df-cat-tag {
  display: inline-block;
  align-self: flex-start;
  background: var(--df-soft);
  color: var(--df-copper-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}
.df-cat-box h3 {
  font-size: 19.5px;
  margin: 0 0 10px;
}
.df-cat-box p {
  font-size: 15px;
  color: var(--df-muted);
  line-height: 1.65;
  margin: 0 0 16px;
}
.df-cat-link {
  margin-top: auto;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--df-copper);
}

/* Main 2-Column Editorial Feed + Sticky Spec Sidebar */
.df-main-layout {
  display: grid;
  grid-template-columns: 1fr 370px;
  gap: 36px;
  padding: 16px 0 64px;
  align-items: start;
}
.df-article-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.df-post-card {
  background: var(--df-surface);
  border: 1px solid var(--df-border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.df-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(28, 25, 23, 0.08);
}
.df-post-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--df-soft);
}
.df-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.df-post-card:hover .df-post-thumb img {
  transform: scale(1.04);
}
.df-post-cat-pill {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(28, 25, 23, 0.88);
  color: #FCD34D;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 6px;
}
.df-post-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.df-post-body h3 {
  font-size: 19.5px;
  line-height: 1.4;
  margin: 0 0 10px;
  font-weight: 700;
}
.df-post-body h3 a:hover {
  color: var(--df-copper);
}
.df-post-body p {
  font-size: 15.5px;
  color: var(--df-muted);
  line-height: 1.68;
  margin: 0 0 18px;
}
.df-post-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--df-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  font-weight: 600;
}
.df-post-footer a {
  color: var(--df-copper);
  font-weight: 700;
}

/* Sticky Spec Sidebar */
.df-sidebar {
  position: sticky;
  top: 106px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.df-widget {
  background: var(--df-surface);
  border: 1px solid var(--df-border);
  border-radius: 14px;
  padding: 24px;
}
.df-widget-title {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--df-copper);
  color: var(--df-ink);
}
.df-spec-mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.df-spec-mini-table th {
  background: var(--df-soft);
  color: var(--df-ink);
  text-align: left;
  padding: 9px 10px;
  font-weight: 700;
}
.df-spec-mini-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--df-border);
  color: var(--df-body);
}
.df-lab-card {
  background: #1C1917;
  color: #F5F5F4;
  border-radius: 14px;
  padding: 24px;
}
.df-lab-card h3 {
  color: #FCD34D !important;
  font-size: 18px;
  margin: 0 0 12px;
}
.df-lab-card p, .df-lab-card li {
  font-size: 14.5px;
  color: #E7E5E4;
  line-height: 1.65;
}
.df-lab-card ul {
  padding-left: 18px;
  margin: 12px 0 0;
}
.df-lab-card li {
  margin-bottom: 8px;
}

/* Single Article & Page Layout */
.df-single-wrap {
  padding: 42px 0 72px;
}
.df-single-header {
  max-width: 900px;
  margin: 0 auto 28px;
}
.df-breadcrumb {
  font-size: 14.5px;
  color: var(--df-muted);
  margin-bottom: 14px;
  font-weight: 500;
}
.df-breadcrumb a {
  color: var(--df-copper);
  font-weight: 700;
}
.df-single-header h1 {
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.28;
  margin: 0 0 16px;
}
.df-single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 15px;
  color: var(--df-muted);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--df-border);
}
.df-single-featured {
  max-width: 900px;
  margin: 0 auto 32px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--df-border);
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}
.df-prose {
  max-width: 880px;
  margin: 0 auto;
  background: var(--df-surface);
  border: 1px solid var(--df-border);
  border-radius: 16px;
  padding: 40px 48px;
  font-size: 18px;
  line-height: 1.82;
  color: var(--df-body);
}
.df-prose h2 {
  font-size: 26px;
  line-height: 1.35;
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--df-soft);
  color: var(--df-ink);
}
.df-prose h3 {
  font-size: 21px;
  line-height: 1.4;
  margin: 28px 0 12px;
  color: var(--df-copper-dark);
}
.df-prose p {
  margin: 0 0 20px;
}
.df-prose a {
  color: var(--df-copper);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.df-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 26px 0;
  font-size: 16px;
  border: 1px solid var(--df-border);
  border-radius: 10px;
  overflow: hidden;
}
.df-prose th {
  background: #1C1917;
  color: #FFFFFF;
  text-align: left;
  padding: 13px 16px;
  font-weight: 700;
}
.df-prose td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--df-border);
}
.df-prose tr:nth-child(even) td {
  background: var(--df-bg);
}
.df-prose figure {
  margin: 30px 0;
  border: 1px solid var(--df-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--df-bg);
}
.df-prose figcaption {
  padding: 12px 16px;
  font-size: 14.5px;
  color: var(--df-muted);
  text-align: center;
  font-weight: 500;
}

/* Footer */
.df-footer {
  background: #1C1917;
  color: #E7E5E4;
  padding: 56px 0 0;
  border-top: 4px solid var(--df-copper);
}
.df-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1.3fr 1fr;
  gap: 44px;
  padding-bottom: 40px;
}
.df-footer h4 {
  color: #FCD34D !important;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 16px;
}
.df-footer p, .df-footer li, .df-footer a {
  font-size: 15px;
  line-height: 1.75;
  color: #D6D3D1;
}
.df-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.df-footer li {
  margin-bottom: 9px;
}
.df-footer a:hover {
  color: #FCD34D;
}
.df-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 14px;
  color: #A8A29E;
}

@media (max-width: 1024px) {
  .df-bento-hero,
  .df-main-layout {
    grid-template-columns: 1fr;
  }
  .df-cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .df-footer-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 680px) {
  .df-article-grid,
  .df-cat-grid,
  .df-side-story {
    grid-template-columns: 1fr;
  }
  .df-prose {
    padding: 24px 20px;
    font-size: 16.5px;
  }
}
