/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* GLOBAL */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111;
  line-height: 1.6;

  /* Site-wide background */
  background-image:
    linear-gradient(
      rgba(255, 255, 255, 0.04),
      rgba(255, 255, 255, 0.84)
    ),
    url("https://www.acalres.com/images/site-background.jpg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;

  /* Subtle site-wide parallax */
  background-attachment: fixed;
}

/* NAVIGATION */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255,255,255,0.8);
  border-bottom: 1px solid #eee;
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  letter-spacing: 1px;
}

nav a {
  margin-left: 2rem;
  text-decoration: none;
  color: #111;
  font-size: 0.9rem;
}

nav a:hover {
  opacity: 0.6;
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 2rem 2rem;

  background: rgba(255, 255, 255, 0.0); /* Adjust opacity here */
}

.hero-content {
  max-width: 800px;
  margin: auto;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.1rem;
  max-width: 600px;
  margin-bottom: 2rem;
}

/* BUTTON */
.btn-primary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 1px solid #111;
  color: #111;
  text-decoration: none;
  font-size: 0.9rem;
}

.btn-primary:hover {
  background: #111;
  color: #fff;
}

/* SECTIONS */
.section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: auto;

  background: rgba(255, 255, 255, 0.85);
}

.section p {
  margin-bottom: 20px; /* space between paragraphs */
}

.section ul {
  margin-left: 0;        /* removes extra browser default margin */
  padding-left: 1.5rem;  /* indents bullets slightly */
  list-style-position: inside; /* bullets stay within the section width */
}

.section li {
  margin-bottom: 0.5rem; /* space between list items */
  line-height: 1.6;      /* improves readability */
}

.section.alt {
  background: rgba(255, 255, 255, 0.9);
}

.section-header {
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.section-header p {
  margin-bottom: 20px; /* space between paragraphs */
}

/* SECTION IMAGE (Markets) */
.section-image {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* Subtle parallax */
  background-attachment: fixed;
}

.section-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.9); /* Adjust opacity here */
}

.section-image > * {
  position: relative;
  z-index: 1;
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.card {
  border: 1px solid #eee;
  padding: 2rem;
  background: #fff;
}

.card h3 {
  margin-bottom: 1rem;
}

/* MARKETS TAGS */
.markets {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.markets span {
  padding: 0.5rem 1rem;
  border: 1px solid #ddd;
  font-size: 0.85rem;
  background: #fff;
}

/* SPLIT (Approach Section) */
.split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
}

.stat-box div {
  margin-bottom: 1.5rem;
}

.stat-box strong {
  display: block;
  font-size: 1rem;
}

.stat-box span {
  font-size: 0.85rem;
  color: #555;
}

/* CONTACT */
.contact {
  text-align: center;
}

.contact-info {
  margin-top: 1.5rem;
}

/* FOOTER */
.footer {
  padding: 2rem;
  text-align: center;
  border-top: 1px solid #eee;
  font-size: 0.8rem;
  color: #666;

  background: rgba(255, 255, 255, 0.9);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }

  .split {
    grid-template-columns: 1fr;
  }

  nav {
    display: none;
  }
}

.mobile-call-button {
  display: none; /* hidden by default */
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #28a745;
  color: white;
  padding: 14px 20px;
  border-radius: 50px;
  font-size: 16px;
  text-decoration: none;
  z-index: 9999;
}

@media only screen and (max-width: 768px) {
  .mobile-call-button {
    display: block; /* show on mobile */
  }
}
