/*
Theme Name:  DW Blog Theme
Theme URI:   https://daryl.darylwizinsky.com/blog
Author:      Daryl Wizinsky & Associates
Author URI:  https://darylwizinsky.com
Description: A luxury real estate blog theme built for E-E-A-T, technical SEO, and GEO optimization for Metro Detroit.
Version:     1.2.0
License:     GNU General Public License v2 or later
Text Domain: dw-blog-theme
*/

/* ============================================================
   1. CSS CUSTOM PROPERTIES — Design Tokens
   ============================================================ */
:root {
  --color-white:       #FFFFFF;
  --color-navy:        #1E2A3A;
  --color-teal:        #1B9AAA;
  --color-slate:       #2C4A6E;
  --color-light-gray:  #F4F6F8;
  --color-mid-gray:    #8A9BB0;
  --color-border:      #E2E8F0;

  --font-body:    'Inter', system-ui, sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;

  --size-xs:  0.75rem;   /*  12px */
  --size-sm:  0.875rem;  /*  14px */
  --size-base: 1rem;     /*  16px */
  --size-md:  1.125rem;  /*  18px */
  --size-lg:  1.25rem;   /*  20px */
  --size-xl:  1.5rem;    /*  24px */
  --size-2xl: 2rem;      /*  32px */
  --size-3xl: 2.5rem;    /*  40px */
  --size-4xl: 3rem;      /*  48px */

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

  --shadow-card: 0 2px 12px rgba(30, 42, 58, 0.08);
  --shadow-hover: 0 6px 24px rgba(30, 42, 58, 0.14);

  --transition: 0.22s ease;

  --max-content: 800px;
  --max-site:    1200px;
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--color-white);
  color: var(--color-navy);
  font-family: var(--font-body);
  font-size: var(--size-base);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-teal);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

a:hover {
  color: var(--color-slate);
}

ul, ol {
  list-style: none;
}

/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(var(--size-2xl), 4vw, var(--size-4xl)); }
h2 { font-size: clamp(var(--size-xl),  3vw, var(--size-3xl)); }
h3 { font-size: clamp(var(--size-lg),  2.5vw, var(--size-2xl)); }
h4 { font-size: var(--size-xl); }
h5 { font-size: var(--size-lg); }
h6 { font-size: var(--size-md); }

p { margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }

blockquote {
  border-left: 4px solid var(--color-teal);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--color-light-gray);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--color-slate);
}

code, pre {
  font-family: 'Courier New', monospace;
  font-size: var(--size-sm);
  background: var(--color-light-gray);
  border-radius: var(--radius-sm);
}

code { padding: 0.15em 0.4em; }

pre {
  padding: 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2.5rem 0;
}

/* ============================================================
   4. LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-site);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.content-wrap {
  max-width: var(--max-content);
  margin-inline: auto;
}

.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1;
  padding: 3rem 0;
}

/* ============================================================
   5. SITE HEADER
   ============================================================ */
.site-header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(30, 42, 58, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1rem;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 0.5rem;
  flex-shrink: 0;
}

.site-logo-text {
  font-family: var(--font-heading);
  font-size: var(--size-lg);
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.1;
  transition: color var(--transition);
}

.site-logo-text span {
  color: var(--color-teal);
}

.site-logo:hover .site-logo-text {
  color: var(--color-slate);
}

