/*
Theme Name: Pontomp4
Theme URI: https://pontomp4.com
Author: Pontomp4 Studio
Author URI: https://pontomp4.com
Description: A bold, dark, one-page WordPress theme for Pontomp4 — a premium video editing studio. Features Montserrat typography, oklch purple palette, animated reveal sections, pricing table, FAQ accordion, and an opt-in pilot project modal triggered only on CTA click.
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: pontomp4
Tags: one-page, dark, custom-colors, custom-logo, custom-menu, featured-images, theme-options, threaded-comments
*/

/* =========================================================
   1. DESIGN TOKENS
   ========================================================= */
:root {
  --radius: 0.5rem;
  --font-display: "Montserrat", sans-serif;
  --font-body: "Montserrat", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --background: oklch(0.13 0 0);
  --foreground: oklch(0.96 0.01 95);
  --card: oklch(0.17 0 0);
  --card-foreground: oklch(0.96 0.01 95);
  --popover: oklch(0.12 0 0);
  --popover-foreground: oklch(0.96 0.01 95);
  --primary: oklch(0.62 0.28 299);
  --primary-foreground: oklch(0.98 0 0);
  --secondary: oklch(0.2 0 0);
  --secondary-foreground: oklch(0.96 0.01 95);
  --muted: oklch(0.18 0 0);
  --muted-foreground: oklch(0.63 0 0);
  --accent: oklch(0.62 0.28 299);
  --accent-foreground: oklch(0.98 0 0);
  --destructive: oklch(0.64 0.22 25);
  --destructive-foreground: oklch(0.98 0 0);
  --border: oklch(0.24 0 0);
  --input: oklch(0.22 0 0);
  --ring: oklch(0.62 0.28 299 / 0.48);
  --line: oklch(0.31 0 0);
}

/* =========================================================
   2. RESET & BASE
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 10%, oklch(0.95 0.18 110 / 0.04), transparent 30%),
    var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: inherit;
}

::selection {
  background: oklch(0.95 0.18 110 / 0.18);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  margin: 0;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* =========================================================
   3. LAYOUT HELPERS
   ========================================================= */
.content-wrap {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .content-wrap {
    padding: 0 32px;
  }
}

.section-block {
  position: relative;
  padding: 48px 0;
}

@media (min-width: 768px) {
  .section-block {
    padding: 80px 0;
  }
}

.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--primary);
}

.section-heading {
  margin-top: 16px;
  max-width: 720px;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1;
  color: var(--foreground);
}

.section-copy {
  margin-top: 16px;
  max-width: 640px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

@media (min-width: 768px) {
  .section-copy {
    font-size: 1.125rem;
  }
}

/* =========================================================
   4. SURFACE UTILITIES
   ========================================================= */
.surface-card {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--card-foreground);
  border-radius: 16px;
  box-shadow:
    0 0 0 1px oklch(1 0 0 / 0.02),
    0 24px 80px oklch(0 0 0 / 0.35);
}

.glass-bar {
  border: 1px solid color-mix(in oklch, var(--border), transparent 20%);
  background: color-mix(in oklch, var(--background), transparent 20%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.accent-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  background: color-mix(in oklch, var(--card), transparent 30%);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--foreground);
}

/* =========================================================
   5. BUTTONS
   ========================================================= */
@keyframes pontom-pulse {
  0%, 100% { box-shadow: 0 0 0 0 oklch(0.62 0.28 299 / 0.35); }
  50%      { box-shadow: 0 0 0 12px oklch(0.62 0.28 299 / 0); }
}

.primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.3s ease, filter 0.3s ease;
  animation: pontom-pulse 2.8s ease-in-out infinite;
}

.primary-cta:hover {
  transform: scale(1.02);
  filter: brightness(1.1);
}

.secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid color-mix(in oklch, var(--primary), transparent 20%);
  background: transparent;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.3s ease, background 0.3s ease;
}

.secondary-cta:hover {
  transform: scale(1.02);
  background: color-mix(in oklch, var(--primary), transparent 92%);
}

/* =========================================================
   6. SITE HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.site-logo img {
  height: 40px;
  width: auto;
}

.primary-nav {
  display: none;
  gap: 32px;
}

.primary-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted-foreground);
}

.primary-nav a:hover {
  color: var(--foreground);
}

@media (min-width: 768px) {
  .primary-nav {
    display: flex;
  }
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--foreground);
}

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

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-top: 1px solid var(--border);
}

.mobile-nav.is-open {
  display: flex;
}

@media (min-width: 768px) {
  .mobile-nav {
    display: none !important;
  }
}

/* =========================================================
   7. HERO
   ========================================================= */
