/* =============================================
   DA Mechanical – styles.css
   Theme: Dark Black / Dark Grey / Red / White
   ============================================= */

/* ---- CSS Custom Properties ---- */
:root {
  --color-black:      #121212;
  --color-dark:       #141414;
  --color-grey:       #1e1e1e;
  --color-grey-mid:   #2c2c2c;
  --color-grey-light: #444444;
  --color-red:        #c0392b;
  --color-red-dark:   #96281b;
  --color-white:      #f4f4f4;
  --color-white-off:  #dddddd;

  --font-heading: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body:    'Open Sans', Arial, sans-serif;

  --nav-height: 68px;
  --max-width:  1100px;
  --transition: 0.25s ease;
}

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

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

#about,
#contact {
  scroll-margin-top: calc(var(--nav-height) + 0rem);
}

body {
  background-color: var(--color-dark);
  color: var(--color-white-off);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ---- Utility ---- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: var(--color-black);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--color-red);
  z-index: 100;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.nav-logo {
  height: 42px;
  margin-top: 5px;
  width: auto;
}

.nav-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-white-off);
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 2rem;
  flex-wrap: nowrap;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-white-off);
  transition: color var(--transition);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .nav-title {
    font-size: clamp(1rem, 2.8vw, 1.2rem);
    letter-spacing: 0.04em;
  }

  .nav-links {
    gap: clamp(0.7rem, 2vw, 1.2rem);
  }

  .nav-links a {
    font-size: clamp(0.78rem, 2.1vw, 0.9rem);
    letter-spacing: 0.06em;
  }
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--color-red);
  outline: none;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  padding-top: var(--nav-height);
  z-index: 2;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Dark gradient overlay for readability */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.55) 0%,
    rgba(10, 10, 10, 0.35) 40%,
    rgba(10, 10, 10, 0.75) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 1.5rem 6rem;
}

.hero-heading {
  font-family: var(--font-heading);
  font-size: clamp(3.25rem, 8.8vw, 7rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-white-off);
  text-shadow:
    -1px -1px 0 rgba(55, 55, 55, 0.96),
    1px -1px 0 rgba(55, 55, 55, 0.96),
    -1px 1px 0 rgba(55, 55, 55, 0.96),
    1px 1px 0 rgba(55, 55, 55, 0.96),
    0 5px 8px rgba(80, 80, 80, 0.48),
    0 10px 18px rgba(70, 70, 70, 0.32);
  line-height: 1.1;
  display: inline-block;
  transform: scaleY(1.08);
}

.hero-sub {
  margin-top: 0.75rem;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 400;
  color: var(--color-white-off);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.btn-primary {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.8rem 2.2rem;
  background: var(--color-red);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 3px;
  transition: background var(--transition), transform var(--transition);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--color-red-dark);
  transform: translateY(-2px);
  outline: none;
}

/* Shield logo used in about section */
.hero-shield {
  position: relative;
  justify-self: end;
  width: clamp(165px, 25vw, 288px);
  opacity: 0.95;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.4));
}

.hero-shield img {
  width: 100%;
  height: auto;
}

/* =============================================
   MAIN BODY
   ============================================= */
.main-body {
  position: relative;
  background-color: var(--color-grey);
  padding: 4.5rem 0 2.25rem;
  overflow: hidden;
  z-index: 1;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-white-off);
  margin-bottom: 1rem;
  position: relative;
}

/* Red underline accent */
.section-title::after {
  content: '';
  display: block;
  margin-top: 0.45rem;
  width: 72px;
  height: 3px;
  background: var(--color-red);
  border-radius: 2px;
}

.section-text {
  font-size: 1.05rem;
  color: var(--color-white-off);
  max-width: 680px;
  margin-bottom: 3.5rem;
  line-height: 1.8;
}

.services-list {
  display: grid;
  gap: 0.55rem;
  max-width: 760px;
  margin-top: 0.35rem;
}

.services-list li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--color-white-off);
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}

.services-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.67em;
  width: 7px;
  height: 2px;
  background: var(--color-red);
  border-radius: 1px;
}

