/*
Theme Name: Flix
Theme URI: https://www.flix.my
Author: Flix — New Advanced Technology Centre Sdn Bhd
Author URI: https://www.flix.my
Description: Flix one-page creative agency theme. Bold tectonic typography, light editorial palette with an orange accent, and a single-page composition for hero, work, services, about, testimonial and contact.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: flix
Tags: one-page, agency, portfolio, custom-colors, custom-logo, custom-menu, editor-style, featured-images, threaded-comments, translation-ready
*/

/* ---------- Design Tokens ---------- */
:root {
  --background: hsl(210 15% 96%);
  --foreground: hsl(210 25% 10%);
  --muted: hsl(210 10% 40%);
  --accent: hsl(12 90% 50%);
  --accent-foreground: #ffffff;
  --border: hsla(210, 25%, 10%, 0.15);
  --font-display: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --max-w: 1200px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent); }
::selection { background: var(--accent); color: var(--accent-foreground); }

h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
p { margin: 0; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; }
.accent { color: var(--accent); }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 16px 32px;
  font-weight: 700;
  letter-spacing: -0.01em;
  border: 1px solid var(--foreground);
  background: var(--foreground);
  color: var(--background);
  transition: background .2s ease, color .2s ease;
  cursor: pointer;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--ghost { background: transparent; color: var(--foreground); }
.btn--ghost:hover { background: var(--foreground); color: var(--background); }

/* ---------- Navigation ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: hsla(210, 15%, 96%, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-nav__inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 24px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.site-nav__brand {
  font-weight: 900; font-size: 24px;
  letter-spacing: -0.04em;
}
.site-nav__brand .dot { color: var(--accent); }
.site-nav__menu { display: none; gap: 32px; }
.site-nav__menu a {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.18em;
}
.site-nav__cta {
  display: none;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 8px 16px; border: 1px solid var(--foreground);
  transition: background .2s ease, color .2s ease;
}
.site-nav__cta:hover { background: var(--foreground); color: var(--background); }
@media (min-width: 768px) {
  .site-nav__menu, .site-nav__cta { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 96px 24px 64px;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 768px) { .hero { padding: 160px 24px 128px; } }
.hero__inner { max-width: var(--max-w); margin: 0 auto; }
.hero__eyebrow { color: var(--accent); margin-bottom: 24px; }
.hero__title {
  font-size: clamp(48px, 10vw, 120px);
  font-weight: 900; line-height: 0.85;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.hero__title .outline {
  -webkit-text-stroke: 1.5px currentColor;
  color: transparent;
  border-top: 2px solid var(--foreground);
  border-bottom: 2px solid var(--foreground);
  display: inline-block; padding: 8px 0;
}
@media (min-width: 768px) { .hero__title .outline { padding: 16px 0; } }
.hero__lead {
  margin-top: 48px; max-width: 580px;
  font-size: clamp(16px, 2vw, 20px);
  color: var(--muted); font-weight: 300; line-height: 1.6;
  text-wrap: pretty;
}
.hero__actions { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 16px; }
.animate-reveal { animation: reveal-up .8s var(--ease-out-expo) both; }
.animate-reveal:nth-child(1){ animation-delay: 0ms; }
.animate-reveal:nth-child(2){ animation-delay: 100ms; }
.animate-reveal:nth-child(3){ animation-delay: 200ms; }
@keyframes reveal-up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Trusted strip ---------- */
.trusted {
  border-bottom: 1px solid var(--border);
}
.trusted__inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 24px; display: flex; flex-wrap: wrap;
  align-items: center; gap: 12px 40px;
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--muted);
}
.trusted__label { color: var(--foreground); }

/* ---------- Section ---------- */
.section { padding: 96px 24px; border-bottom: 1px solid var(--border); }
.section__inner { max-width: var(--max-w); margin: 0 auto; }
.section__head {
  display: flex; justify-content: space-between; align-items: end;
  margin-bottom: 64px; flex-wrap: wrap; gap: 16px;
}
.section__title { font-size: clamp(32px, 5vw, 48px); }
.section__count { color: var(--muted); }

