/* ======================================
   BASE RESET & GLOBAL STYLES
====================================== */
@import url('https://fonts.googleapis.com/css2?family=Host+Grotesk:wght@400;700&display=swap');

:root {
  --color-primary: #131313;
  --color-accent: #f8f8f8;
  --color-bg:  #ffffff;
}

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

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 5rem;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Host Grotesk", sans-serif;
  background: var(--color-bg);
  color: var(--color-primary);
}

/* ======================================
   MAP IFRAME
====================================== */
.map-iframe {
  width: 100%;
  height: 600px; /* Default desktop height */
  border: none;
  margin-bottom: 4rem;
  border-radius: 10px;
}

@media (max-width: 900px) {
  .map-iframe {
    height: 100vw !important; 
    max-height: 50vh;
  }
}


/* ======================================
   TYPOGRAPHY
====================================== */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  letter-spacing: -2px;
  line-height: 1;
}

h1 { font-size: 6rem; }
h2 { font-size: 4rem; }
h3 { font-size: 2.5rem; }

p {
  font-size: 1.1rem;
  line-height: 1.3;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: inherit;
}

.subtitle {
  margin-top: 1rem;
  margin-bottom: 0;
  max-width: 75%;
  font-weight: 300;
  font-size: 2rem;
  letter-spacing: -1px;
  line-height: normal;
}

.width-50 {
  max-width: 50%;
}

.width-75 {
  max-width: 75%;
}

.center-vert {
  display: flex;
  flex-direction: column;
  justify-content: center;
}


/* ======================================
   LAYOUT & STRUCTURE
====================================== */
.site-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 5rem 1rem 0;
  min-height: 100vh;
}

.section-separator {
  width: 100px;
  height: 10px;
  background: #131313;
  margin: 1rem 0;
}

.section-separator-full {
  width: 100%;
  height: 1px;
  background: #131313;
  margin-bottom: 4rem;
}

.section-separator-menu {
  width: 100%;
  height: 5px;
  background: #131313;
  margin: 0;
}

.left-vert-line {
  border-left: solid 1px #131313;
  padding-left: 1rem;
}

/* ======================================
   HEADER & NAVIGATION - HAMBURGER ONLY
====================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  z-index: 1000;
  padding: .5rem 0;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-brand {
  font-size: 1.5rem;
  font-weight: 700;
}

/* Hamburger Menu Styles */
.hamburger {
  display: inline-block;
  cursor: pointer;
  transition-property: opacity, filter;
  transition-duration: 0.15s;
  transition-timing-function: linear;
  font: inherit;
  color: inherit;
  text-transform: none;
  background-color: transparent;
  border: 0;
  margin: 0;
  margin-top: .6rem;
  overflow: visible;
  padding: 0;
  z-index: 1001;
}

.hamburger-box {
  width: 24px;
  height: 24px;
  display: inline-block;
  position: relative;
}

.hamburger-inner {
  display: block;
  top: 50%;
  margin-top: -2px;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  width: 24px;
  height: 2px;
  background-color: #131313;
  border-radius: 4px;
  position: absolute;
  transition-property: transform;
  transition-duration: 0.15s;
  transition-timing-function: ease;
}

.hamburger-inner::before,
.hamburger-inner::after {
  content: "";
  display: block;
}

.hamburger-inner::before {
  top: -8px;
}

.hamburger-inner::after {
  bottom: -8px;
}

/* Active state */
.hamburger[aria-expanded="true"] .hamburger-inner {
  transform: rotate(45deg);
}

.hamburger[aria-expanded="true"] .hamburger-inner::before {
  transform: rotate(-90deg) translate(-8px, 0);
}

.hamburger[aria-expanded="true"] .hamburger-inner::after {
  opacity: 0;
}

/* Navigation Menu */


.site-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: #fff;
  padding: 3.5rem 1rem 1rem;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 1000;
  overflow-y: auto;
  border-left: 1px solid #eee;
}

.site-nav[aria-hidden="false"] {
  transform: translateX(0);
}

.site-nav a {
  display: block;
  padding: 0.5rem 0.5rem;
  font-size: 1rem;
  border-bottom: 1px solid #eee;
  font-weight: normal;
  transition: ease-in-out .4s;
  text-align: left;
}

.site-nav a:hover {
  color: #fff;
  transition: ease-in-out .4s;
  background-color: #131313;
}


.nav-separator {
  width: 100%;
  border-bottom: solid 1px #131313;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

/* Overlay when menu is open */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
}

.mobile-nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}


/* ======================================
   SPLIT SECTIONS
====================================== */
.split-section {
  display: flex;
  flex-direction: row;
  width: 100%;
  margin-bottom: 4rem;
  position: relative;
}

.split-inner {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.split {
  min-height: 100%;
}

.split-left {
  padding-right: 1rem;
  background: #fff;
}

.split-right {
  background: #fff;
}

.split-50-50 .split-left { flex: 0 0 50%; }
.split-50-50 .split-right { flex: 0 0 50%; }
.split-100-0 .split-left { flex: 0 0 100%; }
.split-100-0 .split-right { display: none; }

.vertical-line {
  width: 30px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex-shrink: 0;
}

.vertical-line::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #131313;
  transform: translateX(-50%);
}

