/* ==========================================================================
Project: Harmony Homes Youth Services
Brand: Ras'tani Creatives
Tagline: Be Seen. Be Heard. Be Known.
Version: 1.0
Author: Ras'tani Creatives (The Smith Collaborative LLC)
File: harmonyhomesv2.css
Description: Core site styles - organized, optimized, accessible
Last Updated: December 2025
========================================================================== */

/* =============================================================
01. Global Tokens & Ras’tani Theme Variables
============================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}
:root {
  /* Color */
  --color-text: #24252b;
  --color-text-light: #fff;
  --color-text-teal: #009fb7;
  --color-text-dark: #002163;
  --color-heading: #222;
  --color-heading-alt: #0097b2;

    --accent-icon: #fff;
    --dark-bg: #002163;
    --text-body: #555;


  /* Background */
  --color-bg-white: #fff;
  --color-bg-teal: #009fb7;
  --color-bg-off-blk: #2e2f3d;

  /* Grayscale */
  --color-gray-100: #f8f9fa;
  --color-gray-200: #e9ecef;
  --color-gray-300: #dee2e6;
  --color-gray-400: #ced4da;
  --color-gray-500: #adb5bd;
  --color-gray-600: #6c757d;
  --color-gray-700: #495057;
  --color-gray-800: #343a40;
  --color-gray-900: #212529;

  /* Typography  */
  --font: "Inter", sans-serif;

  --container-max: 1300px;
  --header-h: 80px;
  --card-radius: 12px;
  --card-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  --card-border: 1px solid #e6e6e6;
}

html,
body {
  margin: 0;
  width: 100%;
  font-family: var(--font), sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-bg-white);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);

  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
:focus-visible {
  outline: 2px solid var(--color-bg-teal);
  outline-offset: 2px;
}

html:focus-within {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }
}

h6,
.h6,
h5,
.h5,
h4,
.h4,
h3,
.h3,
h2,
.h2,
h1,
.h1 {
  color: var(--color-heading);
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 500;
  line-height: 1.2;
}

h1,
.h1 {
  font-size: calc(1.375rem + 1.5vw);
}
@media (min-width: 960px) {
  h1,
  .h1 {
    font-size: 2.5rem;
  }
}

h2,
.h2 {
  font-size: calc(1.325rem + 0.9vw);
}
@media (min-width: 960px) {
  h2,
  .h2 {
    font-size: 2rem;
  }
}

h3,
.h3 {
  font-size: calc(1.3rem + 0.6vw);
}
@media (min-width: 960px) {
  h3,
  .h3 {
    font-size: 1.75rem;
  }
}

h4,
.h4 {
  font-size: calc(1.275rem + 0.3vw);
}
@media (min-width: 960px) {
  h4,
  .h4 {
    font-size: 1.5rem;
  }
}

h5,
.h5 {
  font-size: 1.25rem;
}

h6,
.h6 {
  font-size: 1rem;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}
