/*
Theme Name: PyleDesignz Studio
Theme URI: https://pyledesignz.com
Author: PyleDesignz
Author URI: https://pyledesignz.com
Description: A fast, modern block theme for PyleDesignz—growth marketing, websites, and custom software.
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 8.1
Version: 0.1.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pyledesignz
*/

:root {
  --pd-ink: #11140f;
  --pd-ink-soft: #242820;
  --pd-cream: #f5f0e7;
  --pd-paper: #fffdf8;
  --pd-copper: #c86f32;
  --pd-copper-dark: #8b421e;
  --pd-moss: #b7d36b;
  --pd-blue: #526cff;
  --pd-line: rgba(17, 20, 15, 0.14);
  --pd-muted: #656a60;
  --pd-radius: 24px;
  --pd-shadow: 0 24px 70px rgba(31, 27, 20, 0.13);
  --pd-wrap: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--pd-cream);
  color: var(--pd-ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.admin-bar .pd-header { top: 32px; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.screen-reader-text:focus {
  position: fixed !important;
  z-index: 9999;
  top: 12px; left: 12px;
  width: auto; height: auto;
  padding: 12px 18px;
  clip: auto;
  background: var(--pd-paper);
  border-radius: 8px;
}

.pd-wrap { width: var(--pd-wrap); margin-inline: auto; }
.pd-section { padding: clamp(80px, 10vw, 140px) 0; }
.pd-section--tight { padding: clamp(58px, 7vw, 90px) 0; }
.pd-section--ink { background: var(--pd-ink); color: var(--pd-paper); }
.pd-section--paper { background: var(--pd-paper); }

.pd-kicker {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 18px;
  color: var(--pd-copper-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.pd-kicker::before {
  width: 28px;
  height: 2px;
  background: currentColor;
  content: "";
}

.pd-section--ink .pd-kicker { color: var(--pd-moss); }

.pd-display,
.pd-heading,
.pd-card h3,
.pd-product h3,
.pd-case-title,
.pd-contact h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.pd-display { max-width: 820px; font-size: clamp(3.3rem, 7.6vw, 7.4rem); }
.pd-heading { max-width: 780px; font-size: clamp(2.55rem, 5vw, 4.8rem); }
.pd-lead { max-width: 720px; margin: 26px 0 0; color: var(--pd-muted); font-size: clamp(1.08rem, 2vw, 1.32rem); }
.pd-section--ink .pd-lead { color: rgba(255, 253, 248, 0.68); }

.pd-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border: 1px solid var(--pd-ink);
  border-radius: 999px;
  background: var(--pd-ink);
  color: var(--pd-paper);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.pd-button:hover { transform: translateY(-2px); background: var(--pd-copper); border-color: var(--pd-copper); }
.pd-button:focus-visible, .pd-nav a:focus-visible, .pd-menu-toggle:focus-visible { outline: 3px solid var(--pd-blue); outline-offset: 4px; }
.pd-button--ghost { background: transparent; color: var(--pd-ink); }
.pd-button--ghost:hover { color: var(--pd-paper); }
.pd-button--light { border-color: var(--pd-paper); background: var(--pd-paper); color: var(--pd-ink); }
.pd-button--light:hover { background: var(--pd-moss); border-color: var(--pd-moss); color: var(--pd-ink); }

/* Header */
.pd-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid var(--pd-line);
  background: rgba(245, 240, 231, 0.9);
  backdrop-filter: blur(18px);
}

.pd-header-inner {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.pd-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.pd-brand-mark {
  display: grid;
  width: 42px; height: 42px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  background: var(--pd-ink);
  color: var(--pd-paper);
  font-family: Georgia, serif;
  font-size: 0.83rem;
  letter-spacing: -0.08em;
  box-shadow: inset 0 0 0 5px rgba(200,111,50,.16);
}

.pd-brand em { color: var(--pd-copper); font-style: normal; }
.pd-nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 36px); }
.pd-nav a { font-size: 0.82rem; font-weight: 800; letter-spacing: 0.04em; text-decoration: none; }
.pd-nav a:not(.pd-button):hover { color: var(--pd-copper-dark); }
.pd-menu-toggle { display: none; border: 0; background: transparent; font: inherit; font-weight: 800; }

/* Hero */
.pd-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(78px, 10vw, 144px) 0 72px;
  background:
    radial-gradient(circle at 88% 12%, rgba(82,108,255,.15), transparent 25%),
    radial-gradient(circle at 3% 94%, rgba(200,111,50,.16), transparent 28%);
}

.pd-hero::after {
  position: absolute;
  inset: 0;
  opacity: .24;
  background-image: radial-gradient(rgba(17,20,15,.25) .7px, transparent .7px);
  background-size: 19px 19px;
  content: "";
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.pd-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); gap: clamp(44px, 7vw, 100px); align-items: end; }
.pd-hero-copy .pd-kicker { margin-bottom: 26px; }
.pd-hero-copy p { max-width: 700px; margin: 32px 0 0; color: var(--pd-muted); font-size: clamp(1.1rem, 2vw, 1.34rem); }
.pd-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }

.pd-system-card {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 30px;
  background: var(--pd-ink);
  color: var(--pd-paper);
  box-shadow: var(--pd-shadow);
}

.pd-system-card::before { position: absolute; inset: -80px -70px auto auto; width: 190px; height: 190px; border-radius: 50%; background: var(--pd-blue); opacity: .22; content: ""; filter: blur(3px); }
.pd-system-card > * { position: relative; z-index: 1; }
.pd-system-card small { color: var(--pd-moss); font-size: .7rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.pd-system-card h2 { max-width: 360px; margin: 15px 0 28px; font-family: Georgia, serif; font-size: clamp(2rem, 3vw, 3rem); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.pd-system-step { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 17px 0; border-top: 1px solid rgba(255,255,255,.13); }
.pd-system-step span:first-child { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: rgba(183,211,107,.13); color: var(--pd-moss); font-size: .73rem; font-weight: 900; }
.pd-system-step strong { font-size: .94rem; }
.pd-system-step em { color: rgba(255,255,255,.42); font-size: .72rem; font-style: normal; text-transform: uppercase; }

.pd-proof-strip { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 78px; border-block: 1px solid var(--pd-line); }
.pd-proof-strip div { padding: 22px 18px; border-right: 1px solid var(--pd-line); color: var(--pd-muted); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-align: center; text-transform: uppercase; }
.pd-proof-strip div:last-child { border-right: 0; }

/* Services */
.pd-section-head { display: flex; justify-content: space-between; gap: 50px; align-items: end; margin-bottom: 56px; }
.pd-section-head > p { max-width: 380px; margin: 0 0 5px; color: var(--pd-muted); }
.pd-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pd-card { display: flex; min-height: 390px; flex-direction: column; padding: clamp(26px, 3vw, 38px); border: 1px solid var(--pd-line); border-radius: var(--pd-radius); background: rgba(255,253,248,.66); transition: transform 180ms ease, box-shadow 180ms ease; }
.pd-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(31,27,20,.09); }
.pd-card-number { display: grid; width: 44px; height: 44px; place-items: center; margin-bottom: auto; border: 1px solid var(--pd-line); border-radius: 50%; color: var(--pd-copper-dark); font-size: .75rem; font-weight: 900; }
.pd-card h3 { margin-top: 52px; font-size: clamp(2rem, 3vw, 2.8rem); }
.pd-card p { margin: 20px 0 0; color: var(--pd-muted); }
.pd-card ul { display: flex; flex-wrap: wrap; gap: 7px; margin: 24px 0 0; padding: 0; list-style: none; }
.pd-card li { padding: 6px 9px; border: 1px solid var(--pd-line); border-radius: 999px; font-size: .7rem; font-weight: 700; }

/* Case study */
.pd-case { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(44px, 8vw, 120px); align-items: center; }
.pd-case-title { max-width: 560px; margin-top: 20px; font-size: clamp(3rem, 6vw, 6rem); }
.pd-case-copy > p { max-width: 550px; margin: 28px 0 0; color: rgba(255,253,248,.65); font-size: 1.08rem; }
.pd-case-note { display: inline-flex; margin-top: 28px; color: var(--pd-moss); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.pd-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pd-metric { min-height: 210px; padding: 28px; border: 1px solid rgba(255,255,255,.13); border-radius: var(--pd-radius); background: rgba(255,255,255,.04); }
.pd-metric--wide { grid-column: span 2; min-height: 160px; }
.pd-metric strong { display: block; color: var(--pd-paper); font-family: Georgia, serif; font-size: clamp(3rem, 5vw, 5.4rem); font-weight: 500; letter-spacing: -.05em; line-height: .95; }
.pd-metric span { display: block; margin-top: 16px; color: rgba(255,255,255,.54); font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

/* Products */
.pd-products { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; margin-top: 58px; }
.pd-product { position: relative; overflow: hidden; min-height: 620px; padding: clamp(26px, 4vw, 44px); border: 1px solid var(--pd-line); border-radius: 30px; background: var(--pd-paper); }
.pd-product--blue { background: #eef1ff; }
.pd-product--green { background: #eef0e2; }
.pd-product-top { position: relative; z-index: 2; max-width: 520px; }
.pd-product-logo { width: auto; max-width: 145px; max-height: 48px; margin-bottom: 28px; object-fit: contain; object-position: left center; }
.pd-product h3 { font-size: clamp(2.5rem, 4.5vw, 4.4rem); }
.pd-product p { max-width: 540px; margin: 22px 0 0; color: var(--pd-muted); }
.pd-product-link { display: inline-flex; margin-top: 26px; color: var(--pd-ink); font-size: .78rem; font-weight: 900; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.pd-product-link:hover { color: var(--pd-copper-dark); }
.pd-product-visual { position: absolute; right: -10%; bottom: -7%; width: 90%; transform: rotate(-2deg); filter: drop-shadow(0 24px 36px rgba(30,35,70,.18)); }
.pd-product--green .pd-product-visual { right: -18%; bottom: -5%; width: 112%; border-radius: 22px; opacity: .92; transform: rotate(1deg); }

/* Founder and process */
.pd-founder { display: grid; grid-template-columns: 380px 1fr; gap: clamp(44px, 8vw, 120px); align-items: center; }
.pd-founder-photo-wrap { position: relative; }
.pd-founder-photo { width: 100%; aspect-ratio: 4 / 5; border-radius: 220px 220px 28px 28px; object-fit: cover; filter: saturate(.8) contrast(1.03); }
.pd-founder-stamp { position: absolute; right: -18px; bottom: 30px; display: grid; width: 110px; height: 110px; place-items: center; padding: 18px; border: 7px solid var(--pd-paper); border-radius: 50%; background: var(--pd-copper); color: white; font-size: .67rem; font-weight: 900; letter-spacing: .08em; line-height: 1.25; text-align: center; text-transform: uppercase; transform: rotate(7deg); }
.pd-founder-copy p { max-width: 650px; color: var(--pd-muted); font-size: 1.08rem; }
.pd-signoff { margin-top: 30px !important; color: var(--pd-ink) !important; font-family: Georgia, serif; font-size: 1.5rem !important; font-style: italic; }

.pd-process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 64px; border-top: 1px solid var(--pd-line); }
.pd-process-step { position: relative; padding: 34px 30px 0 0; }
.pd-process-step::before { position: absolute; top: -6px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--pd-copper); content: ""; }
.pd-process-step span { color: var(--pd-copper-dark); font-size: .7rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.pd-process-step h3 { margin: 15px 0 0; font-family: Georgia, serif; font-size: 1.7rem; font-weight: 500; letter-spacing: -.03em; }
.pd-process-step p { margin: 12px 0 0; color: var(--pd-muted); font-size: .9rem; }

/* Contact */
.pd-contact { position: relative; overflow: hidden; padding: clamp(70px, 9vw, 120px); border-radius: 36px; background: var(--pd-copper); color: white; }
.pd-contact::after { position: absolute; right: -120px; bottom: -170px; width: 430px; height: 430px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; box-shadow: 0 0 0 55px rgba(255,255,255,.05), 0 0 0 110px rgba(255,255,255,.04); content: ""; }
.pd-contact > * { position: relative; z-index: 1; }
.pd-contact h2 { max-width: 800px; font-size: clamp(3rem, 7vw, 6.8rem); }
.pd-contact p { max-width: 630px; margin: 28px 0 0; color: rgba(255,255,255,.82); font-size: 1.12rem; }
.pd-contact .pd-actions { margin-top: 34px; }
.pd-contact .pd-button { border-color: var(--pd-ink); }
.pd-contact .pd-button--ghost { border-color: rgba(255,255,255,.65); color: white; }

/* Footer */
.pd-footer { padding: 44px 0; background: var(--pd-ink); color: var(--pd-paper); }
.pd-footer-inner { display: flex; justify-content: space-between; gap: 28px; align-items: center; }
.pd-footer p { margin: 0; color: rgba(255,255,255,.52); font-size: .78rem; }
.pd-footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.pd-footer-links a { color: rgba(255,255,255,.72); font-size: .75rem; font-weight: 700; text-decoration: none; }
.pd-footer-links a:hover { color: var(--pd-moss); }

@media (max-width: 980px) {
  body.admin-bar .pd-header { top: 46px; }
  .pd-menu-toggle { display: inline-flex; padding: 10px; }
  .pd-nav { position: absolute; top: 81px; right: 20px; left: 20px; display: none; flex-direction: column; align-items: stretch; padding: 22px; border: 1px solid var(--pd-line); border-radius: 20px; background: var(--pd-paper); box-shadow: var(--pd-shadow); }
  .pd-nav.is-open { display: flex; }
  .pd-nav a { padding: 7px 5px; }
  .pd-nav .pd-button { margin-top: 6px; }
  .pd-hero-grid, .pd-case, .pd-founder { grid-template-columns: 1fr; }
  .pd-system-card { max-width: 620px; }
  .pd-cards { grid-template-columns: 1fr; }
  .pd-card { min-height: 310px; }
  .pd-products { grid-template-columns: 1fr; }
  .pd-founder { max-width: 740px; }
  .pd-founder-photo-wrap { max-width: 360px; }
  .pd-process-grid { grid-template-columns: 1fr 1fr; row-gap: 42px; }
}

@media (max-width: 680px) {
  :root { --pd-wrap: min(100% - 28px, 1180px); }
  body { font-size: 16px; }
  .pd-header-inner { min-height: 72px; }
  .pd-nav { top: 72px; }
  .pd-brand-mark { width: 38px; height: 38px; }
  .pd-hero { padding-top: 64px; }
  .pd-display { font-size: clamp(3.05rem, 15vw, 4.7rem); }
  .pd-proof-strip { grid-template-columns: 1fr 1fr; }
  .pd-proof-strip div:nth-child(2) { border-right: 0; }
  .pd-proof-strip div:nth-child(-n+2) { border-bottom: 1px solid var(--pd-line); }
  .pd-section-head { display: block; }
  .pd-section-head > p { margin-top: 22px; }
  .pd-metrics { grid-template-columns: 1fr; }
  .pd-metric--wide { grid-column: auto; }
  .pd-product { min-height: 540px; }
  .pd-product-visual { width: 112%; }
  .pd-process-grid { grid-template-columns: 1fr; border-top: 0; }
  .pd-process-step { padding: 24px 0 0 24px; border-left: 1px solid var(--pd-line); }
  .pd-process-step::before { top: 28px; left: -6px; }
  .pd-contact { padding: 58px 28px; border-radius: 24px; }
  .pd-footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