.text-top,
.text-bottom {
  writing-mode: vertical-rl;
  transform: translateX(-50%) rotate(180deg);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  position: absolute;
  left: 20%;
}

.text-top { top: 0; }
.text-bottom { bottom: 0; }

/* ======================================
   IMAGE STYLES
====================================== */
.image-cover-full {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-cover-constrained {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

.map-placeholder {
  color: #fff;
  background-color: #131313;
  border-radius: 10px;
  width: 100%;
  height: 600px;
  align-items: center;
  text-align: center;
  justify-content: center;
  display: flex;
  margin: 4rem 0;
}

.map-placeholder-section {
  color: #fff;
  background-color: #131313;
  border-radius: 10px;
  width: 100%;
  height: 600px;
  align-items: center;
  text-align: center;
  justify-content: center;
  display: flex;
  margin: 0;
}

/* ======================================
   BUTTONS
====================================== */
.button1 {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-primary);
  border-radius: 0;
  background: #fff;
  letter-spacing: .5px;
  color: #131313;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  gap: 0.5rem;
  margin: 0.5rem 0;
  transition: all 0.3s ease-in-out;
}

.button1:hover {
  background: #131313;
  color: #fff;
  transition: all 0.3s ease-in-out;
}

.button1 .icon {
  display: inline-block !important;
  transition: transform 0.3s ease-in-out !important;
}


/* Target ALL icons in the nav */
.site-nav .icon {
  display: inline-block; /* Required for transforms */
  transition: transform 0.2s ease; /* For hover effects */
}

/* Optional: Rotate icons on hover */
.site-nav a:hover .icon {
  transform: rotate(45deg);
}


.button1:hover .icon {
  transform: rotate(45deg) !important; /* Rotate on hover */
}


.send-button1 {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--color-primary);
  border-radius: 999px;
  background: #fff;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  gap: 0.5rem;
  margin: 0.5rem 0;
  transition: all 0.2s ease;
  width: fit-content;
}

.send-button1:hover {
  background: var(--color-primary);
  color: #fff;
  cursor: pointer;
}

.send-button1 .icon {
  font-size: 1rem;
}

/* ======================================
   CONTENT SECTIONS
====================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.card {
  border: 1px solid var(--color-primary);
  padding: 1.5rem;
  background: var(--color-accent);
  border-radius: 10px;
  align-content: center;
}

.card-text {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 1rem;
}

.card-meta {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-primary);
}

.pill-section {
  margin: 0 0 4rem;
}

.pill-category {
  margin-bottom: 2.5rem;
}

.pill-category h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.pill-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pill {
  border: 1px solid var(--color-primary);
  background: var(--color-accent);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

.styled-list {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0;
}

.styled-list > li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.styled-list > li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

.sub-list {
  list-style: none;
  margin-top: 0.3rem;
  padding-left: 0;
}

.sub-list li {
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}



/* ======================================
   STORY CARDS
====================================== */
.story-card-overlap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1400px;
  margin: 4rem auto;
  border-radius: 10px;
  overflow: visible;
  background-color: #fff;
  position: relative;
}

.story-card-overlap.reverse {
  flex-direction: row-reverse;
}

.story-card-overlap-text {
  flex: 1 1 40%;
  padding: 1rem;
  padding-left: 0;
  background-color: #fff;
  border-radius: 10px;
  position: relative;
  z-index: 2;
  margin-right: -4rem;
}

.story-card-overlap.reverse .story-card-overlap-text {
  margin-left: -4rem;
  margin-right: 0;
  padding-left: 1rem;
  padding-right: 0;
}

.story-card-overlap-text h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.story-card-overlap-text p {
  line-height: 1.5;
  color: #131313;
}

.story-card-overlap-media {
  flex: 1 1 55%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.story-card-overlap-media img {
  width: 100%;
  max-height: 500px;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
}

/* ======================================
   LIGHTBOX
====================================== */

.img-wrapper {
  max-height: 500px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 10px;
}

.img-wrapper img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.img-wrapper-fit {
  height: inherit;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 10px;
}

.img-wrapper-fit img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit:contain;
  display: block;
  cursor: pointer;
  border-radius: 10px;
}


@media (max-width: 900px) {
.img-wrapper {
  max-height: 300px;
}

  .img-wrapper img {
  height: auto;
  max-height: 300px;
}}

/* LIGHTBOX BASE */
.lightbox {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  z-index: 2000;
  text-align: center;
}

/* Show when active */
.lightbox.show {
  display: flex;
  opacity: 1;
}

/* CONTENT WRAPPER */
.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  text-align: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* IMAGE */
.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 10px;
  margin-bottom: 0.5rem;
  object-fit: contain;
}

