/* =============================================
   EMI — inner-services.css
   Inner Services Cards Page
   + Updated navbar with proper logo image space
============================================= */

/* =============================================
   CSS VARIABLES & RESET
============================================= */
:root {
  --blue-dark:   #0a1628;
  --blue-mid:    #0d2244;
  --blue:        #1a3a6b;
  --blue-light:  #2563b0;
  --yellow:      #f5c518;
  --yellow-light:#ffd84d;
  --white:       #ffffff;
  --off-white:   #f4f6fa;
  --gray:        #8a9bb5;
  --gray-light:  #e8edf5;
  --text-dark:   #0d1c30;
  --text-body:   #3a4a5c;
  --radius:      6px;
  --shadow:      0 8px 32px rgba(10,22,40,0.18);
  --transition:  0.35s cubic-bezier(.4,0,.2,1);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Lato', sans-serif; color: var(--text-body); background: var(--white); overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container { width: 92%; max-width: 1200px; margin: 0 auto; }

/* =============================================
   PAGE HERO TITLE — Poppins font
   (only applied to page hero h1)
============================================= */
#page-hero h1 {
  font-family: 'Poppins', sans-serif !important;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  color: var(--white);
  text-transform: none;
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}
#page-hero h1 em { font-style: normal; color: var(--yellow); }

/* =============================================
   UTILITIES
============================================= */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 30px; border-radius: var(--radius);
  font-family: 'Barlow Condensed', sans-serif; font-size: 1rem;
  font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  cursor: pointer; border: none; transition: var(--transition);
}
.btn-primary { background: var(--yellow); color: var(--blue-dark); }
.btn-primary:hover { background: var(--yellow-light); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(245,197,24,0.4); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--blue-dark); transform: translateY(-2px); }
.section-tag {
  display: inline-block; font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--yellow); margin-bottom: 10px;
}
.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800;
  color: var(--blue-dark); line-height: 1.1;
}
.section-title span { color: var(--blue-light); }
.section-title.light { color: var(--white); }
.section-title.light span { color: var(--yellow); }

/* =============================================
   NAVBAR — updated logo space
   No company name text. Logo image only.
   Full navbar height logo, background removed.
============================================= */
#navbar {
  position: sticky; top: 0; z-index: 1000;
  background: var(--blue-mid); box-shadow: 0 2px 20px rgba(0,0,0,0.3);
  transition: background var(--transition);
}
#navbar.scrolled { background: rgba(10,22,40,0.97); backdrop-filter: blur(10px); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }

/* ── LOGO AREA ── */
.nav-logo {
  display: flex;
  align-items: center;
  height: 70px;           /* fills full navbar height */
  padding: 8px 0;         /* small breathing room top/bottom */
  flex-shrink: 0;
}

.logo-img {
  height: 54px;           /* tall — prominent, fits navbar */
  width: auto;            /* preserve aspect ratio */
  max-width: 220px;       /* prevents stretching on wide screens */
  object-fit: contain;    /* never crop or distort */
  display: block;
}

/* Placeholder shown until real logo is added */
.logo-placeholder {
  height: 54px;
  width: 180px;
  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 6px;
  color: rgba(255,255,255,0.4);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  gap: 8px;
}
.nav-logo .logo-placeholder img{
  width: 155px;
  height: 155px;
  filter: brightness(0) invert(1);  
}


/* Nav links */
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 5px; padding: 8px 14px;
  color: rgba(255,255,255,0.85); font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.95rem; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase;
  border-radius: var(--radius); transition: var(--transition); white-space: nowrap;
  background: none; border: none; cursor: pointer;
}
.nav-link:hover, .nav-item:hover > .nav-link,
.nav-link.active-page { color: var(--yellow); background: rgba(255,255,255,0.05); }
.nav-link i.fa-chevron-down { font-size: 0.65rem; transition: transform .3s; }
.nav-item:hover > .nav-link i.fa-chevron-down { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px;
  background: var(--blue-dark); border-top: 3px solid var(--yellow);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow); opacity: 0; visibility: hidden;
  transform: translateY(10px); transition: var(--transition); z-index: 999;
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-group { padding: 12px 0 6px; }
.dropdown-group-title {
  font-family: 'Barlow Condensed', sans-serif; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--yellow);
  padding: 4px 18px 6px; border-bottom: 1px solid rgba(255,255,255,0.07); margin-bottom: 4px;
}
.dropdown a {
  display: flex; align-items: center; gap: 8px; padding: 8px 18px;
  color: rgba(255,255,255,0.75); font-size: 0.88rem; transition: var(--transition);
}
.dropdown a i { color: var(--yellow); width: 14px; font-size: 0.8rem; }
.dropdown a:hover { background: rgba(245,197,24,0.08); color: var(--white); padding-left: 24px; }
.dropdown.mega { min-width: 700px; display: grid; grid-template-columns: repeat(2,1fr); left: -200px; }

