/* =============================================
   GLOBAL STYLES — Engineering Plastics Portal
   Reset, Variables, Typography, Shared Components
   ============================================= */

/* --- Fonts --- */
@font-face {
    font-family: 'Manrope';
    src: url('../fonts/Manrope-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Manrope';
    src: url('../fonts/Manrope-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Manrope';
    src: url('../fonts/Manrope-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Manrope';
    src: url('../fonts/Manrope-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* --- CSS Variables --- */
:root {
    --bg-page:         #F7F6F2;
    --bg-surface:      #FFFFFF;
    --bg-card:         #F0EFE9;
    --bg-nav:          #FFFFFF;
    --bg-footer:       #111111;
    --gold:            #007bff;
    --gold-light:      #3395ff;
    --gold-dim:        #0056b3;
    --text-primary:    #0a0a0a;
    --text-secondary:  #2d2d2d;
    --text-muted:      #555555;
    --border-default:  #E2E0D8;
    --border-strong:   #C8C6BE;
    --grid-line:       rgba(0,0,0,0.06);

    --font-display:    'Barlow Condensed', sans-serif;
    --font-heading:    'Outfit', sans-serif;
    --font-main:       'Inter', sans-serif;
    --font-body:       'Inter', sans-serif;
    --font-mono:       'DM Mono', monospace;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--text-secondary);
    background-color: var(--bg-page);
    line-height: 1.6;
}

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

a {
    color: inherit;
    text-decoration: none;
}

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

ul, ol {
    list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.15;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

@media (min-width: 769px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.125rem; }
}

p {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.125rem;
    letter-spacing: -0.01em;
}

.mono {
    font-family: var(--font-mono);
}

/* --- Shared Components --- */

/* Section Header with number */
.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-default);
    margin-bottom: 40px;
}

.section-number {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 15px;
    color: var(--gold-dim);
    letter-spacing: 0.02em;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-primary);
}

/* Gold square bullet list */
.gold-list {
    list-style: none;
    padding: 0;
}

.gold-list li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 8px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.gold-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 4px;
    height: 4px;
    background-color: var(--gold);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    padding: 12px 28px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    border-radius: 0;
}

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

.btn-gold:hover {
    background-color: var(--gold-light);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold-dim);
}

.btn-sm {
    padding: 9px 22px;
    font-size: 11px;
}

/* Container */
.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 769px) {
    .container {
        padding: 0 32px;
    }
}

@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
}

/* Industry Tags */
.tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gold-dim);
    border: 1px solid var(--gold);
    padding: 4px 12px;
    margin: 0 6px 6px 0;
    background: rgba(0,123,255,0.06);
    border-radius: 0;
}

/* Full-width rule */
.rule {
    border: none;
    border-top: 1px solid var(--border-default);
    margin: 0;
}

/* Grid background pattern (for sections) */
.grid-bg {
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 48px 48px;
}

/* --- Form Styles --- */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-primary);
    margin-bottom: 8px;
    transition: color 0.2s ease;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-primary);
    background: #FAFAF8;
    border: 1px solid var(--border-default);
    border-radius: 0;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold);
    background: #FFFFFF;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.08);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.6;
}

.form-group:focus-within label {
    color: var(--gold);
}

/* Removed Desktop-First responsive block. Now using Mobile-First pattern above. */
