/*
Theme Name: All Data Consulting
Theme URI: https://alldata.one
Author: All Data Consulting
Author URI: https://alldata.one
Description: Custom theme for All Data Consulting — data consulting services
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: Private
Text Domain: alldata
*/

/* ═══ MANIFOLD CF ═══ */
@font-face {
  font-family: 'Manifold CF';
  src: url('fonts/fonnts_com-Manifold_CF_Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Manifold CF';
  src: url('fonts/fonnts_com-Manifold_CF_Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Manifold CF';
  src: url('fonts/fonnts_com-Manifold_CF_Demi_Bold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Manifold CF';
  src: url('fonts/fonnts_com-Manifold_CF_Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --font: 'Manifold CF', 'SF Pro Display', -apple-system, 'Segoe UI', sans-serif;
  --sand: #e8e0d0;
  --sand-light: #f0ead8;
  --sand-dark: #d4cbb8;
  --black: #1a1a1a;
  --copper-start: #c4854a;
  --copper-mid: #b8935a;
  --copper-end: #8a7a5a;
  --white: #ffffff;
  --red: #e03030;
  --text: #2a2a2a;
  --text-muted: #5a5550;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font);
  background: var(--sand);
  color: var(--text);
  overflow-x: hidden;
}

/* ═══ NAV ═══ */
nav.site-nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--black);
  z-index: 1000;
  padding: 0 48px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Override WP admin bar offset */
body.admin-bar nav.site-nav { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar nav.site-nav { top: 46px; }
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.nav-logo svg { width: 44px; height: auto; }

.nav-logo span {
  font-family: var(--font);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--white);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active { color: var(--red); }

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: 0.3s;
}

/* ═══ HERO ═══ */
.hero {
  margin-top: 72px;
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

body.admin-bar .hero { margin-top: 104px; }
@media (max-width: 782px) {
  body.admin-bar .hero { margin-top: 118px; }
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--copper-start) 0%, var(--copper-mid) 40%, var(--copper-end) 100%);
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(196, 133, 74, 0.6) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(138, 122, 90, 0.4) 0%, transparent 50%);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 48px;
  max-width: 900px;
}

.hero h1 {
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: var(--white);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.hero-anim {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-anim:nth-child(2) { animation-delay: 0.15s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ═══ INTRO ═══ */
.intro {
  padding: 80px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.intro h2 {
  font-family: var(--font);
  font-weight: 600;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

.intro p { font-size: 1.05rem; line-height: 1.7; }
.intro ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.intro ul li {
  font-size: 1.05rem;
  line-height: 1.5;
  padding-left: 20px;
  position: relative;
}

.intro ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--copper-start);
  font-weight: 700;
}

.divider { height: 4px; background: var(--black); }

/* ═══ ABOUT ═══ */
.about { padding: 100px 48px; max-width: 1200px; margin: 0 auto; }

.section-label {
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--copper-start);
  margin-bottom: 16px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 40px;
}

.about-block h3 {
  font-family: var(--font);
  font-weight: 600;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

.about-block p { font-size: 1.02rem; line-height: 1.75; }

/* ═══ SERVICES ═══ */
.services { padding: 100px 48px; max-width: 1200px; margin: 0 auto; }

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 50px;
}

.service-card {
  background: var(--sand-light);
  border: 1px solid var(--sand-dark);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--copper-start);
  transition: height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card:hover::before { height: 100%; }

.service-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 28px;
  color: var(--black);
}

.service-card h3 {
  font-family: var(--font);
  font-weight: 600;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

.service-card p {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.service-deliverables {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--sand-dark);
}

.service-deliverables li {
  font-size: 0.92rem;
  line-height: 1.5;
  padding-left: 18px;
  position: relative;
}

.service-deliverables li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--copper-start);
  font-weight: 600;
}

/* ═══ CTA ═══ */
.cta {
  position: relative;
  z-index: 1;
  padding: 100px 48px;
  text-align: center;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background: var(--black);
}

.cta-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(196,133,74,0.15) 0%, transparent 50%);
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.cta h2 {
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--white);
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 24px;
}

.cta p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  margin-bottom: 40px;
}

.cta-btn {
  display: inline-block;
  font-family: var(--font);
  font-weight: 600;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--black);
  background: var(--sand);
  padding: 16px 48px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease;
}