/* =============================================
   LANGUAGE SWITCHER
============================================= */
.nav-lang { position: relative; }
.lang-trigger {
  display: flex; align-items: center; gap: 6px; padding: 7px 12px;
  color: rgba(255,255,255,0.85); font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.95rem; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase;
  border-radius: var(--radius); transition: var(--transition);
  cursor: pointer; background: none; border: none; white-space: nowrap;
}
.lang-trigger:hover, .nav-lang:hover .lang-trigger { color: var(--yellow); background: rgba(255,255,255,0.05); }
.lang-trigger .globe { font-size: 0.9rem; color: var(--yellow); }
.lang-trigger i.fa-chevron-down { font-size: 0.6rem; transition: transform .3s; }
.nav-lang:hover .lang-trigger i.fa-chevron-down { transform: rotate(180deg); }
.lang-dropdown {
  position: absolute; top: calc(100% + 6px); right: 0; min-width: 130px;
  background: var(--blue-dark); border-top: 3px solid var(--yellow);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow); opacity: 0; visibility: hidden;
  transform: translateY(10px); transition: var(--transition); z-index: 999; overflow: hidden;
}
.nav-lang:hover .lang-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-option {
  display: flex; align-items: center; gap: 10px; padding: 11px 18px; cursor: pointer;
  color: rgba(255,255,255,0.75); font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.9rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  transition: var(--transition); border: none; background: none; width: 100%; text-align: left;
}
.lang-option:hover { background: rgba(245,197,24,0.08); color: var(--white); }
.lang-option.active { color: var(--yellow); }
.lang-option .flag { font-size: 1.1rem; }

/* =============================================
   SEARCH POPUP (small card — mobile centred)
============================================= */
.nav-right { display: flex; align-items: center; gap: 8px; position: static; }
.nav-search-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85); font-size: 0.9rem;
  cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.nav-search-btn:hover,
.nav-search-btn.active { background: var(--yellow); color: var(--blue-dark); border-color: var(--yellow); }
.search-popup {
  position: fixed; top: 80px; right: 20px; left: auto; width: 320px;
  background: var(--white); border-radius: 10px;
  box-shadow: 0 12px 40px rgba(10,22,40,0.2); border-top: 3px solid var(--yellow);
  opacity: 0; visibility: hidden;
  transform: translateY(8px) scale(0.97);
  transition: opacity .25s, visibility .25s, transform .25s;
  z-index: 9000; overflow: hidden;
}
.search-popup.active { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.search-popup::before {
  content: ''; position: absolute; top: -8px; right: 16px;
  width: 0; height: 0;
  border-left: 8px solid transparent; border-right: 8px solid transparent;
  border-bottom: 8px solid var(--yellow);
}
.search-popup-inner { padding: 16px; }
.search-popup-label {
  font-family: 'Barlow Condensed', sans-serif; font-size: 0.72rem;
  font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gray); margin-bottom: 10px; display: block;
}
.search-input-wrap {
  display: flex; align-items: center;
  border: 1.5px solid var(--gray-light); border-radius: var(--radius);
  overflow: hidden; transition: border-color .2s;
}
.search-input-wrap:focus-within { border-color: var(--blue-light); }
.search-input {
  flex: 1; padding: 10px 14px; border: none; outline: none;
  font-family: 'Lato', sans-serif; font-size: 0.9rem; color: var(--text-dark); background: var(--white);
}
.search-input::placeholder { color: var(--gray); }
.search-submit-btn {
  padding: 10px 14px; background: var(--blue-dark); border: none;
  color: var(--white); font-size: 0.85rem; cursor: pointer; transition: var(--transition);
}
.search-submit-btn:hover { background: var(--blue-light); }
.search-suggestions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.search-suggestion-tag {
  padding: 4px 12px; border-radius: 50px; border: 1px solid var(--gray-light);
  color: var(--gray); font-size: 0.78rem; cursor: pointer; transition: var(--transition);
  font-family: 'Barlow Condensed', sans-serif; font-weight: 600; background: none;
}
.search-suggestion-tag:hover { border-color: var(--yellow); color: var(--blue-dark); background: rgba(245,197,24,0.08); }