.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 2rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 769px) {
  .about-intro .hero-shield {
    align-self: start;
    margin-top: -1rem;
  }
}

.about-intro .section-text {
  margin-bottom: 1rem;
}

/* =============================================
   CONTACT
   ============================================= */
.contact-section {
  position: relative;
  padding-bottom: 1.25rem;
}

.contact-list {
  display: grid;
  max-width: 980px;
  margin: 0 auto;
  grid-template-columns: repeat(2, minmax(300px, 1fr));
  gap: 1rem;
}

.contact-item {
  background: linear-gradient(135deg, #2a2a2e 0%, #313136 100%);
  border-left: 4px solid var(--color-red);
  border-radius: 4px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  transition: background var(--transition), transform var(--transition);
}

.contact-item:hover {
  background: var(--color-grey-light);
  transform: translateY(-3px);
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  color: var(--color-white-off);
  font-size: 0.98rem;
  transition: color var(--transition);
}

.contact-link:hover {
  color: var(--color-white);
  outline: none;
}

.contact-link:focus-visible {
  color: var(--color-white);
  outline: 2px solid rgba(244, 244, 244, 0.45);
  outline-offset: 2px;
  border-radius: 2px;
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  background: var(--color-red);
  border-radius: 50%;
  font-size: 1rem;
  color: var(--color-white);
}

.contact-text {
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  word-break: break-word;
}

@media (max-width: 900px) {
  .contact-list {
    grid-template-columns: 1fr;
    max-width: 620px;
  }
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background-color: var(--color-black);
  border-top: 3px solid var(--color-red);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-logo {
  height: 40px;
  width: auto;
  margin-top: 5px;
}

.footer-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-white-off);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-grey-mid);
  color: var(--color-white-off);
  font-size: 1.1rem;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  border: 1px solid var(--color-grey-light);
}

.footer-social a:hover,
.footer-social a:focus {
  background: var(--color-red);
  color: var(--color-white);
  transform: translateY(-3px);
  outline: none;
  border-color: var(--color-red-dark);
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--color-white-off);
  letter-spacing: 0.04em;
}

.footer-address {
  margin-top: -0.5rem;
  font-size: 0.86rem;
  color: var(--color-white-off);
  letter-spacing: 0.03em;
}

/* =============================================
   RESPONSIVE – Tablet / Mobile
   ============================================= */
@media (max-width: 768px) {
  .nav-links {
    gap: clamp(0.55rem, 2.3vw, 0.85rem);
  }

  .nav-title {
    font-size: clamp(0.92rem, 3.2vw, 1.05rem);
    letter-spacing: 0.03em;
  }

  .nav-links a {
    font-size: clamp(0.72rem, 2.5vw, 0.82rem);
    letter-spacing: 0.05em;
  }

  .hero-shield {
    width: min(288px, 100%);
    justify-self: center;
    margin-inline: auto;
    order: -1;
  }

  .about-intro {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .services-list {
    margin-top: 0.25rem;
  }

  .contact-section {
    padding-bottom: 2.5rem;
  }

  .main-body {
    padding: 0.5rem 0 4rem;
  }
}

@media (max-width: 480px) {
  :root {
    --nav-height: 60px;
  }

  .hero-heading {
    font-size: clamp(2rem, 11vw, 2.8rem);
    letter-spacing: 0.04em;
    white-space: nowrap;
  }

  .hero-sub {
    font-size: clamp(0.78rem, 3.5vw, 1rem);
    letter-spacing: 0.07em;
    white-space: nowrap;
  }

  .nav-links {
    gap: 0.5rem;
  }

  .nav-links a {
    font-size: clamp(0.62rem, 2.7vw, 0.72rem);
    letter-spacing: 0.04em;
  }

  .nav-logo {
    height: 40px;
  }

  .nav-title {
    font-size: clamp(1.1rem, 4vw, 1.08rem);
    letter-spacing: 0.03em;
  }

  .contact-list {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    gap: 1.1rem;
  }
}

/* =============================================
   ACCESSIBILITY – reduced motion
   ============================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }

  .hero-bg {
    transform: none !important;
  }
}
