/*
Theme Name: Entee Digital Painterly
Theme URI: https://enteedigital.com
Author: Entee Digital LLC
Author URI: https://enteedigital.com
Description: Dark cinematic corporate theme with painterly tech art direction — teal, gold, coral palette on deep navy. Custom built for Entee Digital.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: entee-digital
Requires at least: 6.0
Requires PHP: 7.4
*/

/* ==========================================================
   Entee Digital — Painterly Tech Design System
   Palette: deep navy, teal, gold, coral from painting reference
   ========================================================== */

/* --- Tokens --- */
:root {
  --bg:         #080c18;
  --bg-alt:     #0d1224;
  --surface:    #111830;
  --surface-alt:#161d3a;
  --border:     rgba(255,255,255,0.06);
  --border-glow:rgba(0,177,231,0.12);

  --text:       #e0ddd6;
  --text-muted: #8a8880;
  --text-faint: #5a5850;

  --accent:     #00b1e7;
  --accent-hover:#2ec4f0;
  --gold:       #f6a623;
  --coral:      #d5436b;
  --teal:       #3db88c;
  --orange:     #e8753a;
  --purple:     #7b3dbf;

  --font-display: 'Cabinet Grotesk', system-ui, sans-serif;
  --font-body:    'General Sans', system-ui, sans-serif;

  --text-xs:   clamp(0.7rem, 0.65rem + 0.25vw, 0.8rem);
  --text-sm:   clamp(0.8rem, 0.75rem + 0.25vw, 0.875rem);
  --text-base: clamp(0.9rem, 0.85rem + 0.25vw, 1rem);
  --text-lg:   clamp(1.1rem, 1rem + 0.5vw, 1.25rem);
  --text-xl:   clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
  --text-2xl:  clamp(2rem, 1.5rem + 2.5vw, 3rem);
  --text-hero: clamp(2.5rem, 1.8rem + 3.5vw, 4.5rem);

  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem;
  --space-4: 1rem;    --space-6: 1.5rem; --space-8: 2rem;
  --space-10: 2.5rem; --space-12: 3rem;  --space-16: 4rem;
  --space-20: 5rem;   --space-24: 6rem;  --space-32: 8rem;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-glow: 0 0 60px rgba(0,177,231,0.08), 0 0 120px rgba(246,166,35,0.04);
  --shadow-card: 0 2px 20px rgba(0,0,0,0.3), 0 0 40px rgba(0,177,231,0.03);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
}

/* --- Reset --- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-behavior:smooth;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
body{min-height:100vh;line-height:1.6;font-family:var(--font-body);background:var(--bg);color:var(--text)}
img,video,svg{display:block;max-width:100%;height:auto}
a{color:inherit;text-decoration:none}
button{font:inherit;cursor:pointer;border:none;background:none}
ul,ol{list-style:none}
h1,h2,h3,h4,h5,h6{line-height:1.15;font-weight:700}
p{max-width:65ch}
::selection{background:var(--accent);color:var(--bg)}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:4px}

/* --- Utilities --- */
.container { width: min(90%, 1200px); margin-inline: auto; }
.font-display { font-family: var(--font-display); }
.label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-3);
}
.text-gradient {
  background: linear-gradient(135deg, var(--accent) 0%, var(--gold) 50%, var(--coral) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section {
  padding: clamp(var(--space-16), 8vw, var(--space-32)) 0;
  position: relative;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: var(--space-4) 0;
  background: rgba(8,12,24,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(90%, 1200px);
  margin-inline: auto;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--text);
}
.nav-logo svg { width: 32px; height: 32px; }
.nav-links {
  display: flex;
  gap: var(--space-8);
}
.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.3s var(--ease);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover,
.nav-links a.active,
.nav-links .current-menu-item a,
.nav-links .current_page_item a { color: var(--text); }
.nav-links a:hover::after,
.nav-links a.active::after,
.nav-links .current-menu-item a::after,
.nav-links .current_page_item a::after { width: 100%; }
/* WordPress menu reset */
.nav-links li { list-style: none; }
.nav-links ul { display: flex; gap: var(--space-8); list-style: none; margin: 0; padding: 0; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(8,12,24,0.97) 0%, rgba(8,12,24,0.88) 35%, rgba(8,12,24,0.5) 60%, rgba(8,12,24,0.15) 100%),
    linear-gradient(to top, rgba(8,12,24,1) 0%, transparent 35%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding-top: var(--space-32);
}
.hero-title {
  font-size: var(--text-hero);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: var(--space-6);
  color: #fff;
}
.hero-subtitle {
  font-size: var(--text-base);
  color: var(--text);
  margin-bottom: var(--space-8);
  line-height: 1.7;
}
.hero-cta {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 30px rgba(0,177,231,0.3);
  transform: translateY(-1px);
}
.btn-outline {
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* --- Stats Bar --- */
.stats-bar {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--space-10) 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  text-align: center;
}
.stat-item h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-1);
}
.stat-item p {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  max-width: none;
}

