/*
Theme Name: Ultimate Technical Academy
Theme URI: https://ultimatetechnician.com/
Author: WebJIVE
Description: Lightweight custom WooCommerce theme for the UTA store, matching the flat-file mini-CMS (brick #6E251A, Syne + Inter). Replaces Divi so the look/feel is fully hand-controlled and no page builder runs on the checkout path.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: uta
*/

:root{
  --wj-ink:#0E0C19; --wj-brick:#6E251A; --wj-brick-dp:#8B0000;
  --wj-body:#3C3A47; --wj-line:#E6E3E0; --wj-paper:#F7F5F4; --wj-muted:#666;
}

*{box-sizing:border-box;}
html,body{margin:0;padding:0;}
body{
  font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  color:var(--wj-body); background:#fff; line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
a{color:var(--wj-brick);}
a:hover{color:var(--wj-brick-dp);}
img{max-width:100%;height:auto;}
h1,h2,h3,h4{font-family:Syne,Inter,sans-serif;color:var(--wj-ink);font-weight:500;line-height:1.15;text-wrap:balance;}
:focus-visible{outline:2px solid var(--wj-brick);outline-offset:3px;}

/* ── Top bar (replaces the Divi header) ──────────────────────────────────── */
#uta-topbar{position:sticky;top:0;z-index:1000;background:#fff;border-bottom:1px solid var(--wj-line);box-shadow:0 1px 2px rgba(11,18,32,.05);}
#uta-topbar .uta-tb-inner{max-width:80rem;margin:0 auto;padding:.75rem 1.25rem;display:flex;align-items:center;justify-content:space-between;gap:1rem;}
#uta-topbar .uta-logo{display:inline-flex;align-items:center;}
#uta-topbar .uta-logo img{height:52px;width:auto;display:block;}
#uta-topbar .uta-tb-nav{display:flex;align-items:center;gap:1.25rem;}
#uta-topbar a.uta-tb-link{font-weight:600;font-size:15px;color:var(--wj-brick);text-decoration:none;}
#uta-topbar a.uta-tb-link:hover{color:var(--wj-brick-dp);}
#uta-topbar a.uta-cart{display:inline-flex;align-items:center;gap:.5rem;background:var(--wj-brick);color:#fff;
  font-weight:600;font-size:15px;text-decoration:none;padding:.55rem 1.25rem;border-radius:9999px;transition:background .15s ease;}
#uta-topbar a.uta-cart:hover{background:var(--wj-brick-dp);}
#uta-topbar a.uta-cart .uta-cart-count{background:#fff;color:var(--wj-brick);font-weight:700;min-width:1.4em;height:1.4em;
  display:inline-flex;align-items:center;justify-content:center;border-radius:9999px;padding:0 .35em;font-size:12px;}
