/* 1. Global Reset & Base Styles */
*,
*:before,
*:after {
  box-sizing: border-box;
}

html {
  height: 100%;
  background-color: #1c1c1c;
  /* Prevents white flash on load */
}

body {
  margin: 0;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #1c1c1c;
  -webkit-font-smoothing: antialiased;
}

h1,
.brand-mark {
  text-transform: none;
}

h2,
a {
  font-family: 'Oswald', sans-serif;
}

p {
  font-family: Helvetica, Arial, sans-serif;
}

.container {
  width: 90%;
  max-width: 900px;
  margin: 0 auto;
}

/* 2. Main Section (The "Flex: 1" pushes the footer down) */
.main {
  flex: 1;
  position: relative;
  text-align: center;
  Background: url("bg/black-stucco-wall.jpg") no-repeat center;
  background-size: cover;
  padding: 72px 20px 56px;
  display: flex;
  align-items: center;
  /* Centers content vertically if screen is very tall */
  justify-content: center;
}

.main::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  /* Slightly darker for better text contrast */
}

.main>* {
  position: relative;
  z-index: 1;
}

.main h1 {
  color: #ffa800;
  margin: 0 0 10px 0;
  font-size: clamp(32px, 9vw, 48px);
  line-height: 1.02;
}

.main p {
  color: #fff;
  font-size: clamp(11px, 4.6vw, 16px);
  max-width: 26ch;
  margin: 0 auto 22px;
}

/* 3. Buttons */
.main .btn {
  background-color: #1c1c1c;
  color: #fff;
  font-size: 16px;
  padding: 12px 32px;
  border-radius: 30px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  transition: background 0.3s ease, color 0.3s ease;
}

a.btn:hover {
  background: #ffa800;
  color: #000;
}

/* 4. Footer Section */
.footer {
  background-color: #1c1c1c;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 30px 0;
  font-size: 14px;
}

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

.footer .brand-mark {
  color: #ffa800;
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
  letter-spacing: 1px;
  text-transform: none;
}

.footer-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 168, 0, 0.4);
  color: #ffa800;
  text-decoration: none;
  font-size: 12px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.footer-link:hover {
  background-color: #ffa800;
  color: #1c1c1c;
  border-color: #ffa800;
}

/* 5. Responsive Queries */
@media (min-width: 768px) {
  .main {
    padding: 100px 0;
  }

  .main h1 {
    font-size: clamp(32px, 9vw, 48px);
    /* Adjusted for better scale than the static 170px */
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* Fix for very short screens to prevent overlap */
@media (max-height: 500px) {
  .main {
    padding: 40px 0;
  }
}
