/* ==========================================================================
   Glaze Medical – 1:1 Divi Visual Styling (Clean, Fast, Zero-Bloat CSS3)
   ========================================================================== */

:root {
  --gm-green: #6eba01;
  --gm-blue-divider: #4e5ed0;
  --gm-link: #2ea3f2;
  --gm-heading: #1f1f1f;
  --gm-text: #666666;
  --gm-bg-white: #ffffff;
  --gm-bg-grey: #f4f4f4;
  --gm-bg-testimonial: #f5f5f5;
  --gm-footer-bg: #000000;
  --gm-border: rgba(0, 0, 0, 0.12);
  --font-body: 'Open Sans', Arial, sans-serif;
  --font-heading: 'Montserrat', Helvetica, Arial, Lucida, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 66px 0 0 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7em;
  color: var(--gm-text);
  background-color: var(--gm-bg-white);
  font-weight: 400;
}

a {
  color: var(--gm-link);
  text-decoration: none;
}

a:hover {
  opacity: 0.82;
}

img {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--gm-heading);
  font-weight: 500;
  line-height: 1.35em;
  margin: 0 0 14px 0;
}

p {
  margin: 0 0 1em 0;
}

p:last-child {
  margin-bottom: 0;
}

.gm-container {
  width: 80%;
  max-width: 1080px;
  margin: 0 auto;
}

/* ==========================================================================
   Header & Navigation (#main-header)
   ========================================================================== */
#main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 66px;
  background-color: #ffffff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
  z-index: 99999;
}

.gm-header-inner {
  width: 80%;
  max-width: 1080px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gm-logo-link {
  display: inline-flex;
  align-items: center;
}

.gm-logo-link:hover {
  opacity: 1;
}

.gm-logo-img {
  height: 36px;
  width: auto;
  display: block;
}

.gm-nav-wrap {
  display: flex;
  align-items: center;
  gap: 22px;
}

.gm-top-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
}

.gm-top-menu li a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.6);
  transition: color 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}

.gm-top-menu li a:hover {
  color: rgba(0, 0, 0, 0.6);
  opacity: 0.7;
}

.gm-top-menu li.active a {
  color: var(--gm-link);
}

.gm-lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.35);
  padding-left: 6px;
  border-left: 1px solid rgba(0, 0, 0, 0.12);
}

.gm-lang-switch a {
  color: rgba(0, 0, 0, 0.55);
  font-size: 13px;
  font-weight: 600;
}

.gm-lang-switch a.active {
  color: var(--gm-link);
}

.gm-search-btn {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: rgba(0, 0, 0, 0.6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gm-search-btn:hover {
  color: var(--gm-link);
}

/* Search Overlay Bar */
.gm-search-bar {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 66px;
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 100000;
}

.gm-search-bar.open {
  display: block;
}

.gm-search-bar-inner {
  width: 80%;
  max-width: 1080px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.gm-search-bar form {
  flex: 1;
}

.gm-search-input {
  width: 100%;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 16px;
  color: #333333;
  background: transparent;
}

.gm-search-close {
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: #666666;
  cursor: pointer;
}

/* Mobile Menu */
.gm-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gm-link);
  padding: 6px;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
}

.gm-mobile-menu {
  display: none;
  background: #ffffff;
  border-top: 3px solid var(--gm-link);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  width: 80%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 5%;
}

.gm-mobile-menu.open {
  display: block;
}

.gm-mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gm-mobile-menu li a {
  display: block;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  color: #666666;
  font-weight: 600;
  font-size: 14px;
}

.gm-mobile-menu li.active a {
  color: var(--gm-link);
}

/* ==========================================================================
   Dividers & Buttons (Exact Divi Specs)
   ========================================================================== */
.gm-divider-center {
  width: 100px;
  height: 3px;
  background-color: var(--gm-blue-divider);
  margin: 0 auto 24px auto;
}

.gm-divider-left {
  width: 100px;
  height: 3px;
  background-color: var(--gm-blue-divider);
  margin: 0 0 24px 0;
}

.gm-btn {
  display: inline-block;
  background-color: var(--gm-green);
  color: #ffffff !important;
  border: 2px solid var(--gm-green);
  border-radius: 0;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 0.35em 1em;
  line-height: 1.7em;
  cursor: pointer;
  transition: color 300ms ease, background-color 300ms ease, border-color 300ms ease;
  text-decoration: none;
}

.gm-btn:hover {
  background-color: transparent;
  color: var(--gm-green) !important;
  border-color: var(--gm-green);
  opacity: 1;
}

/* ==========================================================================
   Homepage (#22)
   ========================================================================== */
.gm-home-hero {
  background-color: var(--gm-bg-grey);
  background-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.04) 0%,
      rgba(0, 0, 0, 0.38) 36%,
      rgba(0, 0, 0, 0.58) 100%
    ),
    url('/static/images/team-holding-MD.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  padding: 330px 0 58px 0;
  color: #ffffff;
}

