/* =========================================================
   FERDZ ELECTRONICS — UI THEME
   css/style.css
========================================================= */

/* =========================
   1) THEME / TOKENS
========================= */
:root{
  /* Surfaces */
  --bg: #f3f5f8;
  --card: rgba(255,255,255,.92);
  --card2: rgba(255,255,255,.70);
  --stroke: rgba(10, 20, 40, .10);

  /* Text */
  --ink: #0b1220;
  --muted: #5d6b85;

  /* Brand */
  --blue:  #143bff;
  --blue2: #0b2fb8;
  --red:   #ff1a1a;
  --green: #7AC100;
  --navyBlue: #081631;

  /* Radius / Shadows */
  --radius: 8px;
  --shadow:  0 18px 40px rgba(10, 30, 80, .10);
  --shadow2: 0 10px 22px rgba(0,0,0,.06);

  /* Focus ring */
  --focus: 0 0 0 4px rgba(20,59,255,.18);
}

/* =========================
   2) RESET / BASE
========================= */
*{ box-sizing: border-box; }
html, body{ height:100%; }

body{
  margin:0;
  min-height:100vh;
  display:flex;
  flex-direction:column;

  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--ink);

  /* FULL BACKGROUND IMAGE + DARK OVERLAY */
  background:
    linear-gradient(rgba(20, 25, 35, 0.65), rgba(20, 25, 35, 0.65)),
    url("../assets/index-image.jpg") center / cover no-repeat fixed;
}

/* Layout container (main content grows so footer stays bottom) */
.container{
  flex: 1 0 auto;
  max-width:1150px;
  margin:0 auto;
  padding: 10px 16px 0;
}

/* =========================
   3) TOP BAR / NAV
========================= */
.topbar{
  max-width:1150px;
  margin:0 auto;
  padding:10px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between; /* brand left, nav right */
  gap:14px;
  flex-wrap:nowrap;
}

/* =========================
   INFO BAR (UNDER NAV)
========================= */

.infobar{
  max-width: 1150px;
  width: calc(100% - 32px);   /* matches topbar padding 16px left/right */
  margin: 0 auto;             /* centers the whole bar */
  padding: 8px 16px;

  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
  font-weight: 800;
  color: #fff;
  justify-content: center;    /* centers the info items inside */
  margin-top: -25px;
  margin-bottom: -25px;
}


.info-item{
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
}

.info-label{
  color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
}


/* Brand / Logo (LEFT) */
.brand{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:12px;
  flex: 0 0 auto;
}

.brand-logo{
  width:125px;
  object-fit: contain;
  display:block; /* remove inline gaps */
  margin:0;
  margin-right: 280px;

  /* subtle white glow */
  filter:
    drop-shadow(0 4px 10px rgba(0,0,0,0.15))
    drop-shadow(0 0 18px rgba(255,255,255,0.6));
}

.brand-name{
  font-weight:900;
  letter-spacing:.4px;
}
.brand-sub{
  margin-top:2px;
  font-size:12px;
  color: rgba(255,255,255,.70); /* readable over dark bg */
}

/* ===== Hamburger Toggle Button ===== */
.nav-toggle{
  display:none;              /* hidden on desktop */
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  cursor:pointer;
  align-items:center;
  justify-content:center;
}
.nav-toggle:focus{
  outline:none;
  box-shadow: var(--focus);
}


/* Right side group */
.nav-wrap{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex:1;
  min-width:0;
}