/* =============================================
   HAMBURGER
============================================= */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { display: block; width: 26px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   PAGE HERO
============================================= */
#page-hero {
  position: relative; height: 300px; display: flex; align-items: center;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%); overflow: hidden;
}
#page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 80% 50%, rgba(245,197,24,0.07) 0%, transparent 50%),
                    radial-gradient(circle at 20% 20%, rgba(37,99,176,0.15) 0%, transparent 40%);
}
.hero-ring { position: absolute; right: 140px; top: 50%; transform: translateY(-50%); width: 260px; height: 260px; border: 2px solid rgba(245,197,24,0.1); border-radius: 50%; z-index: 1; }
.hero-ring::before { content: ''; position: absolute; inset: 25px; border: 1px solid rgba(245,197,24,0.06); border-radius: 50%; }
.hero-watermark { position: absolute; right: 165px; top: 50%; transform: translateY(-50%); font-size: 6rem; color: rgba(255,255,255,0.04); z-index: 1; }
.page-hero-inner { position: relative; z-index: 2; width: 100%; }
.page-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Barlow Condensed', sans-serif; font-size: 0.85rem;
  font-weight: 700; letter-spacing: 4px; text-transform: uppercase;
  color: var(--yellow); margin-bottom: 14px;
}
.page-hero-eyebrow::before { content: ''; display: block; width: 30px; height: 2px; background: var(--yellow); }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: rgba(255,255,255,0.55); flex-wrap: wrap; }
.breadcrumb a { color: rgba(255,255,255,0.55); transition: color .2s; }
.breadcrumb a:hover { color: var(--yellow); }
.breadcrumb i { font-size: 0.6rem; color: var(--yellow); }
.breadcrumb span { color: var(--yellow); }

/* =============================================
   SERVICE CARDS SECTION
   Mimics image 2: photo top, icon overlapping,
   title + description below
============================================= */
#service-cards-section {
  padding: 80px 0 100px;
  background: var(--off-white);
}

.cards-intro {
  text-align: center;
  margin-bottom: 56px;
}
.cards-intro h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800;
  color: var(--blue-dark); line-height: 1.1; margin-top: 8px;
}
.cards-intro h2 span { color: var(--blue-light); }
.cards-divider { width: 60px; height: 4px; background: var(--yellow); border-radius: 2px; margin: 14px auto 0; }

/* Cards grid */
.service-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

/* Individual card — matches layout in image 2 */
.svc-card {
  background: var(--white);
  border-radius: 12px;
  overflow: visible;          /* allows icon to overflow top edge */
  box-shadow: 0 4px 24px rgba(10,22,40,0.08);
  transition: var(--transition);
  border: 1px solid var(--gray-light);
  position: relative;
}
.svc-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 52px rgba(10,22,40,0.14);
  border-color: rgba(245,197,24,0.25);
}

/* Photo area — top of card */
.svc-card-photo {
  width: 100%;
  height: 220px;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, var(--blue-mid), var(--blue));
}
.svc-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s;
}
.svc-card:hover .svc-card-photo img { transform: scale(1.04); }

/* Placeholder — remove once real images are added */
.svc-card-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-light));
  position: relative;
  overflow: hidden;
}
.svc-card-photo-placeholder::after {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(-45deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 30px);
}
/*
  REPLACE each .svc-card-photo-placeholder div with:
  <img src="your-photo.jpg" alt="Service name">
  Recommended: 600×440px minimum, landscape orientation
*/

