/* -------- Reset & Base -------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: #333;
  display: flex;
  flex-direction: column;
  background: #fafafa;
}

/* Optional page background image — swap as needed */
body.has-bg {
  background-image: url("");
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
}

/* Gradient background for home page */
body.gradient-bg {
  background: linear-gradient(135deg, #00a3e0, #86bc25); 
  /* fallback if gradients not supported */
  background-color: #00a3e0;
}

/* Other pages background image */
body.pages-bg {
  background-image: url("");
  background-attachment: fixed;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.wordmark-block img {
  display: block;        /* removes inline gap */
  margin: 0 auto;        /* centers horizontally if smaller than column */
}

.caption {
  margin-top: 0;         /* no extra gap */
  text-align: center;
  font-style: italic;
  color: #444;
}

.caption p {
  margin: 0;             /* remove default <p> spacing */
  line-height: 1.3;
}

.full-image-section {
  width: 100%;
  height: 100vh;              /* full screen height */
  overflow: hidden;
}

.full-image-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;           /* makes it fill the section */
  display: block;
}

.text-section {
  max-width: 900px;       /* keeps text readable on wide screens */
  margin: 3rem auto;      /* center + spacing */
  padding: 0 1.5rem;      /* side padding for mobile */
  text-align: center;     /* or left if you prefer */
}

.text-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.text-section p {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: #444;
}

.about-row {
  min-height: 100vh;            /* fill full screen height */
  display: flex;
  align-items: center;          /* vertically center children */
  justify-content: center;      /* optional: center horizontally */
  padding: 2rem;                /* some breathing room */
  box-sizing: border-box;
}

.card-row {
  display: flex;
  flex-wrap: wrap;             
  gap: 2rem;
  justify-content: center;     /* centers cards horizontally */
  align-items: center;         /* centers cards vertically within the row */
  max-width: 1200px;
  margin: 3rem auto;           /* centers the whole row block */
  padding: 0 1rem;
  min-height: 60vh;            /* optional: pushes row toward vertical middle of screen */
}

.card {
  flex: 1 1 300px;             /* minimum width of 300px, flexible growth */
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.card img {
  display: block;
  height: clamp(64px, 8vw, 96px); /* ~64px on mobile up to ~96px on desktop */
  width: auto;                    /* preserve aspect ratio */
  max-width: 80%;                 /* don't stretch too wide in the card */
  margin: 0 auto 1rem;            /* center the logo */
  object-fit: contain;            /* no cropping */
  border-radius: 0;               /* keep logos crisp; use 10px if you like rounded */
}

.card img.logo {
  display: block;
  height: clamp(64px, 8vw, 96px);
  width: auto;
  max-width: 80%;
  margin: 0 auto 1rem;
  object-fit: contain;
  border-radius: 0;
}

.card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

.contact-section {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  text-align: center;
  padding: 3rem 1.5rem;
}

.contact-icon {
  width: clamp(80px, 12vw, 140px);
  height: auto;
  display: block;
}

.contact-email a {
  color: #0077cc;
  font-weight: 600;
  text-decoration: none;
}

.contact-email a:hover,
.contact-email a:focus-visible {
  text-decoration: underline;
}


main { flex: 1; }

/* -------- Navbar -------- */
.navbar {
  display: flex; justify-content: space-between; align-items: center;
  background: #222; color: #fff; padding: 1rem; flex-wrap: wrap;
}
.logo { font-size: 1.5rem; font-weight: 700; }
.nav-links { list-style: none; display: flex; gap: 1rem; }
.nav-links a {
  color: #fff; text-decoration: none; padding: .5rem; border-radius: 6px; transition: background .2s;
}
.nav-links a:hover { background: #444; }
.menu-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.5rem; cursor: pointer; }

.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 3rem 1rem;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  border-bottom: 1px solid #eee; /* optional */
}

.row.no-divider {
  border-bottom: none;
}

.row:nth-child(even) {
  flex-direction: row-reverse; /* flips text/image on alternating rows */
}

.text, .image {
  flex: 1 1 320px; /* flexible columns */
}

.text {
  font-size: 1rem;
  line-height: 1.6;
}

.image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.card-link:hover,
.card-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}


/* -------- Footer -------- */
footer { text-align: center; padding: 1.25rem; background: #f4f4f4; color: #555; }
