/* ========================================
   Flat Rock Manufacturing — Pro Version
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    Roboto, sans-serif;
  color: #1a1a1a;
  background-color: #0e1117;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* --- Utility --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Hero (full-bleed with image overlay) --- */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  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(
    180deg,
    rgba(14, 17, 23, 0.85) 0%,
    rgba(14, 17, 23, 0.5) 40%,
    rgba(14, 17, 23, 0.7) 100%
  );
  z-index: 1;
}

/* --- Navigation (sits on top of hero) --- */
.site-nav {
  position: relative;
  z-index: 10;
  padding: 1.5rem 0;
}

.site-nav .container {
  display: flex;
  align-items: center;
}

.site-nav__logo {
  height: 70px;
  width: auto;
}

/* --- Hero Content --- */
.hero__content {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  align-items: flex-end;
  padding-bottom: 4rem;
}

.hero__title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 2.75rem;
  font-weight: 400;
  color: #ffffff;
  line-height: 1.25;
  max-width: 600px;
  letter-spacing: -0.01em;
}

/* --- Capabilities (3-column cards) --- */
.capabilities-section {
  padding: 5rem 0;
  background-color: #0e1117;
}

.capabilities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.capability-card {
  background-color: #161b24;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 2.5rem 2rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.capability-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.capability-card__icon {
  width: 48px;
  height: 48px;
  color: #ad5c32;
  margin-bottom: 1.5rem;
}

.capability-card__icon svg {
  width: 100%;
  height: 100%;
}

.capability-card__title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 400;
  color: #E8E4DE;
  margin-bottom: 0.75rem;
  letter-spacing: 0;
}

.capability-card__text {
  color: #8a8a8a;
  font-size: 0.95rem;
  line-height: 1.75;
}

/* --- Footer --- */
.site-footer {
  background-color: #0a0d12;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 3.5rem 0 1.5rem;
}

.footer__grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 1.5rem;
}

.footer__heading {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: #E8E4DE;
  margin-bottom: 0.5rem;
}

.footer__email {
  font-size: 1rem;
  font-weight: 500;
  color: #ad5c32;
  transition: color 0.2s ease;
}

.footer__email:hover {
  color: #c97a4e;
}

.footer__signup {
  max-width: 360px;
}

.footer__signup-heading {
  font-size: 0.9rem;
  font-weight: 400;
  color: #6a6a6a;
  margin-bottom: 0.75rem;
}

.footer__form {
  display: flex;
  gap: 0.5rem;
}

.footer__input {
  flex: 1;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  font-family: inherit;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  outline: none;
  transition: border-color 0.2s ease;
}

.footer__input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.footer__input:focus {
  border-color: rgba(255, 255, 255, 0.25);
}

.footer__button {
  padding: 0.7rem 1.5rem;
  font-size: 0.9rem;
  font-family: inherit;
  font-weight: 600;
  color: #ffffff;
  background-color: #ad5c32;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.footer__button:hover {
  background-color: #c97a4e;
}

.site-footer__copy {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.25);
}

/* --- Success Page --- */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.success-page__title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 400;
  color: #E8E4DE;
  margin-bottom: 0.75rem;
}

.success-page__text {
  color: #8a8a8a;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.success-page__link {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #ad5c32;
  transition: color 0.2s ease;
}

.success-page__link:hover {
  color: #c97a4e;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 768px) {
  .hero {
    min-height: 50vh;
  }

  .hero__title {
    font-size: 2rem;
  }

  .capabilities {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer__grid {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .footer__form {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 1.6rem;
  }

  .hero__content {
    padding-bottom: 2.5rem;
  }

  .capability-card {
    padding: 2rem 1.5rem;
  }
}