/* Icon circle — overlaps bottom edge of photo */
.svc-card-icon-wrap {
  position: absolute;
  bottom: -15px;              /* overlaps the photo bottom */
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.svc-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  border: 3px solid var(--white);
  transition: var(--transition);
}
/* Each card gets its own icon colour — matching the image style */
.svc-card:nth-child(1) .svc-card-icon { background: #7c3aed; }  /* purple — geochemistry */
.svc-card:nth-child(2) .svc-card-icon { background: #ea5c3a; }  /* coral — water */
.svc-card:nth-child(3) .svc-card-icon { background: #0ea5e9; }  /* sky blue — environment */
.svc-card:nth-child(4) .svc-card-icon { background: #16a34a; }  /* green — audit */
.svc-card:hover .svc-card-icon { transform: scale(1.12); }

/* Phosphor icon inside the circle */
.svc-card-icon ph-icon,
.svc-card-icon [data-ph] {
  font-size: 1.5rem;
  color: var(--white);
}
/* Generic img fallback for Phosphor SVG */
.svc-card-icon img {
  width: 26px;
  height: 26px;
  filter: brightness(0) invert(1);
}

/* Card body — text content */
.svc-card-body {
  padding: 44px 28px 32px;   /* top padding makes room for overlapping icon */
  text-align: center;
}
.svc-card-body h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.25rem; font-weight: 800;
  color: var(--blue-dark); text-transform: uppercase;
  letter-spacing: 0.5px; margin-bottom: 12px; line-height: 1.3;
}
.svc-card-body p {
  font-size: 0.9rem; color: var(--gray);
  line-height: 1.75; margin-bottom: 22px;
}
.svc-card-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: 'Barlow Condensed', sans-serif; font-size: 0.9rem;
  font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--blue-light); transition: var(--transition);
}
.svc-card:hover .svc-card-link { color: var(--yellow); gap: 10px; }

/* =============================================
   CTA BANNER
============================================= */
#cta {
  padding: 90px 0;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  position: relative; overflow: hidden; text-align: center;
}
#cta::before { content: ''; position: absolute; top: -60px; right: -60px; width: 400px; height: 400px; border: 2px solid rgba(245,197,24,0.08); border-radius: 50%; }
#cta::after  { content: ''; position: absolute; bottom: -80px; left: -80px; width: 300px; height: 300px; border: 2px solid rgba(245,197,24,0.06); border-radius: 50%; }
.cta-inner { position: relative; z-index: 1; }
.cta-inner p { color: rgba(255,255,255,0.75); font-size: 1.05rem; max-width: 520px; margin: 14px auto 32px; line-height: 1.7; }
.cta-btns { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* =============================================
   FOOTER
============================================= */
#footer { background: var(--blue-dark); color: rgba(255,255,255,0.65); padding: 70px 0 0; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 50px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,0.08); }

/* ── FOOTER LOGO — same image space as navbar ── */
.footer-logo-wrap {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}
.footer-logo-img {
  height: 50px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
  /*
    If logo is black, uncomment to make it white:
    filter: brightness(0) invert(1);
  */
}
.footer-logo-placeholder {
  height: 50px; width: 160px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.3); font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; gap: 6px;
}
.footer-logo-placeholder img {
  width: 160px; height: 160px; filter: brightness(0) invert(1);
}

.footer-brand p { line-height: 1.8; margin: 0 0 16px; color: rgba(255,255,255,0.5); font-size: 0.87rem; }
.footer-socials { display: flex; gap: 10px; margin-top: 10%; }
.social-icon { width: 36px; height: 36px; background: rgba(255,255,255,0.06); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.6); transition: var(--transition); }
.social-icon:hover { background: var(--yellow); color: var(--blue-dark); }
.footer-col h4 { font-family: 'Barlow Condensed', sans-serif; font-size: 1rem; font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--yellow); display: inline-block; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,0.55); transition: var(--transition); display: flex; align-items: center; gap: 6px; }
.footer-links a i { color: var(--yellow); font-size: 0.65rem; }
.footer-links a:hover { color: var(--yellow); padding-left: 4px; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; }
.footer-contact i { color: var(--yellow); margin-top: 3px; width: 16px; }

