/*
Theme Name: OnePage Landing
Theme URI: https://example.com/onepage-landing
Author: Your Studio
Author URI: https://example.com
Description: A clean, modern one-page landing/launch theme. Hero, features, about, and call-to-action sections are all editable from the WordPress Customizer — no page builder required.
Version: 1.0.0
Requires at least: 6.0
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: onepage-landing
*/

/* -------------------------------------------------
   Design tokens
------------------------------------------------- */
:root {
  --op-bg: #f6f5f1;
  --op-surface: #ffffff;
  --op-ink: #14151a;
  --op-muted: #6b6d76;
  --op-accent: #3d3af1;
  --op-accent-ink: #ffffff;
  --op-highlight: #ffc857;
  --op-border: rgba(20, 21, 26, 0.1);
  --op-radius: 22px;
  --op-radius-sm: 14px;
  --op-shadow: 0 20px 45px -20px rgba(20, 21, 26, 0.25);
  --op-container: 1160px;
  --op-font-display: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --op-font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

/* -------------------------------------------------
   Reset & base
------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--op-bg);
  color: var(--op-ink);
  font-family: var(--op-font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

h1, h2, h3, h4 {
  font-family: var(--op-font-display);
  line-height: 1.1;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

.op-container {
  width: 100%;
  max-width: var(--op-container);
  margin: 0 auto;
  padding: 0 24px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

.op-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--op-font-display);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--op-accent);
}

.op-eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--op-highlight);
}

/* -------------------------------------------------
   Buttons
------------------------------------------------- */
.op-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--op-font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.op-btn-primary {
  background: var(--op-ink);
  color: #fff;
}

.op-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -10px rgba(20, 21, 26, 0.5);
}

.op-btn-outline {
  background: transparent;
  border-color: var(--op-border);
  color: var(--op-ink);
}

.op-btn-outline:hover {
  border-color: var(--op-ink);
  transform: translateY(-2px);
}

/* -------------------------------------------------
   Header / sticky pill nav
------------------------------------------------- */
.op-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 18px 0;
}

.op-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px 10px 20px;
  background: rgba(246, 245, 241, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--op-border);
  border-radius: 999px;
}

.op-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--op-font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--op-ink);
}

.op-logo img {
  max-height: 32px;
  width: auto;
}

.op-nav {
  display: none;
}

.op-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.op-nav a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--op-muted);
  transition: background 0.2s ease, color 0.2s ease;
}

.op-nav a:hover,
.op-nav a.is-active {
  background: var(--op-ink);
  color: #fff;
}

.op-header-cta {
  display: none;
}

.op-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--op-border);
  background: transparent;
}

.op-menu-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--op-ink);
  position: relative;
}

.op-menu-toggle span::before,
.op-menu-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: var(--op-ink);
  transition: transform 0.2s ease;
}

.op-menu-toggle span::before { top: -5px; }
.op-menu-toggle span::after { top: 5px; }

.op-mobile-nav {
  display: none;
  margin-top: 10px;
  padding: 14px;
  background: var(--op-surface);
  border: 1px solid var(--op-border);
  border-radius: var(--op-radius-sm);
}

.op-mobile-nav.is-open {
  display: block;
}

.op-mobile-nav a {
  display: block;
  padding: 10px 6px;
  font-weight: 500;
  border-bottom: 1px solid var(--op-border);
}

.op-mobile-nav a:last-child {
  border-bottom: none;
}

.op-mobile-nav .op-btn {
  margin-top: 10px;
  width: 100%;
}

@media (min-width: 900px) {
  .op-nav { display: block; }
  .op-header-cta { display: inline-flex; }
  .op-menu-toggle { display: none; }
  .op-mobile-nav { display: none !important; }
}

/* -------------------------------------------------
   Hero
------------------------------------------------- */
.op-hero {
  position: relative;
  overflow: hidden;
  padding: 60px 0 90px;
}

.op-hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  z-index: 0;
}

.op-hero-blob--one {
  width: 420px;
  height: 420px;
  top: -160px;
  right: -100px;
  background: radial-gradient(circle, var(--op-accent) 0%, transparent 70%);
}