.nav{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

/* links */
.navlink{
  padding:6px 12px;
  border-radius:6px;
  border:.5px solid var(--muted);
  background: rgb(0 0 0 / 60%);
  text-decoration:none;
  color: var(--green);
  font-weight:800;
  font-size:13px;
  cursor:pointer;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.navlink:hover{
  transform: translateY(-1px);
  color: var(--bg);
}

/* Active tab */
.tab-btn.active{
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  color:#fff;
  border:.5px solid var(--muted);
}

/* =========================
   4) BUTTONS
========================= */
.btn{
  border:0;
  border-radius:6px;
  padding:6px 12px;
  font-weight:900;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  text-decoration:none;
  transition: transform .15s ease, box-shadow .15s ease;
}

.btn:hover{ transform: translateY(-1px); }
.btn:focus{ outline:none; box-shadow: var(--focus); }

.btn-primary{
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  color:#fff;
  box-shadow: 0 16px 30px rgba(20,59,255,.18);
}
.btn-danger,
.btn-inquiry{
  background: linear-gradient(135deg, var(--red), #c40000);
  color:#fff;
  box-shadow: 0 16px 30px rgba(255,26,26,.18);
}

/* =========================
   5) TABS (PAGE SWITCH)
========================= */
.tab-section{ display:none; animation: fadeIn .25s ease; }
.tab-section.active{ display:block; }

@keyframes fadeIn{
  from{ opacity:0; transform: translateY(4px); }
  to{ opacity:1; transform:none; }
}

/* =========================
   6) HERO
========================= */
.hero{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:16px;
  margin-bottom:18px;
}

.hero-card{
  background: var(--card);
  border:1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:18px;
}

.hero-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid var(--stroke);
  background: rgba(20,59,255,.08);
  font-weight:900;
  font-size:12px;
}
.badge-dot{
  width:9px;
  height:9px;
  border-radius:99px;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(255,26,26,.14);
}

.hero h1{
  margin:12px 0 8px;
  font-size:32px;
  letter-spacing:.2px;
}
.hero-sub{
  margin:0 0 14px;
  max-width:60ch;
  color: var(--muted);
  line-height:1.6;
}
.hero-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.hero-side{ display:grid; gap:12px; }

.stat{
  background: rgba(255,255,255,.75);
  border:1px solid var(--stroke);
  border-radius:16px;
  padding:12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.stat-title{ font-weight:900; font-size:14px; }
.stat-sub{ font-size:12px; color:var(--muted); }

.pill{
  padding:7px 10px;
  border-radius:999px;
  background: rgba(20,59,255,.10);
  border: 1px solid rgba(20,59,255,.18);
  font-weight:900;
  font-size:12px;
  white-space:nowrap;
}



/* =========================
   7) FEATURES (INQUIRY CARDS)
========================= */
.features-wrap{
  padding:28px 0 10px;
  position:relative;
  overflow:hidden;
  margin-top:8px;
}

/* soft circles */
.features-wrap::before,
.features-wrap::after{
  content:"";
  position:absolute;
  width:520px;
  height:520px;
  border-radius:50%;
  background: rgba(0,0,0,.03);
  pointer-events:none;
}
.features-wrap::before{ right:-220px; top:-220px; }
.features-wrap::after{ left:-260px; bottom:-260px; }

.features-title{
  text-align:center;
  margin:6px 0 10px;
  font-weight:900;
  font-size:34px;
  color: var(--green);
  letter-spacing:.2px;
}

.features-note{
  text-align:center;
  max-width:700px;
  margin:0 auto 20px;
  font-size:16px;
  color: rgba(255,255,255,.82);
  line-height:1.6;
}

.features-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:15px;
  max-width:980px;
  margin:0 auto;
  padding:0 14px 14px;
}


.feature-card{
  width:100%;
  cursor:pointer;
  text-align:center;
  padding:18px 12px 16px;
  background: transparent !important;
  border-radius: 6px;
  box-shadow: var(--shadow2);
  border: 2px solid var(--green);
  transition: transform .15s ease, box-shadow .15s ease;
}

.feature-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0,0,0,.09);
}

.feature-photo{
  position:relative;
  min-height:110px;
  overflow:hidden;
  padding:14px;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  color:#fff;
}

.feature-photo::before{
  content:"";
  position:absolute;
  inset:0;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  z-index:0;
}
.feature-photo::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.55));
  z-index:1;
}

.feature-photo .feature-label{
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 0;
  text-align: center;
  font-weight: 900;
  font-size: 16px;
  padding: 2px 12px;
  border-radius: 4px;

  /* Adaptive readability */
  color: #fff;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);

  text-shadow: 0 2px 8px rgba(0,0,0,.5);
}

/* PHOTO LAYER */
.feature-card.feature-photo::before{
  content:"";
  position:absolute;
  inset:0;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  opacity: 1;
  transition: opacity .25s ease;
  z-index: 0;
}

/* DARK OVERLAY (hidden initially) */
.feature-card::after{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.65);
  opacity: 0;
  transition: opacity .25s ease;
  z-index: 1;
}