.gm-home-hero h1 {
  color: #ffffff;
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 24px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.gm-home-hero p,
.gm-home-hero li {
  color: #ffffff;
  font-size: 18px;
  line-height: 1.65em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.gm-home-hero ul {
  padding: 12px 0 18px 24px;
  margin: 0;
  list-style-position: outside;
}

.gm-home-hero ul li {
  margin-bottom: 6px;
}

.gm-home-hero ul li::marker {
  color: #ffffff;
}

/* Testimonial & Selected Clients */
.gm-section-white {
  background-color: var(--gm-bg-white);
  padding: 54px 0;
}

.gm-section-grey {
  background-color: var(--gm-bg-grey);
  padding: 54px 0;
}

.gm-testimonial-section {
  background-color: var(--gm-bg-white);
  padding: 31px 0 54px 0;
}

.gm-testimonial {
  background-color: var(--gm-bg-testimonial);
  padding: 32px 34px;
  margin-bottom: 54px;
  display: flex;
  align-items: flex-start;
  gap: 28px;
  position: relative;
}

.gm-testimonial-portrait {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.gm-testimonial-body p.gm-quote {
  font-size: 16px;
  line-height: 1.75em;
  color: var(--gm-text);
  margin-bottom: 14px;
}

.gm-testimonial-author {
  font-weight: 700;
  color: #333333;
  font-size: 15px;
  line-height: 1.5em;
}

.gm-section-heading-center {
  font-family: var(--font-heading);
  font-size: 36px;
  color: var(--gm-heading);
  text-align: center;
  font-weight: 500;
  max-width: 710px;
  margin: 0 auto 28px auto;
}

.gm-clients-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px 36px;
  align-items: center;
  justify-items: center;
  padding: 16px 0 10px 0;
}

.gm-clients-grid img {
  max-height: 68px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
}

/* Focus Section */
.gm-focus-section {
  background-color: var(--gm-bg-grey);
  padding: 54px 20px;
}

.gm-focus-inner {
  max-width: 710px;
  margin: 0 auto;
}

.gm-focus-text {
  font-size: 16px;
  line-height: 1.9em;
  color: var(--gm-text);
  text-align: left;
}

/* ==========================================================================
   Contact Split Section (Used on Homepage & Kontakt os)
   ========================================================================== */
.gm-contact-parallax {
  background-image: url('/static/images/contact-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 90px 0;
}

.gm-contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
  align-items: stretch;
}

.gm-contact-card {
  background-color: #ffffff;
  padding: 50px 40px;
}

.gm-contact-card h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--gm-heading);
  font-weight: 500;
  margin-bottom: 26px;
}

.gm-blurb {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 16px;
  color: var(--gm-text);
}

.gm-blurb:last-child {
  margin-bottom: 0;
}

.gm-blurb-icon {
  color: var(--gm-green);
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin-top: 2px;
}

.gm-blurb-content p {
  margin: 0 0 4px 0;
  line-height: 1.6em;
}

.gm-form-group {
  margin-bottom: 18px;
}

.gm-input,
.gm-textarea {
  width: 100%;
  border: 1px solid var(--gm-border);
  background-color: transparent;
  padding: 16px;
  font-family: var(--font-body);
  font-size: 14px;
  color: #333333;
  border-radius: 0;
  outline: none;
  transition: border-color 0.2s ease;
}

.gm-input:focus,
.gm-textarea:focus {
  border-color: #999999;
}

.gm-textarea {
  min-height: 140px;
  resize: vertical;
}

.gm-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.gm-form-feedback {
  margin-top: 18px;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5em;
  display: none;
}

.gm-form-feedback.ok {
  display: block;
  background-color: #eef8e0;
  color: #244700;
  border-left: 4px solid var(--gm-green);
}