/* Primary Navigation */
.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.primary-nav a {
  font-size: var(--size-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-navy);
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

.primary-nav a:hover,
.primary-nav a.current-menu-item {
  background: var(--color-teal);
  color: var(--color-white);
}

/* CTA button in nav */
.nav-cta a {
  background: var(--color-teal);
  color: var(--color-white) !important;
  padding: 0.5rem 1.125rem;
  border-radius: var(--radius-sm);
}

.nav-cta a:hover {
  background: var(--color-slate) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.hamburger:hover { background: var(--color-light-gray); }

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  padding: 1rem 1.5rem 1.5rem;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav a {
  display: block;
  font-size: var(--size-base);
  font-weight: 600;
  color: var(--color-navy);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

.mobile-nav a:hover {
  background: var(--color-teal);
  color: var(--color-white);
}

/* ============================================================
   6. BLOG INDEX / ARCHIVE
   ============================================================ */
.archive-title {
  font-size: clamp(var(--size-xl), 3vw, var(--size-3xl));
  margin-bottom: 0.5rem;
}

.archive-description {
  color: var(--color-mid-gray);
  font-size: var(--size-md);
  margin-bottom: 2.5rem;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

/* Post Card */
.post-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.post-card-thumbnail {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.post-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card-category {
  font-size: var(--size-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: 0.5rem;
}

.post-card-title {
  font-family: var(--font-heading);
  font-size: var(--size-xl);
  color: var(--color-navy);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.post-card-title a {
  color: inherit;
  transition: color var(--transition);
}

.post-card-title a:hover { color: var(--color-teal); }

.post-card-excerpt {
  color: var(--color-mid-gray);
  font-size: var(--size-sm);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.25rem;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--size-xs);
  color: var(--color-mid-gray);
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.post-card-meta time { font-weight: 600; }

/* Read More link */
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: var(--size-sm);
  font-weight: 700;
  color: var(--color-teal);
  margin-top: auto;
}

.read-more::after {
  content: '→';
  transition: transform var(--transition);
}

.read-more:hover::after { transform: translateX(4px); }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  font-size: var(--size-sm);
  font-weight: 600;
  border: 1px solid var(--color-border);
  color: var(--color-navy);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.pagination a:hover,
.pagination .current {
  background: var(--color-teal);
  color: var(--color-white);
  border-color: var(--color-teal);
}

/* ============================================================
   7. SINGLE POST
   ============================================================ */
.single-post-header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 2.5rem;
}

.post-category-label {
  display: inline-block;
  font-size: var(--size-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: 0.75rem;
}

.single-post-title {
  font-size: clamp(var(--size-2xl), 4vw, var(--size-4xl));
  line-height: 1.15;
  margin-bottom: 1rem;
}

.post-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: var(--size-sm);
  color: var(--color-mid-gray);
}

.post-meta-row .sep { opacity: 0.4; }

/* Featured image */
.single-featured-image {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-card);
}

/* Post body prose */
.entry-content {
  font-size: var(--size-md);
  line-height: 1.85;
  color: var(--color-navy);
}

.entry-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.entry-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.entry-content ul,
.entry-content ol {
  list-style: revert;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.entry-content li { margin-bottom: 0.375rem; }

.entry-content a {
  color: var(--color-teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-content img {
  border-radius: var(--radius-md);
  margin-block: 2rem;
}

/* Post tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.tag-chip {
  display: inline-block;
  font-size: var(--size-xs);
  font-weight: 600;
  background: var(--color-light-gray);
  color: var(--color-slate);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  transition: background var(--transition), color var(--transition);
}

.tag-chip:hover {
  background: var(--color-teal);
  color: var(--color-white);
}

/* ============================================================
   8. AUTHOR BOX (E-E-A-T Signal)
   ============================================================ */
.author-box {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--color-light-gray);
  border: 1px solid var(--color-border);
  border-left: 5px solid var(--color-teal);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 3rem;
}

.author-avatar {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-teal);
  background: var(--color-border);
}

.author-avatar-placeholder {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: var(--size-2xl);
  color: var(--color-white);
  border: 3px solid var(--color-teal);
  user-select: none;
}

.author-details { flex: 1; }

.author-label {
  font-size: var(--size-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: 0.25rem;
}

.author-name {
  font-family: var(--font-heading);
  font-size: var(--size-xl);
  color: var(--color-navy);
  margin-bottom: 0.625rem;
}

.author-bio {
  font-size: var(--size-sm);
  color: var(--color-slate);
  line-height: 1.7;
  margin-bottom: 0.875rem;
}

.author-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: var(--size-sm);
  font-weight: 700;
  color: var(--color-teal);
}

.author-link:hover { color: var(--color-slate); }

/* ============================================================
   9. FAQ BLOCK (AEO / Answer Engine Optimization)
   ============================================================ */
.faq-block {
  margin-top: 2.5rem;
}

.faq-block h2 {
  margin-bottom: 1.5rem;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: var(--color-white);
  border: none;
  padding: 1rem 1.25rem;
  font-family: var(--font-heading);
  font-size: var(--size-md);
  font-weight: 700;
  color: var(--color-navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background var(--transition);
}

.faq-question:hover { background: var(--color-light-gray); }

.faq-question::after {
  content: '+';
  font-size: var(--size-xl);
  color: var(--color-teal);
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-question[aria-expanded="true"]::after {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 1.25rem 1.25rem;
  font-size: var(--size-sm);
  color: var(--color-slate);
  line-height: 1.75;
}

.faq-answer.is-open { display: block; }

/* ============================================================
   10. MEGA FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-navy);
  color: var(--color-white);
  padding-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: var(--size-lg);
  color: var(--color-teal);
  margin-bottom: 1rem;
  padding-bottom: 0.625rem;
  border-bottom: 2px solid var(--color-teal);
}

.footer-col p {
  font-size: var(--size-sm);
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.75;
  margin-bottom: 0;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul a {
  font-size: var(--size-sm);
  color: rgba(255, 255, 255, 0.75);
  transition: color var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.footer-col ul a::before {
  content: '›';
  color: var(--color-teal);
  font-size: var(--size-md);
  line-height: 1;
}

.footer-col ul a:hover { color: var(--color-teal); }

/* Footer bottom bar */
.footer-bottom {
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-bottom p {
  font-size: var(--size-xs);
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.55);
  font-size: var(--size-xs);
  transition: color var(--transition);
}

.footer-bottom a:hover { color: var(--color-teal); }

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}

/* ============================================================
   11. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--size-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--color-teal);
  color: var(--color-white);
  border-color: var(--color-teal);
}

.btn-primary:hover {
  background: var(--color-slate);
  border-color: var(--color-slate);
  color: var(--color-white);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--color-teal);
  border-color: var(--color-teal);
}

.btn-outline:hover {
  background: var(--color-teal);
  color: var(--color-white);
}

/* ============================================================
   12. RESPONSIVE — TABLET & MOBILE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Header */
  .primary-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Post grid */
  .post-grid {
    grid-template-columns: 1fr;
  }

  /* Author box stacks on small screens */
  .author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .author-link { justify-content: center; }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-legal-links { justify-content: center; }
}

@media (max-width: 480px) {
  .site-main { padding: 2rem 0; }

  .single-post-header { padding: 2rem 0 1.5rem; }
}

/* ============================================================
   13. ACCESSIBILITY & FOCUS
   ============================================================ */
:focus-visible {
  outline: 3px solid var(--color-teal);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  margin: -1px;
  overflow: hidden;
  position: absolute;
  word-wrap: normal !important;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--color-teal);
  color: var(--color-white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: 9999;
  transition: top 0.2s;
}

.skip-link:focus { top: 1rem; }

/* ============================================================
   14. WORDPRESS ALIGNMENT CLASSES
   ============================================================ */
.alignleft  { float: left;  margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin-inline: auto; }
.alignwide  { max-width: calc(var(--max-content) + 200px); margin-inline: auto; }
.alignfull  { width: 100%; max-width: none; margin-inline: calc(-50vw + 50%); }

/* ============================================================
   15. ANNOUNCEMENT BAR
   ============================================================ */
.dw-announcement {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 700;
  text-transform: uppercase;
  -webkit-font-smoothing: antialiased;
}
.dw-announcement a { color: #fff; text-decoration: none; }
.dw-announcement a:hover { opacity: 0.75; }

/* ============================================================
   16. HERO ZONE — positions header over hero on home/blog
   ============================================================ */

/* Home / blog — header floats over 550px hero */
#dw-page-hero.has-hero {
  position: relative;
}

/* Inner pages — whole zone is sticky, header is solid white */
#dw-page-hero.no-hero {
  position: sticky;
  top: 0;
  z-index: 10000;
  background: #fff;
  border-bottom: 1px solid #eee;
}

/* ============================================================
   17. HEADER  (#dw-header)
   ============================================================ */
#dw-header {
  font-family: 'Montserrat', sans-serif;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Hero page: transparent overlay */
.has-hero #dw-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 9999;
  background: transparent;
  padding: 20px 40px 0;
}

/* Inner pages: white, in normal flow */
.no-hero #dw-header {
  position: relative;
  background: #fff;
  padding: 15px 40px 0;
}

/* ── Logo row ─────────────────────────────────────────────── */
.dw-logo-row {
  text-align: center;
  margin-bottom: 4px;
}
.dw-logo-row a { display: inline-block; line-height: 0; }
.dw-logo-row img { height: 55px; width: auto; object-fit: contain; }

/* ── Desktop nav ──────────────────────────────────────────── */
nav#dw-desktop-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  padding: 18px 0 20px;
  flex-wrap: wrap;
}

.dw-dropdown {
  position: relative;
  padding-bottom: 8px;
}

/* Nav link base */
.dw-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
  -webkit-font-smoothing: antialiased;
}

