/* =============================================
   Reset, Typography & Utilities
   ============================================= */

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

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

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    background: var(--bg-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    line-height: 1.2;
    font-weight: 700;
}

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

ul { list-style: none; }

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

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

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

/* Section Labels */
.section-label {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    margin-bottom: 12px;
}

.section-label.light {
    color: var(--accent);
}

.section-title {
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-title-lg {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: var(--accent);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(200, 164, 94, 0.3);
}

.btn-primary i {
    transition: transform 0.3s;
}

.btn-primary:hover i {
    transform: translateX(4px);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-white);
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-main);
    position: relative;
    padding-bottom: 4px;
}

.btn-text::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.btn-text:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-text:hover {
    color: var(--accent);
}

.btn-text i {
    transition: transform 0.3s;
}

.btn-text:hover i {
    transform: translateX(4px);
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Utility */
.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;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s, visibility 0.6s;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-inner {
    text-align: center;
}

.preloader-line {
    width: 120px;
    height: 2px;
    background: rgba(255,255,255,0.1);
    margin: 0 auto 20px;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.preloader-line::after {
    content: '';
    position: absolute;
    top: 0; left: -50%;
    width: 50%;
    height: 100%;
    background: var(--accent);
    animation: preloaderSlide 1s ease-in-out infinite;
}

@keyframes preloaderSlide {
    0% { left: -50%; }
    100% { left: 100%; }
}

.preloader-inner span {
    color: var(--text-white);
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 3px;
    opacity: 0.6;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-dark);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent);
    transform: translateY(-4px);
}
