/*
    CoreMaster 4
    Copyright (C) 2026 W.Smolko
================================================================================
    Core
============================================================================= */

:root {
  --ui-scale: 1.125;
  
  --radius-sm: .4rem;
  --radius-md: .7rem;
  --radius-lg: 1rem;

  /* ===== Brand Colors ===== */

  --green:        #10A37E;
  --green-dark:   #0C8A6B;
  
  --red:          #F04361;
  --red-dark:     #D73752;
  
  --orange:       #D88A2A;
  --orange-dark:  #C97C22;
  
  --blue:         #6B7BFF;
  --blue-dark:    #5263ff;
  
  --white: #FFFFFF;
  --black: #000000;
  
  --danger:  var(--red);
  --success: var(--green);
  --warning: var(--orange);
  --info:    var(--blue);
  
  --focus: var(--green);
  --focus-ring: rgba(16, 163, 126, 0.25);
  
  /* ===== Light ===== */
  
  --bg: #FFFFFF;
  --bg-muted: #F5F6F8;
  --bg-accent: #0F1115;
  --card: #FFFFFF;
  --card-muted: #FAFBFC;
  --border: #E3E6EA;

  --text: #1C1F26;
  --muted: #5F6672;
  --accent: #F2F3F5;

  --neutral-bg: #E7EAF0;
  --neutral-hover: #DCE1E8;
  --neutral-text: #1C1F26;
  --neutral-border: #C9CFD8;
}

[data-theme="dark"] {
  --bg: #0F1115;
  --card: #1A1D23;
  --card-muted: #21252D;
  --border: #2A2F38;

  --text: #F2F3F5;
  --muted: #9AA0A6;

  --neutral-bg: #2A2F38;
  --neutral-hover: #343A44;
  --neutral-text: #F2F3F5;
  --neutral-border: #3A414C;
}

html {
  font-size: calc(100% * var(--ui-scale));
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.5rem;
}

/* needed only if you use floats */
/*
body > *:before,
body > *:after {
    clear: both;
    content: " ";
    display: table;
}
*/

body > *,
main > * {
  padding-inline: max(5%, calc((100% - 55rem) / 2));
}

main {
  padding-inline: 0;
}

main .hero-section {
  background-color: var(--bg);
  padding-block: 3rem;
}

main .features-section {
  background-color: var(--bg-muted);
  padding-block: 3rem;
}

main .contact-section {
  background-color: var(--bg);
  padding-block: 3rem;
}

body > nav {
  background-color: var(--bg-muted);
  /*border-bottom: 1px solid #e0e0e0;*/
}

body > header {
  background-color: var(--bg);
  color: var(--text);
  padding-block: 1.5rem;
}

body > aside {
  background-color: var(--bg-muted);
  color: var(--text);
  padding-block: 1.5rem;
}

body > footer {
  background-color: var(--bg-accent);
  color: var(--muted); 
  padding-block: 3rem;
}

h1 {
    font-size: 2.48832em;
    line-height: 1.205632716em;
    margin-top: 0.602816358em;
    margin-bottom: 0.602816358em;
    font-weight: 400;
}

h2 {
    font-size: 2.0736em;
    line-height: 1.446759259em;
    margin-top: 0.72337963em;
    margin-bottom: 0.72337963em;
    font-weight: 400;
}

h3 {
    font-size: 1.728em;
    line-height: 0.868055556em;
    margin-top: 0.868055556em;
    margin-bottom: 0.868055556em;
    font-weight: 400;
}

h4 {
    font-size: 1.44em;
    line-height: 1.041666667em;
    margin-top: 1.041666667em;
    margin-bottom: 1.041666667em;
    font-weight: 400;
}

h5 {
    font-size: 1.2em;
    line-height: 1.25em;
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    font-weight: 400;
}

h6 {
    font-size: 1em;
    line-height: 1.5em;
    margin-top: 0;
    margin-bottom: 0;
    font-weight: 600;
}

small {
    color: #666;
    font-size: 0.833333333em;
    line-height: 1.446759259em;
}

