/* ============================================================
   DeeMED Consulting — style.css  (shared across all 11 pages)
   
   STRATEGIC NOTES:
   - All sections use .container with consistent padding
   - Header is a single flex row: logo | nav (flex:1) | btn
   - Footer uses same .container as page content — no custom max-width
     so social icons, grid etc. all align with the rest of the page
   - Logo is embedded as base64 in each HTML file — no path issues ever
   ============================================================ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Montserrat', sans-serif; color: #000; background: #fff; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
button { background: none; border: none; cursor: pointer; font-family: 'Montserrat', sans-serif; padding: 0; margin: 0; }

/* ── Variables ── */
:root {
  --green:       #1a5c35;
  --green-dark:  #154d2c;
  --green-hover: #45A049;
  --dark-bg:     #2E2E2E;
  --dark-text:   #333333;
  --radius:      10px;
}

/* ============================================================
   LAYOUT — used by every section AND the footer
   ============================================================ */
.container {
  width: 100%;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
@media (min-width: 1024px) {
  .container { padding-left: 4rem; padding-right: 4rem; }
}
@media (min-width: 1280px) {
  .container { padding-left: 6rem; padding-right: 6rem; }
}

/* Narrows body content to readable max width, centred */
.content-max { max-width: 56rem; margin: 0 auto; }

/* ============================================================
   HEADER
   Three-piece flex row:  [logo]  [nav flex:1]  [btn-talk]
   On mobile:             [logo]  [mobile-controls ml-auto]
   ============================================================ */
#global-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(to bottom, #1a5c35 0%, #154d2c 100%);
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}

/* Same horizontal padding as .container */
.hdr-inner {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
@media (min-width: 1024px) { .hdr-inner { padding-left: 4rem; padding-right: 4rem; } }
@media (min-width: 1280px) { .hdr-inner { padding-left: 6rem; padding-right: 6rem; } }

.hdr-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  position: relative;
}

/* ── Logo ── */
.hdr-logo {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 1;
}
.hdr-logo a { display: flex; align-items: center; height: 100%; }
.hdr-logo img {
  max-height: 72px;
  max-width: 210px;
  width: auto;
  object-fit: contain;
}

/* ── Desktop centre wrapper (hidden on mobile, single grid cell on desktop) ── */
.hdr-desktop-centre {
  display: none; /* hidden on mobile — not a grid item at all */
}

/* ── Desktop nav — inside .hdr-desktop-centre ── */
.hdr-nav {
  display: none;
  align-items: center;
  justify-content: center;
  gap: .25rem;
  padding: 0 1.5rem;
}

.nav-link {
  color: #fff;
  font-weight: 700;
  font-size: .9375rem;
  white-space: nowrap;
  padding: .5rem .75rem;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  line-height: 1.5;
  transition: text-shadow .3s;
}
.nav-link:hover { text-shadow: 0 0 8px rgba(255,255,255,.8); }

/* ── Dropdowns ── */
.hdr-dropdown { position: relative; }
.hdr-dropdown-btn {
  color: #fff;
  font-weight: 700;
  font-size: .9375rem;
  white-space: nowrap;
  padding: .5rem .75rem;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  line-height: 1.5;
  transition: text-shadow .3s;
}
.hdr-dropdown-btn:hover { text-shadow: 0 0 8px rgba(255,255,255,.8); }
.chevron { font-size: .7rem; }

.dropdown-panel {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: .5rem;
  width: 14rem;
  background: #fff;
  border-radius: .5rem;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,.15), 0 8px 10px -6px rgba(0,0,0,.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(.5rem);
  transition: opacity .3s, visibility .3s, transform .3s;
  z-index: 200;
  padding: .25rem 0;
}
.dropdown-panel.wide { width: 18rem; }