.gm-form-feedback.err {
  display: block;
  background-color: #fef2f2;
  color: #991b1b;
  border-left: 4px solid #dc2626;
}

/* ==========================================================================
   Om os (#121)
   ========================================================================== */
.gm-team-section {
  background-color: var(--gm-bg-grey);
  padding: 54px 0 68px 0;
}

.gm-team-section h1 {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--gm-heading);
  text-align: center;
  max-width: 710px;
  margin: 0 auto 44px auto;
}

.gm-team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  align-items: start;
}

.gm-team-card-header {
  text-align: center;
  width: 82%;
  margin: 0 auto 22px auto;
}

.gm-team-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  margin-bottom: 18px;
}

.gm-team-name {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--gm-heading);
  font-weight: 500;
  margin-bottom: 4px;
}

.gm-team-role {
  font-size: 16px;
  color: var(--gm-text);
  margin: 0;
}

.gm-team-bio {
  font-size: 16px;
  line-height: 1.7em;
  color: var(--gm-text);
}

/* ==========================================================================
   Services (#114) & Emnebank (#139)
   ========================================================================== */
.gm-intro-split-section {
  background-color: var(--gm-bg-grey);
  padding: 68px 0;
}

.gm-intro-split-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 48px;
  align-items: center;
}

.gm-intro-split-grid h1 {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: #000000;
  text-align: center;
  margin-bottom: 20px;
}

.gm-intro-split-grid p {
  font-size: 16px;
  line-height: 1.8em;
}

.gm-quad-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 54px;
}

.gm-quad-item h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  color: #000000;
  text-align: center;
  font-weight: 500;
  margin-bottom: 18px;
}

.gm-quad-item ul {
  padding: 12px 0 16px 22px;
  margin: 0;
  list-style-position: outside;
}

.gm-quad-item ul li {
  margin-bottom: 8px;
  line-height: 1.7em;
}

.gm-banner-grey {
  background-color: var(--gm-bg-grey);
  padding: 48px 20px;
  text-align: center;
}

.gm-banner-grey h2 {
  font-family: var(--font-heading);
  font-size: 32px;
  color: #000000;
  font-weight: 500;
  margin: 0 auto;
  max-width: 900px;
}

/* Fullwidth Alternating Split Rows */
.gm-split-rows {
  width: 100%;
}

.gm-split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  background-color: #ffffff;
}

.gm-split-row.alt-grey {
  background-color: var(--gm-bg-grey);
}

.gm-split-col-left {
  padding: 44px 4% 44px 21%;
}

.gm-split-col-right {
  padding: 44px 10% 44px 5%;
}

.gm-split-card {
  max-width: 650px;
}

.gm-split-card h2 {
  font-family: var(--font-heading);
  font-size: 34px;
  line-height: 1.38em;
  color: var(--gm-heading);
  font-weight: 500;
  margin-bottom: 16px;
}

.gm-split-card-body {
  font-size: 16px;
  line-height: 1.9em;
  color: var(--gm-text);
  margin-bottom: 24px;
}

.gm-split-card-body p {
  margin-bottom: 0.85em;
}

/* Kontakt Hero (#272) */
.gm-contact-hero {
  background-color: var(--gm-bg-grey);
  padding: 69px 20px 66px 20px;
  text-align: center;
}

.gm-contact-hero h1 {
  font-family: var(--font-heading);
  font-size: 60px;
  font-weight: 700;
  line-height: 1.4em;
  color: var(--gm-heading);
  width: 80%;
  max-width: 1080px;
  margin: 0 auto;
}

/* ==========================================================================
   Single Emnebank Article & Search Results (75% Left + 25% Sidebar)
   ========================================================================== */
.gm-post-layout {
  width: 80%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 58px 0 72px 0;
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 0;
}

.gm-post-main {
  padding-right: 5.5%;
  border-right: 1px solid #e2e2e2;
}

.gm-post-title {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 600;
  color: var(--gm-heading);
  line-height: 1.3em;
  margin-bottom: 22px;
}

.gm-breadcrumb {
  font-size: 13px;
  color: #888888;
  margin-bottom: 14px;
}

.gm-breadcrumb a {
  color: var(--gm-link);
}

.gm-post-content {
  font-size: 16px;
  line-height: 1.8em;
  color: var(--gm-text);
}

.gm-post-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--gm-heading);
  margin: 28px 0 12px 0;
}