p, ul, ol, pre, blockquote {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

ul, ol {
    padding-left: 1.5rem;
}

ul ul, ol ol, ul ol, ol ul {
    margin-top: 0;
    margin-bottom: 0;
}

a, b, i, strong, em, code {
    line-height: 0;
}

dt {
    font-weight: 600;
}

dl, dt, dd {
    line-height: 1.5rem;
    margin-top: 0;
    margin-bottom: 0;
}

code {
    background-color: rgba(0, 0, 0, .1);
}

a {
    color: blue;
    color: #2a6099;
    cursor: pointer;
    text-decoration: none;
}

small a,
a.link,
a:link {
    color: blue;
    color: #2a6099;
    color: hsl(211, 57%, 38%);
}

a.visited,
a:visited {
    color: purple;
    color: #800080;
    color: hsl(300, 100%, 25%);
}

a.hover,
a:hover {
    color: green;
    color: #00a933;
    color: hsl(138, 100%, 33%);
}

a.active,
a:active {
    color: red;
    color: #ff0000;
    color: hsl(0, 100%, 50%);
}

a img {
    text-decoration: none;
}

.text-muted { color: var(--muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-info { color: var(--info); }

hr {
    border-top: 1px solid rgba(0, 0, 0, .15);
    border-left: transparent;
    border-right: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, .15);
    margin: -1px 0;
}

video,
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 0;
    object-fit: cover; /* Experimental: to work with image-rythm.js */
}

/* Details
============================================================================= */

:root {
    /* Limited support */
    interpolate-size: allow-keywords;
}

details * {
    margin: ;
}

details {
    overflow: hidden;
}

details::details-content {
    block-size: 0;
    transition: block-size 150ms, content-visibility 150ms;
    transition-behavior: allow-discrete;
}

details[open]::details-content {
    block-size: auto;
}

summary {
    cursor: pointer;
    /* list-style-position: outside; */
}

summary::marker {
    /* color: #808080; */
}

/* Textarea
============================================================================= */

textarea {
    background-color: hsl(0, 0%, 100%);
    border: 1px solid;
    border-color: hsl(0, 0%, 75%);
    border-radius: 0;
    color: hsl(0, 0%, 25%);
	font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
    display: block;
    margin: 0;
    overflow: auto;
}

/* Pre
============================================================================= */

pre {
    background-color: #f8f8f8;
    border-left: 4px solid #00a933;
    border-radius: 0;
    color: #158466;
	font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
    overflow-x: auto;
    padding: 1.5rem;
}

/* Blockquote hsla(211, 57%, 38%, 1)
============================================================================= */

blockquote {
    border-left: 4px solid rgba(0, 0, 0, .15);
    /* font-family: Georgia, serif; */
    font-style: italic;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
    padding: 0 1.5rem;
}

blockquote cite {
    color: hsl(0, 0%, 60%);
    display: block;
    font-size: 83%;
}
 
blockquote cite:before {
    content: "\2014 \2009";
}

/* Table TODO
============================================================================= */

table {
    border-collapse: separate;/*separate*/
    border-spacing: 2px;/*2px*/
    border: 0;/*0*/border:0px solid black;
    margin-bottom: calc(1.5rem - 2px);/*calc(1.5rem - 3px)*/
    margin-top: 0;/*0*/
    width: 100%;
}

th, td {
    border-collapse: ;/*separate*/
    border: ;/*0*/
    padding: calc(1.5rem / 2 - 1px) 1em calc(1.5rem / 2 - 1px) 1em;
    /*padding: calc(1.5rem / 2 - 1px) 1em calc(1.5rem / 2 - 1px) 1em;*/
    text-align: left;
}

thead,
tfoot {
    background-color: rgba(0, 0, 0, .15);
}

tbody th {
    background-color: rgba(0, 0, 0, .05);
}


tbody tr:nth-child(even) td {
    background-color: rgba(0, 0, 0, .05);
}

/* Button TODO
============================================================================= */

button:focus,
.button:focus {
    outline: none;
}

button,
.button {
    background-color: var(--neutral-bg);
    border: none;
    border-radius: var(--radius-md);
    color: var(--neutral-text);
    cursor: pointer;
    display: inline-block;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5rem;
    margin: calc(1.5rem / 2) 0;
    overflow: hidden;
    padding: calc(1.5rem / 2) 1.5rem;
    position: relative;
    text-align: center;
    text-decoration: none;
    vertical-align: top;
}

button:hover,
.button:hover {
    box-shadow: inset 0 0 10em 2em rgba(0, 0, 0, .1);
}

button.active,
button:active,
.button.active,
.button:active {
    box-shadow: inset 0 0 10em 2em rgba(0, 0, 0, .2);
}

a.button,
a.button:link,
a.button:visited,
a.button:hover,
a.button:active {
    color: var(--neutral-text);
}

button a,
button a:link,
button a:visited,
button a:hover,
button a:active {
    color: var(--neutral-text);
    text-decoration: none;
}

button.info,
.button.info {
  background-color: var(--info);
  color: var(--white) !important;
}

button.success,
.button.success {
  background-color: var(--success);
  color: var(--white) !important;
}

button.warning,
.button.warning {
  background-color: var(--warning);
  color: var(--white) !important;
}

button.danger,
.button.danger {
  background-color: var(--danger);
  color: var(--white) !important;
}

/*TODO*/
button i {
 /*width: 100%;*/
}

/* Form TODO
============================================================================= */


input[type=text], select {
    width: 100%;
    /* padding: 12px 20px; */  /* 12px 20px */
    /* margin: 8px 0; */  /* 8px 0 */
    display: table;
    /* border: 0px solid rgba(0, 0, 0, .1); */ /* 1px */
    border-radius: 4px;

    
    /* V.2023.12.11 */
    border: none;
    /* box-shadow: inset 0 0 1px 0 rgba(0, 0, 0, .5); */
    box-shadow: none;
    box-shadow: 0 0 0 1px hsl(0, 0%, 50%); /* same as text ? */

    color: inherit;
    display: inline-block;
    font-size: 1rem;
    line-height: 1.5rem;
    margin: calc(1.5rem / 2) 0;
    padding: calc(1.5rem / 2) 1.5rem;
    position: relative;
    text-align: left;
    text-decoration: none;
    vertical-align: top;
}

/**/
input[type=text] {
  -webkit-transition: 0.2s;
  transition: 0.2s;
  outline: none;
}
input[type=text]:focus {
    box-shadow: 0 0 0 3px hsl(211, 50%, 50%);
}

input[type=reset],
input[type=submit] {
    width: 100%;
    background-color: #2a6099;
    color: white;
    /* padding: 14px 20px; */  /* 14px 20px */
    /* margin: 8px 0; */  /* 8px 0 */
    border: none;
    border-radius: 4px;
    cursor: pointer;
    
    /* V.2023.12.11 */
    font-size: 1rem;
    line-height: 1.5rem;
    /*margin: calc(1.5rem / 2) 0;
    padding: calc(1.5rem / 2) 1.5rem;*/
}

input[type=reset]:hover,
input[type=submit]:hover {
    box-shadow: inset 0 0 10em 2em rgba(0, 0, 0, .1);
}

/* =============================================================================
    Form
============================================================================= */

input[type="text"], textarea {
    background-color: var(--primary-1, hsl(211, 57%, 38%, .05));
    box-shadow: 0 0 0 2px var(--primary-1, hsl(211, 57%, 38%, .3));
    color: var(--primary-1, hsl(211, 57%, 38%, 1));
}

input[type=text], select {/*
    border-radius: 4px;
    box-shadow: 0 0 0 1px hsl(0, 0%, 50%);
    color: inherit;
    */
}

input[type=text]::placeholder {
    color: var(--primary-1, hsl(211, 57%, 38%));
    opacity: .5;
}

input[type=text]:focus {
    background-color: white;
    box-shadow: 0 0 0 4px var(--accent-1, hsl(211, 57%, 38%));
}

/* ===== Inputs ===== */

.input {
  background: var(--card-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: calc(1.5rem / 2 - 1px) calc(1.5rem / 2);
  color: var(--text);
  width: 100%;
  /*margin-top: .5rem;*/
  margin: calc(1.5rem / 4 - 1px) 0; /* why 4 -1px*/
}

.input:focus,
.input:focus-visible {
  outline: none;
  border: 1px solid var(--focus);
  box-shadow: 0 0 0 .15rem var(--focus-ring);
}

/* ===== Cards ===== */

.card {
  background: var(--card);
  /*border: 1px solid var(--border);*/
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

/* ===== Buttons ===== */

.button {
  display: inline-block;
  padding: calc(1.5rem / 2) 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  border: none;
  cursor: pointer;
  margin: calc(1.5rem / 2) 0;
  transition: 0.2s ease;
}

.button {
  transition: background 0.18s ease,
              box-shadow 0.18s ease,
              transform 0.08s ease;
}

.button:active {
  transform: scale(0.98);
}

.button-neutral {
  background: var(--neutral-bg);
  color: var(--neutral-text);
}

.button-neutral-outline {
  background: transparent;
  color: var(--neutral-text);
  border: 1px solid var(--neutral-border);
  padding: calc(1.5rem / 2 - 1px) 1.5rem;
}

.button-red,
.button-danger {
  background: var(--danger);
  color: white;
}

.button-green,
.button-success {
  background: var(--success);
  color: white;
}

.button-orange,
.button-warning {
  background: var(--warning);
  color: white;
}

.button-blue,
.button-info {
  background: var(--info);
  color: white;
}

@media (hover: hover) and (pointer: fine) {
  .button:hover {
    background: var(--neutral-hover);
  }
  
  .button-neutral:hover {
    background: var(--neutral-hover);
  }
  
  .button-neutral-outline:hover {
    background: var(--neutral-bg);
  }
  
  .button-red:hover,
  .button-danger:hover {
    background: var(--red-dark);
  }
  
  .button.success:hover,
  .button-green:hover,
  .button-success:hover {
    background: var(--green-dark);
  }
  
  .button-orange:hover,
  .button-warning:hover {
    background: var(--orange-dark);
    color: white;
  }
  
  .button-blue:hover,
  .button-info:hover {
    background: var(--blue-dark);
    color: white;
  }
}

/* ===== Badges ===== */

.badge {
  display: inline-block;
  padding: calc(1.5rem / 4) calc(1.5rem / 2);
  border-radius: var(--radius-md);
  font-size: 83%;
  font-weight: 600;
  margin: calc(1.5rem / 4) 0;
}

.badge-neutral {
  background: var(--neutral-bg);
  color: var(--neutral-text);
}

.badge-neutral-outline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--neutral-border);
  padding: calc(1.5rem / 4 - 1px) calc(1.5rem / 2);
}

.badge-green,
.badge-success {
  background: var(--success);
  color: white;
}

.badge-red,
.badge-danger {
  background: var(--danger);
  color: white;
}

.badge-orange,
.badge-warning {
  background: var(--warning);
  color: white;
}

.badge-blue,
.badge-info {
  background: var(--info);
  color: white;
}

/* ===== Icons ===== */

.icon {
  width: 1rem;
  height: 1rem;
  vertical-align: -0.15rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-small {
  width: .8rem;
  height: .8rem;
  vertical-align: -0.15rem;
  color: var(--info);
}

.icon-active {
  fill: currentColor;
}

.icon-img {
  width: 1.2rem;
  height: 1.2rem;
}

/* ==== Flex Container ==== */

.flex-container {
  display: flex;
  flex-direction: row;
}

.flex-item {
  padding: 0;
  margin: calc(1.5rem / 2) calc(1.5rem / 4);
  text-align: left;
  width: 100%;
}

.flex-item:first-child {
  margin-left: 0;
}

.flex-item:last-child {
  margin-right: 0;
}

@media (max-width: 36rem) {
  .flex-container {
    flex-direction: column;
  }

  .flex-item {
    margin: calc(1.5rem / 2) 0;
  }
}

/* ===== Swatches ===== */

.swatch {
  height: 3rem;
  border-radius: var(--radius-sm);
  max-width: 100%;
}

/*
================================================================================
    Pure CSS i.ic-icon
============================================================================= */

i[class*="ic-"] {
    position: relative;
    display: inline-block;
    background-color: transparent;
    border-radius: .125em;
    box-sizing: border-box;
    font-style: normal;
    vertical-align: baseline;
    margin: 0;
    bottom: -.125em;
    max-height: 1em;
    width: 1em;
}

i[class*="ic-"]:before,
i[class*="ic-"]:after {
    position: absolute;
    content: "";
    border-width: 0;
    box-sizing: border-box;
}

/* ic-home
============================================================================= */

i.ic-home:before {
  background-color: transparent;
  border-color: currentColor;
  border-left-color: transparent;
  border-right-color: transparent;
  border-top-color: transparent;
  border-style: solid;
  border-radius: 0;
  border-width: .375em .375em .375em .375em;
  box-shadow: -.25em .4375em 0 -.25em currentColor,
              .25em .4375em 0 -.25em currentColor;
  bottom: .3125em;
  left: .125em;
}

i.ic-home:after {
  height: .75em;
  width: .75em;
  background-color: transparent;
  border-color: var(--green);
  border-style: solid;
  border-width: .125em 0 0 .125em;
  border-radius: .125em;
  bottom: .0625em;
  left: .125em;
  -webkit-transform: rotate(45deg);
      -ms-transform: rotate(45deg);
          transform: rotate(45deg);
}

/* ic-grid
============================================================================= */

i.ic-grid:before {
    height: .4375em;
    width: .4375em;
    background-color: var(--green);
    box-shadow: .5625em 0 currentColor, 
                0 .5625em currentColor, 
                .5625em .5625em currentColor;
    bottom: .5625em;
    left: 0;
}

i.ic-grid.active:before {
    height: .375em;
    width: .375em;
    background-color: var(--green);
    box-shadow: .625em 0 currentColor, 
                0 .625em currentColor, 
                .625em .625em currentColor;
    bottom: .625em;
    left: 0;
}

/* ic-menu
============================================================================= */

i.ic-menu:before {
    height: .9375em;
    width: 1em;
    border-color: currentColor transparent;
    border-style: solid;
    border-width: .1875em 0;
    border-radius: 0;
    bottom: 0;
    left: 0;
}

i.ic-menu:after {
    height: .1875em;
    width: 1em;
    background-color: ;
    border-color: currentColor;
    border-style: solid;
    border-width: .1875em 0 0;
    border-radius: 0;
    bottom: .375em;
    left: 0;
}

/* list
============================================================================= */

ul.list-unstyled {
    list-style-type: none;
    padding-left: 0;
}

ul.list-unstyled ul {
    list-style-type: none;
}

ul.list-inline {
    padding-left: 0;
    margin-bottom: 0;
}

ul.list-inline ul,
ul.list-inline li {
    display: inline-block;
    padding-left: 0;
    padding-right: 1.5rem;
}

ul.list-inline a {
    text-decoration: none;
    color: var(--text);
}

/* dropdown
============================================================================= */
/* <a href="javascript:void(0)" class="dropbtn"> */

.dropbtn,
.dropdown {
  display: inline-block; 
  cursor: pointer;
}

a.dropbtn {
  color: var(--text); 
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
    padding: calc(1.5rem / 2) 0;
  min-width: 180px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown-content a {
    line-height: 1.5rem;
    padding: calc(1.5rem / 4) calc(1.5rem / 1);
    display: block;
    color: var(--text);
}

.dropdown-content h6 {
    padding: 0 calc(1.5rem / 2);
    display: block;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
    display: block;
}