/* CAPTION */
.lightbox-caption {
  display: inline-block;          /* Needed to center the block inside parent */
  text-align: left;               /* Paragraphs stay left-aligned */
  margin: 1rem auto 0;            /* Centered horizontally */
  color: #fff;
  font-size: 1rem;
  max-width: 90%;
  line-height: 1.5;
}

/* CLOSE BUTTON */
.lightbox-close {
  position: absolute;
  background: none;
  box-shadow: none;
  top: -2.5rem;
  right: 0;
  font-size: 1.5rem;
  font-weight: 700;
  width:35px;
  height: 35px;
  color: #fff;
  align-items: end;
  justify-content: end;
  text-align: end;
  cursor: pointer;
  display: flex;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: none;
}

.lightbox-close:hover {
  transform: scale(1.1);
}

/* POINTER CURSOR FOR LIGHTBOX IMAGES */
img[data-lightbox] {
  cursor: pointer;
}

.social-icons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.social-icons svg,
.social-icons .icon-png {
  height: 30px;
  display: block;
}





.cert-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem; /* space between items */
  padding: 1rem 0;
}

.cert-item {
  border-left: 3px solid #000;
  padding-left: 0.75rem;
}

.cert-item h3 {
  margin: 0 0 0.15rem 0; /* tighter title spacing */
  font-size: 1.5rem;
  letter-spacing: normal;
}

.cert-item p {
  margin: 0.1rem 0; /* reduce line spacing */
  font-size: 1rem;
}







/* ======================================
   IMAGE GRID
====================================== */

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 1rem;
  border: solid 1px #eee;
  border-radius: 10px;
  margin-bottom: 4rem;
}

.image-grid img {
  width: 100%;
  height: auto;
  display: block;
  background-color: #fff;
  padding: 1rem;
  border: solid 1px #eee;
  border-radius: 10px;
  cursor: pointer;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.image-grid img:hover {
  transform: scale(1.03);
}


/* ======================================
   LEAFLET MAP STYLING
====================================== */
.leaflet-popup-content-wrapper {
  border-radius: 10px;
  font-family: "Host Grotesk", sans-serif;
  font-size: 1rem;
  color: #131313;
  line-height: 1.4;
}

.leaflet-popup-content {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  line-height: inherit;
}

.leaflet-popup-content strong {
  font-weight: 700;
  color: #131313;
}

.leaflet-popup-tip {
  border-radius: 0;
}

.two-col {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.two-col > div {
  flex: 1 1 48%;
  min-width: 300px;
}

/* ======================================
   CONTACT FORM
====================================== */
.contact-section {
  max-width: 700px;
  margin-bottom: 4rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-form label {
  font-weight: 700;
  font-size: 1rem;
}

.contact-form input,
.contact-form textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-primary);
  background: #fff;
  color: var(--color-primary);
  border-radius: 10px;
  width: 100%;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

/* ======================================
   FOOTER
====================================== */
.site-footer {
  background: var(--color-primary);
  color: #fff;
  padding-top: 2rem;
  padding-bottom: 2rem;
  margin-top: auto;
  position: relative;
  bottom: 0;
  width: 100%;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 0 1rem;
}

.footer-text {
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0;
}

/* ======================================
   ANIMATIONS
====================================== */
.reveal,
.reveal2 {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

.reveal2.active {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

/* ======================================
   RESPONSIVE STYLES
====================================== */
@media (max-width: 900px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.8rem; }
  h3 { font-size: 1.5rem; letter-spacing: -1px; }

  .latlong {
  font-size: 0.5rem;
}

  
  .subtitle {
    font-size: 1.5rem;
    max-width: 100%;
    line-height: normal;
  }

  .width-75, .width-50 {
    max-width: 100%;
  }

  .center-vert {
    display: block;
  }

  .left-vert-line {
    border-left: none;
    padding-left: 0 !important;
  }

  .split-section {
    flex-direction: column;
  }

  .split-inner {
    flex-direction: column;
    width: 100%;
    padding-left: 30px;
    margin-top: 0 !important;
  }

  .split-inner:not(:first-of-type) {
    margin-top: 2rem;
  }

  .split-left {
    padding-right: 0;
  }

  
  

  .vertical-line {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 30px;
    z-index: 1;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
  }

  .vertical-line::before {
    height: auto;
  }

  .mob-img-pad {
    margin-top: 1rem;
  }

  .story-card-overlap,
  .story-card-overlap.reverse {
    flex-direction: column;
    align-items: flex-start;
  }

  .story-card-overlap-text {
    width: 100%;
    padding: 0;
    margin: 0 0 1rem 0;
    text-align: left;
  }

  .story-card-overlap.reverse .story-card-overlap-text {
    padding: 0;
    margin: 0 0 1rem 0;
  }

  .story-card-overlap-media {
    width: 100%;
    order: 2;
    margin-top: -1rem;
  }

  .story-card-overlap-media img {
    width: 100%;
    max-height: 55vw;
  }
}

[id] {
  scroll-margin-top: 100px;
}