/* --- Cards --- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
.card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

/* --- Services Section --- */
.services-section { overflow: hidden; }
.services-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.35;
}
.services-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.services-section .container { position: relative; z-index: 1; }
.services-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-12);
}
.services-header h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
  color: #fff;
}
.services-header p {
  color: var(--text-muted);
  font-size: var(--text-base);
  max-width: none;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.service-card { position: relative; }
.card-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}
.card-icon.teal    { background: rgba(0,177,231,0.12); color: var(--accent); }
.card-icon.gold    { background: rgba(246,166,35,0.12); color: var(--gold); }
.card-icon.coral   { background: rgba(213,67,107,0.12); color: var(--coral); }
.card-icon.purple  { background: rgba(123,61,191,0.12); color: var(--purple); }
.card-icon.blue    { background: rgba(46,171,237,0.12); color: #2eabed; }
.card-icon.magenta { background: rgba(213,67,107,0.12); color: var(--coral); }
.service-card h3 {
  font-size: var(--text-lg);
  color: #fff;
  margin-bottom: var(--space-2);
}
.service-card p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.65;
  max-width: none;
}

/* --- Process Section --- */
.process-section { overflow: hidden; }
.process-section .container { position: relative; z-index: 1; }
.process-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-12);
}
.process-header h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
  color: #fff;
}
.process-header p {
  color: var(--text-muted);
  font-size: var(--text-base);
  max-width: none;
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-4);
}
.process-step { text-align: center; }
.step-number {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-3);
}
.process-step h3 {
  font-size: var(--text-sm);
  color: #fff;
  margin-bottom: var(--space-2);
}
.process-step p {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: none;
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}
.cta-content { max-width: 600px; margin-inline: auto; }
.cta-content h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
  color: #fff;
}
.cta-content > p {
  color: var(--text-muted);
  font-size: var(--text-base);
  margin-bottom: var(--space-8);
  max-width: none;
}

/* --- Footer --- */
.site-footer {
  padding: var(--space-12) 0 var(--space-6);
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: var(--space-12);
  margin-bottom: var(--space-10);
}
.footer-brand { max-width: 340px; }
.footer-brand p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-3);
  line-height: 1.6;
  max-width: none;
}
.footer-links {
  display: flex;
  gap: var(--space-12);
}
.footer-links-col h4 {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: var(--space-4);
}
.footer-links-col a {
  display: block;
  font-size: var(--text-sm);
  color: var(--text-muted);
  padding: var(--space-1) 0;
  transition: color 0.3s;
}
.footer-links-col a:hover { color: var(--accent); }
/* WordPress menu in footer */
.footer-links-col ul { list-style: none; margin: 0; padding: 0; }
.footer-links-col li { list-style: none; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
  font-size: var(--text-xs);
  color: var(--text-faint);
}
.footer-bottom a {
  color: var(--text-faint);
  transition: color 0.3s;
}
.footer-bottom a:hover { color: var(--accent); }