.hero {
  position: relative;
  padding: 80px 0 64px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 38%, oklch(0.62 0.28 299 / 0.18), transparent 32%);
  pointer-events: none;
  z-index: -1;
}

.hero__title {
  margin-top: 24px;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  letter-spacing: -0.02em;
}

.hero__subtitle {
  margin-top: 24px;
  max-width: 620px;
  font-size: 1.125rem;
  color: var(--muted-foreground);
}

.hero__actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero__video {
  margin-top: 56px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  aspect-ratio: 16 / 9;
}

.hero__video iframe,
.hero__video video {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

/* =========================================================
   8. TICKER
   ========================================================= */
@keyframes pontom-ticker {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

.ticker {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--card);
  overflow: hidden;
  padding: 18px 0;
}

.ticker__track {
  display: flex;
  width: max-content;
  gap: 48px;
  animation: pontom-ticker 28s linear infinite;
}

.ticker__item {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

/* =========================================================
   9. PROBLEM / SOLUTION GRID
   ========================================================= */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 40px;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 40px;
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  padding: 32px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card);
}

.feature-card__title {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.feature-card__copy {
  color: var(--muted-foreground);
  font-size: 0.95rem;
}

/* =========================================================
   10. PRICING
   ========================================================= */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 40px;
}

@media (min-width: 900px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--card);
}

.pricing-card.is-featured {
  border-color: var(--primary);
  box-shadow: 0 24px 80px oklch(0.62 0.28 299 / 0.18);
}

.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.pricing-card__name {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted-foreground);
}

.pricing-card__price {
  margin-top: 16px;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--foreground);
}

.pricing-card__period {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.pricing-card__features {
  margin: 24px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-card__features li {
  display: flex;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--foreground);
}

.pricing-card__features li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 700;
}

.pricing-card .primary-cta,
.pricing-card .secondary-cta {
  margin-top: auto;
}

/* =========================================================
   11. FAQ
   ========================================================= */
.faq-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  overflow: hidden;
}

.faq-item.is-open {
  border-color: color-mix(in oklch, var(--primary), transparent 30%);
  background: color-mix(in oklch, var(--primary), var(--card) 92%);
}

.faq-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  padding: 20px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
}

.faq-toggle::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform 0.2s ease;
}

.faq-item.is-open .faq-toggle::after {
  content: "–";
}

.faq-answer {
  display: none;
  padding: 0 24px 24px;
  color: var(--muted-foreground);
  line-height: 1.7;
}

.faq-item.is-open .faq-answer {
  display: block;
}

/* =========================================================
   12. FLOATING CTA
   ========================================================= */
.floating-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 60;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 18px 40px oklch(0.62 0.28 299 / 0.4);
  transition: transform 0.2s ease;
}

.floating-cta:hover {
  transform: translateY(-2px);
}

/* =========================================================
   13. MODAL
   ========================================================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: oklch(0 0 0 / 0.7);
  backdrop-filter: blur(8px);
}

.modal.is-open {
  display: flex;
}

.modal__panel {
  position: relative;
  width: 100%;
  max-width: 520px;
  padding: 40px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--card);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--muted);
  color: var(--foreground);
  font-size: 1.25rem;
}

.modal__title {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.modal__copy {
  color: var(--muted-foreground);
  margin-bottom: 24px;
}

/* =========================================================
   14. FOOTER
   ========================================================= */
.site-footer {
  margin-top: 80px;
  padding: 48px 0;
  border-top: 1px solid var(--border);
  background: var(--card);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
}

.site-footer img {
  height: 40px;
}

.site-footer__copy {
  font-size: 13px;
  color: var(--muted-foreground);
}

/* =========================================================
   15. REVEAL ANIMATION
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .ticker__track,
  .primary-cta {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* =========================================================
   16. WORDPRESS CORE CLASSES
   ========================================================= */
.alignleft  { float: left;  margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.screen-reader-text {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px; height: 1px; overflow: hidden;
}
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.85rem; color: var(--muted-foreground); text-align: center; }
.sticky { display: block; }
.gallery-caption {}
.bypostauthor {}
