/*
Theme Name: DANSOA Agency
Theme URI: https://dansoaagency.com
Description: Official WordPress theme for DANSOA Marketing Agency — Studios, Marketing, Marketplace and Philanthropy divisions. Built by Dansoa Marketing Agency.
Version: 1.0.0
Author: Dansoa Marketing Agency
Author URI: https://dansoaagency.com
License: Proprietary
Text Domain: dansoa-agency
Requires PHP: 7.4
Tested up to: 6.6
*/

/* ==========================================================================
   Design tokens — ported 1:1 from the original React site's styles.css
   ========================================================================== */

:root {
  --radius: 0.5rem;
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --radius-2xl: calc(var(--radius) + 8px);
  --radius-3xl: calc(var(--radius) + 12px);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-sans: "DM Sans", system-ui, sans-serif;

  /* Luxury white canvas + matte black */
  --background: oklch(1 0 0);
  --foreground: oklch(0.16 0 0);
  --surface: oklch(0.975 0 0);
  --surface-foreground: oklch(0.16 0 0);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.16 0 0);
  --primary: oklch(0.14 0 0);
  --primary-foreground: oklch(1 0 0);
  --secondary: oklch(0.965 0 0);
  --secondary-foreground: oklch(0.16 0 0);
  --muted: oklch(0.965 0 0);
  --muted-foreground: oklch(0.46 0 0);
  --accent: oklch(0.94 0 0);
  --accent-foreground: oklch(0.16 0 0);
  --border: oklch(0.16 0 0 / 12%);
  --input: oklch(0.16 0 0 / 18%);
  --ring: oklch(0.16 0 0);

  /* Matte black bands */
  --ink: oklch(0.14 0 0);
  --ink-foreground: oklch(0.98 0 0);
  --charcoal: oklch(0.32 0 0);

  /* DANSOA brand DNA */
  --brand-teal: oklch(0.78 0.13 178);
  --brand-aqua: oklch(0.85 0.09 195);
  --brand-gold: oklch(0.82 0.1 85);
  --brand-coral: oklch(0.72 0.16 33);
  --brand-fuchsia: oklch(0.66 0.24 350);
  --brand-magenta: oklch(0.55 0.24 348);

  --gradient-brand: linear-gradient(
    100deg,
    var(--brand-teal) 0%,
    var(--brand-aqua) 20%,
    var(--brand-gold) 42%,
    var(--brand-coral) 64%,
    var(--brand-fuchsia) 84%,
    var(--brand-magenta) 100%
  );
  --shadow-card: 0 24px 60px -34px oklch(0 0 0 / 0.35);
  --shadow-float: 0 40px 90px -50px oklch(0 0 0 / 0.55);
  --transition-smooth: 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   Base
   ========================================================================== */

* { box-sizing: border-box; border-color: var(--border); }

html { scroll-behavior: smooth; scroll-padding-top: 6rem; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 0.35rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  margin: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 1024px) { .container { padding: 0 2.5rem; } }

/* ==========================================================================
   Reusable utility classes (ported from the original @utility rules)
   ========================================================================== */

.text-brand-gradient {
  background: var(--gradient-brand);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bg-brand-gradient { background: var(--gradient-brand); }
.rule-brand { background: var(--gradient-brand); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface) 70%, transparent);
  backdrop-filter: blur(12px);
  padding: 0.5rem 1.1rem;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.bento-tile {
  position: relative;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background: var(--card);
  overflow: hidden;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}
.bento-tile:hover {
  transform: translateY(-4px);
  border-color: color-mix(in oklab, var(--brand-teal) 55%, transparent);
  box-shadow: var(--shadow-card);
}

.glow-orb {
  border-radius: 999px;
  background: radial-gradient(circle, color-mix(in oklab, var(--brand-teal) 45%, transparent) 0%, transparent 70%);
  filter: blur(60px);
  position: absolute;
}
.glow-orb-warm {
  background: radial-gradient(circle, color-mix(in oklab, var(--brand-fuchsia) 32%, transparent) 0%, transparent 70%);
}

.card-lift {
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}
.card-lift:hover { transform: translateY(-6px); box-shadow: var(--shadow-float); }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 900ms cubic-bezier(0.22, 1, 0.36, 1), transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

.drift { animation: drift 26s ease-in-out infinite alternate; }
@keyframes drift {
  from { transform: scale(1.05) translate3d(-1.5%, 0, 0); }
  to { transform: scale(1.14) translate3d(1.5%, -2%, 0); }
}

@keyframes shimmer { to { background-position: 200% 0; } }
.shimmer-text {
  background: var(--gradient-brand);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 9s linear infinite;
}