/* FEATURE LABEL (normal state) */
.feature-label{
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 14px;
  font-weight: 900;
  font-size: 15px;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0,0,0,.7);
  transition: opacity .2s ease;
}

/* INQUIRE NOW TEXT (BIG & CENTERED) */
.hoverText{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 3;

  font-size: 20px;              /* 🔥 BIG TEXT */
  letter-spacing: 1.5px;
  text-transform: uppercase;

  color: #ffffff;
  text-shadow: 0 4px 20px rgba(0,0,0,.85);

  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}

/* Title */
.hoverTitle{
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--red);
  text-shadow: 0 4px 20px rgba(0,0,0,.85);
  margin-top: 20px;
}

/* Description below title */
.hoverDesc{
  font-size: 10px;
  line-height: .5;
  color: rgba(220,235,255,.9);
  margin-bottom: 25px;
}

.InquiryLine{
  width: 300px;
  height: 2px;
  margin-top: -15px;
  margin-bottom: -10px;
  border: none;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255,255,255,.8),
    transparent
  );
}

/* =========================
   HOVER STATE
========================= */

.feature-card:hover::before{
  opacity: 0;          /* hide photo */
}

.feature-card:hover .feature-label{
  opacity: 0;          /* hide label */
}

.feature-card:hover::after{
  opacity: 1;          /* show dark overlay */
}

.feature-card:hover .hoverText{
  opacity: 1;          /* show INQUIRE NOW */
}

/* Click feedback */
.feature-card:active{
  transform: scale(.97);
}

/* MOBILE: keep normal view */
@media (hover: none){
  .hoverText,
  .feature-card::after{
    display: none;
  }
}



/* Divider line */

.divider{
  border:0;
  height:1px;
  background: rgba(255,255,255,.25);
  margin:18px 0;
}

/* =========================
   8) SLIDER + ADVISORY
========================= */
.slider-advisory{
  display:grid;
  grid-template-columns:1.2fr 3fr;
  gap:10px;
  margin:30px auto;
  max-width:1150px;
}

/* Slider */
.slider-box{
  position:relative;
  height:420px;
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.10);
}

.slide{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
  opacity:0;
  transition: opacity .6s ease;
}
.slide.active{ opacity:1; }

.slide::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.25));
}

.slide-content{
  position:absolute;
  left:24px;
  bottom:24px;
  max-width:70%;
  color:#fff;
  z-index:2;
}
.slide-content h2{
  margin:0 0 6px;
  font-size:26px;
  font-weight:900;
}
.slide-content p{
  margin:0;
  font-size:14px;
  line-height:1.6;
  opacity:.9;
}

.slide-btn{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.25);
  border:0;
  width:40px;
  height:40px;
  border-radius:50%;
  cursor:pointer;
  font-size:22px;
  font-weight:900;
  color:#fff;
  z-index:3;
}
.slide-btn.prev{ left:12px; }
.slide-btn.next{ right:12px; }

/* Advisory */
.advisory-box{
  background: var(--card);
  border:1px solid var(--stroke);
  border-radius: var(--radius);
  padding:16px;
  box-shadow: var(--shadow);
  display:flex;
  flex-direction:column;
  gap:10px;
}
.advisory-box h3{
  margin:0;
  font-weight:900;
  font-size:18px;
}
.advisory-box ul{
  margin:0;
  padding-left:18px;
  color: var(--muted);
  font-size:14px;
  line-height:1.7;
  display:grid;
  gap:8px;
}


/* =========================
   9) SIMPLE SECTIONS
========================= */
.simple{
  margin-top:22px;
  background: var(--card);
  border:1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:18px;
}
.simple h2{ margin:0 0 8px; font-size:30px;}
.simple p{ margin:0; color:var(--muted); line-height:1.6; }
.simple-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:12px;
}

/* MAP SECTION */

/* =========================
   LOCATION (MAP 80% + PANEL 20%)
========================= */

.location-section{
  margin-top: 30px;

}

.location-title{
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 900;
  color:var(--green);
  
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
}

.location-grid{
  display: grid;
  grid-template-columns: 4fr 1fr; /* 80/20 */
  gap: 10px;
  align-items: stretch;
}

.location-map{
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

#map{
  width: 100%;
  height: 320px;
}

.location-panel{
  display: flex;
}