/* --- Page Header (inner pages) --- */
.page-header {
  padding: calc(80px + var(--space-16)) 0 var(--space-12);
  position: relative;
  overflow: hidden;
}
.page-header-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.25;
}
.page-header-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.page-header-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(8,12,24,0.5) 0%, var(--bg) 100%);
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 {
  font-size: var(--text-2xl);
  color: #fff;
  margin-bottom: var(--space-4);
}
.page-header p {
  color: var(--text-muted);
  font-size: var(--text-base);
  max-width: 560px;
}

/* --- About Page --- */
.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-12);
}
.about-image img { width: 100%; height: auto; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
}
.about-grid h3 {
  font-size: var(--text-lg);
  color: #fff;
  margin-bottom: var(--space-3);
}
.about-grid p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: none;
}
.values-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-8);
}
.value-item {
  padding: var(--space-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.value-item h4 {
  font-size: var(--text-sm);
  color: var(--accent);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.value-item p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: none;
}

/* --- Services Page (detailed) --- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  padding: var(--space-12) 0;
  border-bottom: 1px solid var(--border);
}
.service-detail:last-child { border-bottom: none; }
.service-detail:nth-child(even) { direction: rtl; }
.service-detail:nth-child(even) > * { direction: ltr; }
.service-detail-number {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.3;
  margin-bottom: var(--space-4);
}
.service-detail h3 {
  font-size: var(--text-xl);
  color: #fff;
  margin-bottom: var(--space-4);
}
.service-detail p {
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: none;
}
.service-detail-list { margin-top: var(--space-4); }
.service-detail-list li {
  font-size: var(--text-sm);
  color: var(--text-muted);
  padding: var(--space-2) 0;
  padding-left: var(--space-4);
  position: relative;
  list-style: none;
}
.service-detail-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
}
.service-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-icon-large {
  width: 120px; height: 120px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-icon-large.teal    { background: rgba(0,177,231,0.08); color: var(--accent); }
.service-icon-large.gold    { background: rgba(246,166,35,0.08); color: var(--gold); }
.service-icon-large.coral   { background: rgba(213,67,107,0.08); color: var(--coral); }
.service-icon-large.purple  { background: rgba(123,61,191,0.08); color: var(--purple); }
.service-icon-large.blue    { background: rgba(46,171,237,0.08); color: #2eabed; }

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
}
.contact-info h3 {
  font-size: var(--text-lg);
  color: #fff;
  margin-bottom: var(--space-6);
}
.contact-item {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.contact-item-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(0,177,231,0.08);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-item h4 {
  font-size: var(--text-sm);
  color: #fff;
  font-weight: 600;
  margin-bottom: var(--space-1);
}
.contact-item p, .contact-item a {
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.contact-item a:hover { color: var(--accent); }
.form-group { margin-bottom: var(--space-4); }
.form-group label {
  display: block;
  font-size: var(--text-sm);
  color: var(--text);
  font-weight: 500;
  margin-bottom: var(--space-2);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: var(--text-sm);
  font-family: var(--font-body);
  transition: border-color 0.3s var(--ease);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  outline: none;
}
.form-group textarea { min-height: 140px; resize: vertical; }

/* --- Privacy Page --- */
.privacy-content h2 {
  font-size: var(--text-xl);
  color: #fff;
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
}
.privacy-content h2:first-child { margin-top: 0; }
.privacy-content p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-4);
  max-width: none;
}
.privacy-content ul {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
}
.privacy-content li {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
  padding: var(--space-1) 0;
  list-style: disc;
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .service-detail { grid-template-columns: 1fr; gap: var(--space-6); }
  .service-detail:nth-child(even) { direction: ltr; }
  .service-visual { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .values-list { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(8,12,24,0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: var(--space-6);
    gap: var(--space-4);
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open ul { flex-direction: column; gap: var(--space-4); }
  .hero-content { padding-top: calc(80px + var(--space-8)); max-width: 100%; }
  .hero-title { font-size: clamp(2rem, 1.5rem + 3vw, 3rem); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
  .services-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; gap: var(--space-4); }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { justify-content: center; }
  .footer-inner { flex-direction: column; gap: var(--space-6); }
  .footer-bottom { flex-direction: column; gap: var(--space-3); text-align: center; }
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
body.nav-open { overflow: hidden; }
