/* ---------- Base ---------- */

html {
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Work Sans", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #222;
  background: #8FAE8F; /* Sage green */
}

/* ---------- Layout wrapper ---------- */

.legalpad {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 2rem 1.5rem 3rem;
  background: #fdfcf8;
  border-radius: 18px;
  border: 4px solid #B8432C; /* Deep rust border */
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-family: "Libre Baskerville", serif;
  color: #24313a;
  margin-top: 0;
}

h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

p {
  line-height: 1.6;
  margin: 0.4rem 0 0.9rem;
}

/* ---------- Header & Nav ---------- */

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
}

.logo img {
  max-height: 70px;
  width: auto;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

nav a {
  text-decoration: none;
  font-weight: 500;
  color: #344955;
  position: relative;
  font-size: 0.98rem;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #c9772c;
  transition: width 0.25s ease;
}

nav a:hover::after {
  width: 100%;
}

/* ---------- Ruled lines ---------- */

.ruled-line {
  border: none;
  height: 1px;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.04),
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0.04)
  );
  margin: 1.25rem 0 1.75rem;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 70vh;
  border-radius: 18px;
  overflow: hidden;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;

  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 3rem 2.5rem;
}

/* gentle gradient: darker on left, lighter on right */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to left,
    rgba(0, 0, 0, 0.28),
    rgba(0, 0, 0, 0.10),
    rgba(0, 0, 0, 0.02)
  );
}

.hero-content {
  position: relative;
  max-width: 480px;
  color: #fffaf4;
  z-index: 1;
  text-align: right;
  margin-right: 3rem;
}

.hero-content h2 {
  font-size: 2.3rem;
  margin-bottom: 0.6rem;
}

.hero-content p {
  font-size: 1rem;
  margin-bottom: 1.2rem;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  background: #f4a259;
  color: #2a2a2a;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  background: #f39b4b;
  transform: translateY(-1px);
  box-shadow: 0 11px 26px rgba(0, 0, 0, 0.3);
}

/* ---------- Sections ---------- */

.section {
  padding: 0.25rem 0 1.5rem;
}

.section h2 {
  text-align: left;
  margin-bottom: 0.75rem;
}

/* ---------- Services grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 0.75rem;
}

.card {
  background: #ffffff;
  border-radius: 14px;
  padding: 1.3rem 1.2rem 1.4rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
  text-align: left;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card i {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
  color: #c9772c;
}

.card p {
  font-size: 0.95rem;
  color: #444;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.09);
}

/* ---------- Contact & Map ---------- */

.map {
  margin: 0.75rem 0 1.2rem;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.contact-info {
  font-size: 0.98rem;
}

.contact-info a {
  color: #c9772c;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* ---------- Footer ---------- */

footer {
  margin-top: 2.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: #777;
}

footer .zia {
  max-width: 70px;
  display: block;
  margin: 0 auto 0.5rem;
  border-radius: 50%;
}

/* ---------- Responsive tweaks ---------- */

/* Tablets */
@media (max-width: 900px) {
  .legalpad {
    margin: 1.2rem;
    padding: 1.75rem 1.4rem 2.25rem;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding: 2.5rem 1.8rem;
    min-height: 60vh;
    justify-content: center;
  }

  .hero-content {
    text-align: center;
    margin-right: 0;
    max-width: 520px;
  }

  .hero-content h2 {
    font-size: 2rem;
  }
}

/* Phones */
@media (max-width: 600px) {
  .hero {
    padding: 2rem 1.2rem 2.4rem;
    min-height: auto;
    align-items: flex-end;
  }

  .hero-content {
    text-align: center;
    margin-right: 0;
  }

  .hero-content h2 {
    font-size: 1.6rem;
    line-height: 1.2;
  }

  .hero-content p {
    font-size: 0.95rem;
  }

  .btn {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .legalpad {
    margin: 1rem 0.5rem;
    border-width: 3px;
  }
}
