@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&family=Barlow+Condensed:wght@600;700;800&display=optional');

:root {
  --bwg-header-h: 66px;
  /* Design Tokens */
  --primary-color: #b45309;
  --primary-rgb: 180, 83, 9;
  --secondary-color: #1e293b;
  --secondary-rgb: 30, 41, 59;
  --background-color: #f3f4f6;
  --surface-color: #ffffff;
  --surface-border: #d1d5db;
  --text-color: #374151;
  --heading-color: #111827;
  --contrast-color: #ffffff;
  
  --font-default: 'Roboto', system-ui, -apple-system, sans-serif;
  --font-heading: 'Barlow Condensed', sans-serif;
  
  scroll-behavior: smooth;
}

/* Base resets */
body {
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: var(--font-default);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.02em;
}

a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--primary-color);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: var(--secondary-color);
  border-bottom: 3px solid var(--primary-color);
  transition: all 0.3s ease;
}

.header.scrolled {
  padding: 12px 0;
}

.header .logo h1 {
  font-size: 26px;
  margin: 0;
  font-weight: 800;
  color: var(--on-secondary, #ffffff);
  display: flex;
  align-items: center;
  gap: 10px;
}

.header .logo h1 span {
  color: var(--primary-color);
}

.header .btn-getstarted {
  background: var(--primary-color);
  color: var(--on-primary, var(--secondary-color));
  padding: 10px 24px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 0;
  transition: all 0.3s ease;
}

.header .btn-getstarted:hover {
  background: #ffffff;
  color: var(--secondary-color);
}

/* Nav Menu */
.navmenu ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 24px;
}

.navmenu a {
  color: var(--on-secondary, #e2e8f0);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.navmenu a:hover,
.navmenu .active {
  /* accent on the dark header must stay readable for dark palettes */
  color: var(--primary-on-dark, var(--primary-color));
}

/* Hero Section */
.hero {
  padding: 170px 0 100px 0;
  background-color: var(--secondary-color);
  color: #f1f5f9;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: var(--primary-color);
}

.hero .subtitle {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-color);
  letter-spacing: 0.1em;
  margin-bottom: 15px;
}

.hero h1 {
  font-size: 4.5rem;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 24px;
}

@media (max-width: 991px) {
  .hero h1 {
    font-size: 3.25rem;
  }
}

.hero .description {
  font-size: 1.15rem;
  color: #cbd5e1;
  margin-bottom: 36px;
}

.btn-accent {
  background: var(--primary-color);
  color: var(--on-primary, var(--secondary-color));
  padding: 14px 32px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-accent:hover {
  background: #ffffff;
  color: var(--secondary-color);
}

.btn-text {
  color: var(--on-secondary, #ffffff);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  margin-left: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

/* Sections */
section {
  padding: 90px 0;
  background-color: var(--background-color);
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.75rem;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--primary-color);
}

.section-title p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Robust Industrial Cards */
.card-industrial {
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  border-bottom: 4px solid var(--secondary-color);
  padding: 35px;
  transition: all 0.3s ease;
  height: 100%;
}

.card-industrial:hover {
  transform: translateY(-4px);
  border-bottom-color: var(--primary-color);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

/* About Section */
.about .check-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.about .check-list li {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.about .check-list li i {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-top: -2px;
}

.about .check-list li h3,
.about .check-list li h4 {
  font-size: 1.2rem;
  margin: 0 0 4px 0;
}

/* Services */
.service-icon {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 20px;
  display: inline-block;
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.service-card:hover .service-icon {
  color: var(--primary-color);
}

/* Portfolio */
.isotope-filters {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 12px;
  margin-bottom: 40px;
}

.isotope-filters li {
  padding: 8px 20px;
  cursor: pointer;
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
}

.isotope-filters li.filter-active,
.isotope-filters li:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  border-color: var(--primary-color);
}

.work-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--surface-border);
  background: var(--surface-color);
}

.work-card .work-image {
  position: relative;
  overflow: hidden;
}

.work-card img,
.work-card svg {
  transition: transform 0.5s ease;
  width: 100%;
}

.work-card:hover img,
.work-card:hover svg {
  transform: scale(1.05);
}

.work-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 41, 59, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.work-card:hover .work-overlay {
  opacity: 1;
}

.work-overlay i {
  color: var(--primary-color);
  font-size: 2rem;
}

.work-info {
  padding: 20px;
}

.work-meta {
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 700;
  /* darker shade of the amber primary; >= 4.5:1 on white cards */
  color: #b45309;
  letter-spacing: 0.05em;
}

.work-info h3 {
  font-size: 1.4rem;
  margin-top: 4px;
  margin-bottom: 0;
}

/* Metrics */
.metric-card {
  text-align: center;
  padding: 40px 20px;
  border-top: 3px solid var(--primary-color);
}

.metric-card h3 {
  /* keeps converted h4 headings at their previous size */
  font-size: calc(1.275rem + 0.3vw);
}

.metric-value {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--secondary-color);
  line-height: 1;
  margin-bottom: 10px;
}

/* Testimonials */
.testimonial-card {
  padding: 35px;
}

.testimonial-card p {
  font-size: 1.05rem;
  line-height: 1.7;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 25px;
}

.testimonial-user svg {
  width: 44px;
  height: 44px;
}

.testimonial-user h3,
.testimonial-user h4 {
  font-size: 1.1rem;
  margin: 0;
}

.testimonial-user span {
  font-size: 13px;
  color: var(--text-color);
}

/* Contact */
.contact-info-block {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.contact-info-block i {
  font-size: 1.5rem;
  color: var(--secondary-color);
  background: var(--primary-color);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-form input,
.contact-form textarea {
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  color: var(--heading-color);
  padding: 12px 16px;
  width: 100%;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--secondary-color);
  outline: none;
}

.contact-form button {
  background: var(--primary-color);
  color: var(--on-primary, var(--secondary-color));
  border: none;
  padding: 14px 32px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-form button:hover {
  background: var(--secondary-color);
  color: #ffffff;
}

/* Global Footer overrides for Constructify */
.spec-site-global-footer {
  background: #1e293b !important;
  border-top: 4px solid var(--primary-color) !important;
  color: #94a3b8 !important;
}
.spec-site-global-footer p {
  color: #94a3b8 !important;
}
.spec-site-global-footer a {
  /* readable on the dark footer regardless of palette */
  color: var(--primary-on-dark, #94a3b8) !important;
}

/* Accessibility fixes (WCAG 2.2 AA) */
.navmenu .dropdown {
  position: relative;
}

.navmenu .dropdown > ul {
  /* submenu links are light-on-dark; keep them collapsed on their dark
     backdrop instead of spilling over the light page background */
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background-color: var(--secondary-color);
  padding: 14px 18px;
  min-width: 200px;
  z-index: 99;
}

.navmenu .dropdown:hover > ul,
.navmenu .dropdown > ul.dropdown-active {
  display: flex;
}

.footer .footer-heading {
  /* footer column headings converted from h4 to h2; keep h4 size */
  font-size: calc(1.275rem + 0.3vw);
}

.social-links a {
  /* ensure >= 24x24 px touch targets for icon-only links */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: #ffffff;
}

@media (max-width: 1199px) {
  .mobile-nav-toggle {
    display: block;
  }
  .navmenu {
    display: none;
  }
  body.mobile-nav-active .navmenu {
    display: block;
    position: absolute;
    top: 100%;
    left: 20px;
    right: 20px;
    background: var(--secondary-color);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    padding: 20px;
    z-index: 9999;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  }
  body.mobile-nav-active .navmenu ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
}