.gm-post-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gm-heading);
  margin: 22px 0 10px 0;
}

.gm-post-content ul,
.gm-post-content ol {
  padding: 8px 0 16px 26px;
  margin: 0;
  list-style-position: outside;
}

.gm-post-content li {
  margin-bottom: 8px;
}

.gm-post-content hr {
  border: 0;
  border-top: 1px solid #e5e5e5;
  margin: 32px 0;
}

.gm-post-cta-box {
  margin-top: 38px;
  padding: 28px;
  background-color: var(--gm-bg-grey);
  border-left: 3px solid var(--gm-blue-divider);
}

/* Sidebar */
.gm-sidebar {
  padding-left: 28px;
}

.gm-widget {
  margin-bottom: 34px;
}

.gm-widget-label,
.gm-widget h2 {
  display: block;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--gm-heading);
  margin-bottom: 12px;
}

.gm-sidebar-search {
  display: flex;
  gap: 6px;
}

.gm-sidebar-search input {
  flex: 1;
  min-width: 0;
  border: 1px solid #dddddd;
  padding: 8px 10px;
  font-size: 14px;
  font-family: var(--font-body);
}

.gm-sidebar-search button {
  background: #f4f4f4;
  border: 1px solid #cccccc;
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
  color: #333333;
}

.gm-sidebar-search button:hover {
  background: #e8e8e8;
}

.gm-recent-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.gm-recent-list li {
  margin-bottom: 10px;
  line-height: 1.45em;
  font-size: 14px;
}

.gm-recent-list li a {
  color: var(--gm-link);
}

/* ==========================================================================
   Footer (#000000 Two-Row Divi Footer)
   ========================================================================== */
.gm-footer {
  background-color: var(--gm-footer-bg);
  color: #ffffff;
  padding: 54px 0 36px 0;
}

.gm-footer-cols {
  width: 80%;
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 24px;
  padding-bottom: 28px;
}

.gm-footer-col p {
  color: #ffffff;
  font-size: 16px;
  line-height: 1.75em;
  margin: 0;
}

.gm-footer-mail {
  text-align: center;
  padding-top: 8px;
}

.gm-footer-mail a {
  color: var(--gm-link);
  font-size: 16px;
}

/* ==========================================================================
   Responsive Design (Tablet <= 980px, Mobile <= 767px)
   ========================================================================== */
@media only screen and (max-width: 980px) {
  .gm-top-menu {
    display: none;
  }

  .gm-mobile-toggle {
    display: inline-flex;
  }

  .gm-home-hero {
    padding: 210px 0 48px 0;
  }

  .gm-clients-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gm-contact-parallax {
    background-attachment: scroll;
    padding: 60px 0;
  }

  .gm-contact-grid,
  .gm-team-grid,
  .gm-intro-split-grid,
  .gm-quad-grid,
  .gm-split-row,
  .gm-post-layout {
    grid-template-columns: 1fr;
  }

  .gm-split-col-left,
  .gm-split-col-right {
    padding: 48px 10%;
  }

  .gm-post-main {
    padding-right: 0;
    border-right: none;
    padding-bottom: 36px;
    border-bottom: 1px solid #e2e2e2;
  }

  .gm-sidebar {
    padding-left: 0;
    padding-top: 32px;
  }

  .gm-footer-cols {
    grid-template-columns: 1fr 1fr;
  }
}

@media only screen and (max-width: 767px) {
  .gm-container,
  .gm-header-inner,
  .gm-search-bar-inner,
  .gm-post-layout,
  .gm-footer-cols {
    width: 88%;
  }

  .gm-home-hero {
    padding: 150px 0 40px 0;
  }

  .gm-home-hero h1 {
    font-size: 26px;
  }

  .gm-home-hero p,
  .gm-home-hero li {
    font-size: 16px;
  }

  .gm-testimonial {
    flex-direction: column;
    align-items: center;
    text-align: left;
    padding: 24px;
  }

  .gm-clients-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .gm-section-heading-center,
  .gm-team-section h1,
  .gm-split-card h2 {
    font-size: 28px;
  }

  .gm-contact-hero h1 {
    font-size: 48px;
  }

  .gm-contact-card {
    padding: 34px 24px;
  }

  .gm-split-col-left,
  .gm-split-col-right {
    padding: 48px 8%;
  }

  .gm-footer-cols {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .gm-footer-empty {
    display: none;
  }
}