.loc-card{
  width: 100%;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  box-shadow: var(--shadow2);
  padding: 14px;
}

.loc-card h3{
  margin: 0 0 6px;
  font-weight: 900;
  font-size: 18px;
  margin-bottom: 10px;
}

.loc-sub{
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 25px;
}

.loc-btn{
  width: 100%;
  justify-content: center;
  margin-bottom: 10px;
  margin-bottom: 15px;
}

.loc-status{
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink);
  font-weight: 800;
  margin-bottom: 20px;
  text-align: center;
}

.loc-mini{
  margin-top: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  word-break: break-word;
}


/* =========================
   TOGGLE PATH BUTTON
========================= */

#btnTogglePath {
    position: sticky;
    bottom: 12px;          /* sticks near bottom of its container */
    z-index: 20;
    width: 100%;
    padding: 5px 10px;
    border-radius: 12px;
    border: none;
    outline: none;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .4px;
    text-transform: uppercase;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background .25s ease, transform .15s ease, box-shadow .2s ease, opacity .2s ease;
    margin-bottom: 20px;
}

/* =========================
   SHOW PATH (GREEN)
========================= */

#btnTogglePath.btn-success{
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #0b1220;
  box-shadow:
    0 10px 25px rgba(34,197,94,.35),
    inset 0 -2px 0 rgba(0,0,0,.15);
}

#btnTogglePath.btn-success:hover{
  background: linear-gradient(135deg, #2eea76, #16a34a);
  transform: translateY(-1px);
  box-shadow:
    0 14px 30px rgba(34,197,94,.45);
}

#btnTogglePath.btn-success:active{
  transform: scale(.97);
  box-shadow:
    0 6px 18px rgba(34,197,94,.35);
}

/* =========================
   CLEAR PATH (RED)
========================= */

#btnTogglePath.btn-danger{
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #ffffff;
  box-shadow:
    0 10px 25px rgba(239,68,68,.35),
    inset 0 -2px 0 rgba(0,0,0,.25);
}

#btnTogglePath.btn-danger:hover{
  background: linear-gradient(135deg, #ff5b5b, #b91c1c);
  transform: translateY(-1px);
  box-shadow:
    0 14px 30px rgba(239,68,68,.45);
}

/* =========================
   SET LOCATION FIRST (GRAY)
========================= */

#btnTogglePath.btn-secondary{
  background: linear-gradient(135deg, #94a3b8, #64748b);
  color: #0b1220;
  opacity: .9;
  box-shadow:
    0 6px 14px rgba(0,0,0,.25);
}

#btnTogglePath.btn-secondary:hover{
  opacity: 1;
}



/* =========================
   10) FOOTER (MODERN • NO BACKGROUND)
========================= */

/* Footer wrapper */
.site-footer{
  flex-shrink: 0;
  margin-top: 0;
  padding: 0;
  position: relative;
  color: rgba(255,255,255,.9);
}

/* Kill pseudo spacing */
.site-footer::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.55),
    rgba(0,0,0,.25),
    rgba(0,0,0,0)
  );
  pointer-events:none;
  z-index:0;
}
.site-footer::after{
  content: none;
}

/* Footer layout */
.footer-inner{
  max-width: 1150px;
  margin: 0 auto;
  padding: 16px 16px 18px;

  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 14px;

  /*  NO background */
  background: none;
  box-shadow: none;
   position: relative;
  z-index: 1;
}

/* Headings */
.footer-h{
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--bg);
  letter-spacing: .2px;
}

/* Brand */
.footer-title{
  font-weight: 1000;
  font-size: 15px;
  letter-spacing: .4px;
  color:#c40000;
  text-shadow: #f3f5f8;
  text-decoration: underline;
  cursor: pointer;
}
.footer-sub{
  margin-top: 4px;
  font-size: 13px;
  color: var(--bg);
  line-height: 1.4;
  font-weight: 600;

}
.footer-mini{
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  color: #ffffff;
}

/* Lists */
.footer-list{
  list-style: none;
  margin: 0;
  gap: 8px;
  color: #ffffff;
  line-height: 1.5;
}

.footer-list a{
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  
}
.footer-list a:hover{
   color: #ffffff;
}

/* Quick links */
.footer-links{
  display: flex;
  margin-bottom: auto;
}

