/*
Theme Name: ASIC Miner Group
Theme URI: https://asicminergroup.com/
Author: Taras Snitynskyi
Author URI: https://snitynskyi.online/
Description: Lightweight custom theme for ASIC Miner Group (WooCommerce-ready)
Version: 1.0.1
Text Domain: asic-miner-group
*/

/* =========================================================
   1) CSS Variables (Design System)
   ========================================================= */
:root {
  /* ================= Fonts ================= */
  --font-heading: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-text: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  /* ================= Colors (LIGHT DEFAULT) ================= */
  /* Base backgrounds */
  --bg: #ffffff;              /* main page background */
  --surface: #f7f7f8;         /* light cards / sections */
  --surface-2: #f1f1f3;       /* elevated light blocks */

  /* Text */
  --text: #111827;            /* main text */
  --muted: #6b7280;           /* secondary text */

  /* Borders */
  --border: rgba(0, 0, 0, 0.08);

  /* ================= Brand accent ================= */
  --accent: #a6e22e;          /* main green (CTA, buttons) */
  --accent-2: #8fcf26;        /* hover */
  --accent-soft: rgba(166, 226, 46, 0.15);

  /* ================= States ================= */
  --success: #22c55e;
  --warning: #facc15;
  --danger: #ef4444;

  /* ================= Layout ================= */
  --container: 1200px;
  --radius: 16px;

  /* ================= Spacing ================= */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 48px;

  /* ================= Typography ================= */
  --text-base: 16px;
  --text-sm: 14px;
  --text-lg: 18px;

  --h1: clamp(30px, 3.5vw, 48px);
  --h2: clamp(24px, 2.6vw, 34px);
  --h3: clamp(20px, 2vw, 28px);
  --h4: 18px;
  --h5: 16px;
  --h6: 14px;

  /* ================= Shadows (LIGHT) ================= */
  --shadow-1: 0 6px 18px rgba(0, 0, 0, 0.08);
  --shadow-2: 0 12px 32px rgba(0, 0, 0, 0.12);

  /* ================= Focus ================= */
  --focus: 0 0 0 3px rgba(166, 226, 46, 0.35);
}



/* =========================================================
   2) Modern Reset (minimal, safe)
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html:focus-within {
  scroll-behavior: smooth;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: var(--text-base);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Avoid animations for users that prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================
   3) Typography (global)
   ========================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.25;
  margin: 0 0 var(--space-4);
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }
h4 { font-size: var(--h4); }
h5 { font-size: var(--h5); }
h6 { font-size: var(--h6); }

p {
  margin: 0 0 var(--space-4);
}

small {
  font-size: var(--text-sm);
  color: var(--muted);
}

strong, b {
  font-weight: 700;
}

/* =========================================================
   4) Links
   ========================================================= */
a {
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

a:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 8px;
}

/* Optional: global “accent” link class */
.a-accent {
  color: var(--accent);
}
.a-accent:hover {
  color: var(--accent-2);
}

/* =========================================================
   5) Layout helpers (foundation)
   ========================================================= */
.container {
  width: min(var(--container), calc(100% - 2 * var(--space-6)));
  margin-inline: auto;
}

.section {
  padding-block: var(--space-8);
}

.hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--space-7) 0;
}

/* =========================================================
   6) Basic UI primitives (keep minimal; component-level CSS lives
      in assets/css/)
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 12px 16px;
  border-radius: 12px;

  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);

  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1;
  cursor: pointer;

  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
}

.btn:active {
  transform: translateY(1px);
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.btn-primary {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-2);
}

.card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}

.card-pad {
  padding: var(--space-6);
}

/* =========================================================
   7) Forms (baseline)
   ========================================================= */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;

  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);

  outline: none;
  transition: box-shadow 120ms ease, border-color 120ms ease, background 120ms ease;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  box-shadow: var(--focus);
  border-color: rgba(37, 99, 235, 0.55);
  background: rgba(255, 255, 255, 0.05);
}

/* Placeholder */
::placeholder {
  color: rgba(229, 231, 235, 0.55);
}

/* =========================================================
   8) WordPress basics (safe defaults)
   ========================================================= */
/* Alignments (Gutenberg) */
.alignwide { width: min(1200px, 100%); }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }

.wp-block-image img {
  border-radius: 14px;
}

/* Captions */
.wp-caption-text,
.wp-element-caption {
  margin-top: 8px;
  color: var(--muted);
  font-size: var(--text-sm);
}

/* =========================================================
   9) Accessibility helpers
   ========================================================= */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  transform: translateY(-200%);
  background: var(--surface);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  z-index: 9999;
}

.skip-link:focus {
  transform: translateY(0);
  box-shadow: var(--focus);
}

/* =========================================================
   10) Small utilities
   ========================================================= */
.m-0 { margin: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

.text-muted { color: var(--muted) !important; }
.text-center { text-align: center !important; }

.hidden { display: none !important; }

/* =========================================================
   Notes:
   - Header, footer, menus, WooCommerce layouts live in basic.css
   - Keep this file “foundation only”
   ========================================================= */
