@charset "utf-8";
/* CSS Document */
 :root {
      --primary: #2E5E4E;       /* Dark Green */
      --secondary: #5A8F7D;     /* Medium Green */
      --accent: #A4C3B2;        /* Light Green */
      --neutral-light: #F5F5F5;
      --neutral-dark: #333;
      --text: #444;
    }
 * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: 'Arial', sans-serif;
    }

body {
    font-family: Arial, sans-serif;
    background: #f9f9f9;
    margin: 0;
    padding: 0;
    color: #333;
}

.article-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px 30px;
    background: #fff;
    border: 1px solid #ddd;
}

h1 {
    font-size: 32px;
    margin-bottom: 20px;
	margin-left: 1rem;
	margin-top: 7rem;
}

h2 {
    margin-top: 40px;
    font-size: 24px;
}

p {
    line-height: 1.6;
    margin-bottom: 20px;
}

.intro {
    font-size: 18px;
    font-weight: bold;
	margin-left: 1.25rem;
}

blockquote {
    margin: 30px 0;
    padding: 20px;
    background: #f0f0f0;
    border-left: 5px solid #444;
    font-size: 18px;
}


/*Image related css*/



.article-image-onpage {
    display: block;
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 6px;
    object-fit: cover;
    margin: 0 auto 30px auto;
}

@media (max-width: 768px) {
    .article-image-onpage {
        max-width: 100%;
        border-radius: 4px;
        margin-bottom: 20px;
    }
}

.article-item {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    margin-bottom: 50px;
}

.article-image {
    width: 280px;        /* fixed visual anchor */
    height: auto;
    flex-shrink: 0;      /* prevents shrinking */
    border-radius: 6px;
    object-fit: cover;
}

.article-content {
    flex: 1;             /* text takes remaining space */
}


@media (max-width: 768px) {
    .article-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .article-image {
        width: 100%;
        max-width: 500px;
        margin-bottom: 20px;
    }

    .article-content {
        width: 100%;
        text-align: left;   /* optional: keep text left-aligned */
    }
}

 /* ===== HEADER & NAVBAR ===== */
    header {
      background-color: white;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
      position: fixed;
      width: 100%;
      top: 0;
      z-index: 1000;
    }

    .navbar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 1rem 2rem;
    }

    .logo img {
      height: 40px;
    }

    .nav-links {
      display: flex;
      gap: 1.5rem;
      align-items: center;
    }

    .nav-links a {
      text-decoration: none;
      color: var(--text);
      font-weight: 500;
      transition: color 0.3s;
    }

    .nav-links a:hover {
      color: var(--primary);
    }

    .nav-btn {
      background-color: var(--primary);
      color: white;
      border: none;
      padding: 0.5rem 1rem;
      border-radius: 4px;
      cursor: pointer;
      transition: background 0.3s;
      font-weight: 500;
    }

    .nav-btn:hover {
      background-color: var(--secondary);
    }

    .hamburger {
      display: none;
      cursor: pointer;
      font-size: 1.5rem;
    }

/* ===== CALENDLY POPUP ===== */
    .calendly-popup {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.7);
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 2000;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s;
    }

    .calendly-popup.active {
      opacity: 1;
      pointer-events: all;
    }

    .calendly-content {
      background: white;
      padding: 2rem;
      border-radius: 8px;
      width: 90%;
      max-width: 900px;
      max-height: 90vh;
      overflow-y: auto;
      position: relative;
    }

    .calendly-close {
      position: absolute;
      top: 1rem;
      right: 1rem;
      background: none;
      border: none;
      font-size: 1.5rem;
      cursor: pointer;
      color: var(--text);
    }


/*This is for an image created using html and css - commented out*/
.article-hero {
    position: relative;
    width: 100%;
    height: 260px;
    background: linear-gradient(to right, #0F3D2E, #A8D5B8);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-text h1 {
    color: #ffffff;
    font-size: 36px;
    z-index: 2;
    text-align: center;
    margin: 0;
}

.hero-mosaic span {
    position: absolute;
    font-size: 28px;
    color: rgba(255, 255, 255, 0.25);
    font-weight: bold;
    white-space: nowrap;
}

/* Mosaic positions + angles */
.hero-mosaic span:nth-child(1) {
    top: 40px;
    left: 20px;
    transform: rotate(-10deg);
}

.hero-mosaic span:nth-child(2) {
    top: 120px;
    left: 180px;
    transform: rotate(8deg);
}

.hero-mosaic span:nth-child(3) {
    top: 180px;
    left: 380px;
    transform: rotate(-5deg);
}

.hero-mosaic span:nth-child(4) {
    top: 60px;
    right: 200px;
    transform: rotate(6deg);
}

.hero-mosaic span:nth-child(5) {
    top: 150px;
    right: 40px;
    transform: rotate(-8deg);
}


/* ==========================================================================
   MOBILE ADDITIONS  (everything below only applies at 768px and under;
   nothing above this line was changed except removing the old
   "p { font-size: 2.8rem }" rule from the first 768px block).
   The "body" prefix on selectors gives these rules enough specificity to
   win over case-studies.css, which is linked after this file.
   ========================================================================== */
@media (max-width: 768px) {

  /* case-studies.css adds 15px body padding on mobile; not wanted here */
  body {
    padding: 0;
    overflow-x: hidden;
  }

  /* Article: use the full phone width, clear the fixed header */
  .article-container {
    margin: 0 auto;
    padding: 16px;
    border-left: none;
    border-right: none;
    overflow-wrap: break-word;
  }

  h1 {
    font-size: 1.6rem;
    line-height: 1.25;
    margin: 5.5rem 0 1rem;
  }

  body h2 {
    font-size: 1.3rem;
    margin-top: 32px;
  }

  .intro {
    font-size: 1.05rem;
    margin-left: 0;
  }

  blockquote {
    margin: 24px 0;
    padding: 14px 16px;
    font-size: 1rem;
  }

  .article-content {
    min-width: 0;
  }

  /* Header / hamburger */
  .navbar {
    padding: 1rem;
  }

  body .hamburger {
    background: none;
    border: none;
    color: var(--primary);
    line-height: 1;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
  }

  /* Menu panel sits directly under the header, whatever its height */
  body .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1rem 1rem;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }

  body .nav-links > a,
  body .dropbtn {
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid #eee;
  }

  /* Case Studies dropdown becomes an inline accordion inside the menu */
  body .dropdown {
    display: block;
    width: 100%;
  }

  body .dropbtn {
    width: 100%;
    justify-content: space-between;
    text-align: left;
  }

  body .dropdown-content {
    position: static;
    min-width: 0;
    margin: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: var(--neutral-light);
  }

  body .dropdown-content a {
    white-space: normal;
    padding: 0.75rem 1rem;
  }

  body .nav-btn {
    width: 100%;
    margin-top: 1rem;
    padding: 0.85rem 1rem;
  }

  /* Calendly popup */
  .calendly-content {
    padding: 1rem;
    width: 95%;
  }
}

@media (max-width: 380px) {
  .logo img { height: 34px; }
  h1 { font-size: 1.4rem; }
}
