/*
Theme Name: Silence Tech Solution
Theme URI: https://silencetechsolution.com
Author: Silence Tech Solution
Author URI: https://silencetechsolution.com
Description: A quiet, dark, teal-accented theme for a custom PHP development studio. Built from a bespoke static design with scroll-triggered reveal animations. No third-party icon libraries or stock imagery — typography and layout carry the visual weight.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: silence-tech-solution
*/

/* ==========================================================================
   Silence Tech Solution — design tokens
   Palette: ink #0F1418, panel #161B20, panel-2 #1D242A, line #2A3338,
            text #E8EDF0, muted #8B98A0, signal #4FD1C5
   Type: Space Grotesk (display), Inter (body), JetBrains Mono (utility)
   ========================================================================== */

:root {
  --ink: #0F1418;
  --panel: #161B20;
  --panel-2: #1D242A;
  --line: #2A3338;
  --text: #E8EDF0;
  --muted: #8B98A0;
  --signal: #4FD1C5;
  --signal-dim: rgba(79, 209, 197, 0.15);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

ul, ol { margin: 0; padding: 0; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* -------------------- eyebrow / mono labels -------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 8px 1px var(--signal-dim);
}

/* -------------------- header / nav -------------------- */
header.site {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(15, 20, 24, 0.88);
  backdrop-filter: blur(8px);
  z-index: 50;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.brand span.dim { color: var(--muted); font-family: var(--font-mono); font-size: 0.7rem; }

.nav-links { display: flex; gap: 32px; font-size: 0.92rem; list-style: none; }
.nav-links li { display: inline-flex; }
.nav-links a {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
  position: relative;
  padding-bottom: 2px;
}
.nav-links a:hover,
.nav-links a.active,
.nav-links li.current-menu-item > a,
.nav-links li.current_page_item > a { color: var(--text); }
.nav-links a.active::after,
.nav-links li.current-menu-item > a::after,
.nav-links li.current_page_item > a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -0px;
  height: 2px;
  background: var(--signal);
}
.nav-toggle { display: none; }

/* -------------------- hero -------------------- */
.hero {
  padding: 96px 0 64px;
  border-bottom: 1px solid var(--line);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.08;
  margin: 22px 0 20px;
  letter-spacing: -0.01em;
}
.hero h1 .accent { color: var(--signal); }
.hero p.lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 0 34px;
}
.cta-row { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  border: 1px solid var(--line);
  transition: all 0.2s ease;
}
.btn-primary {
  background: var(--signal);
  color: #08110F;
  border-color: var(--signal);
  font-weight: 600;
}
.btn-primary:hover { background: #6ee0d4; }
.btn-ghost { color: var(--text); }
.btn-ghost:hover { border-color: var(--signal); color: var(--signal); }

/* -------------------- waveform signature -------------------- */
.waveform {
  width: 100%;
  height: auto;
  overflow: visible;
}
.waveform path {
  fill: none;
  stroke: var(--signal);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: draw 2.2s ease forwards 0.2s;
}
@keyframes draw {
  to { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .waveform path { animation: none; stroke-dashoffset: 0; }
}

/* -------------------- sections -------------------- */
section { padding: 72px 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: none; }
.section-head { max-width: 620px; margin-bottom: 44px; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 14px 0 12px;
}
.section-head p { color: var(--muted); margin: 0; }

/* -------------------- grid / cards -------------------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card {
  background: var(--panel);
  padding: 32px;
}
.card .tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--signal);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.card h3 { font-family: var(--font-display); font-size: 1.25rem; margin: 12px 0 10px; }
.card p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* -------------------- process strip -------------------- */
.process { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line); }
.process .step {
  flex: 1 1 200px;
  padding: 26px 24px;
  border-right: 1px solid var(--line);
  position: relative;
}
.process .step:last-child { border-right: none; }
.process .num {
  font-family: var(--font-mono);
  color: var(--signal);
  font-size: 0.8rem;
}
.process h4 { font-family: var(--font-display); margin: 10px 0 8px; font-size: 1.05rem; }
.process p { color: var(--muted); font-size: 0.88rem; margin: 0; }

/* -------------------- list rows (services) -------------------- */
.service-row {
  display: grid;
  grid-template-columns: 60px 1fr 200px;
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.service-row:first-of-type { border-top: 1px solid var(--line); }
.service-row .idx { font-family: var(--font-mono); color: var(--muted); font-size: 0.85rem; }
.service-row h3 { font-family: var(--font-display); margin: 0 0 8px; font-size: 1.3rem; }
.service-row p { color: var(--muted); margin: 0; }
.service-row .stack {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--signal);
  text-align: right;
}
.service-row .stack div { margin-bottom: 4px; }

/* -------------------- about / principles -------------------- */
.principle {
  border-left: 2px solid var(--line);
  padding: 6px 0 6px 20px;
  margin-bottom: 26px;
  transition: border-color 0.2s ease;
}
.principle:hover { border-color: var(--signal); }
.principle .word { font-family: var(--font-mono); color: var(--signal); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.principle p { margin: 6px 0 0; color: var(--muted); }

.skills-mono {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 0;
}
.skills-mono span { display: inline-block; }
.skills-mono span:not(:last-child)::after { content: " / "; color: var(--line); margin: 0 8px; }

/* -------------------- contact -------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
form.contact-form { display: flex; flex-direction: column; gap: 18px; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--signal);
}
.field textarea { resize: vertical; min-height: 120px; }

.contact-info .card { margin-bottom: 1px; }
.contact-info a.direct { color: var(--signal); font-family: var(--font-mono); font-size: 0.95rem; }

.notice {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 14px 18px;
  border-radius: 4px;
  margin-bottom: 22px;
}
.notice.success { background: rgba(79, 209, 197, 0.1); border: 1px solid var(--signal); color: var(--signal); }
.notice.error { background: rgba(217, 90, 90, 0.1); border: 1px solid #d95a5a; color: #e08787; }

/* -------------------- footer -------------------- */
footer.site {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-row .fmuted { color: var(--muted); font-family: var(--font-mono); font-size: 0.78rem; }

/* -------------------- basic blog / archive (index.php fallback) -------------------- */
.post-list-item {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.post-list-item:first-of-type { border-top: 1px solid var(--line); }
.post-list-item h2 { font-family: var(--font-display); font-size: 1.4rem; margin: 0 0 10px; }
.post-list-item h2 a:hover { color: var(--signal); }
.post-list-item .post-meta { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); margin-bottom: 10px; }
.post-list-item p { color: var(--muted); margin: 0; }
.pagination { display: flex; gap: 16px; padding-top: 20px; font-family: var(--font-mono); font-size: 0.85rem; }
.pagination a:hover { color: var(--signal); }

/* -------------------- scroll reveal -------------------- */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
  will-change: opacity, transform;
}
[data-animate].is-visible { opacity: 1; transform: none; }

[data-animate="zoom"] { transform: scale(0.94); }
[data-animate="zoom"].is-visible { transform: scale(1); }

[data-animate="left"] { transform: translateX(-32px); }
[data-animate="left"].is-visible { transform: none; }

[data-animate="right"] { transform: translateX(32px); }
[data-animate="right"].is-visible { transform: none; }

.d1 { transition-delay: 0.05s; }
.d2 { transition-delay: 0.15s; }
.d3 { transition-delay: 0.25s; }
.d4 { transition-delay: 0.35s; }
.d5 { transition-delay: 0.45s; }

@media (prefers-reduced-motion: reduce) {
  [data-animate] { opacity: 1; transform: none; transition: none; }
}

/* -------------------- responsive -------------------- */
@media (max-width: 780px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .process { flex-direction: column; }
  .process .step { border-right: none; border-bottom: 1px solid var(--line); }
  .process .step:last-child { border-bottom: none; }
  .service-row { grid-template-columns: 1fr; }
  .service-row .stack { text-align: left; }
  .contact-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 0.72rem; }
}

.site .wrap.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.brand {
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
  color: inherit;
  letter-spacing: -0.02em;
}

.brand .dim {
  opacity: 0.35;
}

.nav-links-wrap {
  display: flex;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.25rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: inherit;
  font-weight: 500;
  font-size: 0.95rem;
  transition: opacity 0.2s ease;
}

.nav-links a:hover {
  opacity: 0.6;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.menu-toggle .bar {
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links-wrap {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0d0d0d; /* matches dark theme feel of your site — adjust if needed */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .nav-links-wrap.open {
    max-height: 320px;
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.5rem 1.5rem;
  }

  .nav-links li {
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    display: block;
    padding: 0.9rem 0;
  }
}