/*
Theme Name: US Tech Designers & Publishers
Theme URI: https://ustechdnp.com
Author: US Tech Designers & Publishers
Description: Custom theme for US Tech Designers & Publishers — book publishing, web design, development, UI/UX, web apps and animation. Activating it creates all pages (Home, About, Services, Packages, Contact, Privacy Policy, Terms & Conditions, Refund Policy) and menus.
Version: 1.0.0
Requires at least: 5.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: ustech
*/

:root {
  --navy: #0E1A3D;
  --navy-2: #16264F;
  --blue: #2D6BFF;
  --blue-deep: #1F4FD1;
  --amber: #FFB020;
  --amber-dark: #E89A00;
  --sky: #E8F0FF;
  --sky-2: #C7D6FF;
  --white: #FFFFFF;
  --ink: #0E1A3D;
  --ink-soft: #46527A;
  --line: #DCE3F2;
  --font-display: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Outfit', 'Segoe UI', system-ui, sans-serif;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;
  --container: 1200px;
  --shadow: 0 20px 50px rgba(14, 26, 61, 0.14);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--blue-deep); }
a:hover { color: var(--navy); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--amber); color: var(--navy); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 16px; }
.icon { flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; text-decoration: none;
  cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: .95rem; }
.btn--block { width: 100%; }
.btn--amber { background: var(--amber); color: var(--navy); }
.btn--amber:hover { background: var(--amber-dark); color: var(--navy); }
.btn--blue { background: var(--blue-deep); color: var(--white); }
.btn--blue:hover { background: var(--navy); color: var(--white); }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--ghost-light { border-color: rgba(255,255,255,.5); color: var(--white); background: transparent; }
.btn--ghost-light:hover { border-color: var(--white); background: rgba(255,255,255,.08); color: var(--white); }
.link-strong { font-family: var(--font-display); font-weight: 600; color: var(--blue-deep); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---------- Brand lockup ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; letter-spacing: -0.03em; color: var(--navy); }
.brand__name .dot { color: var(--amber); }
.brand__sub { font-family: var(--font-display); font-weight: 600; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--navy); margin-top: 5px; }
.brand--reverse .brand__name, .brand--reverse .brand__sub { color: var(--white); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(14,26,61,.06); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; }
.site-header__logo { text-decoration: none; display: inline-flex; }
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.site-nav .menu a { color: var(--navy); text-decoration: none; font-weight: 500; padding: 8px 0; border-bottom: 2px solid transparent; }
.site-nav .menu a:hover, .site-nav .current-menu-item > a { border-color: var(--amber); }
.site-nav .sub-menu { display: none; }
.site-nav__actions { display: flex; align-items: center; gap: 18px; }
.nav-phone { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: .95rem; }
.nav-phone .icon { color: var(--blue-deep); width: 20px; height: 20px; }
.nav-toggle { display: none; width: 48px; height: 48px; border: 0; border-radius: 12px; background: var(--sky); cursor: pointer; position: relative; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { position: absolute; left: 13px; width: 22px; height: 2.5px; background: var(--navy); border-radius: 2px; content: ''; transition: transform .2s, opacity .2s; }
.nav-toggle__bars { top: 23px; }
.nav-toggle__bars::before { left: 0; top: -7px; }
.nav-toggle__bars::after { left: 0; top: 7px; }
.nav-open .nav-toggle__bars { background: transparent; }
.nav-open .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .site-nav { position: fixed; inset: 80px 0 auto 0; flex-direction: column; align-items: stretch; gap: 20px; padding: 24px; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; max-height: calc(100vh - 80px); overflow-y: auto; }
  .nav-open .site-nav { display: flex; }
  .site-nav .menu { flex-direction: column; gap: 4px; }
  .site-nav .menu a { display: block; padding: 12px 0; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .site-nav__actions { flex-direction: column; align-items: stretch; }
  .site-nav__actions .btn { width: 100%; }
}

/* ---------- Hero ---------- */
.hero {
  background-color: var(--navy);
  background-image: radial-gradient(rgba(199,214,255,.14) 1.6px, transparent 1.8px);
  background-size: 30px 30px;
  color: var(--white);
  padding: 80px 0 96px;
  overflow: hidden;
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.hero h1 { color: var(--white); max-width: 14ch; }
.hero__lead { font-size: 1.2rem; color: #D5DEF5; max-width: 54ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 36px; }
.hero__actions--center { justify-content: center; }
.hero__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero__chips li { padding: 6px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); color: #D5DEF5; font-size: .95rem; }
.hero__form { position: relative; padding-top: 110px; }
.hero__mascot { position: absolute; top: 0; right: 36px; z-index: 2; animation: ollie-peek .9s cubic-bezier(.2,.9,.3,1.2) .2s both; }
.hero__mascot .mascot { display: block; }
.hero .form-card { position: relative; z-index: 1; }

@keyframes ollie-peek { from { transform: translateY(70px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero__mascot { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Form ---------- */
.form-card { background: var(--white); color: var(--ink); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); }
.form-card h2 { font-size: 1.7rem; margin-bottom: .25em; }
.form-card > p { color: var(--ink-soft); margin-bottom: 20px; }
.lead-form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field label { font-weight: 500; font-size: .95rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #F6F8FD;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; min-height: 48px;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 4px rgba(45,107,255,.15); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--ink-soft); line-height: 1.45; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--blue); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { padding: 12px 14px; border-radius: var(--radius-sm); font-size: .95rem; margin: 0; }
.form-note--ok { background: #E3F7EA; color: #145A32; }
.form-note--err { background: #FDE8E8; color: #8A1C1C; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--sky { background: var(--sky); }
.section-head { max-width: 680px; margin: 0 0 48px; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }

/* Studios (home services) */
.studios__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.studio { border-radius: var(--radius-lg); padding: 40px; }
.studio--publishing { background: var(--sky); }
.studio--digital { background: var(--navy); color: var(--white); }
.studio--digital h3, .studio--digital strong { color: var(--white); }
.studio h3 { font-size: 1.6rem; }
.studio__intro { color: var(--ink-soft); margin-bottom: 24px; }
.studio--digital .studio__intro { color: #C3CDE8; }
.studio__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.studio__list a { display: flex; gap: 16px; padding: 16px 0; text-decoration: none; color: inherit; border-top: 1px solid rgba(14,26,61,.1); }
.studio--digital .studio__list a { border-color: rgba(255,255,255,.12); }
.studio__list a:hover strong { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.studio__list strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.studio__text { display: block; font-size: .97rem; color: var(--ink-soft); }
.studio--digital .studio__text { color: #C3CDE8; }
.studio__icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--white); color: var(--blue-deep); }
.studio--digital .studio__icon { background: rgba(255,255,255,.08); color: var(--amber); }

/* Process */
.process { background: var(--sky); }
.process__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: step; position: relative; }
.process__steps li { position: relative; }
.process__num { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--navy); color: var(--amber); font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; margin-bottom: 18px; position: relative; z-index: 1; }
.process__steps li:not(:last-child)::after { content: ''; position: absolute; top: 28px; left: 64px; right: -16px; height: 2px; background: repeating-linear-gradient(90deg, var(--blue) 0 8px, transparent 8px 14px); }
.process__steps p { color: var(--ink-soft); }

/* Why */
.why__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: center; }
.why__art { display: grid; place-items: center; background: var(--sky); border-radius: 50%; aspect-ratio: 1; padding: 40px; }
.checklist { list-style: none; margin: 0 0 32px; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.checklist li { display: flex; gap: 14px; }
.checklist .icon { color: var(--white); background: var(--blue-deep); border-radius: 50%; padding: 4px; width: 28px; height: 28px; margin-top: 2px; }

/* Packages */
.packages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; margin-bottom: 32px; }
.package { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 36px 32px; }
.package h3 { font-size: 1.6rem; margin-bottom: .2em; }
.package__for { color: var(--ink-soft); }
.package ul { list-style: none; margin: 8px 0 28px; padding: 0; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.package li { display: flex; gap: 10px; }
.package li .icon { color: var(--blue-deep); margin-top: 3px; width: 20px; height: 20px; }
.package--featured { background: var(--navy); color: var(--white); border-color: var(--navy); }
.package--featured h3 { color: var(--white); }
.package--featured .package__for { color: #C3CDE8; }
.package--featured li .icon { color: var(--amber); }
.package__badge { position: absolute; top: -14px; left: 32px; background: var(--amber); color: var(--navy); font-family: var(--font-display); font-weight: 700; font-size: .85rem; padding: 4px 14px; border-radius: 999px; }

/* FAQ */
.faq__inner { max-width: 860px; }
.faq__list { display: flex; flex-direction: column; gap: 12px; }
.faq__item { border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--white); }
.faq__item summary { list-style: none; cursor: pointer; padding: 20px 64px 20px 24px; font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; background: var(--sky); color: var(--navy); display: grid; place-items: center; font-size: 1.3rem; line-height: 1; }
.faq__item[open] summary::after { content: '–'; background: var(--amber); }
.faq__item p { padding: 0 24px 20px; margin: 0; color: var(--ink-soft); }

/* CTA band */
.cta-band { background: var(--blue-deep); color: var(--white); padding: 56px 0; overflow: hidden; }
.cta-band__inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 40px; align-items: center; }
.cta-band h2 { color: var(--white); margin-bottom: .3em; }
.cta-band p { color: #DCE6FF; margin: 0; max-width: 52ch; }
.cta-band__mascot { margin: -20px 0 -76px; }
.cta-band__actions { display: flex; flex-direction: column; gap: 12px; }

/* Inner page hero */
.page-hero { background-color: var(--sky); background-image: radial-gradient(var(--sky-2) 1.6px, transparent 1.8px); background-size: 30px 30px; padding: 72px 0 64px; }
.page-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); max-width: 20ch; }
.page-hero p { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; margin: 0; }

/* Services page */
.services-group--digital { background: var(--sky); }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.service { background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; }
.service p { color: var(--ink-soft); flex-grow: 1; }
.service__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--navy); color: var(--amber); display: grid; place-items: center; margin-bottom: 18px; }

/* About */
.about__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: 64px; align-items: start; }
.about__aside { background: var(--sky); border-radius: var(--radius-lg); padding: 40px 32px; text-align: center; position: sticky; top: 110px; }
.about__caption { color: var(--ink-soft); margin: 16px 0 0; }

/* Contact */
.contact__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.contact__info p { color: var(--ink-soft); }
.contact__list { list-style: none; margin: 28px 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.contact__list li { display: flex; gap: 16px; align-items: center; }
.contact__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--sky); color: var(--blue-deep); display: grid; place-items: center; flex: none; }
.contact__label { display: block; font-size: .9rem; color: var(--ink-soft); }
.contact__list a { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--navy); text-decoration: none; word-break: break-word; }
.contact__list a:hover { color: var(--blue-deep); }
.contact__grid .form-card { border: 1.5px solid var(--line); }

/* Prose (legal pages, about) */
.prose { font-size: 1.06rem; }
.prose--narrow { max-width: 780px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .5em; }
.post-item { padding-bottom: 32px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }

/* 404 */
.notfound__inner { text-align: center; max-width: 620px; }
.notfound__inner p { color: var(--ink-soft); }

/* Footer */
.site-footer { background: var(--navy); color: #C3CDE8; padding: 72px 0 0; font-size: .97rem; }
.site-footer a { color: #C3CDE8; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; }
.site-footer__brand p { margin-top: 18px; max-width: 34ch; }
.site-footer__title { font-size: 1rem; color: var(--white); margin-bottom: 16px; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer__contact { margin-bottom: 20px !important; }
.site-footer__contact a { display: inline-flex; align-items: center; gap: 10px; word-break: break-word; }
.site-footer__contact .icon { color: var(--amber); width: 20px; height: 20px; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding: 24px; border-top: 1px solid rgba(255,255,255,.1); }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom .menu { flex-direction: row; flex-wrap: wrap; gap: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero__grid, .why__grid, .about__grid, .contact__grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero h1 { max-width: none; }
  .studios__grid, .packages, .service-grid { grid-template-columns: minmax(0, 1fr); }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .process__steps li::after { display: none; }
  .cta-band__inner { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .cta-band__mascot { margin: 0 auto; }
  .cta-band p { margin: 0 auto; }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about__aside { position: static; }
  .why__art { max-width: 360px; margin: 0 auto; }
  .packages { max-width: 520px; margin-left: auto; margin-right: auto; row-gap: 36px; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .section { padding: 64px 0; }
  .hero { padding: 48px 0 64px; }
  .hero__form { padding-top: 90px; }
  .hero__mascot .mascot { width: 120px; height: 144px; }
  .form-card { padding: 24px 20px; border-radius: var(--radius); }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .studio { padding: 28px 22px; }
  .service-grid, .process__steps, .site-footer__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__actions .btn { width: 100%; }
  .brand__name { font-size: 1.25rem; }
  .brand__sub { font-size: .55rem; }
  .brand .logomark { width: 36px; height: 36px; }
}

/* Fixes */
.hero .form-card h2 { padding-right: 130px; }
.site-footer .btn--amber, .site-footer .btn--amber:hover { color: var(--navy); text-decoration: none; }
@media (max-width: 640px) {
  .hero__mascot { right: 16px; }
  .hero .form-card h2 { padding-right: 104px; font-size: 1.45rem; }
}