/* Location hover card */
.footer-location-wrap { position: relative; display: inline-block; cursor: pointer; }
.footer-location-wrap .location-text { color: rgba(255,255,255,0.65); font-size: 0.9rem; line-height: 1.6; transition: color .2s; }
.footer-location-wrap:hover .location-text { color: var(--yellow); }
.location-card { position: absolute; bottom: calc(100% + 12px); left: 0; width: 260px; background: var(--white); border-radius: 8px; box-shadow: 0 12px 40px rgba(10,22,40,0.35); border-top: 3px solid var(--yellow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: var(--transition); z-index: 100; overflow: hidden; }
.footer-location-wrap:hover .location-card { opacity: 1; visibility: visible; transform: translateY(0); }
.location-card-map-fallback { width: 100%; height: 130px; background: linear-gradient(135deg, var(--blue-mid), var(--blue)); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: rgba(255,255,255,0.15); }
.location-card-body { padding: 12px 14px; }
.location-card-body strong { display: block; font-family: 'Barlow Condensed', sans-serif; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--blue-dark); margin-bottom: 4px; }
.location-card-body p { font-size: 0.78rem; color: var(--text-body); line-height: 1.5; margin-bottom: 10px; }
.location-card-link { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px; background: var(--yellow); color: var(--blue-dark); border-radius: var(--radius); font-family: 'Barlow Condensed', sans-serif; font-size: 0.82rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; transition: var(--transition); }
.location-card-link:hover { background: var(--yellow-light); }

.footer-bottom { padding: 20px 0; display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: rgba(255,255,255,0.35); flex-wrap: wrap; gap: 10px; }
.footer-bottom a { color: var(--yellow); }

/* =============================================
   BACK TO TOP
============================================= */
#back-to-top { position: fixed; bottom: 30px; right: 30px; width: 46px; height: 46px; background: var(--yellow); color: var(--blue-dark); border: none; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1rem; box-shadow: 0 4px 16px rgba(245,197,24,0.5); opacity: 0; transform: translateY(20px); transition: var(--transition); z-index: 9999; }
#back-to-top.visible { opacity: 1; transform: translateY(0); }
#back-to-top:hover { background: var(--yellow-light); transform: translateY(-3px); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .dropdown.mega { min-width: 500px; left: -100px; grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  /* Logo stays visible and well-sized on mobile */
  .logo-img { height: 42px; max-width: 160px; }
  .logo-placeholder { height: 42px; width: 140px; font-size: 0.65rem; }

  .nav-menu { display: none; flex-direction: column; align-items: flex-start; }
  .hamburger { display: flex; }
  .nav-menu.open {
    display: flex; position: fixed; top: 70px; left: 0; right: 0;
    background: var(--blue-dark); padding: 16px 0 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4); z-index: 999;
    max-height: calc(100vh - 70px); overflow-y: auto;
  }
  .nav-item { width: 100%; }
  .nav-link { width: 100%; padding: 12px 20px; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; display: none; border-top: none; border-left: 3px solid var(--yellow); margin-left: 20px; box-shadow: none; background: rgba(255,255,255,0.04); }
  .dropdown.mega { display: none; grid-template-columns: 1fr; min-width: auto; left: 0; position: static; }
  .nav-item.open .dropdown, .nav-item.open .dropdown.mega { display: block; }
  .nav-item.open > .nav-link i.fa-chevron-down { transform: rotate(180deg); }
  .nav-lang { width: 100%; }
  .lang-trigger { width: 100%; padding: 12px 20px; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
  .lang-dropdown { position: static; opacity: 1; visibility: visible; transform: none; display: none; border-top: none; border-left: 3px solid var(--yellow); margin-left: 20px; box-shadow: none; background: rgba(255,255,255,0.04); }
  .nav-lang.open .lang-dropdown { display: block; }

  /* Search popup centred on mobile */
  .search-popup { position: fixed; top: 80px; left: 50%; right: auto; transform: translateX(-50%) translateY(8px) scale(0.97); width: calc(100vw - 32px); max-width: 420px; }
  .search-popup.active { transform: translateX(-50%) translateY(0) scale(1); }
  .search-popup::before { display: none; }

  /* Cards stack on mobile */
  .service-cards-grid { grid-template-columns: 1fr; gap: 48px; }
  .svc-card-photo { height: 200px; }

  .footer-grid { grid-template-columns: 1fr; }
  #page-hero { height: 240px; }
  .hero-ring, .hero-watermark { display: none; }
}
@media (max-width: 400px) {
  .search-popup { width: calc(100vw - 24px); top: 74px; }
}