@media(max-width:600px){#uta-topbar .uta-logo img{height:42px;}#uta-topbar .uta-tb-inner{padding:.6rem .9rem;}#uta-topbar .uta-tb-nav{gap:.85rem;}}

/* ── Page shell ──────────────────────────────────────────────────────────── */
.uta-main{min-height:50vh;}
.uta-page{max-width:70rem;margin:0 auto;padding:2.5rem 1.25rem 4rem;}
.uta-page h1.entry-title,.uta-page > h1:first-child{font-size:2.2rem;margin:0 0 1.25rem;}

/* ── Footer ──────────────────────────────────────────────────────────────── */
#uta-footer{background:#781C16;color:#fff;margin-top:3rem;}
#uta-footer .uta-ft-inner{max-width:80rem;margin:0 auto;padding:2.5rem 1.25rem;display:grid;grid-template-columns:2fr 1fr 1fr;gap:2rem;}
@media(max-width:760px){#uta-footer .uta-ft-inner{grid-template-columns:1fr;gap:1.5rem;}}
#uta-footer img{height:56px;width:auto;background:#fff;border-radius:6px;padding:6px;}
#uta-footer h4{color:rgba(255,255,255,.6);font-family:Inter;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.14em;margin:0 0 .9rem;}
#uta-footer a{color:rgba(255,255,255,.9);text-decoration:none;}
#uta-footer a:hover{color:#fff;}
#uta-footer ul{list-style:none;margin:0;padding:0;display:grid;gap:.6rem;font-size:15px;}
#uta-footer .uta-ft-copy{border-top:1px solid rgba(255,255,255,.2);margin-top:1.5rem;padding:1rem 1.25rem;max-width:80rem;margin-left:auto;margin-right:auto;font-size:14px;color:rgba(255,255,255,.7);}

/* ── WooCommerce skin ────────────────────────────────────────────────────── */
.woocommerce .price,.woocommerce-Price-amount{color:var(--wj-brick);font-family:Syne,sans-serif;font-weight:600;}
.woocommerce del .woocommerce-Price-amount{color:#9a938f;}
.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,
.woocommerce .single_add_to_cart_button,.woocommerce #respond input#submit,
.woocommerce a.button.alt,.woocommerce button.button.alt,
.wp-block-button__link,.wc-block-components-button{
  background:var(--wj-brick);color:#fff;border:0;border-radius:9999px;
  font-family:Inter,sans-serif;font-weight:600;padding:.8em 1.9em;line-height:1.2;
  text-transform:none;transition:background .15s ease;box-shadow:none;cursor:pointer;}
.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce input.button:hover,
.woocommerce .single_add_to_cart_button:hover,.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,.woocommerce button.button.alt:hover,.wc-block-components-button:hover{background:var(--wj-brick-dp);}
.woocommerce a.added_to_cart{display:inline-block;margin-top:.5rem;color:var(--wj-brick);font-weight:600;text-decoration:underline;}
.woocommerce a:not(.button):not(.added_to_cart){color:var(--wj-brick);}

.woocommerce ul.products{list-style:none;display:grid;grid-template-columns:repeat(auto-fill,minmax(15rem,1fr));gap:1.1rem;margin:0;padding:0;}
.woocommerce ul.products li.product{background:#fff;border:1px solid var(--wj-line);border-radius:12px;padding:1.25rem;box-shadow:0 1px 2px rgba(11,18,32,.04);transition:border-color .15s ease;}
.woocommerce ul.products li.product:hover{border-color:var(--wj-brick);}
.woocommerce ul.products li.product img{border-radius:8px;margin-bottom:1rem;}
.woocommerce ul.products li.product .woocommerce-loop-product__title{font-family:Syne,sans-serif;font-weight:500;color:var(--wj-ink);font-size:1.15rem;}

.woocommerce .product_title{font-size:2rem;}
/* Courses aren't inventory — hide the raw stock count ("2147482013 in stock"). */
.woocommerce div.product p.stock,.woocommerce .product p.stock{display:none;}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active{border-bottom-color:var(--wj-brick);}

/* Long course description rendered under the product summary */
.uta-product-desc{clear:both;max-width:58rem;margin:2.5rem 0 0;padding-top:2rem;border-top:1px solid var(--wj-line);}
.uta-product-desc h2{font-size:1.6rem;margin:0 0 1rem;}
.uta-prose{font-size:1.02rem;line-height:1.7;color:var(--wj-body);}
.uta-prose h3{font-size:1.2rem;font-weight:700;color:var(--wj-brick-dp);margin:1.75rem 0 .6rem;}
.uta-prose p{margin:0 0 1rem;}
.uta-prose ul{margin:0 0 1rem;padding-left:1.3rem;}
.uta-prose li{margin-bottom:.4rem;}
.uta-prose li::marker{color:var(--wj-brick);}
.uta-prose a{color:var(--wj-brick);text-decoration:underline;text-underline-offset:2px;}
.uta-prose a:hover{color:var(--wj-brick-dp);}

.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,
.woocommerce-page input.input-text,.woocommerce select,.select2-container .select2-selection{
  border:1px solid #D9D4D1;border-radius:6px;padding:.6em .8em;}
.woocommerce form .form-row input.input-text:focus,.woocommerce-page input.input-text:focus,.woocommerce form .form-row textarea:focus{
  border-color:var(--wj-brick);outline:0;box-shadow:0 0 0 3px rgba(110,37,26,.15);}

.woocommerce .col2-set .col-1,.woocommerce .col2-set .col-2,
.woocommerce-page .col2-set .col-1,.woocommerce-page .col2-set .col-2{
  background:#fff;border:1px solid var(--wj-line);border-radius:12px;padding:1.5rem 1.5rem 1.75rem;}
.woocommerce-MyAccount-navigation ul{border:1px solid var(--wj-line);border-radius:12px;overflow:hidden;list-style:none;padding:0;margin:0 0 1.5rem;}
.woocommerce-MyAccount-navigation li{border-bottom:1px solid var(--wj-line);}
.woocommerce-MyAccount-navigation li:last-child{border-bottom:0;}
.woocommerce-MyAccount-navigation li.is-active a{background:var(--wj-paper);color:var(--wj-brick);font-weight:600;}
.woocommerce-MyAccount-navigation li a{display:block;padding:.7rem 1rem;text-decoration:none;}

.woocommerce table.shop_table{border:1px solid var(--wj-line);border-radius:12px;overflow:hidden;border-collapse:separate;border-spacing:0;}
.woocommerce table.shop_table th{background:var(--wj-paper);color:var(--wj-ink);}

.woocommerce-message,.woocommerce-info,.woocommerce-error{
  border-top:none;border-left:3px solid var(--wj-brick);border-radius:8px;background:var(--wj-paper);color:var(--wj-ink);}
.woocommerce-message a,.woocommerce-info a,.woocommerce-error a{color:var(--wj-brick);}
.woocommerce-message::before,.woocommerce-info::before,.woocommerce-error::before{color:var(--wj-brick);}

/* ── Shop front page (curated course listing) ────────────────────────────── */
.uta-shop-wrap{max-width:80rem;margin:0 auto;padding:2.5rem 1.25rem 4rem;display:grid;grid-template-columns:18rem minmax(0,1fr);gap:2.5rem;align-items:start;}
@media(max-width:900px){.uta-shop-wrap{grid-template-columns:1fr;}}
.uta-shop-intro h1{font-size:2.2rem;margin:0 0 .75rem;}
.uta-shop-intro p{font-size:1.05rem;line-height:1.65;margin:0 0 1.5rem;max-width:60ch;}
.uta-steps{display:grid;gap:.6rem;margin:0 0 2rem;padding:0;list-style:none;counter-reset:s;}
.uta-steps li{counter-increment:s;position:relative;padding-left:2.4rem;font-size:.98rem;line-height:1.5;}
.uta-steps li::before{content:counter(s);position:absolute;left:0;top:-.1rem;width:1.7rem;height:1.7rem;background:var(--wj-brick);color:#fff;border-radius:9999px;font-family:Syne;font-weight:600;font-size:.85rem;display:flex;align-items:center;justify-content:center;}
.uta-course-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(15rem,1fr));gap:1.1rem;}
.uta-course-card{background:#fff;border:1px solid var(--wj-line);border-radius:12px;padding:1.25rem;display:flex;flex-direction:column;transition:border-color .15s ease;}
.uta-course-card:hover{border-color:var(--wj-brick);}
.uta-course-card h3{font-size:1.15rem;color:var(--wj-brick-dp);margin:0 0 .4rem;}
.uta-course-card p{font-size:.9rem;line-height:1.5;color:var(--wj-body);margin:0 0 1rem;flex:1;}
/* Card foot: price on its own line (large), then the actions row beneath it.
   Previously price + Enroll shared one flex row and crowded each other. */
.uta-course-card .uta-card-foot{padding-top:.9rem;border-top:1px solid #EFEDEB;}
.uta-course-card .uta-price{
  font-family:Syne,sans-serif;font-weight:600;font-size:1.65rem;line-height:1.15;
  color:var(--wj-brick);margin:0 0 .85rem;}
.uta-course-card .uta-price .woocommerce-Price-amount{font-size:inherit;font-weight:inherit;color:inherit;}
.uta-course-card .uta-actions{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;}
/* the shortcode still wraps the button in a <p> — neutralise its spacing */
.uta-course-card .uta-actions .add_to_cart_inline{margin:0;padding:0;border:0;display:inline-flex;}
.uta-course-card .uta-actions .add_to_cart_button,
.uta-course-card .uta-actions .button{margin:0;padding:.62em 1.5em;font-size:.92rem;}
.uta-course-card .uta-info{
  font-weight:600;font-size:.9rem;color:var(--wj-brick);text-decoration:none;white-space:nowrap;
  display:inline-flex;align-items:center;gap:.25rem;}
.uta-course-card .uta-info:hover{color:var(--wj-brick-dp);text-decoration:underline;}
.uta-hotels{margin-top:2.5rem;padding-top:2rem;border-top:1px solid var(--wj-line);}
.uta-hotels h2{font-size:1.5rem;margin:0 0 1rem;}

/* Schedule left bar (mirrored from /schedules/) */
.uta-sched{position:sticky;top:5.5rem;background:var(--wj-paper);border:1px solid var(--wj-line);border-radius:12px;padding:1.25rem 1.25rem 1.4rem;}
.uta-sched-head{font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.13em;color:var(--wj-brick);margin:0 0 .9rem;}
.uta-sched-m{margin-bottom:1.1rem;}
.uta-sched-m h4{font-weight:600;font-size:1rem;color:var(--wj-ink);margin:0 0 .4rem;padding-bottom:.25rem;border-bottom:2px solid var(--wj-brick);}
.uta-sched-m ul{list-style:none;margin:0;padding:0;}
.uta-sched-m li{display:flex;justify-content:space-between;gap:.6rem;padding:.3rem 0;border-bottom:1px solid var(--wj-line);font-size:.82rem;}
.uta-sched-m li a{color:var(--wj-brick);font-weight:600;text-decoration:none;}
.uta-sched-m li a:hover{color:var(--wj-brick-dp);text-decoration:underline;}
.uta-sched-m li .d{color:var(--wj-muted);font-weight:600;white-space:nowrap;font-variant-numeric:tabular-nums;}
.uta-sched-m li.noclass{color:#aaa;font-style:italic;}
.uta-sched-all{display:inline-block;margin-top:.4rem;font-weight:600;font-size:.85rem;color:var(--wj-brick);text-decoration:none;}
.uta-sched-all:hover{text-decoration:underline;}
@media(max-width:900px){.uta-sched{position:static;}}

@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important;}}

/* ==========================================================================
   WooCommerce icon fonts — re-declared ONLY to add font-display.
   --------------------------------------------------------------------------
   woocommerce.css ships `star` and `WooCommerce` with no font-display, so the
   glyphs are INVISIBLE until the file lands (the browser's default 3s block
   period). The build gate flags both as HIGH, and it is right to.
   You cannot add a descriptor to someone else's @font-face — you re-declare the
   family after theirs and the later rule wins. The src is byte-identical, so the
   browser reuses the same download; this costs nothing.
   `block` rather than `swap`: these are ICON fonts. A fallback glyph flashing in
   place of a star rating is worse than the star arriving a moment later.
   ⚠ Paths are relative to THIS file, which lives in the theme — hence the walk
   back up to the plugin. If WooCommerce moves its assets, this stops matching and
   the gate goes red again, which is the correct way for it to fail.
   ========================================================================== */
@font-face {
  font-family: star;
  font-display: block;
  src: url(../../plugins/woocommerce/assets/fonts/WooCommerce.woff2) format("woff2"),
       url(../../plugins/woocommerce/assets/fonts/WooCommerce.woff) format("woff"),
       url(../../plugins/woocommerce/assets/fonts/WooCommerce.ttf) format("truetype");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: WooCommerce;
  font-display: block;
  src: url(../../plugins/woocommerce/assets/fonts/WooCommerce.woff2) format("woff2"),
       url(../../plugins/woocommerce/assets/fonts/WooCommerce.woff) format("woff"),
       url(../../plugins/woocommerce/assets/fonts/WooCommerce.ttf) format("truetype");
  font-weight: 400;
  font-style: normal;
}
