/*
Theme Name: The Team Freelance
Theme URI: https://theteamfreelance.com
Author: The Team Freelance
Author URI: https://theteamfreelance.com
Description: Enterprise Software Development Company — custom dark-theme WordPress theme with SEO-optimized structure, three-dot brand identity (Navy · Amber · Emerald), responsive design, and modern UI patterns.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ttf
Tags: dark, one-column, custom-menu, featured-images, full-width-template, theme-options
*/

/* ═══════════════════════════════════════════
   CSS VARIABLES & THEME
   ═══════════════════════════════════════════ */
:root {
  /* Brand colors from logo: Navy · Amber · Emerald */
  --bg-primary: #0A1019;
  --bg-secondary: #0E1522;
  --bg-card: #121D2E;
  --bg-card-hover: #182637;
  --accent: #F5A623;
  --accent-light: #FFBF4D;
  --accent-dark: #D08B0C;
  --navy: #1B3A5C;
  --navy-light: #24507A;
  --navy-dark: #122841;
  --emerald: #1AAF6B;
  --emerald-dark: #128A53;
  --green: #1AAF6B;
  --text-primary: #E6EAF0;
  --text-secondary: #8A94A6;
  --text-muted: #6B7589;
  --border: rgba(255,255,255,0.06);
  --border-light: rgba(255,255,255,0.1);
  --font-display: 'Outfit', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --radius: 16px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 0.35s var(--ease);
}

[data-theme="light"] {
  --bg-primary: #F4F6F9;
  --bg-secondary: #EBF0F5;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F8FAFB;
  --accent: #E09510;
  --accent-light: #F5A623;
  --accent-dark: #B87A08;
  --navy: #1B3A5C;
  --navy-light: #24507A;
  --text-primary: #0E1522;
  --text-secondary: #4A5568;
  --text-muted: #7A8599;
  --border: rgba(0,0,0,0.06);
  --border-light: rgba(0,0,0,0.1);
}

/* ═══════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-display);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.5s, color 0.5s;
}
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* Focus visible */
*:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
a:focus:not(:focus-visible), button:focus:not(:focus-visible) { outline: none; }

/* ═══════════════════════════════════════════
   UTILITY CLASSES
   ═══════════════════════════════════════════ */
.container { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.section { padding: 120px 0; position: relative; }
.section--tight { padding: 80px 0; }
.section--spacious { padding: 140px 0; }

.section-label {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 3px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
  display: flex; align-items: center; gap: 12px;
}
.section-label::before { content: ''; width: 24px; height: 1px; background: var(--accent); }
.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700;
  line-height: 1.15; margin-bottom: 20px; letter-spacing: -0.02em;
}
.section-subtitle {
  font-size: 1.05rem; color: var(--text-secondary);
  max-width: 560px; line-height: 1.7;
}
.highlight { color: var(--accent); }

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px; padding: 16px 36px;
  background: var(--accent); color: #0A1019; font-weight: 600; font-size: 0.95rem;
  border-radius: 60px; transition: var(--transition); letter-spacing: 0.02em;
  position: relative; overflow: hidden;
}
.btn-primary::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: translateX(-100%); transition: transform 0.6s;
}
.btn-primary:hover::after { transform: translateX(100%); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(245,166,35,0.3); }
.btn-primary i { font-size: 0.85rem; transition: transform 0.3s; }
.btn-primary:hover i { transform: translateX(4px); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 34px;
  border: 1.5px solid var(--border-light); color: var(--text-primary);
  font-weight: 500; font-size: 0.95rem; border-radius: 60px; transition: var(--transition);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-sm { padding: 10px 24px; font-size: 0.85rem; }

/* Grain overlay */
body::before {
  content: ''; position: fixed; inset: 0;
  background-image: 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.03'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9999; will-change: transform;
}
[data-theme="light"] body::before { opacity: 0.5; }

/* ═══════════════════════════════════════════
   NAVIGATION (shared across all pages)
   ═══════════════════════════════════════════ */
.navbar {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  padding: 20px 0; transition: var(--transition); background: transparent;
}
.navbar.scrolled {
  background: color-mix(in srgb, var(--bg-primary) 85%, transparent);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border); padding: 14px 0;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; }

