/*
Theme Name: wp-hirium
Theme URI: https://hirium.com/wp-hirium
Author: Hirium
Author URI: https://hirium.com/
Description: A modern, performant, Gutenberg-first WordPress theme compatible with Yoast, caching plugins, and custom post types. Pixel-perfect header and footer with responsive blog layouts.
Version: 1.0.0
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: wp-hirium
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio,
*/

/* ------------------------------
   Design tokens
--------------------------------*/
:root {
  --max-width: 80rem;
  --content-width: 80rem;

  --color-bg: #ffffff;
  --color-surface: #f8fafc; /* slate-50 */
  --color-elevated: #ffffff;
  --color-text: #0f172a; /* slate-900 */
  --color-muted: #64748b; /* slate-500 */
  --color-border: #e2e8f0; /* slate-200 */
  --color-primary: #015244; /* primary green */
  --color-primary-600: #013d32; /* darker green */
  --color-primary-700: #012a22; /* darkest green */
  --color-secondary: #261C3F; /* secondary purple */
  --color-accent: #22c55e; /* green-500 */
  --color-warning: #f59e0b; /* amber-500 */
  --radius-sm: 0.5rem;
  --radius-md: 0.875rem;
  --radius-lg: 1.25rem;
  --shadow-sm: 0 0.0625rem 0.125rem rgba(0,0,0,.04);
  --shadow-md: 0 0.375rem 1.125rem rgba(2, 132, 199, .12);
  --shadow-lg: 0 1.125rem 3rem rgba(2, 132, 199, .18);
  --gap-1: 0.5rem;
  --gap-2: 0.75rem;
  --gap-3: 1rem;
  --gap-4: 1.5rem;
  --gap-5: 2rem;
  --gap-6: 2.5rem;
}

/* ------------------------------
   CSS reset / base
--------------------------------*/
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: "Inter Display", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; vertical-align: middle; }
figure { margin: 0; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-600); text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: "Inter Display", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  line-height: 1.2;
  margin: 0 0 0.6em;
}

p { margin: 0 0 1em; color: var(--color-text); }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.button, .wp-block-button__link, .wp-element-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  background: var(--color-primary);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  font-family: "Inter Display", sans-serif;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: all .2s ease;
}
.button:hover, .wp-block-button__link:hover, .wp-element-button:hover { 
  background: var(--color-primary-600); 
  color: #fff; 
  text-decoration: none; 
  transform: translateY(-1px); 
}

/* ------------------------------
   Gutenberg / content width
--------------------------------*/
.alignwide { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); width: 100vw; }
.wp-block { max-width: var(--content-width); }
.wp-block[data-align="wide"] { max-width: calc(var(--content-width) + 200px); }
.wp-block[data-align="full"] { max-width: none; }

/* ------------------------------
   Utilities
--------------------------------*/
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.5rem; }
.mt-6 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.5rem; }
.mb-6 { margin-bottom: 2rem; }
.text-center { text-align: center; }
.hide { display: none; }

/* Responsive table */
div.responsive-table {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
}
td, th {
  border: 1px solid #ccc;
  padding: 0.75rem;
}
td strong , th strong {font-weight: 600;}
@media (max-width: 64rem) {
  div.responsive-table {
    overflow-x: auto;
    width: 50rem;
  }
}

@media (max-width: 48rem) {
  div.responsive-table {
    overflow-x: auto;
    width: 43.75rem;
  }
}

@media (max-width: 30rem) {
  div.responsive-table {
    overflow-x: auto;
    width: 22rem;
  }
}
