/*
Theme Name: Custom-DVC
Theme URI: https://digitalvisibilityconcepts.com
Author: Digital Visibility Concepts
Author URI: https://digitalvisibilityconcepts.com
Description: Pure HTML/CSS architecture conversion for DVC Blog.
Version: 1.0.0
*/

:root {
  --cdvc-void: #07060A;
  --cdvc-deep: #0E0C10;
  --cdvc-panel: #141218;
  --cdvc-panel2: #1A1720;
  --cdvc-edge: rgba(255, 255, 255, 0.07);
  --cdvc-edge2: rgba(255, 255, 255, 0.13);
  --cdvc-white: #F8F4EE;
  --cdvc-silver: #E2DDD6;
  --cdvc-fog: #CFC8BE;
  --cdvc-mist: #B5ADA4;
  --cdvc-accent: #E8560C;
  --cdvc-accent2: #C44208;
  --cdvc-acc-dim: rgba(232, 86, 12, 0.12);
  --cdvc-acc-pale: rgba(232, 86, 12, 0.06);
  --cdvc-acc-glow: rgba(232, 86, 12, 0.22);
  --cdvc-gold: #D4A020;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--cdvc-void);
  color: var(--cdvc-silver);
  overflow-x: hidden;
}

/* ─── NAV ──────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 75px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, #050508 0%, #0c0b10 60%, #15121a 100%);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 120, 0, 0.08);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* ===== PHONE VISIBILITY CONTROL ===== */

/* Desktop default */
.nav-phones-desktop {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.nav-phones-mobile {
  display: none;
}

/* Ensure nav-right layout is correct */
.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo-img {
  height: 180px;
  margin-left: -15px;
  width: auto;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: var(--cdvc-silver);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.08em;
  transition: 0.2s ease;
  cursor: pointer;
}

.nav-link:hover {
  color: #ff7a00;
}

.nav-cta-btn {
  background: #ff7a00;
  color: #fff;
  padding: 10px 22px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 2px;
  transition: 0.2s ease;
  white-space: nowrap;
}

.nav-cta-btn:hover {
  background: #ff8f26;
}

.desktop-cta {
  display: block;
}

.mobile-cta {
  display: none;
}

.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #0c0b10;
  border: 1px solid rgba(255, 255, 255, 0.05);
  min-width: 220px;
  padding: 12px 0;
  display: none;
  flex-direction: column;
}

.dropdown-menu a {
  padding: 8px 16px;
  color: var(--cdvc-silver);
  text-decoration: none;
  font-size: 12px;
  transition: 0.2s;
}

.dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ff7a00;
}

.dropdown:hover .dropdown-menu {
  display: flex;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: #ffffff;
  transition: 0.3s;
}

/* Phone Number specific fixes */
.footer-phone {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 0.08em;
  color: var(--cdvc-white);
  text-decoration: none;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  white-space: nowrap;
  gap: 5px;
}

.footer-phone span {
  color: var(--cdvc-accent);
}

.footer-phone:hover {
  color: var(--cdvc-accent);
}


/* ─── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 992px) {
  nav {
    padding: 0 18px;
    height: 65px;
  }

  .logo-img {
    height: 115px;
  }

  .nav-menu {
    position: absolute;
    top: 65px;
    left: 0;
    width: 100%;
    background: #0c0b10;
    flex-direction: column;
    align-items: center;
    padding: 35px 0;
    gap: 22px;
    display: none;
  }

  .nav-menu.active {
    display: flex;
  }

  /* Hide desktop block */
  .desktop-cta,
  .nav-right,
  .nav-phones-desktop {
    display: none;
  }

  /* Show mobile block */
  .nav-phones-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
  }

  .dropdown-menu {
    position: static;
    border: none;
    padding: 0;
  }

  .dropdown:hover .dropdown-menu {
    display: none;
  }

  .dropdown.open .dropdown-menu {
    display: flex;
  }


  .mobile-cta {
    display: block;
    width: 85%;
    text-align: center;
    padding: 14px;
    font-size: 14px;
  }

  .hamburger {
    display: flex;
  }

}

@media (max-width: 768px) {
  nav {
    padding: 0 24px;
  }
}