/* ==========================================================================
   Layout: header / nav / footer
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--ink) 95%, transparent);
  color: var(--ink-foreground);
  backdrop-filter: blur(20px);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}
.site-header .logo img, .site-header .logo-image img { height: 4.75rem; width: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: 1.5rem; font-size: 0.9rem; }
.site-nav a { color: color-mix(in oklab, var(--ink-foreground) 75%, transparent); transition: color 0.3s; }
.site-nav a:hover, .site-nav a.is-active { color: var(--ink-foreground); }
.site-nav a.is-active { color: var(--brand-teal); font-weight: 500; }
.btn-cta {
  border-radius: 999px;
  background: var(--brand-teal);
  color: var(--ink);
  padding: 0.65rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-flex;
  transition: transform var(--transition-smooth);
  border: none;
}
.btn-cta:hover { transform: scale(1.04); color: var(--ink); }
.btn-outline {
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--foreground) 20%, transparent);
  padding: 1rem 2rem;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition-smooth);
}
.btn-outline:hover { border-color: var(--foreground); background: var(--foreground); color: var(--background); }

.mobile-nav-toggle { display: none; }

@media (max-width: 900px) {
  .site-nav { display: none; }
  .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    border: 1px solid color-mix(in oklab, var(--ink-foreground) 25%, transparent);
    background: transparent;
    color: var(--ink-foreground);
  }
  .site-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
    padding: 0.5rem 1.5rem 1.5rem;
    border-top: 1px solid color-mix(in oklab, var(--ink-foreground) 10%, transparent);
  }
  .site-nav.is-open a { padding: 0.75rem 0; width: 100%; }
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--ink);
  color: var(--ink-foreground);
  padding: 3rem 0;
}
.site-footer .container { font-size: 0.9rem; color: color-mix(in oklab, var(--ink-foreground) 60%, transparent); }

/* ==========================================================================
   Sections
   ========================================================================== */

.section { padding: 7rem 0; }
@media (min-width: 768px) { .section { padding: 9rem 0; } }
.section-surface { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-label { display: flex; align-items: center; gap: 1rem; }
.section-label .rule { height: 1px; width: 2.5rem; background: var(--gradient-brand); }
.section-label span { font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.32em; color: var(--muted-foreground); }

.section-heading { margin-top: 1.5rem; font-size: 2rem; font-weight: 600; }
@media (min-width: 768px) { .section-heading { font-size: 3rem; } }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--background); padding-top: 7rem; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.25; }
.hero-bg .fade { position: absolute; inset: 0; background: linear-gradient(to bottom, color-mix(in oklab, var(--background) 0%, transparent), color-mix(in oklab, var(--background) 80%, transparent), var(--background)); }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; padding: 2.5rem 0 5rem; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; } }
.hero h1 { margin-top: 1.75rem; max-width: 40rem; font-size: 2.5rem; line-height: 1.05; font-weight: 600; }
@media (min-width: 768px) { .hero h1 { font-size: 3.75rem; } }
.hero p.lead { margin-top: 1.75rem; max-width: 34rem; font-size: 1.125rem; line-height: 1.7; color: var(--charcoal); }
.hero-ctas { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-feature-label { font-size: 0.8rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.18em; color: var(--muted-foreground); margin-bottom: 0.75rem; }
.hero-feature-tile {
  position: relative;
  display: block;
  border-radius: 1.5rem;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--ink);
  border: 1px solid var(--border);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}
.hero-feature-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); }
.hero-feature-tile img, .hero-feature-tile video { width: 100%; height: 100%; object-fit: cover; }
.hero-feature-fade { position: absolute; inset: 0; background: linear-gradient(to top, var(--ink), color-mix(in oklab, var(--ink) 15%, transparent) 45%, transparent 70%); }
.hero-feature-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem; color: var(--ink-foreground); font-size: 1.05rem; font-weight: 500; }
.hero-feature-arrow { display: inline-block; transition: transform 0.3s; }
.hero-feature-tile:hover .hero-feature-arrow { transform: translateX(4px); }
.hero-feature-empty {
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 2rem; color: var(--muted-foreground); font-size: 0.9rem;
  border: 1px dashed var(--border);
}

/* Tabs (services) */
.tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 3rem; }
.tab-btn { white-space: nowrap; border-radius: 999px; border: 1px solid var(--border); padding: 0.75rem 1.5rem; font-size: 0.9rem; background: transparent; color: var(--charcoal); transition: all var(--transition-smooth); }
.tab-btn.is-active { border-color: transparent; background: var(--brand-teal); color: var(--ink); font-weight: 500; }
.tab-panel { display: grid; gap: 1rem; margin-top: 1rem; }
.tab-panel[hidden] { display: none !important; }
@media (min-width: 768px) { .tab-panel { grid-template-columns: repeat(3, 1fr); } }
.tab-panel .lead-tile { grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; background: var(--ink); color: var(--ink-foreground); padding: 2rem; }
.tab-panel .lead-tile h3 { font-size: 1.5rem; font-weight: 500; }
.tab-panel .lead-tile p { margin-top: 1.5rem; color: color-mix(in oklab, var(--ink-foreground) 70%, transparent); }
.tab-panel .point-tile { padding: 1.75rem; }
.tab-panel .point-tile .num { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.3em; color: var(--brand-teal); }
.tab-panel .point-tile p.point-text { margin-top: 1rem; font-size: 1.125rem; }