ul,
ol,
li,
dl,
dt,
dd,
hgroup,
p,
blockquote,
figure,
form,
fieldset,
input,
legend,
pre,
abbr,
button {
  margin: 0;
  padding: 0;
}
ul,
ol,
li,
dl,
dt,
dd {
  list-style: none;
}
@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}
.btn {
  display: inline-block;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  background-color: transparent;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  border-radius: 0.25rem;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.btn:hover {
  color: #212529;
  background: var(--color-bg-teal);
}
.btn-primary {
  color: #fff;
  background-color: #0d6efd;
  border-color: #0d6efd;
}
.btn-primary:hover {
  color: #fff;
  border-color: #0a58ca;
}
.btn-primary-outline {
  color: var(--color-text-dark);
  background-color: transparent;
  border: 1px solid #0d6efd;
}
.btn-primary-outline:hover {
  color: #fff;
  border-color: #0a58ca;
}
.btn-secondary {
  color: #fff;
  background-color: #6c757d;
  border-color: #6c757d;
}
.btn-secondary:hover {
  color: #fff;
  background-color: #5c636a;
  border-color: #565e64;
}

.icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #0097b2;
  border-radius: 8px;
}
.icon i {
  font-size: 1.55rem; /* increase size */
  color: var(--color-text-light); /* or your accent color */
}
.card {
  background: var(--color-bg-white);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-width: 0;
  padding: 16px;
}
.img-fluid {
  display: block;
  max-width: 100%;
  height: auto;
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

input,
textarea {
  width: 100%;
  border: thin solid var(--color-gray-300);
  padding: 0.25rem 1rem;
  border-radius: 3px;
}
input {
  min-height: 60px;
}
input::placeholder,
textarea::placeholder {
  color: var(--color-gray-500);
  font-size: 1rem;
}
.container {
  position: relative;
  padding: 0 0.5rem;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
}
/* ======================= ****** 
************************************ Grid */
.main-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(4, auto);
  gap: 4rem;
  margin-bottom: 4rem;
}
/* ================================
    Header / Nav
================================ */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  padding-inline: 0.5rem;
  height: var(--header-h);
  background: rgba(248, 249, 250, 0.9);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  z-index: 100000;
}
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-h);
}
.branding {
  display: flex;
  gap: 12px;
  align-items: center;
}
.site-header .logo {
  width: 32px;
}
.site-header h1 {
  font-size: 0.8rem;
  width: 110px;
  margin: 0;
}
.site-header .nav {
  display: flex;
  height: var(--header-h);
  align-items: center;
  gap: 12px;
}
.main-nav {
  position: absolute;
  top: calc(var(--header-h));
  left: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
  width: 100%;
  background: var(--color-bg-teal);
  height: 100vh;
  max-height: 0;
}
nav.main-nav.open {
  max-height: 100vh;
}
.main-nav ul {
  width: 100%;
}
.main-nav a {
  display: inline-block;
  text-align: center;
  color: var(--color-gray-300);
  text-decoration: none;
  margin-bottom: 0.2rem;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
  width: 100%;
}
.main-nav ul li:last-child a {
  margin-bottom: 0;
}
.main-nav a:hover {
  background-color: var(--color-gray-200);
  color: var(--color-text-dark);
}
.going-ham {
  position: relative;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  cursor: pointer;
  transition: all 0.5s ease-in-out;
  margin-right: 16px;
}
.x-burger {
  width: 30px;
  height: 3px;
  background-color: black;
  border-radius: 1px;
  transition: all 0.5s ease-in-out;
}
.x-burger::before,
.x-burger::after {
  content: "";
  position: absolute;
  border-radius: 1px;
  width: 30px;
  height: 3px;
  background: black;
  transition: all 0.5s ease-in-out;
}
.x-burger::before {
  transform: translateY(-8px);
}

.x-burger::after {
  transform: translateY(8px);
}
.going-ham.open .x-burger {
  transform: translateX(-32px);
  background: transparent;
}

.going-ham.open .x-burger::before {
  transform: rotate(45deg) translate(15px, -15px) scale(0.75);
}

.going-ham.open .x-burger::after {
  transform: rotate(-45deg) translate(15px, 15px) scale(0.75);
}
/* ================================
   Desktop Navigation
================================ */
@media screen and (min-width: 760px) {
  .main-nav {
    position: static;
    background: transparent;
    height: auto;
    max-height: var(--header-h);
    width: auto;
    display: flex;
    gap: 1.75rem;
  }
  .main-nav ul {
    display: flex;
    align-items: center;
  }
  .main-nav li {
    margin-left: 12px;
    display: inline-block;
  }
  .main-nav a {
    color: var(--color-text-dark);
    padding: 4px 8px;
    margin: 0;
  }

  .going-ham {
    display: none;
  }
}
/* =============================================================
xx. hero Section
============================================================= */
.hero {
  position: relative;
  background: linear-gradient(
    180deg,
    rgba(0, 151, 178, 0.3) 20%,
    rgba(3, 150, 176, 0.2) 49%,
    rgba(0, 151, 178, 0.1) 63%,
    rgba(0, 151, 178, 0.05) 79%,
    rgba(255, 255, 255, 0) 100%
  );
  margin-top: var(--header-h);
  padding: 3rem 0;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}
.hero .info__header {
  margin-bottom: 2rem;
}
.hero h2 {
  color: var(--color-bg-teal);
  font-size: 1.5rem;
}
.hero figure,
.hero .info {
  max-width: 777px;
}
.hero .btn {
  display: block;
  margin-bottom: 1rem;
  line-height: 2.5;
}
@media screen and (min-width: 600px) {
  .hero .info {
    display: flex;
    gap: 2rem;
  }
  .btn__group {
    width: 100%;
  }
}
@media screen and (min-width: 600px) {
}
@media screen and (min-width: 900px) {
  .hero .container {
    flex-direction: row-reverse;
  }
  .hero .info {
    flex-direction: column;
    max-width: 400px;
    gap: 0;
  }
  .hero .btn__group {
    display: flex;
    justify-content: space-between;
    max-width: 300px;
  }
  .hero .btn {
    display: inline-block;
    min-width: 128px;
  }
}
/* =============================================================
xx. About Section
============================================================= */
.about h2 {
  font-weight: 600;
}
.about h2 span {
  display: block;
  color: var(--color-heading-alt);
  font-size: 1.55rem;
  line-height: 1.75;
}
.about h2 {
  margin-bottom: 1.5rem;
}
.about .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.about header {
  max-width: 600px;
  margin-bottom: 2rem;
}
.about header p {
  margin-bottom: 1rem;
}
.about figure {
  margin-bottom: 4rem;
}
.about article {
  margin-bottom: 4rem;
}
.about article img {
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
}

