/*
Theme Name: Cebastian Co Child 1
Theme URI: https://cebastian.co
Description: Custom child theme for Cebastian Co.
Author: Camron Turner
Author URI: https://cebastian.co
Template: blocksy
Version: 2.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cebastian-child1
*/

:root {
  --bg: #090d12;
  --bg-soft: #0f1620;
  --panel: #131c27;
  --panel-2: #182333;
  --line: rgba(255, 255, 255, 0.15);
  --line-strong: rgba(255, 255, 255, 0.24);
  --text: #f5f7fa;
  --muted: rgba(245, 247, 250, 0.78);
  --teal: #12b3a5;
  --gold: #d9aa5f;
  --danger: #ff6b6b;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;

  --space-1: 6px;
  --space-2: 10px;
  --space-3: 14px;
  --space-4: 18px;
  --space-5: 24px;
  --space-6: 32px;

  --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.2);
  --shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 22px 50px rgba(0, 0, 0, 0.36);

  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 24px;
  --text-2xl: clamp(28px, 4.2vw, 48px);

  --max-content: 1320px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(950px 560px at 10% -4%, rgba(18, 179, 165, 0.14), transparent 60%),
    radial-gradient(820px 540px at 95% 8%, rgba(217, 170, 95, 0.1), transparent 62%),
    var(--bg);
  color: var(--text);
  font-size: var(--text-base);
  line-height: 1.55;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Keep core wrappers fluid by default */
.site,
.site-main,
#main,
.ct-container,
.ct-container-fluid,
.ct-container-narrow,
.ct-container-wide {
  max-width: none;
}

img,
video,
svg,
canvas,
iframe {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 var(--space-3);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 {
  font-size: var(--text-2xl);
}

h2 {
  font-size: clamp(22px, 2.8vw, 36px);
}

h3 {
  font-size: clamp(18px, 2.2vw, 28px);
}

p,
ul,
ol,
dl,
figure,
blockquote {
  margin: 0 0 var(--space-4);
}

small,
.has-small-font-size {
  font-size: var(--text-xs);
  color: var(--muted);
}

a {
  color: inherit;
  text-decoration-color: rgba(18, 179, 165, 0.6);
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

a:hover {
  color: #d8fffa;
  text-decoration-color: rgba(18, 179, 165, 0.92);
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-radius: 6px;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

/* Unified button system */
:where(
  .wp-element-button,
  .wp-block-button__link,
  .button,
  .ct-button,
  button,
  input[type="button"],
  input[type="submit"],
  input[type="reset"]
) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(18, 179, 165, 0.52);
  border-radius: 999px;
  background: linear-gradient(160deg, rgba(18, 179, 165, 0.23), rgba(18, 179, 165, 0.1));
  color: #effffb;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease, background 150ms ease;
}

:where(
  .wp-element-button,
  .wp-block-button__link,
  .button,
  .ct-button,
  button,
  input[type="button"],
  input[type="submit"],
  input[type="reset"]
):hover {
  transform: translateY(-1px);
  border-color: rgba(18, 179, 165, 0.9);
  box-shadow: var(--shadow-sm);
}

:where(
  .wp-element-button,
  .wp-block-button__link,
  .button,
  .ct-button,
  button,
  input[type="button"],
  input[type="submit"],
  input[type="reset"]
):disabled,
:where(
  .wp-element-button,
  .wp-block-button__link,
  .button,
  .ct-button,
  button,
  input[type="button"],
  input[type="submit"],
  input[type="reset"]
).disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* Form fields */
:where(input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]), textarea, select) {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  color: var(--text);
}

:where(input, textarea)::placeholder {
  color: rgba(245, 247, 250, 0.62);
}

label {
  display: inline-block;
  margin-bottom: 6px;
  font-weight: 600;
}

/* Shared surface cards for blocks/content */
.wp-block-group,
.wp-block-cover,
.wp-block-columns,
.wp-block-table,
.wp-block-quote,
.wp-block-pullquote,
.wp-block-details,
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error {
  border-color: var(--line);
}

.wp-block-quote,
.wp-block-pullquote {
  border-left: 3px solid rgba(18, 179, 165, 0.65);
  padding-left: 14px;
  color: var(--muted);
}

.wp-block-separator {
  border-color: rgba(255, 255, 255, 0.16);
}

/* Woo global readability */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.woocommerce div.product,
.woocommerce-cart-form,
.cart_totals,
.woocommerce-checkout-review-order,
.woocommerce-MyAccount-content {
  min-width: 0;
}

.woocommerce ul.products li.product .price,
.woocommerce-page ul.products li.product .price {
  color: #bffbf3;
  font-weight: 700;
}

.woocommerce table.shop_table {
  border-color: var(--line);
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  border-color: var(--line);
}

/* Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-muted {
  color: var(--muted) !important;
}

@media (max-width: 1024px) {
  body {
    font-size: 15px;
  }
}

@media (max-width: 767px) {
  body {
    font-size: 15px;
  }

  :where(
    .wp-element-button,
    .wp-block-button__link,
    .button,
    .ct-button,
    button,
    input[type="button"],
    input[type="submit"],
    input[type="reset"]
  ) {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
    animation: none !important;
  }
}
