/* eemar_style.css - full CSS, append/replace your current CSS with this file */
/* Basic reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
  height: 100%;
}

/* Page layout so footer stays at bottom when content short */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* NAVBAR */
.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding: 10px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  color: #222;
  z-index: 1000;
  gap: 12px;
}

.nav-bar a {
  color: #222;
  text-decoration: none;
  margin-left: 20px;
  font-weight: bold;
}

.logo img {
  height: 50px;
  width: auto;
  mix-blend-mode: multiply;
}

/* HAMBURGER */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  width: 44px;
  height: 44px;
  padding: 6px;
  cursor: pointer;
}
.hamburger {
  display: block;
  width: 26px;
  height: 2px;
  background: #222;
  position: relative;
}
.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 26px;
  height: 2px;
  background: #222;
}
.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* NAV LINKS (desktop) */
.nav-links {
  display: flex;
  gap: 14px;
  align-items: center;
}

/* HERO */
.hero {
  background-image: url('background.jpg');
  background-size: cover;
  background-position: center;
  /* Fill viewport minus nav height (JS sets --nav-height). Fallback to 100vh if var not set. */
  min-height: calc(100vh - var(--nav-height, 0px));
  height: auto;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center; /* center slogan vertically */
  align-items: center;
  padding: 12px 20px;
  text-align: center;
  position: relative;
  box-sizing: border-box;
}

/* Hero text */
.hero-text {
  margin-bottom: 20px;
}
.hero-text h1 {
  margin: 0;
  font-size: clamp(1.6rem, 6.5vw, 2.6rem);
  line-height: 1.06;
  word-break: break-word;
  max-width: 96%;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.55);
}

/* SEARCH BAR */
.search-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 980px;
  box-sizing: border-box;
}
.search-bar select,
.search-bar input,
.search-bar button {
  padding: 10px 15px;
  font-size: 1em;
  border: none;
  border-radius: 5px;
  min-width: 180px;
}
.search-bar select,
.search-bar input {
  background-color: rgba(255,255,255,0.92);
  color: #111;
}
.search-bar input[type="text"] {
  min-width: 250px;
  flex-grow: 1;
}
.search-bar button {
  padding: 10px 15px;
  font-size: 1.05em;
  border: none;
  border-radius: 5px;
  background-color: #333;
  color: white;
  cursor: pointer;
}
.search-bar button:hover {
  background-color: #0056b3;
}

/* MAIN */
main {
  flex: 1 0 auto;
}
.main-content {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 80px 20px 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.main-header { text-align: center; margin-bottom: 30px; }
.main-emoji { font-size: 2.5em; display: block; }
.main-header h1 { font-size: 2.3em; font-weight: bold; margin-top: 10px; }
.main-header h2 { font-size: 1.35em; color: #444; margin-top: 8px; font-weight: normal; }

.main-intro, .main-conclusion {
  max-width: 800px;
  text-align: left;
  margin-bottom: 30px;
  font-size: 1.08em;
  color: #222;
}
.main-vision {
  font-style: italic;
  background: #f6f6f6;
  border-left: 4px solid #0056b3;
  padding: 16px 18px;
  margin: 30px 0;
  color: #222;
  font-size: 1.15em;
}
.main-pillars { max-width: 800px; margin-bottom: 30px; }
.main-pillars h3 { font-size: 1.18em; margin-bottom: 12px; font-weight: bold; }
.main-pillars ul { list-style: disc inside; font-size: 1em; color: #222; padding-left: 0; }
.main-pillars li { margin-bottom: 10px; }

/* SERVICES */
.services-fullscreen {
  width: 100%;
  min-height: 60vh; /* do not force full 100vh, avoid layout problems on small screens */
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.services-title { width: 100%; text-align: center; margin-bottom: 60px; }
.services-title h2 { font-size: 3em; font-weight: bold; letter-spacing: 2px; }
.services-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: stretch;
  width: 80%;
  max-width: 1200px;
  gap: 40px;
}
.service-box {
  background: none;
  flex: 1 1 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px 30px 20px;
  min-width: 250px;
}
.service-number {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2em;
  color: #0056b3;
  font-weight: bold;
  opacity: 0.8;
}
.service-img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; box-shadow: 0 4px 16px rgba(0,0,0,0.09); border: 4px solid #f6f6f6; transition: transform 0.2s; }
.service-img-link:hover .service-img { transform: scale(1.07); box-shadow: 0 8px 32px rgba(0,86,179,0.18); }
.service-title { font-size: 1.3em; margin-bottom: 10px; margin-top: 8px; text-align: center; }
.service-desc { font-size: 1em; color: #888; text-align: center; margin-top: 4px; }

/* Footer */
footer {
  background: #222;
  color: #fff;
  padding: 25px 0 18px 0;
  text-align: center;
  font-size: 1em;
  margin-top: 0;
}
.footer-content a { color: #f6f6f6; margin: 0 8px; text-decoration: underline; }
.footer-content a:hover { color: #0056b3; }

/* Responsive adjustments */
img { max-width: 100%; height: auto; display: inline-block; }

/* Default desktop nav already set; below rules adapt to mobile */
@media (max-width: 900px) {
  .main-content { padding: 40px 8vw; }
  .main-intro, .main-conclusion, .main-pillars { max-width: 98vw; }

  .services-row { flex-direction: column; gap: 28px; width: 100%; }
  .service-box { min-width: 200px; padding: 30px 10px 20px 10px; }
}

@media (max-width: 700px) {
  /* Show hamburger and convert nav to drawer */
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    position: absolute;
    top: calc(var(--nav-height, 64px) + 8px);
    right: 12px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.12);
    flex-direction: column;
    padding: 12px;
    display: none;
    min-width: 180px;
    z-index: 50;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 8px; width: 100%; display: block; color: #222; border-radius: 6px; }
  .nav-links a:hover, .nav-links a:focus { background: #f4f8fc; outline: none; }

  /* Search bar stack */
  .search-bar { gap: 8px; }
  .search-bar select, .search-bar input, .search-bar button { width: 100%; min-width: 0; }

  .hero { padding-bottom: 40px; min-height: calc(75vh - var(--nav-height, 0px)); }
  .hero-text { font-size: 1.6em; }
  .main-content { padding: 28px 4vw; }

  button, .service-btn, .contact-btn { min-height: 44px; padding: 12px 16px; font-size: 1rem; }
}

/* Small-screen tweak so hero still fills viewport but leaves room when needed */
@media (min-width: 701px) {
  .hero { min-height: calc(100vh - var(--nav-height, 0px)); }
}

/* Accessibility focus */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
  outline: 3px solid rgba(0,86,179,0.15);
  outline-offset: 2px;
}

/* Keep hero heading safe sizing */
.hero-text h1 {
  margin: 0;
  font-size: clamp(1.6rem, 6vw, 2.6rem);
  line-height: 1.06;
  word-break: break-word;
  max-width: 96%;
}