.about-text {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.about p {
  margin-top: 0.25rem;
}
.about__card {
  width: 100%;
  box-shadow: var(--card-shadow);
  border-radius: var(--card-radius);
  padding: 4rem 1rem 4rem 1rem;
}
.about__card p {
  margin-bottom: 0.75rem;
}
.about__card em {
  color: var(--color-text-teal);
  font-weight: 600;
}
@media screen and (min-width: 700px) {
  .about__card {
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    padding: 1rem;
    align-items: center;
    margin-top: 4rem;
  }
  .about__card figure {
    margin-bottom: 0;
    max-width: 600px;
  }
}
/***************************
********************************* Values */
.values {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
.value {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1rem;
}
.value h3 {
  font-size: 1.45rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
}
.core-values img,
.expectation img {
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
}
.core-values .about-text,
.expectation .about-text {
  max-width: 1280px;
}

@media screen and (min-width: 600px) {
  .core-values,
  .expectation {
    margin-top: 8rem;
  }
  .core-values .values,
  .expectation .values {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media screen and (min-width: 900px) {
  .core-values .values {
    grid-template-columns: repeat(3, 1fr);
  }
}
/***************************
********************************* expectation */

@media screen and (min-width: 1100px) {
  .expectation {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 4rem;
    align-items: stretch;
    margin-top: 8rem;
  }
  .expectation h2 {
    font-size: 1.75rem;
  }
  .expectation .values {
    grid-template-columns: 1fr;
  }

  /* Ensure the image column fills the grid height and preserves aspect ratio */
  .expectation figure {
    margin: 0;
    overflow: hidden;
    align-self: stretch;
    display: block;
    height: 100%;
  }

  .expectation figure img {
    display: block;
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: cover; /* preserves aspect ratio while filling height (may crop) */
  }
}
/* =============================================================
xx. Section -- Services
============================================================= */
.services {
  background: var(--color-bg-teal);
  padding: 4rem 0;
}
.services .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.services-intro,
.services-intro h2 {
  color: var(--color-text-light);
  text-align: center;
  margin-bottom: 2rem;
  max-width: 400px;
}
.services-intro h2 {
  font-weight: 600;
}
.services .card {
  background: var(--color-bg-white);
  margin-bottom: 2rem;
    /* make space for the circular key */
    padding: 1rem 1rem 26px;
    position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1rem;
  align-items: start;
  min-height: 100px; /* increase initial height so heading won't overlap */
  max-width: 455px;
}
.services .card h3 {
  font-size: 1.15rem;
  font-weight: 500;
}
/* Services card: icon column + content column */
.services .card .icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.services .card .services-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Panel (accordion) - hidden by default and expands when card has .open */
.services .card .panel {
  grid-column: 1 / -1;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  padding-top: 0.5rem;
}

.services .card.open .panel {
  max-height: 600px; /* large enough to show content; JS will set exact height when opening */
}

/* Key button (circle) at lower-right of the card */
.services .card .key {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #222;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  border: none;
}

.services .card .key:focus {
  outline: 3px solid rgba(0, 159, 183, 0.25);
  outline-offset: 2px;
}

.services .card .key i {
  transition: transform 0.3s ease;
  display: inline-block;
}

.services .card .key.open i {
  transform: rotate(180deg);
}
.services .card .key.open {
  background: var(--color-bg-teal);
}
/* Ensure the icon column doesn't stretch the circle */
.services .card .icon i {
  font-size: 1.25rem;
}

/* Small adjustment for panel content spacing */
.services .card .panel p,
.services .card .panel ul {
  margin: 0.25rem 0 0.75rem 0;
}

.services .card.open .panel ul {
  padding-bottom: 1rem; /* extra space when panel is expanded */
}
.bi {
  color: var(--accent-icon);
}
.bi-dot {
  width: 24px;
  height: 24px;
}
.services ul {
  padding-left: 0;
  margin: 1rem 0 0 0;
}

.services li {
  display: flex;
  align-items: center;
  gap: 8px; /* space between dot and text */
  list-style: none;
  margin-bottom: 0.5rem;
}

.services li::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  background-image: url("data:image/svg+xml,%3Csvg width='8' height='8' viewBox='0 0 8 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='4' cy='4' r='4' fill='%230097B2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}
@media screen and (min-width: 760px) {
  .services {
    padding: 10rem 0;
  }
  .services .services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: stretch;
  }

  /* make each card fill its grid cell and display content normally (no accordion) */
  .services .card {
    align-self: stretch;
    height: 100%;
    min-height: 0;
    max-width: none;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 50px 1fr;
  }
  .services .services-info h3 {
    height: 40px;
    font-weight: 600;
    font-size: 1.25rem;
  }
  .services .services-info p {
    height: 75px;
  }
  /* show panel content on desktop and remove accordion constraints */
  .services .card .panel {
    max-height: none !important;
    overflow: visible !important;
    display: block;
  }

  /* hide the floating key on larger screens */
  .services .card .key {
    display: none !important;
  }

  /* remove extra bottom padding inside lists on desktop */
  .services .card .panel ul {
    padding-bottom: 0 !important;
  }
}
@media screen and (min-width: 1060px) {
  .services .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}
/* =============================================================
xx. Section -- CTA
============================================================= */
.cta {
  padding: 7rem 1rem;
  text-align: center;
}
.cta .container {
  color: var(--color-text-light);
  font-size: 1.25rem;
  font-weight: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  height: 500px;
  background: var(--color-bg-teal);
  border-radius: var(--card-radius);
}
.cta p {
  max-width: 405px;
}
.life-line {
  font-weight: 600;
  font-size: 3rem;
  line-height: 1;
}

.life-line em {
  display: block;
  font-size: 1.45rem;
  font-weight: 300;
}
.cta a {
  color: var(--color-text-light);
  text-decoration: none;
  border-bottom: 1px dashed white;
  padding-bottom: 2px;
  cursor: pointer;
  white-space: nowrap; /* keep CTA link text on a single line */
}
.cta a:hover {
  border-bottom: 1px solid var(--color-text-dark);
  color: var(--color-text-dark);
}
@media screen and (min-width: 700px) {
  .cta {
    padding: 12rem 1rem;
  }
  .cta .container {
    height: 400px;
  }
}
/* =============================================================
xx. Contact - Section
============================================================= */
.contact {
  padding: 4rem 0;
}
.contact__info > h3,
.contact__form h3 {
  font-size: 1.55rem;
  margin-bottom: 2rem;
}
.contact__intro h2 {
    font-size: 2.55rem;
    font-weight: 600;
}
.contact__intro {
  text-align: center;
  margin-bottom: 2rem;
}
.contact__info {
  margin-bottom: 8rem;
}
.contact__info .value__content h3 {
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}
.contact__info .card {
  padding: 0;
  margin-top: 2rem;
}
.contactForm .form-group {
  margin-bottom: 1.5rem;
  position: relative;
}
.contactForm label {
  display: inline-block;
  color: var(--color-text);
  margin-top: 0.745rem;
  margin-bottom: 0.575em;
}
.contactForm input,
.contactForm textarea {
  background: rgba(191, 229, 236, 0.15);
  border-radius: 8px;
  border: none;
}
.contactForm textarea {
  min-height: 250px;
  resize: vertical;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.contactForm .btn {
  line-height: 3.5;
  width: 100%;
  margin-top: 1.5rem;
}
/* Desktop starts here */
@media screen and (min-width: 650px) {
  .contact h2 {
    font-size: 1.85rem;
  }
  .contact__info > h3,
  .contact__form h3 {
    margin-bottom: 2rem;
    font-size: 1.55rem;
  }
  .contact__group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 6rem 0;
  }
  .contact__info {
    max-width: 345px;
  }
}
/*  icon validation  */
.validation-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  pointer-events: none;
  opacity: 0;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.validation-icon.valid {
  color: #21ce99; /* success green */
  opacity: 1;
}

.validation-icon.invalid {
  color: #e74c3c; /* error red */
  opacity: 1;
}

.validation-icon.hidden {
  opacity: 0;
}
/* ============================================================= xx. footer - Section ============================================================= */
footer {
  padding: 4rem 0;
  background: var(--color-bg-off-blk);
}
.footer-header {
  display: flex;
  width: 350px;
  gap: 0.5rem;
  margin-bottom: 2rem;
  align-items: center;
}
footer h2,
footer h3,
footer h4 {
  color: var(--color-text-light);
}
footer h2,
footer h3 {
  text-align: center;
  margin: 0;
  font-weight: 300;
}
.footer-header h2 {
  font-size: 16px;
  margin-bottom: 0.25rem;
}
.footer-header h3 {
  font-size: 14px;
}
footer h4 {
  font-size: 18px;
}
footer aside {
  margin-bottom: 2rem;
}
footer aside a {
  color: var(--color-text-light);
  font-size: 14px;
  text-decoration: none;
  line-height: 3;
}
footer aside p {
  color: var(--color-text-light);
  margin-bottom: 0.55rem;
}

footer .btn {
  width: 100%;
  max-width: 400px;
  height: 48px;
}
.footer-header img {
  width: 50px;
}
@media screen and (min-width: 650px) {
  .site-footer .container {
    display: grid;
    grid-template-columns: 2fr 1fr;
  }
}
.legal hr {
  border: none;
  height: 1px;
  width: 100%;
  margin: 3.5rem 0 1rem;
  background: var(--color-gray-700);
}
.legal p {
  color: var(--color-gray-600);
  font-size: 0.8rem;
  text-align: center;
}
.legal a {
  color: var(--color-text-teal);
  text-decoration: none;
}
.legal a:hover {
  text-decoration: underline;
}
@media screen and (min-width: 850px) {
  .site-footer .container {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr;
  }
}
@media screen and (min-width: 960px) {
  .site-footer .container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    justify-items: center;
  }
  .site-footer aside {
    width: fit-content;
  }
}
/* =============================================================
xx. Page Load & Section Fade Animations
============================================================= */

/* Base hidden state */
.fade-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s ease-out, transform 0.9s ease-out;
}

/* When visible (triggered by JS observer) */
.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Page fade-in */
body {
  opacity: 0;
  transition: opacity 0.6s ease-out;
  background-color: #fff;
}

body.loaded {
  opacity: 1;
}

/* Hero special treatment: load immediately */
.hero {
  transition-delay: 0ms !important;
}
.hero.visible .hero_img img {
  opacity: 1;
  transform: scale(1);
}
.hero_img img {
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}
/* ==========================================================================
   Popup / Modal
   ========================================================================== */

.popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 33, 99, 0.65); /* deep blue overlay */
    backdrop-filter: blur(4px);

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.popup.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.popup__content {
    background: #ffffff;
    border-radius: 20px;
    max-width: 450px;
    width: 92%;
    padding: 2.5rem 2rem 2rem;
    text-align: center;
    position: relative;

    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.2);

    transform: translateY(20px) scale(0.9);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.popup.show .popup__content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Title + body */
#popupTitle {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark-bg, #002163);
}