.op-hero-blob--two {
  width: 320px;
  height: 320px;
  bottom: -140px;
  left: -80px;
  background: radial-gradient(circle, var(--op-highlight) 0%, transparent 70%);
}

.op-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.op-hero-heading {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  margin-bottom: 20px;
}

.op-hero-heading .op-highlight-word {
  background: linear-gradient(180deg, transparent 62%, var(--op-highlight) 62%);
}

.op-hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--op-muted);
  max-width: 520px;
  margin: 18px 0 32px;
}

.op-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.op-hero-visual {
  position: relative;
}

.op-hero-visual img {
  width: 100%;
  border-radius: var(--op-radius);
  box-shadow: var(--op-shadow);
}

.op-hero-visual-placeholder {
  aspect-ratio: 4 / 3;
  width: 100%;
  border-radius: var(--op-radius);
  background: linear-gradient(135deg, var(--op-accent), #1a17b8);
  box-shadow: var(--op-shadow);
}

.op-hero-badge {
  position: absolute;
  bottom: -18px;
  left: -18px;
  background: var(--op-ink);
  color: #fff;
  padding: 14px 18px;
  border-radius: var(--op-radius-sm);
  font-family: var(--op-font-display);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 16px 30px -14px rgba(20, 21, 26, 0.5);
  transform: rotate(-4deg);
}

@media (min-width: 900px) {
  .op-hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 64px;
  }
}

/* -------------------------------------------------
   Features
------------------------------------------------- */
.op-section {
  padding: 90px 0;
}

.op-section-head {
  max-width: 620px;
  margin-bottom: 48px;
}

.op-section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin-top: 14px;
}

.op-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.op-feature-card {
  background: var(--op-surface);
  border: 1px solid var(--op-border);
  border-radius: var(--op-radius);
  padding: 30px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.op-feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--op-shadow);
}

.op-feature-icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--op-bg);
  color: var(--op-accent);
  margin-bottom: 18px;
}

.op-feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.op-feature-card p {
  color: var(--op-muted);
  margin: 0;
  font-size: 0.98rem;
}

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

/* -------------------------------------------------
   About
------------------------------------------------- */
.op-about {
  background: var(--op-surface);
  border-top: 1px solid var(--op-border);
  border-bottom: 1px solid var(--op-border);
}

.op-about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  align-items: center;
}

.op-about-image img,
.op-about-image-placeholder {
  border-radius: var(--op-radius);
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--op-bg);
}

.op-about-text p {
  color: var(--op-muted);
  font-size: 1.02rem;
}

.op-stat-row {
  display: flex;
  gap: 36px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.op-stat-num {
  font-family: var(--op-font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--op-ink);
  display: block;
}

.op-stat-label {
  color: var(--op-muted);
  font-size: 0.85rem;
}

@media (min-width: 900px) {
  .op-about-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

/* -------------------------------------------------
   CTA banner
------------------------------------------------- */
.op-cta {
  margin: 20px auto;
  max-width: var(--op-container);
  padding: 60px 40px;
  border-radius: 32px;
  background: var(--op-ink);
  color: #fff;
  text-align: center;
}

.op-cta h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 12px;
}

.op-cta p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 480px;
  margin: 0 auto 28px;
}

.op-cta .op-btn-primary {
  background: var(--op-highlight);
  color: var(--op-ink);
}

/* -------------------------------------------------
   Footer
------------------------------------------------- */
.op-footer {
  padding: 50px 0 30px;
}

.op-footer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
}

.op-footer-social {
  display: flex;
  gap: 12px;
}

.op-footer-social a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--op-border);
  color: var(--op-ink);
  transition: background 0.2s ease, color 0.2s ease;
}

.op-footer-social a:hover {
  background: var(--op-ink);
  color: #fff;
}

.op-footer-meta {
  color: var(--op-muted);
  font-size: 0.85rem;
}

@media (min-width: 700px) {
  .op-footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* -------------------------------------------------
   Fallback content (index.php loop, single/page)
------------------------------------------------- */
.op-fallback {
  max-width: 720px;
  margin: 0 auto;
  padding: 90px 24px;
}

.op-fallback article {
  margin-bottom: 60px;
}

.op-fallback h1, .op-fallback h2 {
  margin-bottom: 12px;
}