.footer-link{
  padding: 8px 10px;
  color:var(--green);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: transform .12s ease, border-color .12s ease;
  border-color: rgba(255,255,255,.35);
}
.footer-link:hover{
  transform: translateY(-1px);
  border-color: rgba(20,59,255,.28);
  text-decoration: underline;
}

/* Social icons */
.footer-social{
  display: flex;
  gap: 10px;
  align-items: center;
}
.soc{
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: transparent; /* NO fill */
  color: var(--green);
  transition: transform .12s ease, border-color .12s ease;
}
.soc:hover{
  transform: translateY(-1px);
  border-color: rgba(250, 250, 250, 0.3);
}
.soc svg{
  width: 25px;
  height: 25px;
}

/* =========================
   FOOTER COPYRIGHT
========================= */
.footer-copyright{
  text-align: center;
  padding: 10px 16px 14px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: .3px;
}

.footer-copyright strong{
  color: #fff;
  font-weight: 900;
}

/* =========================
   11) MODAL
========================= */
.backdrop{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.42);
  display:none;
  align-items:center;
  justify-content:center;
  padding:10px;
  z-index: 9999;
}

.backdrop.show{ display: flex; }

/* Head */
.inquiry-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.inqTitle {
  font-size: 25px;
  padding: 2px 25px;
  font-weight: 900;
  color: var(--green);
}

/* Body */
.inquiry-body{
  padding: 16px;
  max-height: 100vh;
}

/* Labels + inputs */
.inquiry-body label{
  display:block;
  margin: 10px 0 6px;
  color: #9fb0d0;
  font-size: 13px;
  letter-spacing: .2px;
}

.inquiry-body input,
.inquiry-body textarea{
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18);
  color: #eaf0ff;
  font-size: 15px;
  padding: 11px 12px;
  outline: none;
}
.inquiry-body input::placeholder,
.inquiry-body textarea::placeholder{
  color: rgba(220,235,255,.45);
}

.inquiry-body input:focus,
.inquiry-body textarea:focus{
  border-color: rgba(80,190,255,.6);
  box-shadow: 0 0 0 4px rgba(80,190,255,.14);
}

.inquiry-body textarea{
  min-height: 130px;
  resize: vertical;
}

