/**
 * Welding.City — Industrial Dark Design System
 * Replaces Apple Glass light theme
 */

/* ===== CSS Variables ===== */
:root {
    --primary-color:   #ff6a00;
    --secondary-color: #ffb347;
    --accent-color:    #ffd700;

    --text-primary:   #f0f0f5;
    --text-secondary: #b0b0be;
    --text-tertiary:  #888898;

    --background:           #0d0d0d;
    --background-secondary: #141416;
    --background-tertiary:  #1e1f23;

    --border-color: #2a2b30;
    --border-light: #3c3d45;

    /* Glass — dark version */
    --glass-bg:     rgba(20, 20, 22, 0.75);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    /* Transitions */
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);

    /* Fonts */
    --font-primary:  'Barlow', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display:  'Bebas Neue', sans-serif;
    --font-heading:  'Barlow Condensed', sans-serif;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1rem;
    color: var(--text-primary);
    /* No gradient fills — welding theme uses solid colors */
    background: none;
    -webkit-text-fill-color: unset;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
    opacity: 1;
}

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Header ===== */
.header {
    position: sticky;
    top: 0;
    background: rgba(13, 13, 13, 0.88);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--text-primary);
    text-transform: uppercase;
    transition: var(--transition);
}

.logo:hover {
    color: var(--primary-color);
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav a {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav a:hover {
    background: rgba(255, 106, 0, 0.08);
    color: var(--primary-color);
}

.nav a.active {
    color: var(--primary-color);
    background: rgba(255, 106, 0, 0.1);
    font-weight: 600;
}

/* ===== Hero Section ===== */
.hero {
    padding: 100px 0 80px;
    text-align: center;
    background: transparent;
    position: relative;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
}

.hero p {
    font-size: 1.375rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* ===== Glass Cards (dark version) ===== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: saturate(160%) blur(16px);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 106, 0, 0.3);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-heading);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    gap: 8px;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 16px rgba(255, 106, 0, 0.3);
}

.btn-primary:hover {
    background: #ff8533;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(255, 106, 0, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(255, 106, 0, 0.05);
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1.0625rem;
    border-radius: var(--radius-md);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.875rem;
}

/* ===== Business Cards ===== */
.business-card {
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition);
    display: flex;
    gap: 20px;
}

.business-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 106, 0, 0.3);
}

.business-card.premium {
    background: linear-gradient(135deg, rgba(255, 106, 0, 0.06) 0%, rgba(255, 179, 71, 0.06) 100%);
    border: 2px solid var(--primary-color);
    box-shadow: 0 8px 24px rgba(255, 106, 0, 0.15);
}

.business-image {
    width: 140px;
    height: 140px;
    border-radius: var(--radius-md);
    object-fit: cover;
    flex-shrink: 0;
}

.business-content { flex: 1; }

.business-name {
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.business-category {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 106, 0, 0.1);
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
    border: 1px solid rgba(255, 106, 0, 0.2);
}

/* ===== Cities Grid ===== */
.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
    margin: 60px 0;
}

.city-card {
    position: relative;
    padding: 40px 32px;
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    overflow: hidden;
    color: var(--text-primary);
    text-decoration: none;
    display: block;
}

.city-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.city-card:hover::before { transform: scaleX(1); }

.city-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 106, 0, 0.3);
    color: var(--text-primary);
}

/* ===== Forms ===== */
.form-group { margin-bottom: 24px; }

.form-label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 0.9375rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
    font-family: var(--font-primary);
    color: var(--text-primary);
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.15);
    background: var(--background-tertiary);
}

/* ===== Section ===== */
.section {
    padding: 80px 0;
}

.section-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 0.95;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 60px;
}

/* ===== Footer ===== */
.footer {
    background: var(--background-secondary);
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 60px;
    margin-bottom: 60px;
}

.footer-column h4 {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-tertiary);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.footer-column ul { list-style: none; }

.footer-column ul li { margin-bottom: 14px; }

.footer-column a {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    transition: var(--transition);
}

.footer-column a:hover { color: var(--primary-color); }

/* ===== Alerts ===== */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.9375rem;
    border: 1px solid transparent;
}

.alert-success {
    background: rgba(52, 199, 89, 0.1);
    border-color: rgba(52, 199, 89, 0.3);
    color: #34c759;
}

.alert-error,
.alert-danger {
    background: rgba(255, 69, 58, 0.1);
    border-color: rgba(255, 69, 58, 0.3);
    color: #ff453a;
}

.alert-warning {
    background: rgba(255, 106, 0, 0.1);
    border-color: rgba(255, 106, 0, 0.3);
    color: var(--primary-color);
}

.alert-info {
    background: rgba(77, 159, 255, 0.1);
    border-color: rgba(77, 159, 255, 0.3);
    color: #4d9fff;
}

/* ===== Utility Classes ===== */
.text-center { text-align: center; }
.text-orange { color: var(--primary-color) !important; }
.text-dim    { color: var(--text-tertiary) !important; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 2rem; }

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--background); }
::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--primary-color); }

/* ===== Selection ===== */
::selection {
    background: rgba(255, 106, 0, 0.25);
    color: var(--text-primary);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero { padding: 70px 0 56px; }
    .hero h1 { font-size: 2.5rem; }
    .section-title { font-size: 2.2rem; }
    .section { padding: 56px 0; }
    .nav { gap: 1rem; }
    .business-card { flex-direction: column; }
    .business-image { width: 100%; height: 200px; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .footer { padding: 56px 0 32px; margin-top: 56px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .section-title { font-size: 1.8rem; }
    .container { padding: 0 16px; }
}