/* DFW Machine — Custom Styles */

/* ========== RESET / GLOBAL ========== */
* { box-sizing: border-box; }

body {
    background-color: #0d0d1a !important;
    color: #f5f0e8 !important;
    font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif !important;
    margin: 0;
    padding: 0;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #c9a96e;
    line-height: 1.15;
}

a {
    color: #b87333;
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: #c9a96e;
}

p, li, td, th, label, input, textarea, select, button {
    font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif !important;
}

::selection {
    background: #b87333;
    color: #0d0d1a;
}

/* ========== HEADER ========== */
.site-header {
    background: linear-gradient(180deg, #0d0d1a 0%, #1a1a2e 100%);
    border-bottom: 3px solid #c9a96e;
    padding: 0.75rem 0;
    margin-bottom: 0;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.site-branding {
    display: flex;
    align-items: baseline;
    gap: 1.2rem;
}

.site-branding .site-title {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-weight: 700;
    font-size: 2.2rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #c9a96e;
    text-decoration: none;
}

.site-branding .site-title span.accent {
    color: #b22234;
}

.site-tagline {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-size: 0.85rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding-top: 0.15em;
}

/* Navigation — horizontal, clean */
.main-nav ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    gap: 2rem;
}

.main-nav li {
    list-style: none !important;
    margin: 0;
    padding: 0;
}

.main-nav a,
.main-nav ul li a {
    font-family: 'Barlow Condensed', sans-serif !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    font-size: 0.95rem;
    color: #f5f0e8 !important;
    text-decoration: none !important;
    transition: color 0.2s;
}

.main-nav a:hover,
.main-nav ul li a:hover {
    color: #c9a96e !important;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: 1px solid #c9a96e;
    color: #c9a96e;
    font-size: 1.5rem;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
}

/* ========== HERO ========== */
.hero-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #0d0d1a 50%, #1a1a2e 100%);
    border-bottom: none;
    padding: 5rem 2rem;
    text-align: center;
}

.hero-inner {
    max-width: 900px;
    margin: 0 auto;
}

.hero-section h1 {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-size: 3.5rem;
    font-weight: 700;
    color: #f5f0e8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    line-height: 1.1;
}

.hero-section h1 .highlight {
    color: #c9a96e;
}

.hero-section .tagline {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-size: 1.2rem;
    color: #b87333;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.hero-buttons .btn,
.hero-section .btn {
    font-family: 'Barlow Condensed', sans-serif !important;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-block;
    font-family: 'Barlow Condensed', sans-serif !important;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 0.85rem 2.5rem;
    text-decoration: none !important;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: #b22234;
    color: #fff !important;
    border-color: #b22234;
}
.btn-primary:hover {
    background: #d4293e;
    border-color: #d4293e;
    color: #fff !important;
}

.btn-outline {
    background: transparent;
    color: #c9a96e !important;
    border: 2px solid #c9a96e;
}
.btn-outline:hover {
    background: #c9a96e;
    color: #0d0d1a !important;
}

/* ========== USA BADGE ========== */
.usa-badge-wrap {
    margin-top: 1rem;
}

.usa-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #b22234 0%, #3c3b6e 100%);
    color: #fff;
    padding: 0.5rem 1.2rem;
    font-family: 'Barlow Condensed', sans-serif !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.85rem;
}

/* ========== DIVIDER ========== */
.industrial-divider,
hr.industrial-divider {
    border: none !important;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #c9a96e 50%, transparent 100%);
    margin: 2rem 0;
}

/* Space between header border and hero */
.site-header + .site-main .hero-section,
.site-header + main .hero-section {
    margin-top: 0;
}

/* ========== SECTIONS ========== */
.services-section,
.learn-preview {
    padding: 3rem 2rem;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-inner > h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: #999;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* ========== SERVICES GRID ========== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 1rem 0;
}

.service-card {
    background: #1a1a2e;
    border: 1px solid #333;
    border-top: 3px solid #b87333;
    padding: 2rem;
    transition: border-color 0.3s, transform 0.2s;
}

.service-card:hover {
    border-top-color: #c9a96e;
    transform: translateY(-2px);
}

.service-card h3 {
    color: #c9a96e;
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    margin-top: 0;
}

