/*
Theme Name: Primo Studio
Theme URI: https://primostudio.io
Author: Primo Studio LLC
Author URI: https://primostudio.io
Description: A sharp, compact native WordPress block theme for Primo Studio LLC.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: primo-studio
Tags: block-patterns, full-site-editing, custom-logo, wide-blocks
*/

:root {
  --ps-ink: #0a1930;
  --ps-navy: #0b2e6d;
  --ps-blue: #1769e0;
  --ps-cyan: #18bdeb;
  --ps-green: #25c980;
  --ps-mist: #eef5fa;
  --ps-cloud: #f7fafc;
  --ps-line: rgba(10,25,48,.12);
  --ps-shadow: 0 18px 50px rgba(10,25,48,.10);
  --ps-radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
::selection { background: rgba(37,201,128,.25); color: var(--ps-ink); }

.wp-site-blocks { padding-top: 0; padding-bottom: 0; }
.wp-site-blocks > * { margin-block-start: 0; }

.ps-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 !important;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(10,25,48,.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.admin-bar .ps-site-header { top: 32px; }
.ps-header-inner { min-height: 78px; padding: 10px 0; }
.ps-site-header .custom-logo-link { display: inline-flex; align-items: center; }
.ps-site-header .custom-logo { width: min(260px, 42vw); height: auto; }
.ps-site-header .wp-block-navigation-item__content { color: var(--ps-ink); text-decoration: none; }
.ps-site-header .wp-block-navigation-item__content:hover { color: var(--ps-blue); }
.ps-site-header .wp-block-navigation__responsive-container.is-menu-open { padding: 28px; background: #fff; }
.ps-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 18px; }

.ps-main { min-height: 55vh; }
.ps-section { padding-top: clamp(54px, 7vw, 92px); padding-bottom: clamp(54px, 7vw, 92px); }
.ps-section-tight { padding-top: clamp(36px, 5vw, 62px); padding-bottom: clamp(36px, 5vw, 62px); }
.ps-page-hero { padding-top: clamp(58px, 8vw, 100px); padding-bottom: clamp(44px, 6vw, 72px); }
.ps-page-hero p { max-width: 760px; }

.ps-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px !important;
  color: var(--ps-blue);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1.3;
  text-transform: uppercase;
}
.ps-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg,var(--ps-blue),var(--ps-green));
  border-radius: 99px;
}
.ps-lede { max-width: 760px; color: #40506a; font-size: clamp(1.08rem, 1.6vw, 1.3rem); line-height: 1.65; }
.ps-kicker { color: #53627a; font-size: .95rem; }

.ps-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(690px, calc(100vh - 78px));
  padding-top: clamp(64px, 9vw, 120px);
  padding-bottom: clamp(64px, 9vw, 110px);
  background:
    radial-gradient(circle at 12% 16%, rgba(24,189,235,.13), transparent 28%),
    radial-gradient(circle at 88% 26%, rgba(37,201,128,.14), transparent 24%),
    linear-gradient(145deg,#ffffff 0%,#f7fbff 55%,#eef9f6 100%);
}
.ps-hero::before,
.ps-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
.ps-hero::before {
  right: -100px;
  top: -150px;
  width: 520px;
  height: 520px;
  opacity: .6;
  background: conic-gradient(from 210deg, transparent, rgba(23,105,224,.11), transparent 32%, rgba(37,201,128,.12), transparent 68%);
  clip-path: polygon(50% 0,100% 30%,88% 88%,34% 100%,0 57%,14% 14%);
  filter: blur(.2px);
}
.ps-hero::after {
  left: 48%;
  bottom: -300px;
  width: 600px;
  height: 600px;
  border: 1px solid rgba(23,105,224,.12);
  transform: rotate(32deg);
  clip-path: polygon(50% 0,100% 50%,50% 100%,0 50%);
}
.ps-hero h1 { max-width: 790px; margin-bottom: 20px; font-size: clamp(2.8rem, 6.5vw, 5.35rem); }
.ps-hero .ps-lede { max-width: 720px; }
.ps-hero-card {
  position: relative;
  overflow: hidden;
  padding: clamp(24px,3vw,36px) !important;
  color: white;
  background: linear-gradient(145deg,#081a35,#0b2e6d 65%,#0b4b66);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(7,26,54,.24);
}
.ps-hero-card::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -90px;
  width: 230px;
  height: 230px;
  background: linear-gradient(135deg,rgba(24,189,235,.6),rgba(37,201,128,.4));
  clip-path: polygon(50% 0,100% 31%,82% 100%,15% 84%,0 25%);
  opacity: .35;
}
.ps-hero-card h2,
.ps-hero-card h3,
.ps-hero-card p { color: white; }
.ps-metric { padding: 16px 0; border-top: 1px solid rgba(255,255,255,.14); }
.ps-metric:first-of-type { border-top: 0; }
.ps-metric strong { display: block; font-size: clamp(1.6rem,2vw,2.2rem); line-height: 1; }
.ps-metric span { color: rgba(255,255,255,.72); font-size: .86rem; }

.ps-proof-strip {
  padding: 22px 0;
  background: var(--ps-ink);
  color: white;
}
.ps-proof-strip p { color: rgba(255,255,255,.73); }
.ps-proof-strip strong { color: white; }
.ps-name-cloud { gap: 10px 20px !important; }
.ps-name-cloud span,
.ps-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 13px;
  color: #32425c;
  background: white;
  border: 1px solid rgba(10,25,48,.11);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(10,25,48,.05);
  font-size: .82rem;
  font-weight: 700;
}

.ps-card {
  height: 100%;
  padding: clamp(22px,3vw,32px) !important;
  background: white;
  border: 1px solid rgba(10,25,48,.10);
  border-radius: var(--ps-radius);
  box-shadow: 0 8px 30px rgba(10,25,48,.05);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.ps-card:hover { transform: translateY(-4px); border-color: rgba(23,105,224,.24); box-shadow: var(--ps-shadow); }
.ps-card h3 { margin-top: 10px; margin-bottom: 8px; font-size: 1.45rem; }
.ps-card p { color: #526079; }
.ps-card-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--ps-blue);
  background: linear-gradient(145deg,rgba(23,105,224,.12),rgba(37,201,128,.15));
  border-radius: 13px;
  font-size: 1.05rem;
  font-weight: 850;
}
.ps-card-link a { font-weight: 750; text-decoration: none; }
.ps-grid-3 > .wp-block-column { display: flex; }
.ps-grid-3 > .wp-block-column > * { width: 100%; }

.ps-dark-section {
  position: relative;
  overflow: hidden;
  color: white;
  background: linear-gradient(135deg,#071a36 0%,#0b2e6d 62%,#0a4a67 100%);
}
.ps-dark-section h1,
.ps-dark-section h2,
.ps-dark-section h3,
.ps-dark-section p { color: white; }
.ps-dark-section .ps-lede { color: rgba(255,255,255,.72); }
.ps-dark-section::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -180px;
  width: 440px;
  height: 440px;
  opacity: .18;
  background: linear-gradient(135deg,var(--ps-cyan),var(--ps-green));
  clip-path: polygon(50% 0,100% 34%,82% 100%,16% 84%,0 26%);
}

.ps-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(30px,5vw,58px) !important;
  background: linear-gradient(120deg,#eef6ff,#eefbf6);
  border: 1px solid rgba(23,105,224,.13);
  border-radius: 30px;
}
.ps-cta::after {
  content:"";
  position:absolute;
  top:-110px;
  right:-80px;
  width:230px;
  height:230px;
  background:linear-gradient(135deg,rgba(23,105,224,.25),rgba(37,201,128,.22));
  clip-path:polygon(50% 0,100% 32%,85% 100%,12% 84%,0 28%);
}

.ps-stat-row { gap: 14px !important; }
.ps-stat {
  min-width: 150px;
  padding: 22px !important;
  background: var(--ps-cloud);
  border: 1px solid rgba(10,25,48,.08);
  border-radius: 18px;
}
.ps-stat strong { display: block; color: var(--ps-blue); font-size: clamp(1.65rem,3vw,2.5rem); line-height: 1; }
.ps-stat span { display: block; margin-top: 8px; color: #58677e; font-size: .85rem; line-height: 1.35; }

.ps-case {
  padding: clamp(24px,4vw,40px) !important;
  border-top: 1px solid rgba(10,25,48,.12);
}
.ps-case:first-child { border-top: 0; }
.ps-case-number { color: var(--ps-green); font-weight: 850; letter-spacing: .1em; }
.ps-case h3 { font-size: clamp(1.5rem,2.5vw,2.25rem); }
.ps-result { padding-left: 16px; border-left: 3px solid var(--ps-green); color: #31445d; font-weight: 650; }

.ps-price {
  position: relative;
  overflow: hidden;
}
.ps-price-value { margin: 8px 0 14px; color: var(--ps-blue); font-size: clamp(1.7rem,3vw,2.45rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.1; }
.ps-price-featured { border-color: rgba(23,105,224,.32); box-shadow: 0 20px 55px rgba(23,105,224,.12); }
.ps-price-featured::before {
  content: "Most flexible";
  position: absolute;
  top: 14px;
  right: -34px;
  width: 140px;
  padding: 5px;
  color: white;
  background: var(--ps-blue);
  transform: rotate(38deg);
  text-align: center;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.ps-list { padding-left: 1.15rem; }
.ps-list li { margin-bottom: .55rem; }
.ps-list li::marker { color: var(--ps-green); }

.ps-contact-grid { align-items: stretch !important; }
.ps-contact-panel { height: 100%; padding: clamp(24px,4vw,40px) !important; border-radius: 28px; }
.ps-contact-panel-dark { color:white; background:linear-gradient(145deg,#071a36,#0b2e6d); }
.ps-contact-panel-dark h2,.ps-contact-panel-dark h3,.ps-contact-panel-dark p,.ps-contact-panel-dark a { color:white; }

.ps-contact-form { display: grid; gap: 18px; }
.ps-contact-form .ps-field { display: grid; gap: 7px; }
.ps-contact-form label { color: var(--ps-ink); font-size: .86rem; font-weight: 750; }
.ps-contact-form input,
.ps-contact-form select,
.ps-contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--ps-ink);
  background: #fff;
  border: 1px solid rgba(10,25,48,.18);
  border-radius: 12px;
  font: inherit;
}
.ps-contact-form textarea { min-height: 150px; resize: vertical; }
.ps-contact-form input:focus,
.ps-contact-form select:focus,
.ps-contact-form textarea:focus { outline: 3px solid rgba(23,105,224,.16); border-color: var(--ps-blue); }
.ps-contact-form button {
  justify-self: start;
  min-height: 48px;
  padding: 12px 22px;
  color: white;
  background: var(--ps-blue);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}
.ps-contact-form button:hover { background: var(--ps-navy); }
.ps-honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.ps-form-status { margin-bottom: 18px; padding: 14px 16px; border-radius: 12px; font-weight: 650; }
.ps-form-status.success { color:#0a603e; background:#e8f8f0; border:1px solid #b8e7d1; }
.ps-form-status.error { color:#8a2430; background:#fff0f1; border:1px solid #f0c1c6; }
.ps-form-note { color:#68768c; font-size:.8rem; }

.wp-block-button.is-style-outline > .wp-block-button__link { color: var(--ps-navy); background: transparent; border-color: rgba(11,46,109,.35); }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { color: white; background: var(--ps-navy); border-color: var(--ps-navy); }
.ps-dark-section .wp-block-button.is-style-outline > .wp-block-button__link { color: white; border-color: rgba(255,255,255,.45); }
.ps-dark-section .wp-block-button.is-style-outline > .wp-block-button__link:hover { color: var(--ps-ink); background: white; }

.ps-site-footer { padding: 0 !important; color: rgba(255,255,255,.75); background: #071529; }
.ps-footer-inner { padding-top: 46px; padding-bottom: 30px; }
.ps-site-footer h3,.ps-site-footer p,.ps-site-footer a { color: inherit; }
.ps-site-footer a:hover { color: white; }
.ps-footer-brand { color: white; font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; }
.ps-footer-bottom { padding-top: 20px; border-top: 1px solid rgba(255,255,255,.11); font-size: .78rem; }

.ps-404 { min-height: 58vh; display: grid; place-content: center; text-align: center; }
.ps-post-meta { color:#66758b; font-size:.86rem; }

@media (max-width: 900px) {
  .ps-hero { min-height: auto; }
  .ps-hero .wp-block-columns { gap: 34px; }
  .ps-grid-3 { flex-wrap: wrap !important; }
  .ps-grid-3 > .wp-block-column { flex-basis: calc(50% - 12px) !important; }
}
@media (max-width: 782px) {
  .admin-bar .ps-site-header { top: 46px; }
  .ps-header-inner { min-height: 68px; }
  .ps-site-header .custom-logo { width: min(215px, 55vw); }
  .ps-grid-3 > .wp-block-column { flex-basis: 100% !important; }
  .ps-stat { min-width: calc(50% - 8px); }
  .ps-proof-strip { padding: 18px 0; }
  .ps-name-cloud { justify-content: flex-start !important; }
}
@media (max-width: 520px) {
  .ps-stat { min-width: 100%; }
  .wp-block-buttons { width:100%; }
  .wp-block-button { flex:1 1 auto; }
  .wp-block-button__link { width:100%; text-align:center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