/* Two-column grid */
.grid2{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Preview thumbnails */
.preview{
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.preview img{
  width: 100%;
  height: 68px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
}

/* Hint + errors */
.hint{
  margin-top: 6px;
  font-size: 12px;
  color: rgba(185,205,235,.75);
}
.err{
  display:block;
  margin-top: 6px;
  font-size: 12px;
  color: #ffb0b0;
  min-height: 16px;
}

.inquiry-body input[type="file"]{
  padding: 9px 12px;
  cursor: pointer;
}
.inquiry-body input[type="file"]::file-selector-button{
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: #eaf0ff;
  padding: 8px 10px;
  border-radius: 10px;
  margin-right: 10px;
  cursor:pointer;
}
.inquiry-body input[type="file"]::file-selector-button:hover{
  background: rgba(255,255,255,.12);
}

/* Footer */
.inquiry-foot{
  display:flex;
  justify-content:flex-end;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.modal.inquiry-modal{
  padding: 10px 20px;
  background: rgba(4, 40, 48, 100);
  border: 1px solid var(--green);
  color: #eaf0ff;
  border-radius: var(--radius);
}

.modal{
  border-radius:18px;
  box-shadow: var(--shadow);
  border:1px solid rgba(255,255,255,.10);
  background: transparent; /* IMPORTANT */
}

.mhead{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px;
  border-bottom:1px solid var(--stroke);
}

.mbody{ padding:14px; }

.mbody label{
  display:block;
  font-size:14px;
  color:rgb(98, 141, 98);
  margin:5px 0 6px;
  font-weight:500;
}

.mbody input,
.mbody textarea{
  width:100%;
  padding:10px 12px;
  border-radius:var(--radius);
  border:1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.20);
  color: var(--white);
  outline:none;
}


input, textarea{
  width:100%;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--stroke);
  background: rgba(0,0,0,.03);
  color: var(--ink);
  outline:none;
}
input:focus,
textarea:focus{ box-shadow: var(--focus); }

textarea{
  min-height:110px;
  resize:vertical;
}

.mfoot{
  padding:14px;
  display:flex;
  justify-content:flex-end;
  gap:10px;
  border-top:1px solid var(--stroke);
  background: rgba(0,0,0,.02);
}


/* =========================
   12) SERVICES (FIXED HEIGHT)
========================= */
.services-block{ margin-top:18px; }

/* Service label (non-editable) */
.service-label{
  padding: 10px 20px;
  font-weight: 800;
  color: var(--bg);
  font-size: larger;
}

.services-head{
  background: var(--card);
  border:1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:18px;
  margin-bottom:12px;
}
.services-head h2{
  margin:0 0 6px;
  font-size:22px;
  font-weight:900;
}
.services-head p{
  margin:0;
  color:var(--muted);
  line-height:1.5;
  font-size:13px;
}

.services-layout{
  --svcH: 260px;
  display:grid;
  grid-template-columns: 260px 1fr;
  gap:18px;
  align-items:stretch;
}

.service-menu{
  background: var(--card);
  border:1px solid var(--stroke);
  border-radius: var(--radius);
  padding:12px;
  display:flex;
  flex-direction:column;
  gap:10px;
  height: var(--svcH);
  overflow:auto;
}

.service-tab{
  width:100%;
  padding:12px;
  border-radius:14px;
  border:1px solid var(--stroke);
  background: var(--card2);
  font-weight:900;
  font-size:13px;
  cursor:pointer;
  text-align:left;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.service-tab:hover{
  transform: translateY(-1px);
  border-color: rgba(20,59,255,.30);
}
.service-tab.active{
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  color:#fff;
  border-color: transparent;
  box-shadow: 0 16px 30px rgba(20,59,255,.14);
}

.service-content{
  background: var(--card);
  border:1px solid var(--stroke);
  border-radius: var(--radius);
  padding:18px;
  height: var(--svcH);
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

.service-scroll{
  flex:1;
  overflow:hidden;
  display:flex;
}

/* panels */
.service-panel{
  display:none;
  width:100%;
  height:100%;
}
.service-panel.active{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

.service-panel h2,
.service-panel h3{
  margin:0 0 10px;
  font-weight:900;
}

.service-panel ul{
  margin:0;
  padding-left:18px;
  color: var(--muted);
  line-height:1.9;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.service-panel li{ margin:0; }

.service-inquiry-btn{
  margin-top:12px;
  align-self:flex-start;
}

/* scrollbar only for menu */
.service-menu::-webkit-scrollbar{ width:10px; }
.service-menu::-webkit-scrollbar-thumb{
  background: rgba(10,20,40,.18);
  border-radius:999px;
}
.service-menu::-webkit-scrollbar-track{
  background: rgba(10,20,40,.06);
  border-radius:999px;
}






/* Leaflet custom label for "You are here" */
.me-label {
  background: rgba(0,0,0,.72);
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
}

.me-label:before{
  content:"";
  position:absolute;
  left: 14px;
  bottom: -6px;
  width: 10px;
  height: 10px;
  background: rgba(0,0,0,.72);
  transform: rotate(45deg);
  border-right: 1px solid rgba(255,255,255,.18);
  border-bottom: 1px solid rgba(255,255,255,.18);
}


/*  Ferdz Electronics label */
.ferdz-label{
  background: rgba(15, 26, 51, 0.9);
  color: #22c55e;
  font-weight: 900;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(34,197,94,.45);
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
}

.ferdz-label:before{
  content:"";
  position:absolute;
  left:14px;
  bottom:-6px;
  width:10px;
  height:10px;
  background: rgba(15,26,51,.9);
  transform: rotate(45deg);
  border-right:1px solid rgba(34,197,94,.45);
  border-bottom:1px solid rgba(34,197,94,.45);
}



/* =========================
   ABOUT & MISSION CARDS
========================== */

.about-card{
  margin: 50px 0;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.295);

}

/* GRID */
.about-grid{
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  align-items: center;
}

/* Reverse layout for mission */
.about-grid.reverse{
  grid-template-columns: .8fr 1.2fr;
}

/* TEXT */
.about-text h2{
  margin: 0 0 10px;
  font-size: 30px;
  font-weight: 900;
  color: var(--green);
}

.about-text p{
  margin: 12px;
  line-height: 1.7;
  color: rgba(255,255,255,.88);
}

.about-text strong{
  color: #ffffff;
}

/* MISSION LIST */
.mission-list{
  margin: 10px 0 0;
  padding-left: 18px;
}

.mission-list li{
  margin: 8px 0;
  line-height: 1.6;
  color: rgba(255,255,255,.86);
}



/* IMAGE */
.about-image {
  width: 100%;
  max-width: 900px;
  margin: 20px auto 30px;
  display: block;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}


.about-us-image p{
  font-size: 16px;
  color: var(--bg);
}



/* -------------------------
   MISSION LIST
-------------------------- */
.mission-list{
  margin: 10px 0 0;
  padding-left: 18px;
}

.mission-list li{
  margin: 8px 0;
  line-height: 1.6;
  color: rgba(255,255,255,.86);
}

/* =========================
   SERVICES SECTION
========================== */

#tab-about .simple{
  margin: 28px 0;
  padding: 18px;
  border-radius: 18px;

  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
}

.services-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
  margin-top: 12px;
}

.service-card{
  padding: 14px;
  border-radius: 16px;

  background: rgba(255,255,255,.25);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 10px 26px rgba(0,0,0,.25);

  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.service-card h3{
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 900;
}

.service-card p{
  margin: 0;
  line-height: 1.6;
  color: rgba(255,255,255,.84);
}

.service-card:hover{
  transform: translateY(-3px);
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.18);
}

.simple-service h2{ margin:0 0 8px; font-size:30px; color: var(--green);}

.mission-tagline{
  margin: 15px 0 10px;
  font-style: italic;
  color: rgba(255,255,255,.78);
}



/* =========================
   WHY FERDZ ELECTRONICS
========================== */

.why-ferdz{
  margin: 30px 0;
  padding: 18px;
  border-radius: 18px;

  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 14px 34px rgba(0,0,0,.30);
}

.why-ferdz h2{
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 900;
  color: var(--green);
}

.why-list{
  margin: 0;
  padding-left: 18px;
}

.why-list li{
  margin: 8px 0;
  line-height: 1.6;
  color: rgba(255,255,255,.88);
}



.about-image {
  width: 100%;
  max-width: 900px;
  margin: 20px auto 30px;
  display: block;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}.about-image p{
  color: var(--bg);
}











/* =========================
/* Mobile Responsive- 420px*/
/*========================= */

/* Small phones */
@media (max-width: 420px){

  .brand-logo{ width: 96px; }
  .features-title{ font-size: 26px; }
  .features-note{ font-size: 14px; }
  .features-grid{ grid-template-columns: 1fr; }
  .feature-card{ position: relative; }
  .hero h1{ font-size: 26px; }
  .preview{ grid-template-columns: repeat(3, minmax(0, 1fr)); }

   /* buttons easier to tap */
  .btn, .navlink{
    min-height: 42px;
  }

   /* Slightly smaller hamburger */
  .nav-toggle{
    width: 40px;
    height: 40px;
    font-size: 18px;
    border-radius: 10px;
  }

  /* Keep topbar compact */
  .topbar{
    padding: 8px 12px;
    gap: 8px;
  }

  /* Mobile dropdown menu */
  .nav{
    margin-top: 8px;
    padding: 8px;
    border-radius: 12px;
  }

  /* Menu open state */
  .nav-wrap.open .nav{
    gap: 6px;
  }

  /* Nav links: thumb-friendly */
  .navlink{
    padding: 10px 12px;
    font-size: 13px;
    border-radius: 10px;
  }

  /* Emphasize primary actions (Inquiry button) */
  .navlink.btn-inquiry,
  .navlink.btn-danger{
    font-size: 14px;
    padding: 12px;
  }

  /* Prevent menu from covering too much screen */
  .nav{
    max-height: 70vh;
    overflow-y: auto;
  }

  /* Keep topbar compact */
  .topbar{
    padding: 8px 12px;
    gap: 8px;
  }

  /* Mobile dropdown menu */
  .nav{
    margin-top: 8px;
    padding: 8px;
    border-radius: 12px;
  }

  /* Menu open state */
  .nav-wrap.open .nav{
    gap: 6px;
  }

  /* Nav links: thumb-friendly */
  .navlink{
    padding: 10px 12px;
    font-size: 13px;
    border-radius: 10px;
  }

  /* Emphasize primary actions (Inquiry button) */
  .navlink.btn-inquiry,
  .navlink.btn-danger{
    font-size: 14px;
    padding: 12px;
  }

  /* Prevent menu from covering too much screen */
  .nav{
    max-height: 70vh;
    overflow-y: auto;
  }

  /* make the infobar spacing less cramped */
  .infobar{
    margin-top: -10px;
    margin-bottom: -10px;
    gap: 10px;
    padding: 8px 10px;
  }

    /* about card */
  .about-card{
    padding: 16px;
    border-radius: 16px;
  }

  .about-text h2{
      font-size: 20px;
  }

  /*about card */
  .about-card{
    padding: 16px;
    border-radius: 16px;
  }

  .about-content h2{
    font-size: 20px;
  }

  .about-content h3{
    font-size: 16px;
  }

  .mission-tagline{
    font-size: 13px;
    line-height: 1.5;
  }

  #about-us-image p{
    font-size: 14px;
    line-height: 1.6;
  }
}


/* =========================
   /* Tablet & Mobile  900px*/
/*========================= */

@media (max-width: 900px){

  body{
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

  .brand-logo{
    width: 110px;
  }

  /* show burger */
  .nav-toggle{ display:inline-flex; }

  /* drawer base */
  .nav{
    /* keep it in the DOM so it can animate */
    display: block;

    position: fixed;
    top: 0;
    right: 0;

    width: min(82vw, 320px);
    height: 100vh;

    padding: 14px;
    padding-top: 56px; /* space for close button area */
    margin: 0;

    border-left: 1px solid rgba(255,255,255,.14);
    background: rgba(0,0,0,.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    box-shadow: -18px 0 40px rgba(0,0,0,.35);

    /* slide hidden by default */
    transform: translateX(110%);
    transition: transform .25s ease;

    z-index: 9998;

    overflow-y: auto;
  }

  /* when open: slide in */
  .nav-wrap.open .nav{
    transform: translateX(0);
  }

  /* make links full-width */
  .navlink{
    width: 100%;
    display: block;
    text-align: left;
    padding: 12px 12px;
    margin-bottom: 10px;
    border-radius: 12px;
    font-size: 14px;
  }

  .hero{ grid-template-columns: 1fr; }

  .features-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* slider layout */
  .slider-advisory{ grid-template-columns:1fr; }
  .slider-box{ height:300px; }

  .location-grid{
      grid-template-columns: 1fr;
    }
  #map{
      height: 280px;
    }

   .footer-inner{
      grid-template-columns: 1fr;
      gap: 16px;
    }

  .grid2{ grid-template-columns: 1fr; }
  .preview{ grid-template-columns: repeat(4, minmax(0, 1fr)); }

  /* service layout */
  .services-layout{
    grid-template-columns: 1fr;
    --svcH: 420px;
  }

  /* responsive topbar*/
  .topbar{
    justify-content:flex-start;
  }
  .nav-wrap{
    width:100%;
    justify-content:flex-start;
    flex-wrap:wrap;
  }
  .nav{
      width: 100%;
      gap: 8px;
  }

  .navlink{
    font-size: 13px;
    padding: 8px 10px;
  }

    /* Text sizing */
  .about-text h2{
    font-size: 22px;
  }

  .about-text p,
  .mission-list li{
    font-size: 14px;
  }

  .about-grid > .about-image{
    display: none !important;
  }


  /* about grid */
  .about-grid,
  .about-grid.reverse{
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .about-image img{
    height: 220px;
  }

  /* about card */
  .about-card{
    grid-template-columns: 1fr;
  }

  /* Hide SIDE image on mobile */
  .about-card .about-grid > .about-image{
    display: none;
  }

  /* Show image inside text on mobile */
  .about-content .about-image{
    margin: 14px 0;
  }

  .about-image img{
    height: 220px;
  }

  .about-text .about-image,
  .about-content .about-image{
    display: block !important;
    margin: 14px 0;
  }

  .about-text h2,
  .about-content h2{
    font-size: 22px;
  }

  .services-grid{
    gap: 12px;
  }

   #about-us-image .about-image{
    display: block;
  }
}

