/*
Theme Name: Hello Bagus Child
Theme URI: https://baguswebsite.com/
Description: Lightweight Hello Elementor child theme with a custom responsive header and footer by Bagus Web Solutions.
Author: Bagus Web Solutions
Author URI: https://baguswebsite.com/
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-bagus-child
*/

/* =========================================================
   DESIGN TOKENS
   Main: Deep Teal  #0F5C5E
   Accent: Warm Gold #F4A621
   ========================================================= */
:root {
  --bws-primary: #0F5C5E;
  --bws-primary-dark: #0A4547;
  --bws-primary-deep: #07383A;
  --bws-primary-soft: #EAF5F4;
  --bws-secondary: #F4A621;
  --bws-secondary-dark: #D98B0A;
  --bws-secondary-soft: #FFF4DB;
  --bws-ink: #163536;
  --bws-text: #385455;
  --bws-muted: #6D8181;
  --bws-border: #DCE9E7;
  --bws-surface: #F7FBFA;
  --bws-white: #FFFFFF;
  --bws-success: #25D366;
  --bws-shadow-sm: 0 0.8rem 2.2rem rgba(7, 56, 58, 0.10);
  --bws-shadow-md: 0 1.8rem 4rem rgba(7, 56, 58, 0.16);
  --bws-radius: 1.4rem;
  --bws-radius-lg: 2.4rem;
  --bws-header-height: 7.6rem;
  --bws-container: 124rem;
  --bws-font-heading: "Cormorant Garamond", Georgia, serif;
  --bws-font-body: "Raleway", Arial, sans-serif;
}

/* Keep the child theme safe around Elementor content. */
.bws-site-header,
.bws-site-footer,
.bws-mobile-panel {
  font-family: var(--bws-font-body);
}

.bws-site-header *,
.bws-site-footer *,
.bws-mobile-panel * {
  box-sizing: border-box;
}

.bws-site-header a,
.bws-site-footer a,
.bws-mobile-panel a {
  text-decoration: none;
}

/* =========================================================
   HEADER
   Inspired by the original CSS method:
   sticky/fixed-feel header, pill navigation, CTA, mobile panel.
   ========================================================= */
.bws-site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  width: 100%;
  min-height: var(--bws-header-height);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(15, 92, 94, 0.11);
  backdrop-filter: blur(1.4rem);
  -webkit-backdrop-filter: blur(1.4rem);
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.bws-site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 0.3rem;
  background: linear-gradient(90deg, var(--bws-primary), var(--bws-secondary), var(--bws-primary));
}

.bws-site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.985);
  border-bottom-color: rgba(15, 92, 94, 0.16);
  box-shadow: var(--bws-shadow-sm);
}

.bws-header-inner {
  width: min(var(--bws-container), calc(100% - 4rem));
  min-height: var(--bws-header-height);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.4rem;
}

.bws-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.bws-brand .custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.bws-brand .custom-logo {
  display: block;
  width: auto;
  max-width: 22rem;
  max-height: 5.2rem;
  object-fit: contain;
}

.bws-brand-fallback {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  color: var(--bws-primary-deep);
}

