/* ==========================================================================
   Base Styles - HellaPrints
   Reset, typography, and foundational styles
   ========================================================================== */

/* -------------------------------------------------------------------------
   CSS Reset
   ------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--color-charcoal);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* -------------------------------------------------------------------------
   Typography
   ------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headline);
    font-weight: var(--font-semibold);
    line-height: var(--leading-tight);
    color: var(--color-charcoal);
}

h1 {
    font-size: var(--text-4xl);
}

h2 {
    font-size: var(--text-3xl);
}

h3 {
    font-size: var(--text-2xl);
}

h4 {
    font-size: var(--text-xl);
}

h5 {
    font-size: var(--text-lg);
}

h6 {
    font-size: var(--text-base);
}

p {
    margin-bottom: var(--space-4);
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--color-navy);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-gold);
}

a:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
}

strong, b {
    font-weight: var(--font-semibold);
}

small {
    font-size: var(--text-sm);
}

/* -------------------------------------------------------------------------
   Lists
   ------------------------------------------------------------------------- */
ul, ol {
    list-style: none;
}

/* -------------------------------------------------------------------------
   Images & Media
   ------------------------------------------------------------------------- */
img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

img {
    object-fit: cover;
}

/* -------------------------------------------------------------------------
   Forms
   ------------------------------------------------------------------------- */
button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

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

input, textarea {
    border: 1px solid var(--color-light-gray);
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-4);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.15);
}

input::placeholder, textarea::placeholder {
    color: var(--color-medium-gray);
}

/* Prevent iOS zoom on input focus */
@media (max-width: 768px) {
    input, select, textarea {
        font-size: 16px;
    }
}

/* -------------------------------------------------------------------------
   Selection
   ------------------------------------------------------------------------- */
::selection {
    background-color: var(--color-gold);
    color: var(--color-white);
}

/* -------------------------------------------------------------------------
   Focus Styles (Accessibility)
   ------------------------------------------------------------------------- */
:focus {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
}

/* -------------------------------------------------------------------------
   Skip Link (Accessibility)
   ------------------------------------------------------------------------- */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-4);
    background: var(--color-charcoal);
    color: var(--color-white);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    z-index: var(--z-toast);
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: var(--space-4);
}

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

/* -------------------------------------------------------------------------
   Layout Utilities
   ------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--space-16) 0;
}

.section--cream {
    background-color: var(--color-cream);
}

/* -------------------------------------------------------------------------
   Section Header
   ------------------------------------------------------------------------- */
.section__header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.section__title {
    margin-bottom: var(--space-4);
}

.section__subtitle {
    font-size: var(--text-lg);
    color: var(--color-dark-gray);
    max-width: 600px;
    margin: 0 auto;
}

.section__badge {
    display: inline-block;
    font-family: var(--font-ui);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-gold);
    margin-bottom: var(--space-3);
}

/* -------------------------------------------------------------------------
   Text Utilities
   ------------------------------------------------------------------------- */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-gold {
    color: var(--color-gold);
}

.text-navy {
    color: var(--color-navy);
}
