/* ============================================================
   TACHYON DYNAMICS – Main Stylesheet
   Brand: Navy #0d2d5e | Teal/Blue #1a6da8 | Accent #2e9ee0
   Font: Rajdhani (headings) | Open Sans (body)
   ============================================================ */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Open Sans', sans-serif; color: #333; background: #fff; line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { padding-left: 1.4rem; }
ul li, ol li { margin-bottom: .35rem; }

/* ── CSS VARIABLES ── */
:root {
  --navy:    #0d2d5e;
  --blue:    #1a6da8;
  --accent:  #2e9ee0;
  --light:   #f4f7fb;
  --dark-bg: #1e2a3a;
  --text:    #333;
  --muted:   #666;
  --border:  #dde4ed;
  --radius:  6px;
  --shadow:  0 4px 18px rgba(0,0,0,.10);
  --trans:   .25s ease;
}

/* ── UTILITIES ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  margin-bottom: 2.5rem;
  letter-spacing: .5px;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent);
  margin: .5rem auto 0;
  border-radius: 2px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: .75rem 1.75rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: .95rem;
  transition: all var(--trans);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--blue); border-color: var(--blue); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(46,158,224,.35); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline:hover { background: rgba(255,255,255,.15); border-color: #fff; }
.btn-lg { padding: .9rem 2.4rem; font-size: 1rem; }

/* ── HEADER ── */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,.97);
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  transition: box-shadow var(--trans);
}

/* Offset anchor scroll targets for fixed navbar (~80px) */
section[id], div[id] {
  scroll-margin-top: 90px;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1160px; margin: 0 auto; padding: 0 24px; height: 72px;
}
.logo { height: 48px; width: auto; }
#main-nav { display: flex; align-items: center; gap: 2rem; }
#main-nav a {
  font-weight: 600; font-size: .9rem; color: var(--navy);
  transition: color var(--trans); letter-spacing: .3px; text-transform: uppercase;
}
#main-nav a:hover { color: var(--accent); }
#main-nav .nav-cta {
  background: var(--accent); color: #fff; padding: .5rem 1.4rem;
  border-radius: 30px; transition: background var(--trans);
}
#main-nav .nav-cta:hover { background: var(--blue); color: #fff; }

/* hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: all var(--trans); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ── */
#hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden; padding-top: 72px;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a6e 50%, #0f4a8a 100%);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: url('../images/hero-pattern.svg') center/cover no-repeat;
  opacity: .08;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 1160px; margin: 0 auto; padding: 0 24px;
  width: 38%;
}
.hero-content h1 {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700; color: #fff;
  line-height: 1.05; margin-bottom: .5rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.hero-sub {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 600; color: rgba(255,255,255,.90);
  margin-bottom: 1.25rem; letter-spacing: .5px;
}
.hero-content p {
  font-size: clamp(.95rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.85);
  margin-bottom: 2rem; max-width: 560px;
}
.hero-content .btn { margin-right: .75rem; margin-bottom: .5rem; }

/* Hero Globe */
.hero-globe {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 62%;
  height: 100%;
  opacity: 0.45;
  pointer-events: none;
  z-index: 1;
}
.spinning-globe {
  width: 100%;
  height: 100%;
  display: block;
}

/* ── SERVICE PILLARS ── */
#service-pillars { background: #fff; padding: 3rem 0; border-bottom: 1px solid var(--border); }
.pillars-grid { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
.pillar {
  display: flex; flex-direction: column; align-items: center;
  gap: .75rem; text-align: center; padding: 1.5rem 1rem;
  width: 180px; text-decoration: none;
  transition: transform var(--trans);
}
.pillar:hover { transform: translateY(-4px); }
.pillar-icon {
  width: 90px; height: 90px; border-radius: 50%;
  background: var(--navy); display: flex; align-items: center; justify-content: center;
  transition: background var(--trans); flex-shrink: 0;
}
.pillar:hover .pillar-icon { background: var(--blue); }
.pillar-icon svg { width: 46px; height: 46px; }
.pillar span { font-weight: 600; font-size: .9rem; color: var(--navy); line-height: 1.3; }

/* ── SERVICES ── */
#services { padding: 5rem 0; background: #fff; }
.services-3col { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; margin-bottom: 3rem; }
.service-card { background: var(--light); padding: 2rem; border-radius: var(--radius); border-top: 4px solid var(--accent); }
.service-num { font-family: 'Rajdhani', sans-serif; font-size: 3rem; font-weight: 700; color: var(--accent); line-height: 1; margin-bottom: .5rem; }
.service-card h3 { font-family: 'Rajdhani', sans-serif; font-size: 1.3rem; color: var(--navy); margin-bottom: .75rem; }
.service-card p { font-size: .9rem; color: var(--muted); }

/* accordion */
.accordion-list { border-top: 1px solid var(--border); }
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-trigger {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem 1.25rem; background: none; border: none; cursor: pointer;
  font-size: 1rem; font-weight: 600; color: var(--navy);
  text-align: left; transition: background var(--trans);
}
.accordion-trigger:hover { background: var(--light); }
.accordion-trigger[aria-expanded="true"] { background: var(--light); color: var(--blue); }
.accordion-icon { font-size: 1.4rem; font-weight: 300; color: var(--accent); transition: transform var(--trans); flex-shrink: 0; }
.accordion-trigger[aria-expanded="true"] .accordion-icon { transform: rotate(45deg); }
.accordion-body { display: none; padding: 0 1.25rem 1.5rem; }
.accordion-body.open { display: block; animation: fadeIn .2s ease; }
.accordion-body p, .accordion-body li { font-size: .92rem; color: var(--muted); }
.accordion-body p + p { margin-top: .75rem; }
.accordion-body ul, .accordion-body ol { margin-top: .5rem; }
.accordion-body a { color: var(--blue); text-decoration: underline; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

/* ── STATS ── */
#stats { background: var(--navy); padding: 4rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 2rem; text-align: center; }
.stat-item { padding: 1rem; }
.stat-num {
  font-family: 'Rajdhani', sans-serif;
  font-size: 3.5rem; font-weight: 700; color: var(--accent);
  line-height: 1; margin-bottom: .5rem;
}
.stat-num::after { content: '+'; }
.stat-label { color: rgba(255,255,255,.8); font-size: .9rem; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }

/* ── TEAM ── */
#team { padding: 5rem 0; background: var(--light); }
.team-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 2.5rem; max-width: 900px; margin: 0 auto; }
.team-card { background: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); text-align: center; }
.team-photo { width: 160px; height: 160px; margin: 0 auto 1.5rem; border-radius: 50%; overflow: hidden; border: 4px solid var(--accent); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-family: 'Rajdhani', sans-serif; font-size: 1.5rem; color: var(--navy); }
.team-title { color: var(--muted); font-size: .85rem; margin-bottom: 1rem; font-weight: 600; }
.team-bio { text-align: left; font-size: .87rem; color: var(--muted); line-height: 1.7; }
.team-bio p + p { margin-top: .75rem; }
.team-social { display: flex; justify-content: center; gap: 1rem; margin-top: 1.25rem; }
.team-social a { width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; transition: background var(--trans); }
.team-social a:hover { background: var(--accent); }
.team-social svg { width: 18px; height: 18px; }

/* ── TESTIMONIALS ── */
#testimonials { padding: 5rem 0; background: #fff; }
.carousel { position: relative; overflow: hidden; }
.carousel-track { display: flex; transition: transform .4s ease; }
.testimonial { flex: 0 0 100%; padding: 2rem 3rem; text-align: center; }
.testimonial blockquote {
  font-size: 1.05rem; color: var(--muted); line-height: 1.8;
  font-style: italic; max-width: 720px; margin: 0 auto 1.25rem;
  position: relative;
}
.testimonial blockquote::before { content: '\201C'; font-size: 4rem; color: var(--accent); line-height: 0; vertical-align: -1.2rem; margin-right: .2rem; font-family: serif; }
.testimonial cite { font-weight: 700; color: var(--navy); font-style: normal; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: var(--navy); color: #fff; border: none;
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  font-size: 1.1rem; display: flex; align-items: center; justify-content: center;
  transition: background var(--trans); z-index: 5;
}
.carousel-btn:hover { background: var(--accent); }
.carousel-btn.prev { left: 8px; }
.carousel-btn.next { right: 8px; }
.carousel-dots { display: flex; justify-content: center; gap: .5rem; margin-top: 1.5rem; }
.carousel-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); border: none; cursor: pointer; transition: background var(--trans); }
.carousel-dot.active { background: var(--accent); }

/* ── CTA BAND ── */
.cta-band { background: var(--light); padding: 2.5rem 0; text-align: center; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ── CLIENTS ── */
#clients { padding: 5rem 0; background: #fff; }
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1.5rem; }
.logo-item { display: flex; align-items: center; justify-content: center; padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; transition: box-shadow var(--trans); min-height: 80px; position: relative; cursor: default; }
.logo-item:hover { box-shadow: var(--shadow); }
.logo-item img { max-height: 50px; width: auto; object-fit: contain; filter: grayscale(80%); transition: filter var(--trans); }
.logo-item:hover img { filter: none; }
.logo-tooltip { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: #0d2d5e; color: #fff; font-size: .75rem; font-weight: 600; white-space: nowrap; padding: .35rem .7rem; border-radius: 4px; pointer-events: none; opacity: 0; transition: opacity .15s ease; z-index: 10; }
.logo-tooltip::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 5px solid transparent; border-top-color: #0d2d5e; }
/* Only show tooltip on true hover (non-touch devices) */
@media (hover: hover) and (pointer: fine) {
  .logo-item:hover .logo-tooltip { opacity: 1; }
}
/* placeholder (before real logos are added) */
.logo-placeholder { display: flex; align-items: center; justify-content: center; padding: .75rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--light); min-height: 72px; font-size: .8rem; font-weight: 600; color: var(--muted); text-align: center; letter-spacing: .3px; }