.service-card p {
    color: #ccc;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

/* ========== CTA BANNER ========== */
.cta-banner {
    background: linear-gradient(135deg, #b22234 0%, #8b1a28 100%);
    padding: 3rem 2rem;
    text-align: center;
}

.cta-banner h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.cta-banner p {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.cta-banner .btn {
    background: #c9a96e;
    color: #0d0d1a !important;
    border-color: #c9a96e;
}
.cta-banner .btn:hover {
    background: #f5f0e8;
    color: #0d0d1a !important;
}

/* ========== ARTICLE GRID ========== */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.article-card {
    background: #1a1a2e;
    border: 1px solid #2a2a3e;
    padding: 1.5rem;
    transition: border-color 0.3s;
}

.article-card:hover {
    border-color: #b87333;
}

.article-card .category-tag,
.article-card .category-tag a,
.category-tag,
.category-tag a {
    font-family: 'Barlow Condensed', sans-serif !important;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: #b87333 !important;
    text-decoration: none !important;
}

.article-card h3 {
    font-size: 1.2rem;
    color: #f5f0e8;
    margin: 0.5rem 0;
    text-transform: none;
}

.article-card h3 a {
    color: #f5f0e8 !important;
    text-decoration: none !important;
}

.article-card h3 a:hover {
    color: #c9a96e !important;
}

.article-card .excerpt {
    color: #999;
    font-size: 0.9rem;
}

/* ========== SINGLE ARTICLE ========== */
.single-article {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.page-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.post-content {
    font-size: 1.05rem;
    line-height: 1.8;
}

.post-meta {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.breadcrumbs {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 1rem;
}
.breadcrumbs a { color: #b87333; }
.breadcrumbs a:hover { color: #c9a96e; }

/* ========== TABLES ========== */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

thead {
    background: #1a1a2e;
    border-bottom: 2px solid #c9a96e;
}

th {
    color: #c9a96e;
    font-family: 'Barlow Condensed', sans-serif !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem;
    text-align: left;
}

td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid #2a2a3e;
    color: #ddd;
}

tr:hover { background: rgba(184, 115, 51, 0.08); }
tbody tr:nth-child(even) { background: rgba(26, 26, 46, 0.5); }

/* ========== FORMS ========== */
.quote-form-section {
    background: #1a1a2e;
    border: 1px solid #333;
    border-top: 3px solid #b22234;
    padding: 2.5rem;
    margin: 2rem 0;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea,
select {
    background: #0d0d1a !important;
    border: 1px solid #444 !important;
    color: #f5f0e8 !important;
    padding: 0.75rem;
    width: 100%;
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: border-color 0.3s;
}

input:focus, textarea:focus, select:focus {
    border-color: #c9a96e !important;
    outline: none;
}

label {
    display: block;
    font-family: 'Barlow Condensed', sans-serif !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
    color: #c9a96e;
    margin-bottom: 0.3rem;
}

input[type="submit"],
button[type="submit"] {
    background: #b22234 !important;
    color: #fff !important;
    border: none !important;
    padding: 0.85rem 2.5rem;
    font-family: 'Barlow Condensed', sans-serif !important;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: background 0.3s;
}

input[type="submit"]:hover,
button[type="submit"]:hover {
    background: #b87333 !important;
}

/* ========== FOOTER ========== */
.site-footer {
    background: #0a0a16;
    border-top: 2px solid #333;
    padding: 2rem 0;
    color: #666;
    font-size: 0.85rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.footer-col h3 {
    font-size: 1.1rem;
    color: #c9a96e;
    margin-bottom: 0.75rem;
    margin-top: 0;
}

.footer-col p {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

.footer-col a {
    color: #b87333;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #222;
    color: #555;
    font-size: 0.75rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .main-nav {
        display: none;
        width: 100%;
    }
    .main-nav.active {
        display: block;
    }
    .main-nav ul {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem 0;
    }
    .mobile-menu-toggle {
        display: block;
        position: absolute;
        right: 2rem;
        top: 1rem;
    }
    .hero-section h1 { font-size: 2.2rem; }
    .services-grid { grid-template-columns: 1fr; }
    .footer-columns { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
    .hero-section { padding: 3rem 1rem; }
    .hero-section h1 { font-size: 1.8rem; }
    .site-branding { flex-direction: column; gap: 0; }
}

/* ========== FORM LAYOUT ========== */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 0;
}

.form-col {
    display: flex;
    flex-direction: column;
}

select {
    background: #0d0d1a !important;
    border: 1px solid #444 !important;
    color: #f5f0e8 !important;
    padding: 0.75rem;
    width: 100%;
    font-size: 1rem;
    margin-bottom: 1rem;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23c9a96e' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
}

.form-success {
    background: rgba(34, 139, 34, 0.15);
    border: 1px solid #228b22;
    border-left: 4px solid #228b22;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.form-success h2 {
    color: #228b22;
    margin-bottom: 0.5rem;
}

.form-error {
    background: rgba(178, 34, 52, 0.15);
    border: 1px solid #b22234;
    border-left: 4px solid #b22234;
    padding: 1.5rem;
    margin: 1rem 0;
}

/* ========== ABOUT PAGE ========== */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content .lead-text {
    font-size: 1.2rem;
    color: #ddd;
    line-height: 1.8;
}

.about-content h2 {
    margin-top: 2rem;
}

.about-content ul {
    list-style: none;
    padding: 0;
}

.about-content ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #1a1a2e;
    color: #ccc;
}

.about-content ul li:last-child {
    border-bottom: none;
}

/* ========== LEARN PAGE ========== */
.learn-category {
    margin-bottom: 3rem;
}

.learn-category h2 {
    border-bottom: 2px solid #333;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

/* ========== 404 PAGE ========== */
.error-404 {
    text-align: center;
    padding: 4rem 2rem;
}

.error-404 h1 {
    font-size: 4rem;
    color: #b22234;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}