/* ---------- Works Grid ---------- */
.works {
  display: grid; grid-template-columns: 1fr;
  gap: 1px; background: var(--border);
  border: 1px solid var(--border);
}
@media (min-width: 900px) { .works { grid-template-columns: repeat(3, 1fr); } }
.work {
  background: var(--background); padding: 32px;
  cursor: pointer;
}
.work__media {
  aspect-ratio: 4 / 5; overflow: hidden;
  background: hsla(210, 25%, 10%, 0.04); margin-bottom: 24px;
}
.work__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1);
  transition: transform .7s var(--ease-out-expo), filter .7s var(--ease-out-expo);
}
.work:hover .work__media img { filter: grayscale(0); transform: scale(1.03); }
.work__tag { color: var(--accent); margin-bottom: 8px; }
.work__title { font-size: 24px; margin-bottom: 8px; }
.work__meta { color: var(--muted); margin-bottom: 16px; }
.work__rule { height: 1px; width: 0; background: var(--foreground); transition: width .5s ease; }
.work:hover .work__rule { width: 100%; }

/* ---------- Services ---------- */
.services-intro { display: grid; grid-template-columns: 1fr; gap: 48px; margin-bottom: 64px; }
@media (min-width: 768px) { .services-intro { grid-template-columns: 5fr 7fr; } }
.services-intro h2 { margin-top: 16px; font-size: clamp(32px, 5vw, 48px); }
.services-intro p { font-size: 18px; color: var(--muted); font-weight: 300; line-height: 1.6; }
.services {
  display: grid; grid-template-columns: 1fr;
  gap: 1px; background: var(--border);
  border: 1px solid var(--border);
}
@media (min-width: 700px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .services { grid-template-columns: repeat(4, 1fr); } }
.service {
  background: var(--background); padding: 32px;
  min-height: 260px; display: flex; flex-direction: column;
}
.service__n { color: var(--accent); }
.service__title { margin-top: 24px; font-size: 24px; }
.service__body { margin-top: 16px; color: var(--muted); font-weight: 300; line-height: 1.6; text-wrap: pretty; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 768px) { .about { grid-template-columns: 4fr 8fr; } }
.about h2 { margin-top: 16px; font-size: clamp(32px, 5vw, 48px); }
.about p { color: var(--muted); font-size: 18px; font-weight: 300; line-height: 1.7; margin-bottom: 16px; }
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; padding-top: 32px; margin-top: 32px;
  border-top: 1px solid var(--border);
}
.stat__num { font-size: clamp(32px, 5vw, 48px); font-weight: 900; letter-spacing: -0.04em; color: var(--foreground); }
.stat__label { margin-top: 8px; }

/* ---------- Testimonial ---------- */
.testimonial {
  padding: 96px 24px;
  background: var(--foreground); color: var(--background);
  border-bottom: 1px solid var(--border);
}
.testimonial__inner { max-width: 800px; margin: 0 auto; text-align: center; }
.testimonial__label { color: var(--accent); margin-bottom: 32px; }
.testimonial blockquote {
  margin: 0; font-size: clamp(24px, 4vw, 48px);
  font-weight: 300; line-height: 1.15; text-wrap: balance;
}
.testimonial cite { display: block; margin-top: 48px; font-style: normal; }
.testimonial cite .name { display: block; font-weight: 700; font-size: 18px; }
.testimonial cite .role { opacity: 0.6; margin-top: 4px; display: block; }

/* ---------- Contact / Footer ---------- */
.contact { padding: 128px 24px 64px; }
.contact__inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr; gap: 80px;
}
@media (min-width: 768px) { .contact__inner { grid-template-columns: 1fr 1fr; } }
.contact__title { font-size: clamp(48px, 8vw, 112px); font-weight: 900; letter-spacing: -0.04em; margin-bottom: 32px; }
.contact__title .accent { color: var(--accent); }
.contact__lead { color: var(--muted); max-width: 360px; font-family: var(--font-mono); font-size: 13px; line-height: 1.6; margin-bottom: 48px; }
.contact-cta {
  display: inline-block; padding: 20px 48px;
  background: var(--foreground); color: var(--background);
  font-weight: 800; letter-spacing: -0.02em;
}
.contact-cta:hover { background: var(--accent); color: #fff; }
.contact-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; color: var(--muted); }
.contact-cols .head { color: var(--foreground); margin-bottom: 16px; }
.contact-cols a + a { margin-top: 8px; }
.contact-cols .stack { display: flex; flex-direction: column; }

.colophon {
  max-width: var(--max-w); margin: 80px auto 0;
  padding: 32px 24px 0; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  color: var(--muted);
}

/* ---------- WP core / accessibility ---------- */
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute !important; width: 1px; word-wrap: normal !important;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100000;
  background: var(--foreground); color: var(--background);
  padding: 12px 16px; font-family: var(--font-mono); font-size: 12px;
}
.skip-link:focus { left: 16px; top: 16px; }