/* Hero page: white links */
.has-hero .dw-link { color: #ffffff; }
.has-hero .dw-link:hover { color: #4899a8; }

/* Inner pages: dark links */
.no-hero .dw-link { color: #333333; }
.no-hero .dw-link:hover { color: #4899a8; }

/* Contact CTA button */
a.dw-cta {
  background: #4899a8;
  color: #ffffff !important;
  padding: 8px 18px;
  border-radius: 2px;
  font-weight: 600;
  transition: background 0.25s ease !important;
}
a.dw-cta:hover {
  background: #2C4A6E;
  color: #fff !important;
}

/* ── Dropdown menus ───────────────────────────────────────── */
.dw-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #000000;
  min-width: 220px;
  padding: 14px 0;
  list-style: none;
  border-top: 3px solid #4899a8;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  z-index: 10001;
  margin: 0;
}

.dw-dropdown:hover .dw-dropdown-menu,
.dw-dropdown:focus-within .dw-dropdown-menu {
  display: block !important;
}

.dw-dropdown-menu li { break-inside: avoid; }

.dw-dropdown-menu li a {
  display: block;
  padding: 8px 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
  -webkit-font-smoothing: antialiased;
}
.dw-dropdown-menu li a:hover {
  color: #4899a8;
  background: #111111;
}

/* Communities — 3-column dropdown */
.dw-dropdown-menu--3col {
  column-count: 3;
  width: 600px;
  padding: 14px 0;
}
.dw-dropdown-menu--3col li {
  break-inside: avoid;
  display: block;
}

/* ── Hero Banner ──────────────────────────────────────────── */
#hero-banner {
  width: 100%;
  height: 550px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.50), transparent),
    url('https://daryl.darylwizinsky.com/wp-content/uploads/sites/7/2026/02/ChatGPT-Image-Feb-24-2026-04_55_04-PM.png')
    center / cover no-repeat;
  display: block;
}