.cta-btn:hover {
  background: var(--white);
  transform: translateY(-2px);
}

/* ═══ PAGE HEADER ═══ */
.page-header {
  margin-top: 72px;
  position: relative;
  padding: 80px 48px 60px;
  overflow: hidden;
}

body.admin-bar .page-header { margin-top: 104px; }

.page-header-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--copper-start) 0%, var(--copper-mid) 40%, var(--copper-end) 100%);
}

.page-header-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.5;
}

.page-header-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
}

.page-header h1 {
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.page-header p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  margin-top: 16px;
  max-width: 600px;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}

/* ═══ BLOG GRID ═══ */
.blog-section {
  padding: 80px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.blog-card {
  background: var(--sand-light);
  border: 1px solid var(--sand-dark);
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
  text-decoration: none;
  color: var(--text);
  display: block;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.blog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--copper-start);
  transition: height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.blog-card:hover::before { height: 100%; }

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.blog-card-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.blog-card-tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--copper-start);
  background: rgba(196, 133, 74, 0.1);
  padding: 4px 10px;
  border-radius: 2px;
  text-decoration: none;
}

.blog-card h2 {
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.3;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.blog-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.blog-card-read {
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--black);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s ease;
}

.blog-card:hover .blog-card-read { gap: 14px; }

.blog-card-read svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-read svg { transform: translateX(4px); }

/* ═══ SINGLE POST ═══ */
.post-header {
  margin-top: 72px;
  position: relative;
  padding: 80px 48px 60px;
  overflow: hidden;
}

body.admin-bar .post-header { margin-top: 104px; }

.post-header-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--copper-start) 0%, var(--copper-mid) 40%, var(--copper-end) 100%);
}

.post-header-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.5;
}

.post-header-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.post-date {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}

.post-tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--copper-start);
  background: rgba(196, 133, 74, 0.2);
  padding: 4px 10px;
  border-radius: 2px;
  text-decoration: none;
}

.post-header h1 {
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.15;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.post-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 48px 100px;
}

.post-body p {
  font-size: 1.08rem;
  line-height: 1.85;
  margin-bottom: 24px;
}

.post-body h2 {
  font-family: var(--font);
  font-weight: 600;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 48px 0 20px;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

.post-body h3 {
  font-family: var(--font);
  font-weight: 600;
  font-size: 1.15rem;
  margin: 36px 0 16px;
}

.post-body ul, .post-body ol {
  margin: 0 0 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.post-body li { font-size: 1.05rem; line-height: 1.7; }

.post-body blockquote {
  border-left: 4px solid var(--copper-start);
  padding: 16px 24px;
  margin: 32px 0;
  background: var(--sand-light);
  font-style: italic;
  color: var(--text-muted);
}

.post-body img {
  max-width: 100%;
  height: auto;
  margin: 32px 0;
}

.post-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--black);
  text-decoration: none;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--sand-dark);
  transition: gap 0.3s ease;
}

.post-back:hover { gap: 14px; }

.post-back svg {
  width: 16px;
  height: 16px;
  transform: rotate(180deg);
}

/* ═══ FOOTER ═══ */
footer.site-footer {
  position: relative;
  z-index: 1;
  background: var(--black);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo svg { width: 32px; height: auto; }

.footer-logo span {
  font-family: var(--font);
  font-weight: 500;
  font-size: 1rem;
  color: var(--white);
}

footer.site-footer p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

/* ═══ SCROLL REVEAL ═══ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 900px) {
  nav.site-nav { padding: 0 24px; }
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--black);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    transform: translateY(-120%);
    transition: transform 0.35s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .mobile-toggle { display: flex; }

  .hero-content { padding: 60px 24px; }
  .intro { grid-template-columns: 1fr; gap: 40px; padding: 60px 24px; }
  .about { padding: 60px 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .services { padding: 60px 24px; }
  .services-grid { grid-template-columns: 1fr; }
  .cta { padding: 60px 24px; }

  .page-header { padding: 60px 24px 40px; }
  .blog-section { padding: 40px 24px; }
  .blog-grid { grid-template-columns: 1fr; }

  .post-header { padding: 60px 24px 40px; }
  .post-body { padding: 40px 24px 60px; }

  footer.site-footer { padding: 30px 24px; flex-direction: column; gap: 16px; text-align: center; }
}
