
/*
Theme Name: Track Tech Modern
Theme URI: https://tracktech.services/
Author: OpenAI
Description: Modern WordPress theme for Track Tech using bundled media and custom starter content.
Version: 1.1.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: tracktech-modern
*/
:root {
  --bg: #0a0c10;
  --panel: #11151d;
  --panel-2: #171d27;
  --text: #ecf2ff;
  --muted: #a8b2c7;
  --line: rgba(255,255,255,.08);
  --accent: #ffb703;
  --accent-2: #47c7ff;
  --max: 1240px;
  --radius: 24px;
  --shadow: 0 20px 60px rgba(0,0,0,.35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #090b0f 0%, #0f131a 100%);
  color: var(--text);
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10,12,16,.78);
  border-bottom: 1px solid var(--line);
}
.header-inner, .section-inner, .footer-inner, .content-wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 20px; }
.branding { display:flex; align-items:center; gap:16px; text-decoration:none; }
.branding img { width: 68px; border-radius: 16px; box-shadow: var(--shadow); }
.branding-text strong { display:block; font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; }
.branding-text span { display:block; color: var(--muted); font-size: .92rem; }
.menu-toggle { display:none; }
.main-nav ul { list-style:none; display:flex; gap:10px; margin:0; padding:0; flex-wrap:wrap; }
.main-nav a {
  display:block; padding: 12px 16px; border-radius: 999px; text-decoration:none; color: var(--muted);
}
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current_page_parent > a { color: var(--text); background: rgba(255,255,255,.06); }
.hero {
  position: relative; overflow: hidden;
  min-height: calc(100vh - 84px);
  display:flex; align-items:center;
  background: #080a0d;
}
.hero::before {
  content:""; position:absolute; inset:0;
  background: linear-gradient(90deg, rgba(8,10,13,.88) 0%, rgba(8,10,13,.72) 40%, rgba(8,10,13,.45) 100%),
              url('assets/images/480182713_991897309490684_1612936752191291069_n.jpg') center/cover no-repeat;
}
.hero::after { content:""; position:absolute; inset:auto -10% -25% auto; width:40vw; height:40vw; background: radial-gradient(circle, rgba(71,199,255,.16), transparent 60%); }
.hero-inner { position:relative; z-index:2; max-width: var(--max); width:100%; margin:0 auto; padding: 96px 24px; display:grid; grid-template-columns: 1.2fr .8fr; gap: 40px; }
.eyebrow { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; }
.hero h1 { font-size: clamp(2.35rem, 5.2vw, 4.6rem); line-height: 1.04; margin: 16px 0; max-width: 12ch; }
.hero p { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted); max-width: 58ch; }
.hero-actions { display:flex; gap:16px; flex-wrap:wrap; margin-top: 30px; }
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:10px; text-decoration:none; border-radius:999px;
  padding: 15px 22px; font-weight: 700; transition: .2s ease; border:1px solid transparent;
}
.btn-primary { background: linear-gradient(135deg, var(--accent), #ff8a00); color:#111; }
.btn-secondary { background: rgba(255,255,255,.05); border-color: var(--line); color: var(--text); }
.btn:hover { transform: translateY(-1px); }
.hero-card {
  align-self:end; background: rgba(21,26,36,.94); border:1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow);
}
.hero-card h3 { margin:0 0 12px; font-size: 1.2rem; }
.hero-card ul { margin:0; padding-left: 18px; color: var(--muted); }
.section { padding: 88px 0; }
.section.alt { background: rgba(255,255,255,.02); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.section-title { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 14px; }
.section-lead { color: var(--muted); font-size: 1.06rem; max-width: 70ch; }
.grid { display:grid; gap:24px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.card h3 { margin-top:0; font-size: 1.25rem; }
.card p, .card li { color: var(--muted); }
.stat-row { display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap:18px; margin-top: 30px; }
.stat { background: var(--panel); border:1px solid var(--line); padding: 22px; border-radius: 20px; display:flex; flex-direction:column; gap:10px; }
.stat-link { color: var(--accent-2); text-decoration:none; font-weight:700; }
.stat-link:hover { text-decoration:underline; }
.stat strong { display:block; font-size: 2rem; color: var(--accent); }
.media-split { display:grid; grid-template-columns: 1fr 1fr; gap:30px; align-items:stretch; }
.image-stack, .content-panel { background: var(--panel); border:1px solid var(--line); border-radius: var(--radius); overflow:hidden; box-shadow:var(--shadow); }
.image-stack img { width:100%; height:100%; object-fit:cover; min-height: 420px; }
.content-panel { padding: 34px; }
.gallery-grid { display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap:16px; }
.gallery-grid figure { margin:0; overflow:hidden; border-radius: 22px; border:1px solid var(--line); box-shadow:var(--shadow); background:var(--panel); }
.gallery-grid img { aspect-ratio: 1 / 1; object-fit: cover; width:100%; transition: transform .35s ease; }
.gallery-grid figure:hover img { transform: scale(1.05); }
.post-grid { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:22px; margin-top:30px; }
.post-card { background: var(--panel); border:1px solid var(--line); border-radius: 22px; overflow:hidden; box-shadow:var(--shadow); }
.post-card img { aspect-ratio: 16/9; object-fit: cover; width:100%; }
.post-card-content { padding: 22px; }
.post-card .meta { color: var(--muted); font-size: .92rem; margin-bottom: 8px; }
.location-card iframe, .map-embed { width:100%; min-height: 420px; border:0; }
.contact-box { display:grid; grid-template-columns: 1fr 1fr; gap: 24px; }
form.wpcf7-form, .contact-placeholder {
  background: var(--panel); border:1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
input, textarea {
  width:100%; background:#0c1016; color:var(--text); border:1px solid var(--line); border-radius:16px; padding:14px 16px;
}
textarea { min-height: 180px; }
button, input[type=submit] { cursor:pointer; }
.site-footer { border-top:1px solid var(--line); padding: 30px 0 50px; color: var(--muted); }
.page-hero { padding: 74px 0 26px; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); margin-bottom: 10px; }
.entry-content { color: var(--muted); font-size: 1.03rem; }
.entry-content h2, .entry-content h3, .entry-content h4 { color: var(--text); }
.entry-content .wp-block-image img { border-radius: 20px; }
.archive-grid { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.notice { color: var(--muted); font-size:.92rem; }
@media (max-width: 1080px) {
  .hero-inner, .grid-3, .grid-2, .post-grid, .archive-grid, .gallery-grid, .contact-box, .media-split, .stat-row, .contact-page-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .header-inner { min-height: 74px; }
  .menu-toggle { display:block; background: rgba(255,255,255,.06); color: var(--text); border:1px solid var(--line); border-radius: 999px; padding: 10px 14px; }
  .main-nav { display:none; width:100%; }
  .main-nav.is-open { display:block; padding-bottom: 18px; }
  .main-nav ul { flex-direction:column; }
  .header-inner { flex-wrap:wrap; }
  .hero-inner, .grid-3, .grid-2, .post-grid, .archive-grid, .gallery-grid, .contact-box, .media-split, .stat-row, .contact-page-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-inner { padding: 70px 24px; }
}


.contact-page-grid { display:grid; grid-template-columns: 1.1fr .9fr; gap:24px; margin-top: 18px; }
.contact-info-card, .contact-actions-card {
  background: var(--panel);
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.contact-info-card h3, .contact-actions-card h3 { margin-top:0; }
.contact-info-card p, .contact-actions-card p, .contact-list li { color: var(--muted); }
.contact-list { margin: 0; padding-left: 18px; }
.contact-actions-card .tracktech-button-row { margin-top: 20px; }

.footer-layout { display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap; }
.footer-actions, .tracktech-button-row { display:flex; gap:12px; flex-wrap:wrap; align-items:center; }
.tracktech-contact-panel {
  background: var(--panel);
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  max-width: 760px;
}
.tracktech-contact-panel p { color: var(--muted); margin-top:0; margin-bottom:18px; }
.tt-action-button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding: 13px 18px;
  border-radius: 999px;
  text-decoration:none;
  font-weight:700;
  border:1px solid var(--line);
  transition: .2s ease;
}
.tt-action-button:hover { transform: translateY(-1px); }
.tt-action-email { background: linear-gradient(135deg, var(--accent), #ff8a00); color:#111; border-color: transparent; }
.tt-action-facebook { background:#1877f2; color:#fff; border-color:#1877f2; }
.tt-action-follow { background: rgba(255,255,255,.06); color: var(--text); }
@media (max-width: 760px) {
  .footer-layout { align-items:flex-start; }
  .footer-actions, .tracktech-button-row { width:100%; }
  .tt-action-button { width:100%; }
}