/* ───────────────────────────────────────────── */
/* GLOBAL CONTENT SPACING (Fix for Fixed Nav)   */
/* ───────────────────────────────────────────── */

main,
.site-content,
.blog-wrapper {
  padding-top: 120px; /* prevents content hiding under fixed nav */
}

/* Section standard spacing */
section {
  padding: 96px 56px;
  position: relative;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
}

/* Headings */
h1, h2, h3 {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--cdvc-white);
}

h1 {
  font-size: 72px;
  margin-bottom: 24px;
}

h2 {
  font-size: 40px;
  margin-bottom: 18px;
}

p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--cdvc-fog);
  margin-bottom: 22px;
}

/* ───────────────────────────────────────────── */
/* BLOG LISTING GRID                            */
/* ───────────────────────────────────────────── */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 60px;
}

.blog-card {
  background: var(--cdvc-panel);
  padding: 32px 28px;
  border-top: 3px solid var(--cdvc-edge);
  transition: 0.3s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  border-top-color: var(--cdvc-accent);
  transform: translateY(-6px);
}

.blog-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--cdvc-white);
  margin-bottom: 12px;
  text-decoration: none;
}

.blog-card-title:hover {
  color: var(--cdvc-accent);
}

.blog-card-meta {
  font-family: 'Courier Prime', monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cdvc-mist);
  margin-bottom: 16px;
}

.blog-card-excerpt {
  font-size: 16px;
  line-height: 1.7;
  color: var(--cdvc-fog);
  flex-grow: 1;
}

.read-more-btn {
  margin-top: 24px;
  font-family: 'Courier Prime', monospace;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--cdvc-accent);
  text-decoration: none;
}

.read-more-btn:hover {
  color: var(--cdvc-white);
}

/* ───────────────────────────────────────────── */
/* SINGLE POST                                  */
/* ───────────────────────────────────────────── */

.single-post-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.post-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 40px;
  border: 1px solid var(--cdvc-edge2);
}

.post-content {
  font-size: 18px;
  line-height: 1.9;
  color: var(--cdvc-silver);
}

.post-content h2,
.post-content h3 {
  margin-top: 48px;
  margin-bottom: 20px;
}

.post-content a {
  color: var(--cdvc-accent);
  text-decoration: none;
}

.post-content a:hover {
  text-decoration: underline;
}

/* ───────────────────────────────────────────── */
/* WORDPRESS DEFAULT BLOCK FIXES                */
/* ───────────────────────────────────────────── */

.wp-block-image img {
  max-width: 100%;
  height: auto;
}

.wp-block-quote {
  border-left: 4px solid var(--cdvc-accent);
  padding-left: 20px;
  margin: 30px 0;
  font-style: italic;
  color: var(--cdvc-fog);
}

.wp-block-code {
  background: var(--cdvc-panel2);
  padding: 16px;
  border-radius: 4px;
  font-family: monospace;
  overflow-x: auto;
}

/* ───────────────────────────────────────────── */
/* FOOTER                                       */
/* ───────────────────────────────────────────── */

footer {
  background: var(--cdvc-panel);
  border-top: 1px solid var(--cdvc-edge);
  padding: 70px 56px;
  margin-top: 120px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
}

.footer-col-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 0.12em;
  color: var(--cdvc-white);
  margin-bottom: 20px;
}

.footer-col-links {
  list-style: none;
}

.footer-col-links li {
  margin-bottom: 10px;
}

.footer-col-links a {
  font-size: 15px;
  font-weight: 300;
  color: var(--cdvc-fog);
  text-decoration: none;
  transition: 0.2s;
}

.footer-col-links a:hover {
  color: var(--cdvc-accent);
}

.footer-bottom {
  max-width: 1280px;
  margin: 40px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--cdvc-edge);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-copy {
  font-family: 'Courier Prime', monospace;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--cdvc-mist);
}

/* ───────────────────────────────────────────── */
/* RESPONSIVE BLOG + FOOTER                     */
/* ───────────────────────────────────────────── */

@media (max-width: 1200px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {

  section {
    padding: 64px 24px;
  }

  h1 {
    font-size: 48px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

}

@media (max-width: 480px) {

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

}