.bws-brand-mark {
  width: 4.2rem;
  height: 4.2rem;
  flex: 0 0 4.2rem;
  display: grid;
  place-items: center;
  border-radius: 1.25rem;
  color: var(--bws-white);
  background: linear-gradient(135deg, var(--bws-primary), var(--bws-primary-dark));
  box-shadow: 0 0.8rem 1.8rem rgba(15, 92, 94, 0.22);
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.bws-brand-copy {
  display: grid;
  line-height: 1.05;
}

.bws-brand-title {
  color: var(--bws-primary-deep);
  font-family: var(--bws-font-heading);
  font-size: clamp(2rem, 2.4vw, 2.8rem);
  font-weight: 700;
}

.bws-brand-tagline {
  margin-top: 0.35rem;
  color: var(--bws-muted);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.bws-header-right {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.2rem;
}

.bws-primary-nav .menu,
.bws-primary-nav > ul {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bws-primary-nav li {
  position: relative;
  margin: 0;
  padding: 0;
}

.bws-primary-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 4.4rem;
  padding: 0.9rem 1.3rem;
  border-radius: 999px;
  color: var(--bws-text);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.bws-primary-nav a:hover,
.bws-primary-nav a:focus-visible,
.bws-primary-nav .current-menu-item > a,
.bws-primary-nav .current_page_item > a {
  color: var(--bws-primary);
  background: var(--bws-primary-soft);
}

.bws-primary-nav .current-menu-item > a::after,
.bws-primary-nav .current_page_item > a::after {
  content: "";
  position: absolute;
  left: 1.3rem;
  right: 1.3rem;
  bottom: 0.45rem;
  height: 0.2rem;
  border-radius: 99px;
  background: var(--bws-secondary);
}

.bws-header-cta,
.bws-footer-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 4.6rem;
  padding: 1rem 1.8rem;
  border-radius: 999px;
  color: var(--bws-primary-deep);
  background: var(--bws-secondary);
  border: 1px solid rgba(217, 139, 10, 0.15);
  box-shadow: 0 1rem 2.2rem rgba(244, 166, 33, 0.25);
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.bws-header-cta:hover,
.bws-header-cta:focus-visible,
.bws-footer-cta-button:hover,
.bws-footer-cta-button:focus-visible {
  color: var(--bws-primary-deep);
  background: #FFB83F;
  transform: translateY(-0.2rem);
  box-shadow: 0 1.4rem 2.8rem rgba(244, 166, 33, 0.32);
}

.bws-menu-toggle {
  display: none;
  width: 4.5rem;
  height: 4.5rem;
  padding: 0;
  border: 1px solid rgba(15, 92, 94, 0.12);
  border-radius: 1.25rem;
  background: var(--bws-primary-soft);
  cursor: pointer;
}

.bws-menu-toggle span {
  display: block;
  width: 2.2rem;
  height: 0.2rem;
  margin: 0.45rem auto;
  border-radius: 99px;
  background: var(--bws-primary);
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.bws-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(0.65rem) rotate(45deg);
}

.bws-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.bws-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-0.65rem) rotate(-45deg);
}

.bws-mobile-panel {
  display: none;
  position: fixed;
  left: 1.6rem;
  right: 1.6rem;
  top: calc(var(--bws-header-height) + 1rem);
  z-index: 9998;
  max-height: calc(100vh - var(--bws-header-height) - 3rem);
  overflow-y: auto;
  padding: 1.3rem;
  border: 1px solid rgba(15, 92, 94, 0.14);
  border-radius: 1.8rem;
  background: rgba(255, 255, 255, 0.985);
  box-shadow: var(--bws-shadow-md);
  backdrop-filter: blur(1.4rem);
  -webkit-backdrop-filter: blur(1.4rem);
}

.bws-mobile-panel.is-open {
  display: block;
  animation: bwsMenuIn 0.2s ease-out;
}

@keyframes bwsMenuIn {
  from { opacity: 0; transform: translateY(-0.8rem); }
  to { opacity: 1; transform: translateY(0); }
}

.bws-mobile-nav .menu,
.bws-mobile-nav > ul {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bws-mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 4.8rem;
  padding: 1.15rem 1.3rem;
  border-radius: 1.2rem;
  color: var(--bws-ink);
  background: var(--bws-surface);
  font-size: 1.5rem;
  font-weight: 800;
}

.bws-mobile-nav a:hover,
.bws-mobile-nav a:focus-visible,
.bws-mobile-nav .current-menu-item > a,
.bws-mobile-nav .current_page_item > a {
  color: var(--bws-primary);
  background: var(--bws-primary-soft);
}

.bws-mobile-panel .bws-header-cta {
  width: 100%;
  min-height: 5rem;
  margin-top: 1rem;
}

body.bws-menu-open {
  overflow: hidden;
}

/* =========================================================
   FOOTER
   Dark teal gradient + gold highlights + responsive columns.
   ========================================================= */
.bws-site-footer {
  position: relative;
  overflow: hidden;
  padding: 5rem 2rem 2.4rem;
  color: rgba(255, 255, 255, 0.86);
  background:
    radial-gradient(circle at 85% 5%, rgba(244, 166, 33, 0.16), transparent 26rem),
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.07), transparent 28rem),
    linear-gradient(135deg, var(--bws-primary-deep) 0%, var(--bws-primary) 48%, var(--bws-primary-dark) 100%);
  border-top: 0.3rem solid var(--bws-secondary);
}

.bws-site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.65;
  background:
    repeating-linear-gradient(90deg, transparent 0, transparent 6.8rem, rgba(255,255,255,0.025) 6.8rem, rgba(255,255,255,0.025) 6.9rem),
    repeating-linear-gradient(0deg, transparent 0, transparent 6.8rem, rgba(255,255,255,0.018) 6.8rem, rgba(255,255,255,0.018) 6.9rem);
}

.bws-footer-inner {
  position: relative;
  z-index: 1;
  width: min(var(--bws-container), 100%);
  margin-inline: auto;
}

