/* ============================================
   DFW Metal Inc. - Clean Minimalist Design
   Deep Navy + Warm Gold Palette
   ============================================ */

/* CSS Variables */
:root {
    --navy-dark: #0a1628;
    --navy: #1a3a5c;
    --navy-light: #2c5282;
    --gold: #c9a84c;
    --gold-light: #d4af37;
    --gold-pale: #f5e6b8;
    --white: #ffffff;
    --off-white: #f8f9fa;
    --gray-100: #f7f7f7;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-600: #525252;
    --gray-800: #262626;
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.7;
    color: var(--gray-800);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.2;
    color: var(--navy);
}

.section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
}

.section-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(to right, var(--gold), var(--gold-light));
    margin-bottom: 40px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 168, 76, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
    background: var(--gold);
    color: var(--navy-dark);
    border-color: var(--gold);
}

.btn-text {
    background: transparent;
    color: var(--white);
    padding: 14px 0;
    font-size: 0.8125rem;
}

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

.btn-full {
    width: 100%;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.75rem;
}

.btn-lg {
    padding: 18px 48px;
    font-size: 1rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 24px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(10px);
    padding: 16px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 2px;
}

.logo .accent {
    color: var(--gold);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}

.nav-link:hover {
    color: var(--gold);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 22, 40, 0.7) 0%,
        rgba(26, 58, 92, 0.6) 50%,
        rgba(10, 22, 40, 0.8) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding-top: 80px;
}

.hero-eyebrow {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--white);
    margin-bottom: 24px;
    font-weight: 500;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    max-width: 600px;
    font-weight: 300;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 32px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator span::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--gold);
    border-radius: 2px;
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% { top: 6px; opacity: 1; }
    50% { top: 20px; opacity: 0.5; }
}

/* About Section */
.about {
    padding: 120px 0;
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 80px;
    align-items: start;
}

.about-text {
    max-width: 600px;
}

.about-text .lead {
    font-size: 1.25rem;
    color: var(--navy);
    margin-bottom: 24px;
    font-weight: 400;
}

.about-text p {
    color: var(--gray-600);
    margin-bottom: 20px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding-top: 20px;
}

.stat-item {
    text-align: center;
    padding: 32px 16px;
    border: 1px solid var(--gray-200);
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gray-600);
}

/* Services Section */
.services {
    padding: 120px 0;
    background: var(--gray-100);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card {
    background: var(--white);
    padding: 48px 36px;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--gold);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.service-card p {
    color: var(--gray-600);
    font-size: 0.9375rem;
}

/* Approach Section */
.approach {
    padding: 120px 0;
    background: var(--navy);
}

.approach .section-label {
    color: var(--gold);
}

.approach .section-title {
    color: var(--white);
}

.approach .section-line {
    background: linear-gradient(to right, var(--gold), var(--gold-light));
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.approach-step {
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.approach-step:hover {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.03);
}

.step-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 16px;
    opacity: 0.6;
}

.approach-step h3 {
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: 12px;
}

.approach-step p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
    text-align: center;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--white);
    margin-bottom: 20px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Contact Section */
.contact {
    padding: 120px 0 80px;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-bottom: 80px;
}

.contact-intro {
    color: var(--gray-600);
    margin-bottom: 40px;
    font-size: 1.0625rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-item {
    display: flex;
    gap: 20px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    border: 1px solid var(--gray-200);
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: 4px;
}

.contact-item p {
    color: var(--gray-600);
    font-size: 0.9375rem;
}

.contact-item a {
    color: var(--gray-600);
}

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

/* Contact Form */
.contact-form-wrapper {
    background: var(--gray-100);
    padding: 48px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--navy);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 16px;
    border: 1px solid var(--gray-200);
    background: var(--white);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--gray-800);
    transition: var(--transition);
    border-radius: 0;
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-success {
    text-align: center;
    padding: 48px;
}

.form-success svg {
    margin: 0 auto 20px;
}

.form-success h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.form-success p {
    color: var(--gray-600);
}

/* Map */
.map-container {
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

/* Footer */
.footer {
    background: var(--navy-dark);
    padding: 80px 0 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand h3 {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 12px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9375rem;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8125rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.5);
}

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

/* Reveal Animation (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-stats {
        max-width: 400px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .approach-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--navy-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 24px;
        transition: right 0.4s ease;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    }

    .nav-links.active {
        right: 0;
    }

    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .hero-content {
        padding-top: 100px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact-form-wrapper {
        padding: 32px 24px;
    }

    .footer-content {
        flex-direction: column;
        gap: 32px;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 16px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .about-stats {
        grid-template-columns: 1fr;
    }

    .approach-grid {
        grid-template-columns: 1fr;
    }

    .stat-item {
        padding: 24px;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}
