/* ==========================================================================
   Layout Styles - Matching Figma Mockup
   ========================================================================== */

/* ==========================================================================
   Announcement Bar
   ========================================================================== */

.announcement-bar {
  padding: 6px 0;
  text-align: center;
  background: var(--color-black);
  color: var(--color-white);
}

.announcement-text {
  font-size: 1.25vw; /* 24px / 1920 */
  font-weight: 400;
  margin: 0;
}

button.announcement-bar-trigger {
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 5px 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  text-decoration: none;
  text-underline-offset: 3px;
  width: 100%;
  height: 100%;
  display: block;
}

button.announcement-bar-trigger:hover {
  opacity: 0.8;
}

/* ==========================================================================
   Announcement Bar Modal
   ========================================================================== */

body.ab-modal-open {
  overflow: hidden;
}

.ab-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.0833vw;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ab-modal-overlay[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ab-modal {
  position: relative;
  background-color: #000;
  color: #fff;
  border-radius: 12px;
  max-width: 800px;
  width: 100%;
  padding: 3.125vw;
}

.ab-modal-close {
  position: absolute;
  top: 1.0417vw;
  right: 1.0417vw;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.5625vw;
  line-height: 1;
  color: #fff;
  z-index: 1;
}

.ab-modal-close:hover {
  opacity: 0.6;
}

.ab-modal-body {
  font-family: 'Siaga', sans-serif;
  font-size: 1.0417vw;
  font-weight: 400;
  color: #fff;
  line-height: 1.6;
  padding-top: 2.0833vw;
}

.ab-modal-body p {
  margin: 0 0 0.8333vw 0;
}

.ab-modal-body p:last-child {
  margin-bottom: 0;
}

.ab-modal-body a {
  color: #fff;
}

.ab-modal-body h2 {
  margin-bottom: 30px;
}

@media (max-width: 1024px) {
  .ab-modal {
    max-width: 80vw;
    padding: 4vw;
  }

  .ab-modal-close {
    font-size: 3vw;
  }

  .ab-modal-body {
    font-size: 1.8vw;
    padding-top: 4vw;
  }
}

@media (max-width: 640px) {
  .ab-modal-overlay {
    padding: 16px;
    align-items: center;
  }

  .ab-modal {
    max-width: 100%;
    padding: 24px;
  }

  .ab-modal-close {
    font-size: 6vw;
    top: 12px;
    right: 12px;
  }

  .ab-modal-body {
    font-size: 3.5vw;
    padding-top: 24px;
  }
}

/* ==========================================================================
   Site Header - Transparent overlay on hero
   ========================================================================== */

.site-header {
  position: absolute;
  top: var(--announcement-bar-height, 38px);
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  background: transparent;
}

.site-header .container {
  max-width: 100%;
  padding-left: 60px;
  padding-right: 60px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* Right side container - nav + actions all grouped together on the right */
.header-right {
  display: flex;
  align-items: stretch;
  gap: 28px;
}

/* Desktop header CTAs (row layout) */
.header-ctas {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Logo */
.site-branding {
  flex-shrink: 0;
}

.site-branding .custom-logo-link img,
.site-branding .custom-logo {
  height: 40px;
  width: auto;
}

.site-logo-text {
  text-decoration: none;
}

.logo-text {
  font-family: 'Siaga', sans-serif;
  font-weight: 800;
  font-size: 1.25vw; /* 24px / 1920 */
  color: var(--color-black);
}

/* HERA Logo */
.hera-logo {
  display: flex;
  text-decoration: none;
}

.hera-logo svg {
  height: 50px;
  width: auto;
}

/* Menu Toggle (hidden on desktop) */
.menu-toggle {
  display: none !important;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle-bar {
  display: block;
  width: 34px;
  height: 4px;
  background-color: var(--color-black);
  transition: all 0.3s ease;
}

/* Main Navigation */
.main-navigation {
  flex: 0 0 auto;
  display: inline-block !important;
  width: auto !important;
}

/* Mobile-only elements (shown at ≤1024) */
.main-navigation .mobile-menu-close,
.main-navigation .mobile-menu-ctas {
  display: none;
}

.primary-menu {
  display: flex !important;
  align-items: center;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
  width: auto !important;
  flex: 0 0 auto !important;
}

#site-navigation {
  display: flex !important;
}

.primary-menu li {
  position: relative;
}

.primary-menu a {
  font-family: 'Siaga', sans-serif;
  font-size: 1.25vw; /* 24px / 1920 */
  font-weight: 400;
  color: var(--color-black);
  text-decoration: none;
  transition: color 0.3s ease;
}

.primary-menu a:visited:hover,
.primary-menu a:hover {
  color: var(--color-orange) !important;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: 'Siaga', sans-serif;
  font-size: 1.25vw; /* 24px / 1920 */
  font-weight: 400;
  color: var(--color-black);
  transition: all 0.3s ease;
  border-radius: 30px;
  padding: 10px 20px;
  line-height: 1;
  margin: 4px 0;
  white-space: nowrap;
}

.header-cta:hover {
  opacity: 1;
}

/* Subscribe CTA - BLACK bg, WHITE text, pill shape */
.header-cta-newsletter {
  background: var(--color-black);
  color: var(--color-white);
}

.header-cta-newsletter:hover {
  background: var(--color-black);
  color: var(--color-white);
}

.header-cta-newsletter:visited {
  color: var(--color-white);
}

/* Contact Us - transparent bg, BLACK border, BLACK text */
.header-cta-contact {
  border: 2px solid var(--color-black);
  background: transparent;
  color: var(--color-black);
}

.header-cta-contact:hover {
  background: var(--color-black);
  color: var(--color-white);
}

/* Search Icon */
.header-search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: -24px;
  margin-right: -50px;
}

.header-search-toggle svg {
  width: 30px;
  height: 30px;
}

/* ==========================================================================
   Search Overlay
   ========================================================================== */

body.search-overlay-open {
  overflow: hidden;
}

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 2005;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.search-overlay[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.search-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.search-overlay-panel {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
}

.search-overlay-inner {
  width: 90%;
  max-width: 1024px;
}

.search-overlay-close {
  position: fixed;
  top: 24px;
  right: 24px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-white);
  z-index: 2010;
  transition: opacity 0.2s ease;
}

.search-overlay-close:hover {
  opacity: 0.8;
}

.search-overlay-close svg {
  width: 24px;
  height: 24px;
}

.search-overlay .hera-search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5625vw; /* 30px / 1920 */
  align-items: end;
}

.search-overlay .hera-search-field {
  width: 100%;
  border: none;
  border-bottom: 2px solid var(--color-white);
  background: transparent;
  color: var(--color-white);
  -webkit-text-fill-color: var(--color-white);
  caret-color: var(--color-white);
  font-family: 'Siaga', sans-serif;
  font-size: 3.75vw; /* 72px / 1920 */
  font-weight: 800;
  line-height: 1.1;
  padding: 0.5208vw 0; /* 10px / 1920 */
  outline: none;
}

.search-overlay .hera-search-field::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.search-overlay .hera-search-submit {
  margin: 0;
  padding: 0.5vw;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.search-overlay .hera-search-submit:hover {
  opacity: 0.85;
}

.search-overlay .hera-search-submit svg {
  width: 30px;
  height: auto;
  max-width: 48px;
}

@media screen and (max-width: 1024px) {
  .search-overlay-close {
    top: 16px;
    right: 16px;
  }

  .search-overlay .hera-search-form {
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: center;
  }

  .search-overlay .hera-search-field {
    font-size: 36px;
  }
}

/* ==========================================================================
   Site Footer - Figma specs
   ========================================================================== */


.site-footer {
  padding: 2vw 0;
  background: linear-gradient(180deg, rgba(5, 199, 245, 1) 0%, rgba(5, 199, 245, 1) 6%, rgba(9, 198, 240, 1) 21%, rgba(123, 174, 132, 1) 73%, rgba(175, 164, 83, 1) 100%, rgba(255, 148, 8, 1) 100%);
  color: #000000;
}

/* Footer Heading */
.footer-heading {
  font-family: 'Siaga', sans-serif;
  font-size: 7.8125vw; /* 150px / 1920 */
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 4.1667vw; /* 80px / 1920 */
  color: #000000;
}

/* Footer Grid - 2 columns */
.footer-grid {
  display: flex !important;
  grid-template-columns: 1fr 1fr;
  gap: 3.125vw; /* 60px / 1920 */
  align-items: flex-end;
  justify-content: space-between;
}

/* Footer Right (Newsletter + Social) */
.footer-right {
  width: 30vw;
  display: flex;
  flex-direction: column;
  gap: 1.25vw; /* 24px / 1920 */
}

/* Newsletter Form */
.newsletter-form {
  display: flex;
  align-items: center;
  gap: 0.8333vw; /* 16px / 1920 */
  border-bottom: 1px solid #000000;
  padding-bottom: 0;
}

.newsletter-form input[type="email"] {
  flex-grow: 1;
  background: transparent;
  border: none;
  color: #000000;
  font-family: 'Siaga', sans-serif;
  font-size: 1.25vw; /* 24px / 1920 */
  font-weight: 400;
  padding: 0.4167vw 0; /* 8px / 1920 */
}

.newsletter-form input[type="email"]::placeholder {
  color: #000000;
  opacity: 0.7;
}

.newsletter-form input[type="email"]:focus {
  outline: none;
}

.newsletter-arrow {
  background: none;
  border: none;
  color: #000000;
  cursor: pointer;
  padding: 0.4167vw; /* 8px / 1920 */
  transition: transform 0.3s ease;
}

.newsletter-arrow:hover {
  transform: translateX(4px);
}

.newsletter-arrow svg {
  width: 1.25vw; /* 24px / 1920 */
  height: 1.25vw;
}

/* Newsletter Button - Black pill */
.newsletter-button {
  display: inline-block;
  background-color: #000000;
  color: #FFFFFF;
  font-family: 'Siaga', sans-serif;
  font-size: 1.25vw; /* 24px / 1920 */
  font-weight: 400;
  padding: 0.7813vw 1.5625vw; /* 15px 30px / 1920 */
  border: none;
  border-radius: 100px;
  cursor: pointer;
  align-self: flex-start;
  transition: opacity 0.3s ease;
}

.newsletter-button:hover {
  opacity: 0.8;
}

.newsletter-button:visited {
  color: #fff;
}

/* Footer Info */
.footer-info {
  font-family: 'Siaga', sans-serif;
  font-size: 1.25vw; /* 24px / 1920 */
  font-weight: 400;
  color: #000000;
}

.footer-info p {
  margin: 0 0 0.2083vw; /* 4px / 1920 */
  font-size: 1.25vw !important;
}

.footer-org-name {
  font-weight: 700;
}

.footer-email a {
  color: #000000;
  text-decoration: none;
}

.footer-email a:hover {
  text-decoration: underline;
}

.footer-address {
  margin-top: 1.25vw; /* 24px / 1920 */
}

.footer-legal {
  margin-top: 1.25vw; /* 24px / 1920 */
}

.footer-legal a {
  color: #000000;
  text-decoration: none;
}

.footer-legal a:hover {
  text-decoration: underline;
}

/* Social Links - Horizontal row */
.social-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1.5625vw; /* 30px / 1920 */
  list-style: none;
  margin: 1.0417vw 0 0; /* 20px / 1920 */
  padding: 0;
}

.social-link {
  color: #000000;
  text-decoration: none;
  font-family: 'Siaga', sans-serif;
  font-size: 1.0417vw; /* 20px / 1920 */
  font-weight: 400;
  transition: opacity 0.3s ease;
}

.social-link:hover {
  opacity: 0.7;
}

/* ==========================================================================
   Container
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding-left: 60px;
  padding-right: 60px;
}

/* ==========================================================================
   Responsive Layout
   ========================================================================== */

/* Font sizes use vw units and scale automatically with viewport */

@media screen and (max-width: 1400px) {
  .container {
    padding-left: 60px;
    padding-right: 60px;
  }
}

@media screen and (max-width: 1366px) {
  .site-header {
    padding: 1vw 0;
  }
}

@media screen and (max-width: 1024px) {
  .site-header {
    padding: 22.5px 0;
  }

  /* Show hamburger, hide desktop nav/CTAs */
  .menu-toggle {
    display: flex !important;
  }

  .site-header .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .header-right {
    gap: 0;
  }

  .header-search-toggle {
    margin-left: 0;
    margin-right: 0;
    padding-right: 0;
  }

  .header-ctas {
    display: none;
  }

  .newsletter-arrow svg {
    width: 16px;
    height: 16px;
  }

  /* Drawer: off-canvas from right */
  .main-navigation {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100vh;
    height: 100dvh;
    background: var(--color-black);
    color: var(--color-white);
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    flex: none !important;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    pointer-events: none;
  }

  .main-navigation.toggled {
    transform: translateX(0);
    pointer-events: auto;
  }

  .main-navigation[aria-hidden="false"] {
    visibility: visible;
  }

  /* Mobile-only close button and CTAs inside drawer */
  .main-navigation .mobile-menu-close,
  .main-navigation .mobile-menu-ctas {
    display: flex;
  }

  .main-navigation .mobile-menu-close {
    align-self: flex-end;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-white);
    margin: -8px -8px 16px 0;
  }

  .main-navigation .mobile-menu-close svg {
    width: 24px;
    height: 24px;
  }

  .main-navigation .mobile-menu-ctas {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    margin-top: auto;
  }

  .main-navigation .mobile-menu-ctas .header-cta {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .main-navigation .mobile-menu-ctas .header-cta-contact {
    border-color: var(--color-white);
    color: var(--color-white);
  }

  .main-navigation .mobile-menu-ctas .header-cta-newsletter {
    background: var(--color-black);
    color: var(--color-white);
    border: 2px solid var(--color-white);
  }

  .primary-menu {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0;
    display: flex !important;
  }

  .main-navigation .primary-menu > li > a,
  .main-navigation .primary-menu > li > a:visited {
    color: var(--color-white) !important;
    padding: 12px 0;
    font-size: 16px;
  }

  /* Backdrop */
  .mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  body.mobile-menu-open .mobile-menu-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .footer-grid {
    flex-direction: column-reverse;
    grid-template-columns: 1fr 1fr;
    gap: 2.0833vw; /* 40px / 1920 */
  }

  .footer-info {
    width: 100%;
  }

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

  .footer-right {
    width: 100%;
  }

  .social-links {
    justify-content: space-around;
  }

  .primary-menu a {
    font-size: 16px;
  }

  .primary-menu a:visited {
    color: #fff !important;
  }

  .container {
    padding-left: 2.0833vw; /* 40px / 1920 */
    padding-right: 2.0833vw;
  }
}

@media screen and (max-width: 768px) {
  .header-inner {
    padding-top: 22.5px;
  }

  .announcement-text {
    font-size: 16px;
  }

  .site-header {
    top: var(--announcement-bar-height, 52px);
    padding: 0;
  }

  .site-header .container {
    max-width: 100%;
    padding-left: 10px;
    padding-right: 10px;
  }

  .primary-menu a {
    padding: 16px 0;
  }

  .menu-toggle-bar {
    background-color: #000;
  }

  .newsletter-button {
    padding: 12px 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.0833vw; /* 40px / 1920 */
  }
  
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  /* Footer: all non-heading text 16px */
  .site-footer,
  .site-footer p,
  .footer-info,
  .footer-info p,
  .social-link,
  .newsletter-button {
    font-size: 16px;
  }

  .footer-heading {
    font-size: 62px !important;
  }

  .social-links {
    margin: 20px 0;
  }
}

@media screen and (max-width: 600px) {
  .footer-info p {
    font-size: 16px !important;
  }
}