.bws-footer-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 3rem;
  padding: 0 0 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.bws-footer-kicker {
  display: block;
  margin-bottom: 0.9rem;
  color: var(--bws-secondary);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.bws-footer-cta h2 {
  margin: 0 0 0.8rem;
  color: var(--bws-white);
  font-family: var(--bws-font-heading);
  font-size: clamp(3rem, 4vw, 4.6rem);
  font-weight: 700;
  line-height: 1.04;
}

.bws-footer-cta p {
  max-width: 72rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.55rem;
  line-height: 1.7;
}

.bws-footer-main {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 1fr;
  gap: clamp(3rem, 5vw, 6rem);
  padding: 4rem 0;
}

.bws-footer-brand {
  max-width: 44rem;
}

.bws-footer-logo .custom-logo-link {
  display: inline-flex;
  margin-bottom: 1.8rem;
}

.bws-footer-logo .custom-logo {
  display: block;
  width: auto;
  max-width: 22rem;
  max-height: 6rem;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.bws-footer-brand-name {
  margin: 0 0 1.1rem;
  color: var(--bws-white);
  font-family: var(--bws-font-heading);
  font-size: clamp(2.8rem, 3vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
}

.bws-footer-description {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 1.5rem;
  line-height: 1.75;
}

.bws-footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.bws-footer-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.07);
  font-size: 1.15rem;
  font-weight: 800;
}

.bws-footer-title {
  margin: 0 0 1.8rem;
  color: var(--bws-secondary);
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.bws-footer-menu,
.bws-footer-menu ul,
.bws-footer-contact {
  display: grid;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bws-footer-menu a,
.bws-footer-contact a,
.bws-footer-contact span {
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.45rem;
  line-height: 1.5;
  transition: color 0.2s ease, transform 0.2s ease;
}

.bws-footer-menu a:hover,
.bws-footer-contact a:hover {
  color: var(--bws-secondary);
}

.bws-footer-contact li {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
}

.bws-contact-icon {
  color: var(--bws-secondary);
  font-size: 1.45rem;
  line-height: 1.5;
  text-align: center;
}

.bws-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  padding-top: 2.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.56);
  font-size: 1.25rem;
  line-height: 1.6;
}

.bws-footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.bws-footer-bottom a {
  color: rgba(255, 255, 255, 0.78);
}

.bws-footer-bottom a:hover {
  color: var(--bws-secondary);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .bws-header-inner {
    width: min(100% - 3.2rem, var(--bws-container));
  }

  .bws-primary-nav,
  .bws-header-right > .bws-header-cta {
    display: none;
  }

  .bws-menu-toggle {
    display: block;
  }

  .bws-footer-cta {
    grid-template-columns: 1fr;
  }

  .bws-footer-cta-button {
    width: fit-content;
  }

  .bws-footer-main {
    grid-template-columns: 1.25fr 0.75fr;
  }

  .bws-footer-contact-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  :root {
    --bws-header-height: 6.8rem;
  }

  .bws-header-inner {
    width: calc(100% - 2.4rem);
    gap: 1rem;
  }

  .bws-brand .custom-logo {
    max-width: 17rem;
    max-height: 4.6rem;
  }

  .bws-brand-mark {
    width: 3.9rem;
    height: 3.9rem;
    flex-basis: 3.9rem;
    border-radius: 1.1rem;
  }

  .bws-brand-title {
    font-size: 2.1rem;
  }

  .bws-brand-tagline {
    display: none;
  }

  .bws-menu-toggle {
    width: 4.2rem;
    height: 4.2rem;
  }

  .bws-mobile-panel {
    left: 1rem;
    right: 1rem;
  }

  .bws-site-footer {
    padding: 4rem 1.6rem 2.2rem;
  }

  .bws-footer-cta {
    gap: 2rem;
    padding-bottom: 3.2rem;
  }

  .bws-footer-cta p,
  .bws-footer-description {
    font-size: 1.45rem;
  }

  .bws-footer-cta-button {
    width: 100%;
    min-height: 5rem;
  }

  .bws-footer-main {
    grid-template-columns: 1fr;
    gap: 3.2rem;
    padding: 3.2rem 0;
  }

  .bws-footer-contact-col {
    grid-column: auto;
  }

  .bws-footer-brand,
  .bws-footer-col,
  .bws-footer-bottom > * {
    width: min(100%, 38rem);
    margin-inline: auto;
  }

  .bws-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bws-site-header *,
  .bws-site-footer *,
  .bws-mobile-panel * {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
