/*
Theme Name: One Theme
Theme URI: https://onecustom.co.za
Author: OneCustom
Author URI: https://onecustom.co.za
Description: A lightweight theme designed for Elementor Pro and WooCommerce integration.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: one-theme
Tags: custom-theme, elementor, woocommerce
*/

:root {
  --site-gutter: clamp(1.6rem, 1rem + 1vw, 3.2rem);
  --site-border-color: rgba(17, 17, 17, 0.12);
  --site-muted-color: rgba(17, 17, 17, 0.7);
  --site-surface-color: #ffffff;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  background-color: var(--site-surface-color);
  color: #111111;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.admin-bar {
  min-height: calc(100vh - 32px);
}

main {
  display: block;
}

img,
picture,
video,
canvas,
svg,
iframe {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

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

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.14em;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

textarea {
  resize: vertical;
  min-height: 12rem;
}

input[type="checkbox"],
input[type="radio"] {
  width: auto;
}

input[type="text"],
input[type="email"],
input[type="number"],
textarea {
  font-size: 16px;
}

ul,
ol {
  padding-left: 1.4em;
}

li + li {
  margin-top: 0.35em;
}

hr {
  border: 0;
  border-top: 1px solid var(--site-border-color);
  margin-block: 2rem;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.75em;
  text-align: left;
  border-bottom: 1px solid var(--site-border-color);
}

code,
pre,
kbd,
samp {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

pre {
  overflow: auto;
  padding: 1.2rem;
  border-radius: 0.6rem;
  background-color: rgba(17, 17, 17, 0.04);
}

.container,
.site-container {
  width: min(100% - (var(--site-gutter) * 2), var(--site-max-width));
  margin-inline: auto;
}

.site-main {
  width: 100%;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  overflow-wrap: anywhere;
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content blockquote,
.entry-content table,
.entry-content figure,
.entry-content pre {
  margin-block: 0 1em;
}

.entry-content blockquote {
  padding-left: 1em;
  border-left: 3px solid var(--site-border-color);
  color: var(--site-muted-color);
}

.entry-content > * {
  max-width: var(--site-content-width);
}

.entry-content > :where(.alignwide) {
  max-width: min(100%, calc(var(--site-max-width) - (var(--site-gutter) * 2)));
}

.entry-content > :where(.alignfull) {
  max-width: none;
  width: 100%;
}

.entry-content > *:not(.alignfull) {
  margin-inline: auto;
}

.site-header,
.site-footer {
  width: 100%;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  clip: auto;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.75rem 1rem;
  top: 1rem;
  left: 1rem;
  z-index: 100000;
  background: #ffffff;
  color: #111111;
}

@media (max-width: 782px) {
  body.admin-bar {
    min-height: calc(100vh - 46px);
  }
}
