/**
 * CSS Reset & Normalize
 * FPT Telecom - Modern reset based on reference patterns
 * Reference: @ref-frontend/assets/css/layout.css
 */

/* =============================================
 * BOX SIZING & BASE SETUP
 * ============================================= */

html {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  line-height: 1.15;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden; /* Prevent horizontal scroll */
  width: 100%;
}

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

/* =============================================
 * BODY & DOCUMENT
 * ============================================= */

body {
  padding: 0;
  margin: 0;
  font-family: var(--font-primary);
  font-size: var(--font-size-16);
  line-height: var(--line-height-normal);
  color: var(--color-gray-600);
  background-color: var(--color-white);
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
body::-webkit-scrollbar {
  height: 6px;
  width: 6px;
}

body::-webkit-scrollbar-track {
  background-color: rgba(232, 232, 232, 0.8);
}

body::-webkit-scrollbar-thumb {
  background: var(--color-gray-200);
  border-radius: var(--radius-sm);
}

/* =============================================
 * HEADINGS
 * ============================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
  padding: 0;
  margin: 0;
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-gray-700);
}

h1 {
  font-size: var(--font-size-56);
}

h2 {
  font-size: var(--font-size-48);
}

h3 {
  font-size: var(--font-size-24);
}

h4 {
  font-size: var(--font-size-20);
}

h5 {
  font-size: var(--font-size-18);
}

h6 {
  font-size: var(--font-size-16);
}

/* =============================================
 * TEXT ELEMENTS
 * ============================================= */

p {
  line-height: var(--line-height-normal);
  margin-bottom: 10px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-normal);
}

a:hover,
a:focus,
a:active {
  outline: none;
  text-decoration: none;
}

/* =============================================
 * LISTS
 * ============================================= */

ul,
ol,
li {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* =============================================
 * FORMS & BUTTONS
 * ============================================= */

button,
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  margin: 0;
}

button,
input[type='button'],
input[type='submit'],
input[type='reset'] {
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

input[type='text'],
input[type='email'],
input[type='tel'],
input[type='password'],
input[type='search'],
textarea,
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: none;
}

/* =============================================
 * IMAGES & MEDIA
 * ============================================= */

img {
  max-width: 100%;
  height: auto;
  display: block;
}

svg {
  display: block;
}

/* =============================================
 * TABLES
 * ============================================= */

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* =============================================
 * LAYOUT CONTAINERS
 * ============================================= */

/* Main content container */
.site-main {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
}

/* =============================================
 * UTILITIES
 * ============================================= */

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

/* Hidden */
.hidden {
  display: none !important;
}

/* Clearfix */
.clearfix::after {
  content: '';
  display: table;
  clear: both;
}
