/**
 * Ecopetróleo "Impulso Dominicano" - CSS Reset
 * Modern CSS reset with sensible defaults
 */

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

/* Remove default margin and padding */
* {
    margin: 0;
    padding: 0;
}

/* Prevent font size inflation */
html {
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
}

/* Set core body defaults */
body {
    min-height: 100vh;
    line-height: var(--leading-normal, 1.5);
    font-family: var(--font-body, 'Montserrat', sans-serif);
    background-color: var(--color-bg-dark, #0D1B2A);
    color: var(--color-text-primary, #FFFFFF);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Remove list styles on ul, ol elements with a list role */
ul[role='list'],
ol[role='list'] {
    list-style: none;
}

/* Set core root defaults */
html:focus-within {
    scroll-behavior: smooth;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
    text-decoration-skip-ink: auto;
    color: currentColor;
}

/* Make images easier to work with */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
    font: inherit;
}

/* Remove button default styles */
button {
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
}

/* Make sure textareas without rows attribute are not tiny */
textarea:not([rows]) {
    min-height: 10em;
}

/* Anything that has been anchored to should have extra scroll margin */
:target {
    scroll-margin-block: 5ex;
}

/* Remove all animations and transitions for people that prefer not to see them */
@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;
    }
}

/* Remove default fieldset styles */
fieldset {
    border: none;
}

/* Remove default legend styles */
legend {
    padding: 0;
}

/* Set hidden attribute to actually hide elements */
[hidden] {
    display: none !important;
}

/* Improve table defaults */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Remove default quote styles */
blockquote,
q {
    quotes: none;
}

blockquote::before,
blockquote::after,
q::before,
q::after {
    content: '';
    content: none;
}

/* Remove default hr styles */
hr {
    border: none;
    height: 1px;
    background-color: var(--color-border-subtle, rgba(255, 255, 255, 0.1));
}

/* Improve focus styles for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--color-gold, #F4A460);
    outline-offset: 2px;
}

/* Remove focus outline for mouse users */
:focus:not(:focus-visible) {
    outline: none;
}

/* Selection styles */
::selection {
    background-color: var(--color-eco-red, #E31837);
    color: var(--color-text-primary, #FFFFFF);
}

/* Scrollbar styles (WebKit) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-darker, #070F18);
}

::-webkit-scrollbar-thumb {
    background: var(--color-border-medium, rgba(255, 255, 255, 0.2));
    border-radius: var(--radius-full, 9999px);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-secondary, #B0B0B0);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--color-border-medium, rgba(255, 255, 255, 0.2)) var(--color-bg-darker, #070F18);
}