.hdr-dropdown:hover .dropdown-panel,
.hdr-dropdown:focus-within .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: .5rem 1rem;
  color: #333;
  font-weight: 700;
  font-size: .9375rem;
  transition: background .2s, color .2s;
}
.dropdown-item:hover { background: #f3f4f6; color: var(--green); }
.dropdown-sep { height: 1px; background: #e5e7eb; margin: .25rem 0; }

/* ── Let's Talk — fixed right ── */
.btn-talk {
  flex-shrink: 0;
  background: #fff;
  color: var(--green);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background .3s;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
}
.btn-talk:hover { background: #f3f4f6; }
.btn-talk-desktop { display: none; padding: .625rem 1.25rem; font-size: .9375rem; }

/* Mobile centered Let's Talk — explicitly placed in grid column 2 (centre) */
.btn-talk-center {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--green);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  border-radius: var(--radius);
  white-space: nowrap;
  padding: .4375rem 1.25rem;
  font-size: .9375rem;
  text-decoration: none;
  transition: background .3s;
  margin-left: .75rem;
}
.btn-talk-center:hover { background: #f3f4f6; }


/* ── Mobile controls (hamburger) — explicitly placed in grid column 3 (right) ── */
.hdr-mobile {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .75rem;
  flex-shrink: 0;
}

/* ── Hamburger ── */
.hamburger {
  width: 2rem;
  height: 2rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ham-line {
  display: block;
  position: absolute;
  width: 1.5rem;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transform-origin: center;
  transition: top .35s ease-in-out, transform .35s ease-in-out, opacity .35s ease-in-out;
}
.ham-line:nth-child(1) { top: 25%; }
.ham-line:nth-child(2) { top: 50%; transform: translateY(-50%); }
.ham-line:nth-child(3) { top: 75%; }
.hamburger.is-open .ham-line:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.hamburger.is-open .ham-line:nth-child(2) { opacity: 0; transform: translateY(-50%) scaleX(0); }
.hamburger.is-open .ham-line:nth-child(3) { top: 50%; transform: translateY(-50%) rotate(-45deg); }

/* ── Mobile full-screen overlay ── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--green);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 500ms cubic-bezier(.4,0,.2,1);
}
.mobile-menu.is-open { transform: translateX(0); }

.mobile-menu-header {
  display: flex;
  justify-content: flex-end;
  padding: 2rem 1rem 0;
}
.mobile-close { color: #fff; padding: .5rem; cursor: pointer; transition: color .3s; }
.mobile-close:hover { color: #d1d5db; }

.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 0 1.5rem 2rem;
  overflow-y: auto;
  flex: 1;
}
.mobile-nav-link {
  display: block;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
  padding: .4375rem 0;
  text-align: center;
  border-radius: .25rem;
  transition: background .3s;
}
.mobile-nav-link:hover { background: rgba(255,255,255,.1); }
.mobile-divider { width: 100%; height: 1px; background: rgba(255,255,255,.3); margin: .5625rem 0; }
.mobile-cta {
  display: block;
  background: #fff;
  color: var(--green);
  font-size: 1.125rem;
  font-weight: 700;
  text-align: center;
  padding: 1rem 1.5rem;
  margin-top: 1.5rem;
  border-radius: .5rem;
  transition: background .3s;
}
.mobile-cta:hover { background: #f3f4f6; }

/* Backdrop */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(0,0,0,.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s, visibility .5s;
}
.backdrop.is-open { opacity: 1; visibility: visible; }

/* Desktop breakpoint — switch from 3-col grid to flex */
@media (min-width: 1024px) {
  .hdr-row {
    display: flex;
  }
  .hdr-logo {
    flex-shrink: 0;
    grid-column: unset;
    grid-row: unset;
  }
  .hdr-desktop-centre {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: flex-end;
    gap: .25rem;
  }
  .hdr-nav {
    display: flex;
    flex: 1;
  }
  .btn-talk-desktop { display: inline-flex; }
  .btn-talk-center  { display: none; }
  .hdr-mobile       { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.section-hero {
  padding: 4rem 0;
  background: linear-gradient(to bottom, #707070, #2E2E2E);
}
@media (min-width: 1024px) { .section-hero { padding: 6rem 0; } }

.hero-h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3rem;
  line-height: 1.05;
  letter-spacing: -.025em;
  text-align: center;
}
@media (min-width: 1024px) { .hero-h1 { font-size: 3rem; } }

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.375rem);
  font-weight: 500;
  color: rgba(255,255,255,.92);
  line-height: 1.6;
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section-white { padding: 4rem 0; background: #fff; }
@media (min-width: 1024px) { .section-white { padding: 5rem 0; } }

.section-green { padding: 4rem 0; background: var(--green); }
@media (min-width: 1024px) { .section-green { padding: 5rem 0; } }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.h2-dark {
  font-size: 2.25rem; font-weight: 700; color: #333;
  line-height: 1.25; letter-spacing: -.025em; margin-bottom: 2rem;
}
@media (min-width: 1024px) { .h2-dark { font-size: 3rem; } }

.h2-dark-left {
  font-size: 2.25rem; font-weight: 700; color: #333;
  line-height: 1.25; letter-spacing: -.025em; margin-bottom: 3rem;
}
@media (min-width: 1024px) { .h2-dark-left { font-size: 3rem; } }

.h2-white {
  font-size: 2.25rem; font-weight: 700; color: #fff;
  line-height: 1.25; letter-spacing: -.025em;
  text-align: center; margin-bottom: 3rem;
}
@media (min-width: 1024px) { .h2-white { font-size: 3rem; } }

.h3-white {
  font-size: 1.5rem; font-weight: 700; color: #fff;
  letter-spacing: -.025em; margin-bottom: 1.5rem;
}
@media (min-width: 1024px) { .h3-white { font-size: 1.875rem; } }

.h3-dark {
  font-size: 1.5rem; font-weight: 700; color: #333;
  letter-spacing: -.025em; margin-bottom: 1rem;
}
@media (min-width: 1024px) { .h3-dark { font-size: 1.875rem; } }

.body-dark {
  font-size: 1.125rem; font-weight: 400; color: #000; line-height: 1.625;
}
@media (min-width: 1024px) { .body-dark { font-size: 1.25rem; } }

.body-white {
  font-size: 1.125rem; font-weight: 400;
  color: rgba(255,255,255,.9); line-height: 1.625; margin-bottom: 1.5rem;
}
@media (min-width: 1024px) { .body-white { font-size: 1.25rem; } }

.body-dark-mb {
  font-size: 1.125rem; font-weight: 400; color: #000;
  line-height: 1.625; margin-bottom: 1rem;
}
@media (min-width: 1024px) { .body-dark-mb { font-size: 1.25rem; } }

.link-white {
  display: inline-block; font-size: 1rem; font-weight: 500; color: #fff;
  letter-spacing: .025em; border-bottom: 1px solid #fff;
  padding-bottom: .25rem; transition: color .3s;
}
.link-white:hover { color: rgba(255,255,255,.8); }
@media (min-width: 1024px) { .link-white { font-size: 1.125rem; } }

.link-green {
  display: inline-block; font-size: 1rem; font-weight: 500;
  color: var(--green); letter-spacing: .025em; transition: color .3s;
}
.link-green:hover { color: var(--green-hover); }
@media (min-width: 1024px) { .link-green { font-size: 1.125rem; } }

.services-stack { display: flex; flex-direction: column; gap: 3rem; }

/* ============================================================
   FOOTER
   Uses .container just like every other section —
   this guarantees the social icons, grid columns etc. all
   align with the page content and never overflow.
   ============================================================ */
#global-footer {
  background-color: #2E2E2E;
  color: #fff;
  padding: 4rem 0;
}

/* CTA box */
.footer-cta {
  background: linear-gradient(to bottom, #1a5c35, #154d2c);
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 3rem;
  text-align: center;
}
.footer-cta-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; }
.footer-cta-sub   { font-weight: 700; font-size: 1.125rem; opacity: .9; margin-bottom: 1.5rem; }
.footer-cta-icons { display: flex; justify-content: center; gap: 1.5rem; }

.icon-circle {
  width: 4rem; height: 4rem;
  background: #fff; color: var(--green);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.1);
  transition: background .3s, color .3s, transform .3s;
}
.icon-circle:hover { background: var(--green); color: #fff; transform: scale(1.05); }
.icon-circle .fa-whatsapp { font-size: 2.25rem; }

/* Footer 3-col grid */
.footer-grid {
  display: grid;
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

/* Footer logo */
.footer-logo {
  max-height: 6rem;
  max-width: 220px;
  width: auto;
  object-fit: contain;
  display: block;
  margin-bottom: .75rem;
}

.footer-desc {
  color: #d1d5db; line-height: 1.625;
  font-weight: 700; margin-bottom: 1.5rem;
}
.footer-meta { display: flex; flex-direction: column; gap: .75rem; }
.footer-meta-row {
  display: flex; align-items: center; gap: .75rem;
  font-weight: 700; color: #d1d5db;
}
.footer-meta-icon { width: 1.25rem; color: var(--green); flex-shrink: 0; }

.footer-col-title { font-size: 1.25rem; font-weight: 700; color: #fff; margin-bottom: 1.5rem; }
.footer-links { display: flex; flex-direction: column; gap: .75rem; }
.footer-links a { color: #d1d5db; font-weight: 700; transition: color .3s; }
.footer-links a:hover { color: var(--green-hover); }

/* Bottom bar */
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid #374151;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}
.footer-copy { color: #9ca3af; font-size: .875rem; font-weight: 700; }
@media (min-width: 1280px) { .footer-copy { font-size: 1rem; } }

.social-row { display: flex; gap: 1.5rem; }
.social-btn {
  width: 3rem; height: 3rem;
  background: var(--green); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; color: #fff;
  transition: background .3s;
}
.social-btn:hover { background: var(--green-hover); }