/* ── CONTACT ── */
#contact { padding: 5rem 0; background: var(--light); }
.contact-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; align-items: start; }
.contact-info h3 { font-family: 'Rajdhani', sans-serif; font-size: 1.3rem; color: var(--navy); margin-bottom: .5rem; }
.contact-info p { font-size: .92rem; color: var(--muted); margin-bottom: .35rem; }
.contact-info a { color: var(--blue); }
.contact-form-wrap { background: #fff; padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; font-size: .88rem; color: var(--navy); margin-bottom: .4rem; }
.form-group input, .form-group textarea {
  width: 100%; padding: .7rem 1rem; border: 1px solid var(--border);
  border-radius: var(--radius); font-family: inherit; font-size: .92rem;
  color: var(--text); background: #fff; transition: border-color var(--trans);
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); }
.form-group input.error, .form-group textarea.error { border-color: #e03e3e; }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-check { display: flex; align-items: flex-start; gap: .75rem; }
.form-check input[type="checkbox"] { margin-top: .25rem; flex-shrink: 0; width: 16px; height: 16px; }
.form-check label { font-size: .85rem; font-weight: 400; color: var(--muted); }
.form-check label a { color: var(--blue); text-decoration: underline; }
.form-status { padding: .75rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; display: none; }
.form-status.success { background: #d4edda; color: #155724; display: block; }
.form-status.error { background: #f8d7da; color: #721c24; display: block; }

/* ── FOOTER ── */
#site-footer { background: var(--dark-bg); color: rgba(255,255,255,.75); padding: 4rem 0 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 2fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-logo { height: 52px; width: auto; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer-tagline { font-style: italic; font-size: .88rem; margin-bottom: .75rem; color: rgba(255,255,255,.6); }
.footer-col h4 { font-family: 'Rajdhani', sans-serif; font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: .75rem; text-transform: uppercase; letter-spacing: .5px; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: .4rem; }
.footer-col ul a { font-size: .88rem; color: rgba(255,255,255,.6); transition: color var(--trans); }
.footer-col ul a:hover { color: var(--accent); }
.footer-posts li { border-bottom: 1px solid rgba(255,255,255,.08); padding-bottom: .4rem; }
.footer-posts a { font-size: .83rem !important; line-height: 1.4; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.25rem 0; text-align: center; }
.footer-bottom p { font-size: .82rem; color: rgba(255,255,255,.4); }

/* ── BACK TO TOP ── */
#back-to-top {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; box-shadow: 0 4px 14px rgba(0,0,0,.25);
  opacity: 0; pointer-events: none; transition: all var(--trans); z-index: 900;
}
#back-to-top.visible { opacity: 1; pointer-events: auto; }
#back-to-top:hover { background: var(--blue); transform: translateY(-2px); }

/* ── BLOG ── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 2rem; }
.blog-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.blog-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blog-card-meta { font-size: .78rem; color: var(--muted); margin-bottom: .5rem; }
.blog-card h3 { font-family: 'Rajdhani', sans-serif; font-size: 1.2rem; color: var(--navy); margin-bottom: .5rem; }
.blog-card p { font-size: .88rem; color: var(--muted); flex: 1; }
.blog-card .read-more { margin-top: 1rem; font-weight: 600; color: var(--blue); font-size: .88rem; }
.blog-card .read-more:hover { color: var(--accent); }

/* ── ADMIN (if admin CSS is not separate) ── */

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  #main-nav { display: none; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: #fff; padding: 1rem 24px 1.5rem; box-shadow: 0 8px 20px rgba(0,0,0,.12); gap: 1rem; }
  #main-nav.open { display: flex; }
  #site-header { position: fixed; }
  .hamburger { display: flex; }
  .services-3col { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .pillars-grid { gap: 1rem; }
  .pillar { width: 140px; }
  .pillar-icon { width: 70px; height: 70px; }
  .pillar-icon svg { width: 36px; height: 36px; }
  .hero-globe { width: 280px; height: 280px; right: -40px; top: 15%; transform: none; opacity: 0.2; }
  .hero-content { width: 100%; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .logo-grid { grid-template-columns: repeat(2,1fr); }
  .testimonial { padding: 1.5rem 1rem; }
  .testimonial blockquote { font-size: .92rem; }
}
