/* =====================================================
   MOBILE VERSION (<= 980px)
   Desktop stays unchanged because this file only loads
   on small screens via media attribute in HTML.
===================================================== */

html, body {
  width: 100%;
  overflow-x: hidden;
}

body {
  min-width: 0 !important;
}

/* Remove desktop forced widths */
.menu,
.header,
.center,
.button_down_wrapper,
.title_big,
.img_center,
.footer,
.footer .back,
.page {
  min-width: 0 !important;
  width: 100% !important;
}

/* =====================================================
   MOBILE HEADER BAR (hamburger)
===================================================== */

.menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  height: 56px;                 /* clean mobile header height */
  padding: 0 12px;

  display: flex;
  align-items: center;

  background: #fff;
  z-index: 4000;

  white-space: nowrap !important;
  overflow: visible !important;

  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* Keep home icon on the left */
.menu a.home_button {
  margin-left: 0 !important;
  padding: 0 !important;
  flex: 0 0 auto;
}

/* Hide desktop links + phone inside the bar on mobile */
.menu > a:not(.home_button) {
  display: none !important;
}

.menu .phone {
  display: none !important;
}

/* Hamburger on the right */
.hamburger {
  margin-left: auto;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 24px;
  background: #00173e;
  border-radius: 2px;
}

/* Push page content below the fixed header */
header#home {
  padding-top: 56px;
}

/* =====================================================
   MOBILE DRAWER
===================================================== */

.mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 4500;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(400px, 86vw);
  background: #ffffff;
  z-index: 5000;

  transform: translateX(100%);
  transition: transform 220ms ease;
  box-shadow: -12px 0 30px rgba(0,0,0,0.18);

  display: flex;
  flex-direction: column;
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

.mobile-drawer__header {
  height: 56px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;

  border-bottom: 1px solid #e6e6e6;
}

.mobile-drawer__title {
  font-size: 1.05em;
  color: #00173e;
  font-family: "Voltaire";
}

.mobile-close {
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  color: #00173e;
}

.mobile-drawer__content {
  padding: 10px 14px 16px 14px;
}

.mobile-drawer__content a {
  display: block;
  padding: 12px 8px;
  color: #00173e;
  text-decoration: none;
  border-radius: 8px;
}

.mobile-drawer__content a:hover {
  background: #f1f3f6;
  opacity: 1; /* override your hover opacity from common.css */
}

.mobile-drawer__divider {
  height: 1px;
  background: #e6e6e6;
  margin: 10px 0;
}

.mobile-call {
  font-weight: 600;
}

/* =====================================================
   Your existing mobile layout improvements
===================================================== */

.header img {
  display: block;
  width: 100%;
  height: auto;
}

.scroll_logo {
  display: none !important;
}

.to-top {
  right: 16px;
  bottom: 16px;
  padding: 14px;
}

/* Single column */
.page {
  margin: 0 18px !important;
  padding-top: 30px !important;
}

.page .left,
.page .right {
  float: none !important;
  width: 100% !important;
}

.page .left.border,
.page .right.border {
  border: none !important;
}

.page .left .text_wrapper {
  padding-right: 0 !important;
}

.page .right .text_wrapper {
  padding-left: 0 !important;
  padding-top: 20px !important;
}

.left .title,
.right .title {
  font-size: 1.6em;
  line-height: 1.3em;
  margin-left: 0 !important;
}

.shift_right {
  padding-left: 20px !important;
}

img.float_right {
  float: none !important;
  display: block;
  margin: 15px auto 0 auto;
}

.img_center.specializations img,
.img_center.contact img {
  width: 100% !important;
  height: auto;
  display: block;
}

/* Footer stacked */
.footer .back {
  height: auto !important;
  padding: 30px 16px 40px 16px !important;
  background-size: cover;
}

.footer-nav {
  gap: 20px !important;
  margin: 10px 0 30px 0 !important;
}

.footer .left,
.footer .right {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  text-align: center !important;
}

.footer .right {
  background-position: center top !important;
  margin-top: 20px !important;
}

.footer .anic {
  position: static !important;
  margin-top: 20px;
  text-align: center;
}


/* =====================================================
   MOBILE GUTTERS / MARGINS (consistent left-right)
===================================================== */

/* Consistent side padding for mobile content */
.page {
  margin: 0 !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  box-sizing: border-box;
}

/* Align the top info block with content */
#office > .center.grey {
  min-width: 0 !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  margin-top: 18px !important;
  box-sizing: border-box;
}

/* Constrain readable width */
.page,
#office > .center.grey {
  max-width: 720px;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Keep big titles aligned */
.title_big {
  padding-left: 20px !important;
  padding-right: 20px !important;
  box-sizing: border-box;
}

/* Keep image sections full width */
.img_center {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}


/* =====================================================
   MOBILE TYPOGRAPHY IMPROVEMENTS
===================================================== */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Force a larger, stable base size */
body {
  font-size: 18px !important;
  line-height: 1.65 !important;
}

/* Ensure your common text elements follow the base size */
div, p, li, a, span {
  font-size: 1em !important;
}

/* Improve readability spacing */
p { padding-bottom: 16px !important;
padding-left: 20px;
padding-right:20px;}

/* Headings scale up on mobile */
.left .title,
.right .title {
  font-size: 1.85em !important;
  line-height: 1.25 !important;
  margin-bottom: 14px !important;
}

.title_big {
  font-size: 2.1em !important;
  line-height: 1.2 !important;
  margin-top: 28px !important;
  margin-bottom: 26px !important;
}

/* Mobile menu / drawer readability */
.mobile-drawer__content a {
  font-size: 1.15em !important;
  padding: 14px 10px !important;
}

.mobile-call {
  font-size: 1.2em !important;
}

/* =====================================================
   FOOTER BACKGROUND FIX (PROPER VERSION)
===================================================== */

/* Repeating background texture */
.footer .back {
  background-image: url('../images/footer_bg.png') !important;
  background-repeat: repeat !important;     /* allow tiling */
  background-position: left top !important;
  background-size: auto !important;         /* DO NOT use cover for patterns */

  padding: 28px 16px 36px 16px !important;
  position: relative !important;
}

/* Logo should NOT repeat */
.footer .right {
  background-image: url('../images/eizenga-logo.png') !important;
  background-repeat: no-repeat !important;
  background-position: center top !important;
  background-size: contain !important;
}

