/*
Theme Name: PDF4
Theme URI: https://example.com/pdf4
Author: PDF4DEV
Author URI: https://example.com
Description: A WordPress theme for PDF4DEV featuring product pages, a mobile hamburger menu, and modern PDF product presentation.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pdf4
Tags: custom-menu, featured-images, responsive-layout, one-column, full-width-template
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  --background: #ffffff;
  --foreground: #111111;
  --muted: #6b7280;
  --muted-foreground: #4b5563;
  --primary: #030213;
  --accent: #ff720f;
  --accent-dark: #e66309;
  --border: rgba(0,0,0,0.08);
  --surface: #f8fafc;
  --radius: 1rem;
  --radius-sm: 0.75rem;
  --font-family: 'Poppins', sans-serif;
  --font-weight-medium: 500;
  --line-height: 1.5;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-family);
  line-height: var(--line-height);
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
button:hover {
  color: var(--accent-dark);
}

button {
  font: inherit;
  cursor: pointer;
}

.pdf4-header {
  position: fixed;
  inset: 0 auto auto 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.pdf4-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
}

.pdf4-logo {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--foreground);
}

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

.pdf4-hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 2rem;
  height: 1.5rem;
  border: none;
  background: transparent;
  padding: 0;
}

.pdf4-hamburger span {
  display: block;
  height: 3px;
  border-radius: 999px;
  background: var(--foreground);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.pdf4-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pdf4-menu li {
  position: relative;
}

.pdf4-menu > li > a {
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  color: var(--foreground);
  padding: 0.5rem 0;
}

.pdf4-menu .sub-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 0.5rem);
  min-width: 220px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 18px 50px rgba(15,23,42,0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 10;
}

.pdf4-menu li:hover > .sub-menu,
.pdf4-menu li.focus > .sub-menu,
.pdf4-menu li.open > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.pdf4-menu .sub-menu li a {
  display: block;
  padding: 0.85rem 1rem;
  color: var(--foreground);
  white-space: nowrap;
}

.pdf4-menu .sub-menu li a:hover {
  background: var(--surface);
}

.pdf4-submenu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--foreground);
  margin-left: 0.5rem;
}

.pdf4-mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100%;
  background: rgba(255,255,255,0.98);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.25s ease, opacity 0.25s ease;
  padding: 5.5rem 1.5rem 2rem;
  overflow-y: auto;
  z-index: 999;
}

.pdf4-mobile-drawer.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.pdf4-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
  z-index: 980;
}

.pdf4-overlay.open {
  opacity: 1;
  visibility: visible;
}

.pdf4-mobile-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.pdf4-mobile-menu li a,
.pdf4-mobile-menu li button {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--foreground);
}

.pdf4-mobile-menu .sub-menu {
  position: static;
  border: 0;
  box-shadow: none;
  transform: none;
  opacity: 1;
  visibility: visible;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.pdf4-mobile-menu .sub-menu.open {
  max-height: 1200px;
}

.pdf4-mobile-menu .sub-menu li a {
  padding-left: 2rem;
}

.pdf4-page-header {
  margin-top: 5.5rem;
  padding: 5rem 1.5rem 2rem;
  background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(255,247,237,1) 100%);
  text-align: center;
}

.pdf4-page-header h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin: 0;
  letter-spacing: -0.05em;
}

.pdf4-page-header p {
  max-width: 740px;
  margin: 1rem auto 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.pdf4-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.pdf4-grid {
  display: grid;
  gap: 1.5rem;
}

.pdf4-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pdf4-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(15,23,42,0.05);
}

.pdf4-card-title {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.35rem;
}

.pdf4-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  padding: 0.95rem 1.7rem;
  font-weight: 600;
  transition: background 0.25s ease;
}

.pdf4-button:hover {
  background: var(--accent-dark);
}

.pdf4-hero {
  background: radial-gradient(circle at top left, rgba(255,114,15,0.16), transparent 22%), radial-gradient(circle at bottom right, rgba(255,114,15,0.08), transparent 20%), linear-gradient(180deg, #111827 0%, #0f172a 100%);
  color: #fff;
  padding: 6rem 1.5rem 4rem;
}

.pdf4-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 2rem;
  align-items: center;
}

.pdf4-hero-copy h1,
.pdf4-hero-copy p,
.pdf4-eyebrow,
.pdf4-hero-feature strong {
  font-family: var(--font-family);
}

.pdf4-eyebrow {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255,114,15,0.15);
  color: #ffb37d;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.pdf4-hero-copy h1 {
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  line-height: 1.05;
  margin: 0 0 1.25rem;
}

.pdf4-hero-copy p {
  max-width: 42rem;
  color: rgba(255,255,255,0.78);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.pdf4-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.pdf4-button-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
}

.pdf4-button-secondary:hover {
  background: rgba(255,255,255,0.08);
}

.pdf4-hero-panel {
  display: grid;
  place-items: center;
}

.pdf4-hero-panel-card {
  width: 100%;
  border-radius: 2rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 2rem;
  box-shadow: 0 40px 80px rgba(15,23,42,0.2);
}

.pdf4-hero-feature {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.pdf4-hero-feature strong {
  display: block;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.35rem;
}

.pdf4-hero-feature p {
  margin: 0;
  color: rgba(255,255,255,0.7);
}

.pdf4-stats,
.pdf4-products,
.pdf4-features,
.pdf4-testimonial,
.pdf4-logos,
.pdf4-cta,
.pdf4-newsletter {
  padding: 4rem 1.5rem;
}

.pdf4-section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.pdf4-stats-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pdf4-stat-card {
  text-align: center;
  background: #111827;
  border-radius: 1.5rem;
  padding: 2rem;
  color: #fff;
}

.pdf4-stat-icon {
  width: 3.25rem;
  height: 3.25rem;
  display: grid;
  place-items: center;
  border-radius: 1rem;
  background: rgba(255,114,15,0.16);
  margin: 0 auto 1rem;
  font-size: 1.35rem;
}

.pdf4-stat-value {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pdf4-stat-label {
  color: rgba(255,255,255,0.72);
}

.pdf4-section-title {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem;
}

.pdf4-section-title h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 1rem 0 0.75rem;
}

.pdf4-product-grid,
.pdf4-feature-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pdf4-product-card,
.pdf4-feature-card {
  background: #fff;
  border-radius: 1.5rem;
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px rgba(15,23,42,0.06);
}

.pdf4-product-card h3,
.pdf4-feature-card strong {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
}

.pdf4-product-card p,
.pdf4-feature-card p {
  margin: 0;
  color: rgba(0,0,0,0.65);
}

.pdf4-feature-card {
  text-align: left;
}

.pdf4-testimonial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.pdf4-testimonial-image {
  min-height: 420px;
  border-radius: 2rem;
  background: linear-gradient(180deg, rgba(255,114,15,0.12), rgba(15,23,42,0.9)), url('https://images.unsplash.com/photo-1498050108023-c5249f4df085?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-4.1.0&q=80&w=1080') center/cover no-repeat;
}

.pdf4-testimonial-copy {
  background: #fff;
  padding: 2.5rem;
  border-radius: 2rem;
  box-shadow: 0 25px 60px rgba(15,23,42,0.08);
}

.pdf4-quote {
  display: inline-block;
  font-size: 4rem;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 1rem;
}

.pdf4-testimonial-copy blockquote {
  margin: 0 0 2rem;
  font-size: 1.75rem;
  line-height: 1.4;
  color: rgba(15,23,42,0.92);
}

.pdf4-testimonial-copy footer {
  display: grid;
  gap: 0.25rem;
}

.pdf4-testimonial-copy footer strong {
  font-size: 1rem;
}

.pdf4-testimonial-copy footer span {
  color: var(--muted);
}

.pdf4-logo-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.pdf4-logo-item {
  background: #fff;
  border-radius: 1.5rem;
  padding: 1.5rem;
  display: grid;
  place-items: center;
  color: var(--foreground);
  font-weight: 600;
  border: 1px solid var(--border);
}

.pdf4-logo-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.pdf4-logo-stats div {
  background: #fff;
  border-radius: 1.5rem;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid var(--border);
}

.pdf4-logo-stats strong {
  display: block;
  font-size: 1.75rem;
  color: var(--accent);
}

.pdf4-cta {
  background: linear-gradient(135deg, #111827 0%, #0f172a 100%);
  color: #fff;
}

.pdf4-cta-panel {
  display: grid;
  gap: 2rem;
  padding: 3rem;
  border-radius: 2rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
}

.pdf4-cta h2 {
  margin: 1rem 0 1rem;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.pdf4-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.pdf4-button-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.45);
  color: #fff;
}

.pdf4-button-outline:hover {
  background: rgba(255,255,255,0.08);
}

.pdf4-cta-badges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.pdf4-cta-badges span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.85rem 1rem;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.88);
  font-size: 0.95rem;
}

.pdf4-newsletter-card {
  background: #fff;
  padding: 3rem;
  border-radius: 2rem;
  box-shadow: 0 30px 70px rgba(15,23,42,0.08);
}

.pdf4-newsletter-card h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin: 1rem 0 1rem;
}

.pdf4-newsletter-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  margin-top: 1.5rem;
}

.pdf4-input {
  width: 100%;
  min-height: 4rem;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  padding: 0 1.5rem;
  font-size: 1rem;
}

.pdf4-newsletter-note {
  margin-top: 1rem;
  color: var(--muted);
}

.pdf4-newsletter-card p {
  margin: 0;
  color: var(--muted);
}

.pdf4-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pdf4-sidebar {
  position: sticky;
  top: 6.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 20px 50px rgba(15,23,42,0.05);
}

.pdf4-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.pdf4-sidebar a {
  display: block;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--foreground);
}

.pdf4-sidebar a.active,
.pdf4-sidebar a:hover {
  background: #ffefdd;
  color: var(--accent-dark);
}

.pdf4-content {
  max-width: 800px;
}

.footer-main {
  background: #090b12;
  color: #d1d5db;
  padding: 4rem 1.5rem;
}

.footer-main a {
  color: #fbbf24;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

.footer-grid h4 {
  color: #fff;
  margin-bottom: 1rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 2rem;
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

@media (max-width: 980px) {
  .pdf4-menu {
    display: none;
  }

  .pdf4-hamburger {
    display: inline-flex;
  }
}

@media (max-width: 780px) {
  .pdf4-header-inner {
    padding: 1rem;
  }

  .pdf4-page-header {
    padding-top: 6.25rem;
  }

  .pdf4-grid-2,
  .pdf4-grid-3,
  .footer-grid,
  .pdf4-stats-grid,
  .pdf4-product-grid,
  .pdf4-feature-grid,
  .pdf4-testimonial-grid,
  .pdf4-logo-strip,
  .pdf4-logo-stats,
  .pdf4-cta-actions,
  .pdf4-newsletter-form {
    grid-template-columns: 1fr;
  }

  .pdf4-hero-inner,
  .pdf4-hero-panel-card,
  .pdf4-testimonial-image,
  .pdf4-testimonial-copy,
  .pdf4-cta-panel,
  .pdf4-newsletter-card {
    width: 100%;
  }

  .pdf4-hero {
    padding: 4rem 1rem 2rem;
  }

  .pdf4-hero-copy h1 {
    font-size: 2.75rem;
  }

  .pdf4-hero-panel {
    order: -1;
  }

  .pdf4-hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

/*   .pdf4-section,
  .pdf4-stats,
  .pdf4-products,
  .pdf4-features,
  .pdf4-testimonial,
  .pdf4-logos,
  .pdf4-cta,
  .pdf4-newsletter {
    padding: 2rem 1rem;
  } */
}