/* Logo */
.logo { display: flex; align-items: center; gap: 14px; z-index: 1002; }
.logo-mark { display: flex; align-items: center; gap: 5px; }
.logo-mark .logo-dot { width: 12px; height: 12px; border-radius: 50%; }
.logo-mark .logo-dot.navy { background: #1B3A5C; }
.logo-mark .logo-dot.amber { background: #F5A623; }
.logo-mark .logo-dot.emerald { background: #1AAF6B; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text .logo-main { font-weight: 800; font-size: 1.05rem; letter-spacing: 0.02em; }
.logo-text .logo-sub { font-size: 0.62rem; font-weight: 500; letter-spacing: 0.25em; text-transform: uppercase; color: var(--text-secondary); }

/* Nav links */
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  font-size: 0.88rem; font-weight: 500; color: var(--text-secondary);
  transition: var(--transition); position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1.5px;
  background: var(--accent); transition: var(--transition);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active,
.nav-links a.current-menu-item > a { color: var(--accent); }
.nav-links a.active::after { width: 100%; }

.nav-cta {
  padding: 10px 26px !important; background: rgba(245,166,35,0.1);
  border: 1px solid rgba(245,166,35,0.25); border-radius: 60px;
  color: var(--accent) !important; font-size: 0.85rem !important;
}
.nav-cta:hover { background: rgba(245,166,35,0.2) !important; }
.nav-cta::after { display: none !important; }

/* Theme toggle */
.theme-toggle {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-secondary); font-size: 0.9rem; transition: var(--transition);
  margin-left: -12px;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }

.mobile-toggle { display: none; color: var(--text-primary); font-size: 1.4rem; z-index: 1002; }

/* Mobile menu */
.mobile-menu {
  display: none; position: fixed; inset: 0;
  background: color-mix(in srgb, var(--bg-primary) 97%, transparent);
  backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
  z-index: 1001; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.4s;
}
.mobile-menu.open { display: flex; opacity: 1; }
.mobile-menu a {
  font-size: 1.5rem; font-weight: 600; color: var(--text-secondary);
  padding: 18px 0; transition: color 0.3s; opacity: 0; transform: translateY(20px);
}
.mobile-menu.open a { animation: mobileNavIn 0.4s ease forwards; }
.mobile-menu.open a:nth-child(1) { animation-delay:.05s }
.mobile-menu.open a:nth-child(2) { animation-delay:.1s }
.mobile-menu.open a:nth-child(3) { animation-delay:.15s }
.mobile-menu.open a:nth-child(4) { animation-delay:.2s }
.mobile-menu.open a:nth-child(5) { animation-delay:.25s }
.mobile-menu.open a:nth-child(6) { animation-delay:.3s }
.mobile-menu.open a:nth-child(7) { animation-delay:.35s }
.mobile-menu.open a:nth-child(8) { animation-delay:.4s }
@keyframes mobileNavIn { to { opacity: 1; transform: translateY(0); } }
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu .mobile-cta {
  margin-top: 20px; padding: 16px 40px; background: var(--accent);
  color: #0A1019; border-radius: 60px; font-weight: 700; font-size: 1rem;
}

/* ═══════════════════════════════════════════
   FOOTER (shared across all pages)
   ═══════════════════════════════════════════ */
.footer { padding: 80px 0 40px; border-top: 1px solid var(--border); }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px; margin-bottom: 60px;
}
.footer-brand p {
  font-size: 0.88rem; color: var(--text-secondary);
  line-height: 1.7; margin: 16px 0 24px; max-width: 300px;
}
.footer-socials { display: flex; gap: 12px; }
.footer-socials a {
  width: 40px; height: 40px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); font-size: 0.9rem; transition: var(--transition);
}
.footer-socials a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.footer-col h4 {
  font-size: 0.78rem; font-family: var(--font-mono); letter-spacing: 2px;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 20px;
}
.footer-col a {
  display: block; font-size: 0.88rem; color: var(--text-secondary);
  margin-bottom: 12px; transition: var(--transition);
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 30px;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-bottom p { font-size: 0.78rem; color: var(--text-muted); }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { font-size: 0.78rem; color: var(--text-muted); transition: color 0.3s; }
.footer-bottom-links a:hover { color: var(--text-secondary); }

/* ═══════════════════════════════════════════
   BREADCRUMBS (SEO)
   ═══════════════════════════════════════════ */
.breadcrumbs {
  padding: 120px 0 0; font-size: 0.82rem; color: var(--text-muted);
  font-family: var(--font-mono); letter-spacing: 0.5px;
}
.breadcrumbs a { color: var(--text-secondary); transition: color 0.3s; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .separator { margin: 0 8px; opacity: 0.4; }
.breadcrumbs .current { color: var(--accent); }

/* ═══════════════════════════════════════════
   PAGE HERO (reusable across inner pages)
   ═══════════════════════════════════════════ */
.page-hero {
  padding: 140px 0 80px; position: relative; overflow: hidden;
  background: var(--bg-secondary);
}
.page-hero::before {
  content: ''; position: absolute; top: -200px; right: -100px;
  width: 600px; height: 600px; border-radius: 50%;
  background: var(--accent); filter: blur(160px); opacity: 0.08;
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 800;
  line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 20px;
}
.page-hero p {
  font-size: 1.1rem; color: var(--text-secondary);
  max-width: 600px; line-height: 1.8;
}

/* ═══════════════════════════════════════════
   SCROLL TO TOP & WHATSAPP
   ═══════════════════════════════════════════ */
.scroll-top {
  position: fixed; bottom: 32px; right: 32px; z-index: 998;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent); color: #0A1019;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; box-shadow: 0 8px 30px rgba(245,166,35,0.3);
  opacity: 0; pointer-events: none; transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s, background 0.3s;
}
.scroll-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.scroll-top:hover { background: var(--accent-light); transform: translateY(-3px); }

.whatsapp-btn {
  position: fixed; bottom: 32px; left: 32px; z-index: 998;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; box-shadow: 0 8px 30px rgba(37,211,102,0.3);
  opacity: 0; pointer-events: none; transform: translateY(20px) scale(0.8);
  transition: opacity 0.3s, transform 0.3s;
}
.whatsapp-btn.visible { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
.whatsapp-btn:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 12px 40px rgba(37,211,102,0.4); }

/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.slide-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.slide-left.visible { opacity: 1; transform: translateX(0); }
.slide-right { opacity: 0; transform: translateX(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.slide-right.visible { opacity: 1; transform: translateX(0); }
.scale-in { opacity: 0; transform: scale(0.9); transition: opacity 0.7s ease, transform 0.7s ease; }
.scale-in.visible { opacity: 1; transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .fade-in, .slide-left, .slide-right, .scale-in { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — GLOBAL
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .container { padding: 0 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .page-hero { padding: 120px 0 60px; }
}
@media (max-width: 480px) {
  .container { padding: 0 18px; }
}

/* ═══════════════════════════════════════════
   WORDPRESS SPECIFIC OVERRIDES
   ═══════════════════════════════════════════ */
.wp-block-image img { border-radius: var(--radius-sm); }
.alignwide { max-width: 1280px; margin-left: auto; margin-right: auto; }
.alignfull { max-width: 100vw; margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%); }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ═══════════════════════════════════════════
   FAQ ITEMS (shared — used on homepage + FAQ page)
   ═══════════════════════════════════════════ */
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; transition: var(--transition); margin-bottom: 12px; }
.faq-item.open { border-color: rgba(245,166,35,0.15); }
.faq-question { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px; cursor: pointer; gap: 16px; width: 100%; font-family: var(--font-display); font-size: 0.95rem; font-weight: 600; color: var(--text-primary); background: none; border: none; text-align: left; transition: color 0.3s; }
.faq-question:hover { color: var(--accent); }
.faq-question i { font-size: 0.8rem; color: var(--accent); transition: transform 0.3s; flex-shrink: 0; }
.faq-item.open .faq-question i { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-answer-inner { padding: 0 26px 22px; font-size: 0.88rem; color: var(--text-secondary); line-height: 1.75; }

/* ═══════════════════════════════════════════
   JOB CARDS (Careers page)
   ═══════════════════════════════════════════ */
.jobs-list { display: flex; flex-direction: column; gap: 12px; }
.job-card { display: flex; align-items: center; justify-content: space-between; padding: 24px 28px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); transition: var(--transition); }
.job-card:hover { border-color: rgba(245,166,35,0.15); transform: translateX(6px); }
.job-info h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 6px; }
.job-meta { display: flex; gap: 20px; }
.job-meta span { font-size: 0.78rem; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.job-meta i { font-size: 0.7rem; }
.job-arrow { width: 40px; height: 40px; border-radius: 50%; background: rgba(245,166,35,0.08); display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 0.85rem; transition: var(--transition); flex-shrink: 0; }
.job-card:hover .job-arrow { background: var(--accent); color: #0A1019; }
@media (max-width: 768px) { .job-meta { flex-wrap: wrap; gap: 10px; } }

/* ═══════════════════════════════════════════
   CTA CARD (shared — used on multiple pages)
   ═══════════════════════════════════════════ */
.cta-section { padding: 100px 0 140px; }
.cta-card {
  background: linear-gradient(135deg,rgba(245,166,35,0.06),rgba(26,175,107,0.03));
  border: 1px solid rgba(245,166,35,0.12); border-radius: 24px;
  padding: 80px 60px; text-align: center; position: relative; overflow: hidden;
}
.cta-card::before {
  content: ''; position: absolute; width: 500px; height: 500px;
  background: radial-gradient(circle,rgba(245,166,35,0.1),transparent 60%);
  top: -250px; left: 50%; transform: translateX(-50%); pointer-events: none;
}
.cta-card h2 { font-size: clamp(1.8rem,3.5vw,2.8rem); font-weight: 700; margin-bottom: 18px; position: relative; z-index: 2; }
.cta-card p { font-size: 1.05rem; color: var(--text-secondary); max-width: 500px; margin: 0 auto 36px; line-height: 1.7; position: relative; z-index: 2; }
@media (max-width: 768px) { .cta-card { padding: 50px 30px; } }
