/* ═══════════════════════════════════════════════════════════════════
   Unified Steel Industries — Design System
   Industrial · Bold · Precision · Accessible
   ═══════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 16px; line-height: 1.65; color: #1e293b; background: #fff; }
body.modal-open { overflow: hidden; }
a { color: #b45309; text-decoration: none; transition: color .15s ease; }
a:hover { color: #92400e; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
::selection { background: #d97706; color: #fff; }
:focus-visible { outline: 3px solid #f59e0b; outline-offset: 3px; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 800; line-height: 1.1; letter-spacing: -.04em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
h3 { font-size: 1.3rem; font-weight: 600; line-height: 1.35; }
h4 { font-size: 1.05rem; font-weight: 600; }
p { margin-bottom: 1rem; }
.lead { font-size: 1.15rem; color: #475569; max-width: 800px; }
.section-title { text-align: center; margin-bottom: .5rem; position: relative; display: block; }
.section-title::after { content: ''; display: block; width: 48px; height: 3px; background: #d97706; margin: .75rem auto 0; border-radius: 2px; }
.section-subtitle { text-align: center; color: #64748b; margin-bottom: 3.5rem; font-size: 1.05rem; }

.btn { display: inline-block; padding: .75rem 2rem; border-radius: 8px; font-weight: 600; font-size: .95rem; letter-spacing: .01em; transition: all .2s ease; border: 2px solid transparent; cursor: pointer; text-decoration: none !important; }
.btn-primary { background: #d97706; color: #fff; border-color: #d97706; }
.btn-primary:hover { background: #b45309; border-color: #b45309; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(217,119,6,.25); }
.btn-outline { background: transparent; border-color: #d97706; color: #d97706; }
.btn-outline:hover { background: #d97706; color: #fff; transform: translateY(-1px); }
.btn-lg { padding: 1rem 2.75rem; font-size: 1.05rem; }
.btn-sm { padding: .5rem 1.25rem; font-size: .85rem; }
.btn + .btn { margin-left: .75rem; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(15,23,42,.96); backdrop-filter: blur(10px) saturate(180%); border-bottom: 1px solid rgba(255,255,255,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.logo, .footer-logo { display: inline-flex; align-items: center; text-decoration: none !important; }
.logo-image { width: 180px; height: 52px; object-fit: contain; object-position: left center; }
.nav-links { display: flex; align-items: center; gap: .15rem; }
.nav-links a { padding: .5rem .9rem; border-radius: 6px; font-size: .875rem; font-weight: 500; color: #94a3b8; transition: all .15s; text-decoration: none !important; }
.nav-links a:hover, .nav-links a.active { background: rgba(255,255,255,.08); color: #fff; }
.nav-links a.nav-cta { background: #d97706; color: #fff; padding: .5rem 1.2rem; margin-left: .5rem; }
.nav-links a.nav-cta:hover { background: #b45309; }
.mobile-toggle { display: none; background: none; border: none; font-size: 1.5rem; padding: .5rem; color: #94a3b8; }

.hero { min-height: 620px; display: flex; align-items: center; padding: 7rem 0 6rem; background: #0f172a; color: #fff; position: relative; overflow: hidden; }
.hero-backdrop, .hero-overlay { position: absolute; inset: 0; }
.hero-backdrop img { width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .72; }
.hero-overlay { background: linear-gradient(90deg, rgba(8,12,18,.96) 0%, rgba(8,12,18,.78) 42%, rgba(8,12,18,.35) 100%); }
.hero .container { width: 100%; }
.hero-content { max-width: 780px; position: relative; z-index: 1; }
.hero h1 { margin-bottom: 1.25rem; }
.hero-sub { font-size: 1.2rem; color: #cbd5e1; margin-bottom: 2.5rem; line-height: 1.7; max-width: 600px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-ctas .btn-outline { border-color: rgba(255,255,255,.3); color: #e2e8f0; }
.hero-ctas .btn-outline:hover { background: #fff; color: #0f172a; border-color: #fff; }

section { padding: 5.5rem 0; }
section:nth-child(even) { background: #f8fafc; }
.stats-section { padding: 3.5rem 0; background: #f8fafc; border-bottom: 1px solid #e2e8f0; }
.stats-row { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 2rem; }
.stat { text-align: center; }
.stat-value { display: block; font-size: 2.75rem; font-weight: 800; color: #d97706; letter-spacing: -.03em; }
.stat-label { display: block; font-size: .9rem; color: #64748b; margin-top: .15rem; font-weight: 500; }
.page-header { padding: 4.5rem 0 3.5rem; background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%); text-align: center; border-bottom: 1px solid #e2e8f0; }
.page-header-inner { width: 100%; max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.page-header h1 { width: 100%; color: #0f172a; }
.page-header .section-subtitle { max-width: 800px; margin: .9rem auto 0; }
.page-header-accent { width: 48px; height: 3px; background: #d97706; border-radius: 2px; margin: 0 0 1rem; }

.capability-feature, .craftsmanship-feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 2.5rem; align-items: center; margin: 0 auto 3rem; max-width: 1080px; }
.craftsmanship-feature { grid-template-columns: 1fr 1.15fr; }
.capability-feature img, .craftsmanship-feature img { width: 100%; height: 280px; object-fit: cover; border-radius: 16px; box-shadow: 0 16px 40px rgba(15,23,42,.16); }
.eyebrow { display: block; color: #b45309; font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .7rem; }
.capability-feature h3, .craftsmanship-feature h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: .75rem; }
.capability-feature p, .craftsmanship-feature p { color: #475569; max-width: 500px; }

.card-grid { display: grid; gap: 1.5rem; }
.cols-2 { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); }
.cols-3 { grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); }
.card { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 0 2rem 2rem; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; position: relative; overflow: hidden; }
.card:hover { box-shadow: 0 12px 30px rgba(0,0,0,.07); transform: translateY(-3px); border-color: #d0d5dd; }
.card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #d97706, #f59e0b); opacity: 0; transition: opacity .25s; }
.card:hover::before { opacity: 1; }
.card-image { width: calc(100% + 4rem); height: 170px; margin: 0 -2rem 1.5rem; object-fit: cover; border-bottom: 1px solid #e2e8f0; }
.card-icon { font-size: 2.2rem; margin-bottom: .85rem; }
.card h3 { margin-bottom: .5rem; }
.card p { color: #475569; font-size: .925rem; margin-bottom: 0; line-height: 1.6; }
.card-link { display: inline-block; margin-top: .75rem; font-weight: 600; font-size: .9rem; color: #d97706; }

.cta-block { text-align: center; max-width: 600px; margin: 0 auto; }
.cta-block h2 { margin-bottom: .75rem; }
.cta-block p { color: #64748b; margin-bottom: 1.5rem; }
.cta-section { background: linear-gradient(135deg, #0f172a, #1e293b) !important; color: #fff; }
.cta-section h2 { color: #fff; }
.cta-section p { color: #94a3b8; }

.mission-grid, .contact-grid, .quote-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.mission-card, .director-card { background: #fff; padding: 2.25rem; border-radius: 14px; border: 1px solid #e2e8f0; }
.mission-card h3 { margin-bottom: .75rem; }
.mission-card p, .about-text p, .director-content p { color: #475569; line-height: 1.7; }
.certs-list { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.cert-badge { background: linear-gradient(135deg, #fffbeb, #fef3c7); color: #92400e; padding: .65rem 1.4rem; border-radius: 24px; font-weight: 600; font-size: .875rem; border: 1px solid #fde68a; }

.service-block { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 1.25rem; margin-bottom: 1.5rem; transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease; }
.service-block:hover { box-shadow: 0 12px 30px rgba(0,0,0,.07); border-color: #d97706; transform: translateY(-2px); }
.service-block:target { border-color: #d97706; box-shadow: 0 0 0 4px rgba(217,119,6,.12); }
.service-layout { display: grid; grid-template-columns: minmax(220px, .8fr) 1.4fr; gap: 1.5rem; align-items: stretch; }
.service-image { width: 100%; min-height: 220px; height: 100%; object-fit: cover; border-radius: 10px; background: #0f172a; }
.service-content { padding: .75rem .75rem .75rem 0; }
.service-header { display: flex; gap: 1.25rem; align-items: flex-start; margin-bottom: 1.25rem; }
.service-icon { font-size: 2.4rem; flex-shrink: 0; }
.service-summary { color: #64748b; margin-bottom: 0; font-size: .95rem; }
.accordion-trigger { display: flex; align-items: center; justify-content: space-between; width: 100%; border: 0; border-top: 1px solid #e2e8f0; background: transparent; color: #92400e; font-weight: 700; text-align: left; padding: .9rem 0 0; }
.accordion-trigger span { font-size: 1.5rem; line-height: 1; transition: transform .2s ease; }
.accordion-trigger[aria-expanded="true"] span { transform: rotate(45deg); }
.accordion-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s ease; }
.accordion-panel > .service-details { overflow: hidden; }
.accordion-panel.is-open { grid-template-rows: 1fr; }
.service-details { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; padding-top: 1rem; }
.service-details li { position: relative; padding-left: 1.35rem; color: #475569; font-size: .925rem; line-height: 1.55; }
.service-details li::before { content: "→"; position: absolute; left: 0; color: #d97706; font-weight: 700; }

.facility-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.facility-item { background: #fff; padding: 1.25rem 1.5rem; border-radius: 10px; border: 1px solid #e2e8f0; font-size: .925rem; }
.machinery-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.machinery-gallery-item { margin: 0; overflow: hidden; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; box-shadow: 0 8px 24px rgba(15,23,42,.08); }
.machinery-gallery-item img { display: block; width: 100%; height: 210px; object-fit: cover; }
.machinery-gallery-item figcaption { padding: .9rem 1rem 1rem; color: #1e293b; font-size: .9rem; font-weight: 700; }
.specs-table { max-width: 800px; margin: 0 auto; border-radius: 12px; overflow: hidden; border: 1px solid #e2e8f0; }
.spec-row { display: flex; padding: 1rem 1.5rem; border-bottom: 1px solid #e2e8f0; }
.spec-row:last-child { border-bottom: 0; }
.spec-row:nth-child(even) { background: #fafafa; }
.spec-cat { flex: 0 0 35%; font-weight: 600; color: #1e293b; }
.spec-val { flex: 1; color: #475569; }

.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 2rem; }
.project-toolbar { display: flex; flex-wrap: wrap; gap: .65rem; margin: 0 0 2rem; }
.filter-btn { border: 1px solid #cbd5e1; background: #fff; color: #475569; border-radius: 999px; padding: .55rem .95rem; font-weight: 600; font-size: .85rem; }
.filter-btn:hover, .filter-btn.is-active { color: #fff; background: #0f172a; border-color: #0f172a; }
.project-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.project-card:hover { box-shadow: 0 12px 30px rgba(0,0,0,.07); transform: translateY(-3px); }
.project-card[hidden] { display: none; }
.project-card-image { width: 100%; height: 210px; padding: 0; border: 0; background: #0f172a; display: block; position: relative; overflow: hidden; }
.project-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.project-card-image:hover img, .project-card-image:focus-visible img { transform: scale(1.04); }
.project-card-image::after { content: 'View technical drawing'; position: absolute; right: .8rem; bottom: .65rem; color: #fff; background: rgba(15,23,42,.8); border-radius: 5px; padding: .25rem .5rem; font-size: .7rem; opacity: 0; transition: opacity .2s ease; }
.project-card-image:hover::after, .project-card-image:focus-visible::after { opacity: 1; }
.project-card-body { padding: 1.5rem; }
.project-card-tags { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.project-tag { background: #fffbeb; color: #92400e; padding: .2rem .7rem; border-radius: 12px; font-size: .75rem; font-weight: 600; border: 1px solid #fde68a; }
.project-tag.industry { background: #f1f5f9; color: #475569; border-color: #e2e8f0; }
.project-card-body h3 { margin-bottom: .5rem; font-size: 1.15rem; }
.project-client { color: #64748b; font-size: .85rem; margin-bottom: .75rem; }
.project-card-body p { color: #475569; font-size: .9rem; margin-bottom: 1rem; line-height: 1.6; }
.project-highlights { margin-top: .75rem; }
.project-highlights li { position: relative; padding-left: 1.2rem; color: #64748b; font-size: .85rem; margin-bottom: .35rem; }
.project-highlights li::before { content: "✓"; position: absolute; left: 0; color: #d97706; font-weight: 700; }
.filter-empty { margin-top: 2rem; text-align: center; color: #64748b; }

.lightbox[hidden] { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 1.5rem; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(2,6,23,.82); }
.lightbox-dialog { position: relative; z-index: 1; width: min(900px, 100%); max-height: 90vh; padding: 1rem; border-radius: 14px; background: #0f172a; box-shadow: 0 24px 80px rgba(0,0,0,.45); }
.lightbox-dialog img { width: 100%; max-height: 75vh; object-fit: contain; border-radius: 8px; }
.lightbox-close { position: absolute; top: .5rem; right: .5rem; z-index: 2; width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: #0f172a; color: #fff; font-size: 1.5rem; line-height: 1; }
.lightbox-caption { color: #e2e8f0; margin: .75rem .25rem 0; font-weight: 600; }

.contact-grid, .quote-layout { grid-template-columns: 1fr 1.3fr; align-items: start; gap: 3.5rem; }
.contact-info p { margin-bottom: .75rem; color: #475569; }
.contact-buttons { margin-top: 1.5rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.contact-form, .quote-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form input, .contact-form textarea, .quote-form input, .quote-form select, .quote-form textarea { padding: .85rem 1rem; border: 1px solid #d1d5db; border-radius: 8px; font-family: inherit; font-size: .95rem; transition: all .15s; background: #fafafa; }
.contact-form input:focus, .contact-form textarea:focus, .quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { outline: none; border-color: #d97706; box-shadow: 0 0 0 3px rgba(217,119,6,.1); background: #fff; }
.form-group { display: flex; flex-direction: column; gap: .35rem; }
.form-group label { font-weight: 500; font-size: .875rem; color: #475569; }
.form-status { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; min-height: 1.5em; margin: 0; color: #475569; font-size: .9rem; }
.form-status:empty { display: none; }
.form-status.is-success { color: #166534; }
.form-status.is-error { color: #b91c1c; }
.form-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .35rem; }
.form-actions .btn { margin: 0; }
.sidebar-card { background: linear-gradient(135deg, #fffbeb, #fef3c7); border: 1px solid #fde68a; border-radius: 14px; padding: 1.75rem; margin-bottom: 1.5rem; }

.site-footer { background: #0f172a; color: #94a3b8; padding: 4.5rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-logo { margin-bottom: .75rem; }
.footer-logo img { width: 180px; height: 52px; object-fit: contain; object-position: left center; }
.footer-brand p { color: #64748b; font-size: .9rem; }
.footer-contact p { margin-bottom: .5rem; font-size: .875rem; }
.footer-contact a, .footer-bottom a { color: #94a3b8; }
.footer-contact a:hover, .footer-bottom a:hover { color: #f59e0b; }
.footer-links h4, .footer-services h4, .footer-cta h4 { color: #fff; margin-bottom: 1.25rem; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; }
.footer-links a, .footer-services a { display: block; padding: .35rem 0; color: #64748b; font-size: .875rem; }
.footer-cta p { font-size: .875rem; margin-bottom: 1rem; color: #64748b; }
.footer-cta .btn { margin: 0 0 .65rem; width: 100%; text-align: center; font-size: .875rem; padding: .6rem 1rem; }
.footer-bottom { border-top: 1px solid #1e293b; padding: 1.5rem 0; text-align: center; }
.footer-bottom p { font-size: .8rem; color: #64748b; margin-bottom: 0; }

[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .service-layout { grid-template-columns: 1fr; }
  .service-image { height: 220px; min-height: 0; }
  .service-content { padding: 0 .5rem .5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .mobile-toggle { display: block; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: #0f172a; border-bottom: 1px solid #1e293b; padding: 1rem; gap: .25rem; }
  .nav-links.open { display: flex; }
  .nav-links a.nav-cta { margin-left: 0; }
  .mission-grid, .contact-grid, .quote-layout, .footer-grid, .capability-feature, .craftsmanship-feature { grid-template-columns: 1fr; }
  .service-details { grid-template-columns: 1fr; }
  .facility-grid, .machinery-gallery { grid-template-columns: 1fr; }
  .hero { padding: 4.5rem 0 3.5rem; }
  .stats-row { gap: 1.5rem; }
  .stat-value { font-size: 2rem; }
  .card-grid, .projects-grid { grid-template-columns: 1fr !important; }
  .hero-ctas .btn + .btn { margin-left: 0; }
  section { padding: 4rem 0; }
  .page-header { padding: 3rem 0 2.5rem; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  section { padding: 3rem 0; }
  h1 { font-size: 1.85rem; }
  .logo-image { width: 150px; height: 46px; }
  .project-toolbar { gap: .45rem; }
  .filter-btn { font-size: .78rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