/* ── Hamburger ────────────────────────────────────────────── */
.dw-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  position: absolute;
  right: 20px;
  top: 18px;
  z-index: 10;
}
.dw-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
/* White bars on hero, dark bars on inner pages */
.has-hero .dw-hamburger span { background: #fff; }
.no-hero  .dw-hamburger span { background: #333; }

.dw-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.dw-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.dw-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile nav drawer ────────────────────────────────────── */
#dw-mobile-nav {
  display: none;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid #eee;
  font-family: 'Montserrat', sans-serif;
  -webkit-font-smoothing: antialiased;
}
#dw-mobile-nav.is-open { display: flex; }

.dw-mobile-item { border-bottom: 1px solid #f0f0f0; }

.dw-mobile-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  color: #333;
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  transition: background 0.2s ease, color 0.2s ease;
}
.dw-mobile-top:hover { background: #f9f9f9; color: #4899a8; }

.dw-mobile-arrow {
  font-size: 9px;
  color: #4899a8;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.dw-mobile-item.is-open .dw-mobile-arrow { transform: rotate(180deg); }

.dw-mobile-sub {
  display: none;
  flex-direction: column;
  background: #000;
  border-top: 2px solid #4899a8;
}
.dw-mobile-item.is-open .dw-mobile-sub { display: flex; }

.dw-mobile-sub a {
  display: block;
  padding: 10px 36px;
  color: #fff;
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color 0.2s ease;
}
.dw-mobile-sub a:hover { color: #4899a8; }

.dw-mobile-cta-wrap { padding: 16px 24px; }
.dw-mobile-cta-wrap a {
  display: block;
  text-align: center;
  background: #4899a8;
  color: #fff;
  padding: 12px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-decoration: none;
  transition: background 0.25s ease;
}
.dw-mobile-cta-wrap a:hover { background: #2C4A6E; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 960px) {
  nav#dw-desktop-nav    { display: none; }
  .dw-hamburger { display: flex; }
}
@media (max-width: 600px) {
  .has-hero #dw-header,
  .no-hero  #dw-header { padding-left: 20px; padding-right: 20px; }
}

/* ============================================================
   LUXURY BLOG FEED & SIDEBAR STYLING
   ============================================================ */

/* Core Layout */
.dw-main { background-color: #ffffff; padding: 80px 0; }
.dw-wrap { width: min(1200px, 92%); margin: 0 auto; }
.dw-layout { display: grid; grid-template-columns: 1fr 340px; gap: 80px; align-items: start; }
.dw-feed { display: flex; flex-direction: column; gap: 70px; }

/* The Articles (Stacked Luxury) */
.dw-card { padding-bottom: 70px; border-bottom: 1px solid #eaeaea; }
.dw-card:last-child { border-bottom: none; }

/* Cinematic Featured Images */
.dw-card-media { display: block; margin: 0 0 30px 0; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; }
.dw-thumb { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.dw-card-media:hover .dw-thumb { transform: scale(1.03); }

/* Post Meta (Tiny, Wide, Crisp) */
.dw-card-meta { font-size: 11px; text-transform: uppercase; letter-spacing: 2.5px; color: #888; margin-bottom: 15px; font-weight: 500; }
.dw-divider { margin: 0 12px; color: #ccc; }

/* Post Titles */
.dw-card-title { font-size: 36px; font-weight: 400; line-height: 1.25; margin: 0 0 20px 0; font-family: 'Montserrat', sans-serif; }
.dw-card-title a { color: #111; text-decoration: none; transition: color 0.3s ease; }
.dw-card-title a:hover { color: #4899a8; }

/* Article Preview Text */
.dw-card-excerpt { font-size: 16px; line-height: 1.8; color: #555; margin-bottom: 35px; font-weight: 400; }

/* "Read More" Ghost Button */
.dw-readmore { display: inline-block; padding: 14px 35px; border: 1px solid #111; color: #111; text-transform: uppercase; font-size: 11px; letter-spacing: 2.5px; font-weight: 600; text-decoration: none; transition: all 0.3s ease; background: transparent; }
.dw-readmore:hover { background-color: #4899a8; border-color: #4899a8; color: #fff; }

/* ============================================================
   LUXURY SIDEBAR (NO CHUNKY BLOCKS)
   ============================================================ */
.dw-sidebar-inner { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 24px; }
.dw-widget { background: #f9f9f9; border: 1px solid #ebebeb; padding: 28px 24px; text-align: center; }

/* Sidebar Headers (Sleek Underline) */
.dw-widget h3 { font-size: 11px; text-transform: uppercase; letter-spacing: 2.5px; color: #111; margin: 0 0 20px 0; padding-bottom: 12px; border-bottom: 1px solid #ddd; font-weight: 700; }
.dw-widget p { font-size: 14px; line-height: 1.7; color: #666; }

/* Clean Category List */
.dw-cat-list { list-style: none; padding: 0; margin: 0; }
.dw-cat-list li { border-bottom: 1px solid #eaeaea; padding: 14px 0; }
.dw-cat-list li:last-child { border-bottom: none; }
.dw-cat-list li a { color: #555; text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.3s ease, padding-left 0.3s ease; display: block; }
.dw-cat-list li a:hover { color: #4899a8; padding-left: 5px; }

/* Home Valuation CTA Box (High Contrast) */
.dw-cta { background: #0a0a0a; padding: 40px 30px; text-align: center; }
.dw-cta h3 { color: #ffffff; border-bottom: none; margin-bottom: 15px; padding: 0; }
.dw-cta p { color: #aaaaaa; margin-bottom: 30px; font-size: 14px; }
.dw-cta .dw-btn { background: #4899a8; color: #ffffff; padding: 16px 35px; display: inline-block; text-transform: uppercase; letter-spacing: 2.5px; font-size: 11px; font-weight: 600; text-decoration: none; transition: background 0.3s ease; width: 100%; box-sizing: border-box; }
.dw-cta .dw-btn:hover { background: #387b87; }

/* Pagination Styling */
.dw-pagination { margin-top: 20px; border-top: 1px solid #eaeaea; padding-top: 40px; }
.dw-pagination .page-numbers { display: inline-block; padding: 12px 18px; margin-right: 8px; font-size: 14px; color: #111; text-decoration: none; transition: all 0.3s ease; }
.dw-pagination .current { font-weight: bold; border-bottom: 2px solid #4899a8; color: #4899a8; }
.dw-pagination a.page-numbers:hover { color: #4899a8; }

/* Empty state */
.dw-empty { padding: 60px 20px; text-align: center; color: #888; }

/* Mobile Responsiveness */
@media (max-width: 991px) {
  .dw-layout { grid-template-columns: 1fr; gap: 60px; }
  .dw-sidebar-inner { position: relative; top: 0; }
  .dw-card-title { font-size: 28px; }
  .dw-card-media { aspect-ratio: 4 / 3; }
}
@media (max-width: 640px) {
  .dw-main { padding: 50px 0; }
  .dw-card-title { font-size: 22px; }
  .dw-card-excerpt { font-size: 15px; }
}

/* ============================================
   UNIFIED FOOTER STYLES
   ============================================ */

.dw-site-footer {
  background: linear-gradient(180deg, #1a2332 0%, #141b27 40%, #0f1620 100%);
  color: #c8d4de;
  position: relative;
  overflow: hidden;
}
.dw-site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, #4db8ac 20%, #4db8ac 80%, transparent 100%);
}

.dw-footer-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 40px 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}

.dw-footer-col h4 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #4db8ac;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}
.dw-footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 1px;
  background: rgba(77, 184, 172, .4);
}

.dw-footer-col p {
  font-size: 13px;
  line-height: 1.8;
  color: #8a9bb0;
  margin-bottom: 16px;
}
.dw-footer-col p strong {
  color: #c8d4de;
}

a.dw-flink {
  display: block;
  font-size: 13px;
  color: #8a9bb0;
  text-decoration: none;
  padding: 5px 0;
  transition: color .2s, padding-left .2s;
}
a.dw-flink:hover {
  color: #fff;
  padding-left: 6px;
}
a.dw-flink::before {
  content: '›';
  margin-right: 8px;
  color: #4db8ac;
  font-weight: 600;
  opacity: .6;
}
a.dw-flink-cta {
  color: #4db8ac !important;
  font-weight: 600 !important;
}

.dw-footer-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #4db8ac;
  text-decoration: none;
  margin-top: 8px;
}
.dw-footer-phone:hover { color: #5fcfc3; }

.dw-footer-email {
  font-size: 12px;
  color: #6a7b8e;
  text-decoration: none;
  display: block;
  margin-top: 4px;
}
.dw-footer-email:hover { color: #4db8ac; }

.dw-footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.dw-footer-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6a7b8e;
  text-decoration: none;
  font-size: 12px;
  transition: all .2s;
}
.dw-footer-social a:hover {
  border-color: #4db8ac;
  color: #4db8ac;
  background: rgba(77,184,172,.08);
}

.dw-footer-address {
  font-size: 12px;
  color: #6a7b8e;
  line-height: 1.6;
  margin-top: 8px;
}

.dw-footer-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #4db8ac;
  background: rgba(77,184,172,.1);
  padding: 4px 10px;
  border-radius: 2px;
  margin-top: 12px;
  border: 1px solid rgba(77,184,172,.15);
}

.dw-footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 40px;
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.dw-footer-bottom p {
  font-size: 11px;
  color: #4a5c6e;
  margin: 0;
}
.dw-footer-bottom-links {
  display: flex;
  gap: 20px;
}
.dw-footer-bottom-links a {
  font-size: 11px;
  color: #4a5c6e;
  text-decoration: none;
  transition: color .2s;
}
.dw-footer-bottom-links a:hover { color: #4db8ac; }

.dw-footer-idx {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 40px 24px;
  font-size: 10px;
  line-height: 1.6;
  color: #3a4a5a;
}

@media (max-width: 768px) {
  .dw-footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 40px 24px 30px;
  }
  .dw-footer-bottom {
    padding: 16px 24px;
    flex-direction: column;
    text-align: center;
  }
}
@media (max-width: 480px) {
  .dw-footer-main {
    grid-template-columns: 1fr;
  }
}

/* Blog homepage H1 */
.dw-blog-title {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 800;
    color: #1a2332;
    margin-bottom: 32px;
    letter-spacing: -0.02em;
}