#popupDesc {
    color: var(--text-body, #555555);
    font-size: 1rem;
    line-height: 1.6;
}

/* Close button */
.popup__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1.1rem;
    opacity: 0.7;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.popup__close .bi {
    color: var(--color-gray-900);
}
.popup__close:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Icon styles */
.popup__icon {
    margin-bottom: 1.25rem;
}

.popup__icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 999px;
    background: var(--accent-icon, #009fb7);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    color: #ffffff;
    font-size: 2rem;
}

/* bounce animation for icon */
.popup__icon-circle.animate {
    animation: popup-bounce 0.55s ease-out;
}

@keyframes popup-bounce {
    0% {
        transform: scale(0.4);
        opacity: 0;
    }
    60% {
        transform: scale(1.05);
        opacity: 1;
    }
    100% {
        transform: scale(1);
    }
}

/* ======================================================================
   Variant colors: success / error / info
   ====================================================================== */

/* Success: green */
.popup--success .popup__icon-circle {
    background: #16a34a; /* green-600 */
}

.popup--success #popupTitle {
    color: #166534; /* green-700 */
}

/* Error: red */
.popup--error .popup__icon-circle {
    background: #dc2626; /* red-600 */
}

.popup--error #popupTitle {
    color: #b91c1c; /* red-700 */
}

/* Info: blue (default) */
.popup--info .popup__icon-circle {
    background: #009fb7;
}

.popup--info #popupTitle {
    color: #002163;
}

/* Small responsive tweak */
@media (max-width: 500px) {
    .popup__content {
        max-width: 92%;
        padding: 2rem 1.5rem 1.75rem;
    }

    #popupTitle {
        font-size: 1.5rem;
    }

    #popupDesc {
        font-size: 0.95rem;
    }
}