/* Work grid */
.work-grid { margin-top: 3.5rem; display: grid; gap: 1rem; }
@media (min-width: 768px) { .work-grid { grid-template-columns: repeat(3, 1fr); } }
.work-card { position: relative; min-height: 320px; background: var(--ink); overflow: hidden; }
.work-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.6; transition: transform 0.7s; }
.work-card:hover img { transform: scale(1.05); }
.work-card .fade { position: absolute; inset: 0; background: linear-gradient(to top, var(--ink), color-mix(in oklab, var(--ink) 50%, transparent), transparent); }
.work-card .info { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.75rem; }
.work-card .cat { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.25em; color: var(--brand-teal); }
.work-card h3 { margin-top: 0.75rem; font-size: 1.25rem; font-weight: 500; color: var(--ink-foreground); }
.work-card .client { margin-top: 0.25rem; font-size: 0.875rem; color: color-mix(in oklab, var(--ink-foreground) 60%, transparent); }

/* Cards / grid generic */
.card { border-radius: 1rem; border: 1px solid var(--border); background: var(--card); padding: 1.5rem; }
.grid-2 { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
.grid-3 { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* Marketplace / WooCommerce product tweaks */
ul.products li.product {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.5rem !important;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}
ul.products li.product:hover { transform: translateY(-6px); box-shadow: var(--shadow-float); }
.woocommerce ul.products li.product .price { color: var(--foreground); font-weight: 600; }
.woocommerce a.button, .woocommerce button.button, .woocommerce #respond input#submit,
.woocommerce-page a.button, a.wc-forward, .woocommerce ul.products li.product a.button {
  border-radius: 999px !important;
  background: var(--brand-teal) !important;
  color: var(--ink) !important;
  border: none !important;
  font-weight: 500 !important;
  padding: 0.65rem 1.5rem !important;
  transition: transform var(--transition-smooth) !important;
}
.woocommerce a.button:hover, .woocommerce button.button:hover { transform: scale(1.03); }

/* About page — founder */
.about-founder-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .about-founder-grid { grid-template-columns: 0.85fr 1.15fr; } }
.about-portrait { border-radius: 1.5rem; overflow: hidden; aspect-ratio: 4/5; background: var(--surface); border: 1px solid var(--border); }
.about-portrait-placeholder {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.75rem; color: var(--muted-foreground); text-align: center; padding: 2rem;
}
.about-portrait-placeholder .dashicons { font-size: 40px; width: 40px; height: 40px; opacity: 0.4; }
.about-portrait-placeholder p { font-size: 0.85rem; max-width: 14rem; }

/* Testimonials */
.testimonial-card { display: flex; flex-direction: column; height: 100%; }
.testimonial-quote { font-size: 1rem; line-height: 1.75; color: var(--charcoal); }
.testimonial-quote::before { content: "\201C"; }
.testimonial-quote::after { content: "\201D"; }
.testimonial-byline { margin-top: auto; padding-top: 2rem; font-size: 0.9rem; }
.testimonial-byline .name { font-weight: 500; }
.testimonial-byline .role { display: block; margin-top: 0.25rem; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.25em; color: var(--muted-foreground); }

/* Client portal */
.portal-locked { min-height: 60vh; display: flex; align-items: center; justify-content: center; background: var(--surface); padding: 3rem 1.5rem; }
.portal-locked .box { max-width: 32rem; text-align: center; border-radius: 1rem; border: 1px solid var(--border); background: var(--card); padding: 2.5rem; }
.portal-project { border-radius: 1rem; border: 1px solid var(--border); background: var(--card); padding: 1.75rem; margin-bottom: 1.5rem; }
.progress-track { width: 100%; height: 0.5rem; border-radius: 999px; background: var(--secondary); overflow: hidden; margin-top: 0.75rem; }
.progress-fill { height: 100%; background: var(--gradient-brand); }
.portal-updates { margin-top: 1.25rem; border-top: 1px solid var(--border); padding-top: 1.25rem; }
.portal-update { padding: 0.75rem 0; border-bottom: 1px dashed var(--border); }
.portal-comment { padding: 0.75rem 1rem; border-radius: 0.75rem; background: var(--surface); margin-bottom: 0.5rem; }
.portal-comment.is-admin { background: color-mix(in oklab, var(--brand-teal) 12%, var(--surface)); }
.portal-files ul { list-style: none; padding: 0; }
.portal-files li { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }

/* Utility */
.text-center { text-align: center; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link:focus {
  position: fixed; left: 1rem; top: 1rem; z-index: 60; width: auto; height: auto; clip: auto;
  background: var(--ink); color: var(--ink-foreground); padding: 0.5rem 1rem; border-radius: 0.375rem;
}
