/*
Theme Name: Altrix Studio
Author: Altrix Web
Author URI: https://altrixweb.com/
Description: A refined, flexible block theme for modern service businesses, creators, and digital product sites. Includes an editorial homepage, clear content templates, and considered shop styling.
Version: 1.0.2
Requires at least: 6.6
Tested up to: 7.1
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: altrix-studio
Domain Path: /languages
Tags: block-patterns, full-site-editing, wide-blocks, custom-colors, custom-logo, e-commerce, blog
*/

:root {
  --as-ink: var(--wp--preset--color--ink, #132338);
  --as-muted: var(--wp--preset--color--muted, #536577);
  --as-blue: var(--wp--preset--color--blue, #275ce7);
  --as-line: #dce4ea;
  --as-paper: var(--wp--preset--color--paper, #f7f9fb);
  --as-white: var(--wp--preset--color--white, #ffffff);
  --as-mint: var(--wp--preset--color--mint, #c9f1e6);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
button, input[type="submit"] { cursor: pointer; }
a { text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 3px solid #117dce;
  outline-offset: 3px;
}

.wp-site-blocks { overflow: clip; }
.wp-block-template-part { margin-block-start: 0; }
.as-site-header { border-bottom: 1px solid var(--as-line); box-shadow: 0 5px 30px rgba(22, 48, 83, .035); }
.as-site-header > .wp-block-group { min-height: 86px; }
.as-brand-row { gap: .7rem; }
.as-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: var(--as-blue);
  border-radius: 11px 11px 11px 3px;
  font-weight: 800;
  line-height: 1;
  transform: rotate(-7deg);
}
.as-brand-row .wp-block-site-title { line-height: 1.1; }
.as-brand-row .wp-block-site-title a { position: relative; }
.as-brand-row .wp-block-site-title a::after { content: ""; position: absolute; left: 0; bottom: -.35rem; width: 31%; height: 3px; background: var(--as-blue); border-radius: 3px; }
.as-site-header .wp-block-navigation { font-size: .91rem; }
.as-site-header .wp-block-navigation a { text-decoration: none; }
.as-site-header .wp-block-navigation a:hover { color: var(--as-blue); }
.as-header-search .wp-block-search__input { min-width: 0; }
.as-site-footer { background-image: radial-gradient(circle at 83% 22%, rgba(56, 101, 178, .28) 0, transparent 24%); }
.as-site-footer .wp-block-site-title a,
.as-site-footer .wp-block-navigation a { color: #fff; }
.as-site-footer a { text-decoration: none; }
.as-site-footer a:hover { text-decoration: underline; }
.as-site-footer .wp-block-site-tagline { max-width: 34ch; }

.as-eyebrow { letter-spacing: .16em; text-transform: uppercase; font-size: .75rem; font-weight: 800; }
.as-hero { position: relative; isolation: isolate; background-image: radial-gradient(circle at 1% 11%, #e4ebff 0, transparent 23%), radial-gradient(circle at 94% 95%, #e2f4ed 0, transparent 23%); }
.as-hero h1 { max-width: 12ch; font-size: clamp(3.15rem, 5.4vw, 5.6rem) !important; letter-spacing: -.065em; line-height: 1.02; }
.as-hero .as-lede { max-width: 57ch; }
.as-hero .wp-block-buttons { margin-top: 2.1rem; }
.as-hero-visual {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 30px;
  background: #2450bd url('assets/images/hero-composition.svg') center / cover no-repeat;
  box-shadow: 0 25px 70px rgba(17, 41, 69, .16);
}
.as-hero .is-style-outline .wp-block-button__link { border-width: 1.5px; border-color: var(--as-blue); color: var(--as-blue); }
.as-hero .is-style-outline .wp-block-button__link:hover { background: #eaf0ff; }
.as-trust-row { border-block: 1px solid var(--as-line); }
.as-trust-row p { margin-block: 0; }
.as-section-heading { max-width: 750px; }
.as-section-heading h2 { letter-spacing: -.05em; line-height: 1.12; }
.as-service-card { position: relative; height: 100%; border: 1px solid var(--as-line); border-radius: 22px; background: var(--as-white); box-shadow: 0 6px 30px rgba(18, 44, 75, .035); transition: transform .2s ease, box-shadow .2s ease; }
.as-service-card:hover { transform: translateY(-4px); box-shadow: 0 18px 42px #152c421a; }
.as-service-card::before { content: ""; display: block; width: 58px; height: 58px; margin-bottom: 1.8rem; border-radius: 18px; background: radial-gradient(circle at 48% 48%, transparent 0 11px, #fff 12px 14px, transparent 15px), linear-gradient(145deg, #315ce5, #7095ff); }
.as-service-card::after { content: ""; position: absolute; top: 2.85rem; left: 3.05rem; width: 9px; height: 9px; border-radius: 50%; background: #c9f1e6; }
.wp-block-column:nth-child(2) > .as-service-card::before { background: linear-gradient(45deg, transparent 42%, #fff 43% 48%, transparent 49%), radial-gradient(circle at 30% 68%, #fff 0 5px, transparent 6px), linear-gradient(145deg, #179e9d, #86d9c8); }
.wp-block-column:nth-child(3) > .as-service-card::before { background: radial-gradient(circle at 50% 50%, #fff 0 5px, transparent 6px), conic-gradient(from 70deg, #b7a6ff, #725ce8, #b7a6ff); }
.as-service-card .as-number { color: var(--as-blue); font-weight: 800; font-size: .8rem; letter-spacing: .1em; }
.as-service-card h3 { letter-spacing: -.04em; }
.as-service-card p:last-child { margin-bottom: 0; }
.as-work-tile { height: 100%; overflow: hidden; border: 1px solid var(--as-line); border-radius: 24px; background: #fff; box-shadow: 0 12px 34px rgba(20, 45, 79, .05); }
.as-work-art { aspect-ratio: 8 / 5; background-position: center; background-repeat: no-repeat; background-size: cover; }
.as-work-art--identity { background-color: #efe0d6; background-image: url('assets/images/work-identity.svg'); }
.as-work-art--commerce { background-color: #e2e7ff; background-image: url('assets/images/work-commerce.svg'); }
.as-work-copy { padding: clamp(1.5rem, 3vw, 2rem); }
.as-work-copy h3 { margin-top: .6rem; letter-spacing: -.045em; }
.as-work-copy p:last-child { margin-bottom: 0; }
.as-feature-panel { overflow: hidden; border-radius: 28px; }
.as-feature-panel h2 { letter-spacing: -.05em; }
.as-feature-art { min-height: 365px; border-radius: 20px; background: #14336f url('assets/images/feature-composition.svg') center / cover no-repeat; }
.as-stat { border-top: 1px solid #dce4ea; }
.as-stat strong { font-size: clamp(1.55rem, 3vw, 2.2rem); letter-spacing: -.05em; }
.as-post-card { height: 100%; border: 1px solid var(--as-line); border-radius: 18px; overflow: hidden; background: #fff; }
.as-post-card .wp-block-post-featured-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.as-post-card .wp-block-post-title { letter-spacing: -.035em; }
.as-post-card .wp-block-post-title a { text-decoration: none; }
.as-post-card .wp-block-post-title a:hover { color: var(--as-blue); }
.as-post-card .wp-block-post-excerpt__more-link { font-weight: 700; }
.as-cta { position: relative; overflow: hidden; border-radius: 28px; background-image: radial-gradient(circle at 80% 24%, rgba(85, 118, 230, .35) 0, transparent 25%), radial-gradient(circle at 3% 110%, rgba(102, 218, 195, .18) 0, transparent 30%); }
.as-cta::before { content: ""; position: absolute; right: -7%; top: -90%; width: 55%; aspect-ratio: 1; border: 1px solid rgba(201, 241, 230, .3); border-radius: 50%; box-shadow: 0 0 0 60px rgba(201, 241, 230, .045), 0 0 0 125px rgba(201, 241, 230, .035); pointer-events: none; }
.as-cta > * { position: relative; }
.as-cta h2 { letter-spacing: -.05em; }
.as-content-shell { min-height: 55vh; }
.as-content-shell .wp-block-post-title { letter-spacing: -.055em; }
.as-content-shell :where(.wp-block-post-content, .wp-block-query) :where(p, ul, ol) { line-height: 1.75; }
.as-content-shell .wp-block-post-content > * + * { margin-block-start: 1.4em; }
.as-content-shell .wp-block-post-content :where(h2, h3, h4) { margin-block-start: 1.8em; letter-spacing: -.035em; }
.as-content-shell .wp-block-post-content :where(pre, blockquote, table) { max-width: 100%; overflow-x: auto; }
.as-content-shell .wp-block-post-featured-image img { border-radius: 18px; }
.as-content-shell .wp-block-query-pagination { gap: .8rem; }
.as-content-shell .wp-block-query-pagination a { text-decoration: none; }
.as-comments { margin-block-start: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--as-line); padding-top: 2rem; }
.as-comment { border-bottom: 1px solid var(--as-line); padding-block: 1.25rem; }
.as-comment .wp-block-comment-author-name { font-weight: 700; }
.as-comment .wp-block-comment-date { color: var(--as-muted); font-size: .85rem; }
.as-comments .comment-form :where(input:not([type="checkbox"]), textarea) { max-width: 100%; border: 1px solid var(--as-line); border-radius: 8px; padding: .75rem; }
.as-comments .comment-form textarea { width: 100%; }
.as-comments .comment-form .submit { border: 0; border-radius: 9px; background: var(--as-blue); color: #fff; font-weight: 700; }
.as-archive-item { border-bottom: 1px solid var(--as-line); padding-bottom: 2rem; }
.as-archive-item .wp-block-post-title a { text-decoration: none; }
.as-archive-item .wp-block-post-title a:hover { color: var(--as-blue); }
.wp-block-search__inside-wrapper { border-radius: 12px; }
.wp-block-search__button { border-radius: 10px; }

/* WooCommerce is optional. Its content and commerce features remain plugin-owned. */
.woocommerce .woocommerce-breadcrumb { color: var(--as-muted); font-size: .88rem; }
.woocommerce ul.products li.product { border: 1px solid var(--as-line); border-radius: 18px; padding: 1rem; background: #fff; }
.woocommerce ul.products li.product img { border-radius: 11px; aspect-ratio: 1; object-fit: cover; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { color: var(--as-ink); font-size: 1.05rem; font-weight: 750; }
.woocommerce ul.products li.product .price { color: var(--as-blue); font-weight: 750; }
.woocommerce :where(a.button, button.button, input.button, #respond input#submit) { border-radius: 9px; background: var(--as-blue); color: #fff; font-weight: 700; }
.woocommerce :where(a.button, button.button, input.button, #respond input#submit):hover { background: #1747c0; color: #fff; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { border-radius: 9px 9px 0 0; }
.woocommerce div.product .product_title { letter-spacing: -.045em; }
.woocommerce :where(.cart, .checkout, .woocommerce-MyAccount-content) input:not([type="checkbox"]):not([type="radio"]),
.woocommerce :where(.cart, .checkout, .woocommerce-MyAccount-content) textarea { border: 1px solid var(--as-line); border-radius: 8px; padding: .65em .75em; }

@media (max-width: 780px) {
  .as-site-header > .wp-block-group { min-height: 72px; }
  .as-hero { padding-block: 3.6rem !important; }
  .as-hero h1 { font-size: clamp(2.9rem, 10vw, 4.3rem) !important; }
  .as-hero-visual { min-height: 430px; }
  .as-feature-art { min-height: 330px; }
  .as-trust-row .wp-block-columns { gap: 1rem; }
}
@media (max-width: 480px) {
  .as-hero-visual { min-height: 340px; }
  .as-work-copy { padding: 1.4rem; }
  .as-site-header .wp-block-navigation { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
