/* =========================
   RESET & BASE
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: inherit;
}

/* =========================
   LAYOUT
========================= */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 20px;
}

/* =========================
   HEADER
========================= */
.site-header {
  background: #111;
  text-align: center;
}

.header-image {
  width: 100%;
  max-width: 1200px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.main-nav {
  background: #222;
  padding: 10px;
}

.main-nav a {
  color: #fff;
  margin: 0 12px;
  text-decoration: none;
  font-weight: 500;
}

.main-nav a:hover {
  text-decoration: underline;
}

.btn {
  padding: 10px 18px;
  border: none;
  cursor: pointer;
  border-radius: 4px;
}

.primary {
  background: #0056b3;
  color: #fff;
}

/* =========================
   HERO SECTION
========================= */
.hero {
  background: #f4f4f4;
  text-align: center;
  padding: 60px 20px;
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

/* =========================
   SECTIONS & HEADINGS
========================= */
.section {
  padding: 40px 0;
}

section h2 {
  text-align: center;
  margin-bottom: 30px;
}

/* =========================
   SERVICES GRID - STACKED
========================= */
.grid {
  display: flex;
  flex-direction: column; /* stacked vertically */
  gap: 20px;
  align-items: stretch;
}

/* =========================
   CARDS
========================= */
.card {
  background-color: #fff;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.card h3 {
  color: #0056b3;
  margin-top: 0;
  margin-bottom: 0.8em;
  text-align: center;
}

.card p {
  text-indent: 40px;
  margin-bottom: 1em;
  line-height: 1.6;
  color: inherit;
}

/* =========================
   CARD WITH IMAGE
========================= */
.card.card-with-image {
  display: flex;
  flex-direction: column; /* stacked vertically */
  gap: 20px;
  align-items: center;
}

.card-with-image .card-image {
  display: flex;
  justify-content: center;
}

.card-with-image .card-image img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 6px;
}

.card-with-image .card-text {
  flex: unset; /* use natural height */
}

/* =========================
   CTA CARD
========================= */
.card.cta-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 250px; /* ensures card has some height */
}

.card.cta-card h3,
.card.cta-card p {
  text-indent: 0;
  margin-bottom: 1em;
}

.card.cta-card .btn {
  display: block;
  margin: 0 auto;
  margin-top: 15px;
}

/* =========================
   FOOTER
========================= */
.footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 20px;
}

/* =========================
   MODAL
========================= */
.modal {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
}

.modal-content {
  background: #fff;
  padding: 30px;
  margin: 80px auto;
  width: 90%;
  max-width: 500px;
  border-radius: 8px;
}

.close {
  float: right;
  font-size: 1.4rem;
  cursor: pointer;
}

input,
textarea {
  width: 100%;
  margin: 8px 0;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}