/*
Theme Name: Onstaz Restored
Theme URI: https://www.onstaz.com/
Author: Onstaz
Description: Editable WordPress restoration of Onstaz's verified Squarespace homepage. Original assets, local Poppins fonts, accessible navigation and native FAQ blocks.
Version: 0.4.0
Requires at least: 6.3
Requires PHP: 8.0
Text Domain: onstaz-restored
License: GPL-2.0-or-later
*/
:root {
  --onstaz-gold: hsl(46.82 100% 50%);
  --onstaz-green: hsl(173.21 92.98% 22.35%);
  --onstaz-light: hsl(60 4.35% 95.49%);
  --onstaz-ink: #000;
  --onstaz-white: #fff;
  --onstaz-gutter: 4vw;
  --onstaz-max-width: 1860px;
}
* { box-sizing: border-box; }
html { font-size: 17px; scroll-padding-top: 145px; }
body { margin: 0; color: var(--onstaz-ink); background: #fff; font-family: Poppins, Arial, sans-serif; font-size: 1rem; font-weight: 300; line-height: 1.8; }
a { color: inherit; text-underline-offset: .22em; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; height: auto; vertical-align: middle; }
figure { margin: 0; }
strong, b { font-weight: 700; }
[hidden] { display: none !important; }
:where(a, button, summary, input, textarea, select):focus-visible { outline: 3px solid var(--onstaz-gold); outline-offset: 5px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; inset: 12px auto auto 12px; z-index: 10000; width: auto; height: auto; clip-path: none; padding: 12px 18px; background: #fff; color: #000; }
.site-header { position: fixed; z-index: 50; inset: 0 0 auto; width: 100%; color: #fff; padding: 1.5vw var(--onstaz-gutter); transition: background-color .2s ease; }
.site-header.is-scrolled, .site-header.is-menu-open, .onstaz-standard .site-header { background: #000; }
.admin-bar .site-header { top: 32px; }
.onstaz-header-inner { max-width: var(--onstaz-max-width); margin: 0 auto; display: flex; align-items: center; gap: 3vw; }
.onstaz-brand { flex: 0 0 auto; }
.onstaz-brand .custom-logo-link { display: inline-flex; align-items: center; }
.onstaz-brand .custom-logo { display: block; width: auto; height: 85px; max-width: 280px; object-fit: contain; }
.onstaz-navigation-panel { min-width: 0; display: flex; align-items: center; justify-content: space-between; flex: 1 1 auto; gap: 2.5vw; }
.onstaz-primary-navigation { margin-left: auto; margin-right: auto; }
.onstaz-menu { display: flex; align-items: center; gap: clamp(20px,2.3vw,42px); margin: 0; padding: 0; list-style: none; font-weight: 400; font-size: clamp(17px,1.7vw,24px); line-height: 1.8; }
.onstaz-menu > li { position: relative; display: flex; align-items: center; }
.onstaz-menu a { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; text-decoration: none; }
.onstaz-menu a:hover { text-decoration: underline; }
.onstaz-submenu-toggle { display: inline-grid; place-items: center; width: 28px; height: 44px; padding: 0; border: 0; background: transparent; color: inherit; }
.onstaz-submenu-toggle::after { content: ''; display: block; width: 7px; height: 7px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.onstaz-submenu-toggle[aria-expanded='true']::after { transform: rotate(225deg) translateY(-2px); }
.onstaz-menu .sub-menu { position: absolute; z-index: 60; left: -20px; top: 100%; min-width: 270px; margin: 0; padding: 14px 20px; background: #000; color: #fff; list-style: none; font-size: 17px; }
.onstaz-menu .sub-menu li { display: block; }
.site-header:not(.has-nav-js) .sub-menu { display: none; }
.site-header:not(.has-nav-js) .menu-item-has-children:hover > .sub-menu, .site-header:not(.has-nav-js) .menu-item-has-children:focus-within > .sub-menu { display: block; }
.onstaz-header-actions { display: flex; align-items: center; flex: 0 0 auto; gap: clamp(20px,2.4vw,36px); }
.onstaz-social-links { display: flex; align-items: center; justify-content: center; gap: 8px; }
.onstaz-social-links a { display: inline-grid; place-items: center; width: 44px; height: 44px; color: inherit; }
.onstaz-social-links svg { width: 22px; height: 22px; }
.onstaz-quote { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 1.2em 2.004em; background: var(--onstaz-gold); color: #000; text-decoration: none; font-weight: 500; font-size: 17px; letter-spacing: .02em; line-height: 1.2; white-space: nowrap; }
.onstaz-quote:hover { background: #fff; }
.onstaz-menu-toggle { display: none; }
.onstaz-home #main-content { width: 100%; max-width: none; margin: 0; padding: 0; }
.onstaz-home .entry-content { margin: 0; }
.onstaz-home .entry-content > *, .onstaz-homepage-content > * { margin-block: 0; }
.onstaz-home .wp-block-group { margin-block: 0; }
/* Classic core/group rendering adds an inner flow wrapper; keep layout children in the section's grid/flex context. */
.onstaz-home .wp-block-group > .wp-block-group__inner-container { display: contents; }
.onstaz-hero { position: relative; height: clamp(300px,34.5vw,650px); min-height: 0; overflow: hidden; background: #000; }
.onstaz-hero .onstaz-hero-image { width: 100%; height: 100%; margin: 0; }
.onstaz-hero .onstaz-hero-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.onstaz-intro { display: flex; flex-direction: column; align-items: center; position: relative; padding: clamp(32px,3.5vw,66px) var(--onstaz-gutter) 112px; text-align: center; background: var(--onstaz-light); }
.onstaz-intro::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 62px; background: var(--onstaz-green); clip-path: polygon(0 70%,8% 87%,16% 96%,24% 94%,32% 81%,40% 58%,48% 35%,56% 14%,64% 5%,72% 9%,80% 25%,88% 47%,96% 68%,100% 74%,100% 100%,0 100%); }
.onstaz-headline { max-width: 1700px; margin: 0; font-size: clamp(32px,calc(17px + 3.6vw),84px); font-weight: 700; line-height: 1.55; letter-spacing: 0; text-wrap: balance; }
.onstaz-intro-copy { max-width: 1700px; margin: 24px 0 32px; font-size: clamp(23px,calc(17px + 1.44vw),42px); font-weight: 500; line-height: 1.35; text-wrap: balance; }
.onstaz-buttons, .onstaz-service-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 24px; margin: 0; }
.onstaz-buttons .wp-block-button__link, .onstaz-service-buttons .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; min-height: 58px; padding: 1.2em 2.004em; background: var(--onstaz-gold); border: 0; border-radius: 999px; color: #000; font-size: 18px; font-weight: 500; line-height: 1.2; letter-spacing: .02em; text-decoration: none; }
.onstaz-buttons .onstaz-button-dark .wp-block-button__link { background: #000; color: #fff; }
.onstaz-buttons .wp-block-button__link:hover, .onstaz-service-buttons .wp-block-button__link:hover { filter: brightness(.93); }
.onstaz-services { padding: 28px var(--onstaz-gutter) clamp(55px,5vw,100px); background: var(--onstaz-green); color: #fff; text-align: center; }
.onstaz-services > * { max-width: var(--onstaz-max-width); margin-inline: auto; }
.onstaz-services h2, .onstaz-why h2 { margin: 0 0 24px; font-size: clamp(30px,calc(17px + 2.16vw),58px); font-weight: 700; line-height: 1.3; }
.onstaz-services-introduction { margin: 0 0 22px; font-size: clamp(18px,calc(17px + .48vw),27px); line-height: 1.8; }
mark.onstaz-accent { padding: 0; background: transparent; color: var(--onstaz-gold); }
.onstaz-service-buttons { max-width: 1100px; justify-content: space-around; margin-block: 34px 42px; }
.onstaz-services .wp-block-separator { width: 100%; max-width: var(--onstaz-max-width); height: 1px; border: 0; border-top: 1px solid rgba(255,255,255,.58); margin: 0 auto 38px; }
.onstaz-service-grid.wp-block-columns { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: start; gap: 4vw; margin: 0 auto; }
.onstaz-service-grid > .wp-block-column { min-width: 0; margin: 0; }
.onstaz-service h3 { margin: 0 0 25px; font-size: clamp(24px,calc(17px + 1.44vw),43px); font-weight: 500; line-height: 1.33; }
.onstaz-service figure { margin: 0 0 22px; }
.onstaz-service figure img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.onstaz-service p { margin: 0; font-size: clamp(18px,calc(17px + .48vw),26px); line-height: 1.8; }
.onstaz-service mark { box-decoration-break: clone; -webkit-box-decoration-break: clone; padding: 0 .09em; }
.onstaz-why { display: grid; grid-template-columns: minmax(180px,1fr) minmax(0,2fr); gap: 4vw; padding: clamp(44px,4vw,85px) var(--onstaz-gutter); background: #fff; color: #000; }
.onstaz-why-heading { padding-top: 10px; }
.onstaz-why h2 { text-align: left; }
.onstaz-why-questions { min-width: 0; }
.onstaz-why .wp-block-details { margin: 0; padding: 0; border-top: 1px solid #bbb; font-size: 17px; font-weight: 300; line-height: 1.8; }
.onstaz-why .wp-block-details:last-child { border-bottom: 1px solid #bbb; }
.onstaz-why summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 74px; padding: 22px 0; cursor: pointer; font-size: clamp(17px,calc(17px + .24vw),23px); font-weight: 500; line-height: 1.45; list-style: none; }
.onstaz-why summary::-webkit-details-marker { display: none; }
.onstaz-why summary::after { content: '+'; flex: 0 0 auto; width: 28px; text-align: center; font-size: 28px; font-weight: 300; }
.onstaz-why details[open] > summary::after { content: '−'; }
.onstaz-why details > p, .onstaz-why details > .wp-block-list { margin: 0 0 22px; }
.onstaz-why .wp-block-list { padding-left: 1.6em; }
.onstaz-why .wp-block-list li { margin-bottom: 12px; padding-left: .2em; }
.site-footer { padding: 48px var(--onstaz-gutter) 40px; background: var(--onstaz-gold); color: #000; }
.onstaz-footer-inner { max-width: var(--onstaz-max-width); margin: 0 auto; text-align: center; }
.site-footer p { margin: 0 0 14px; font-size: clamp(17px,calc(17px + .2vw),21px); font-weight: 300; }
.site-footer .onstaz-social-links { justify-content: center; }
.onstaz-standard .site-header { position: relative; top: auto; }
.onstaz-standard #main-content { max-width: 1400px; margin: 0 auto; padding: 52px var(--onstaz-gutter) 80px; overflow-wrap: anywhere; }
.onstaz-standard h1 { font-size: clamp(30px,4vw,58px); line-height: 1.3; }
.onstaz-standard h2 { font-size: clamp(25px,3vw,42px); line-height: 1.4; }
.onstaz-standard .entry-content > * { margin-bottom: 24px; }
@media (max-width: 1100px) and (min-width: 1000px) {
  .onstaz-brand .custom-logo { height: 64px; }
  .onstaz-menu { gap: 18px; font-size: 17px; }
  .onstaz-header-actions { gap: 12px; }
  .onstaz-quote { padding: 1.15em 1.5em; font-size: 15px; }
}
@media (max-width: 999px) {
  html { font-size: 16px; scroll-padding-top: 92px; }
  .site-header { padding: 12px 6vw; }
  .onstaz-header-inner { position: relative; min-height: 44px; justify-content: center; }
  .onstaz-brand .custom-logo { height: 30px; max-width: 160px; }
  .onstaz-menu-toggle { position: absolute; right: 0; display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; color: #fff; padding: 0; }
  .onstaz-menu-toggle-lines { display: block; width: 25px; height: 12px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; }
  .onstaz-menu-toggle[aria-expanded='true'] .onstaz-menu-toggle-lines { height: 0; border-bottom: 0; transform: rotate(45deg); }
  .onstaz-menu-toggle[aria-expanded='true'] .onstaz-menu-toggle-lines::after { content: ''; display: block; border-top: 1px solid currentColor; transform: rotate(90deg); }
  .onstaz-navigation-panel { position: absolute; left: -6vw; right: -6vw; top: calc(100% + 12px); display: flex; flex-direction: column; align-items: stretch; gap: 18px; padding: 24px 6vw 30px; max-height: calc(100dvh - 90px); overflow-y: auto; background: #000; }
  .onstaz-primary-navigation { margin: 0; }
  .onstaz-menu { display: block; width: 100%; font-size: 23px; }
  .onstaz-menu > li { flex-wrap: wrap; justify-content: space-between; padding: 4px 0; }
  .onstaz-submenu-toggle { width: 44px; }
  .onstaz-menu .sub-menu { position: static; flex-basis: 100%; width: 100%; min-width: 0; padding: 8px 0 8px 18px; font-size: 17px; }
  .onstaz-header-actions { justify-content: space-between; gap: 20px; }
  .onstaz-quote { min-height: 52px; padding: 1.2em 1.7em; font-size: 16px; }
  .onstaz-hero { height: clamp(280px,44vw,440px); }
  .onstaz-intro { padding: 38px 6vw 96px; }
  .onstaz-headline { font-size: clamp(31px,5.7vw,56px); line-height: 1.45; }
  .onstaz-intro-copy { font-size: clamp(22px,3.6vw,31px); margin-block: 24px 28px; }
  .onstaz-services { padding-inline: 6vw; }
  .onstaz-service-grid.wp-block-columns { gap: 3vw; }
  .onstaz-service h3 { font-size: 26px; }
  .onstaz-service p { font-size: 18px; }
  .onstaz-why { padding-inline: 6vw; }
}
@media (max-width: 767px) {
  :root { --onstaz-gutter: 6vw; }
  .admin-bar .site-header { top: 46px; }
  .onstaz-headline { font-size: clamp(30px,6.9vw,48px); }
  .onstaz-service-buttons { display: flex; flex-direction: column; align-items: stretch; gap: 20px; margin-block: 28px 34px; }
  .onstaz-service-buttons .wp-block-button, .onstaz-service-buttons .wp-block-button__link { width: 100%; }
  .onstaz-service-grid.wp-block-columns { grid-template-columns: minmax(0,1fr); gap: 44px; }
  .onstaz-service h3 { margin-bottom: 18px; font-size: 29px; }
  .onstaz-service p { font-size: 20px; }
  .onstaz-services h2, .onstaz-why h2 { font-size: 34px; }
  .onstaz-services-introduction { font-size: 20px; }
  .onstaz-why { grid-template-columns: minmax(0,1fr); gap: 18px; }
  .onstaz-why h2 { margin-bottom: 0; }
  .onstaz-why summary { font-size: 18px; }
  .site-footer { padding-block: 35px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
