:root {
  --navy: #0A192F;
  --mango: #FFC300;
  --grey-light: #F3F4F6;
  --grey-mid: #9CA3AF;
  --grey-dark: #374151;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--navy);
  color: var(--grey-dark);
}

/* Unique Floating Pill Header */
header {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  /* height: 100px; */
  max-width: 1000px;
  background-color: var(--grey-light);
  border-radius: 50px;
  box-shadow: 0 15px 35px rgba(10, 25, 47, 0.2);
  z-index: 1000;
  border: 1px solid rgba(255, 195, 0, 0.3);
  /* Mango subtle border */
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1.5rem;
  position: relative;
}

.brand {
  color: var(--mango);
  font-size: 1.6rem;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: 1px;
  text-transform: lowercase;
}

/* .brand::before {
  content: '{ ';
  color: var(--grey-mid);
}

.brand::after {
  content: ' }';
  color: var(--grey-mid);
} */

.menu-toggle {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 1001;
  padding: 8px;
  background: var(--grey-dark);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  justify-content: center;
  align-items: center;
}

.hamburger span {
  width: 20px;
  height: 2px;
  background-color: var(--mango);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.nav-links a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.nav-links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--mango);
  border-radius: 30px;
  z-index: -1;
  transform: scale(0);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.nav-links a:hover::before {
  transform: scale(1);
  opacity: 1;
}

.logo-navbar {
  width: 14rem;
  /* height: 2rem; */
  /* padding: 1rem 0 1rem 0; */
}

@media (max-width: 768px) {
  header {
    top: auto;
    bottom: 1.5rem;
    /* Moves to bottom on mobile! */
    left: 1.5rem;
    transform: none;
    width: calc(100% - 3.75rem - 60px);
    /* Leaves space for the WA button */
    height: 70px;
  }

  .logo-navbar {
    /* width: 14rem; */
    /* height: 2rem; */
    padding: 1rem 0 1rem 0;
  }

  .navbar {
    height: 100%;
    padding: 0 1.5rem;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: absolute;
    bottom: calc(100% + 1rem);
    /* Pops up from the bottom */
    left: 0;
    width: 100%;
    background-color: var(--navy);
    flex-direction: column;
    gap: 0.5rem;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
  }

  .nav-links a {
    display: block;
    padding: 1rem;
    text-align: center;
    border-radius: 15px;
    margin: 0 1rem;
  }

  .nav-links a::before {
    display: none;
  }

  .nav-links a:hover {
    background-color: var(--grey-dark);
    color: var(--mango);
  }

  .menu-toggle:checked~.nav-links {
    max-height: 300px;
    padding: 1rem 0;
    border: 1px solid rgba(255, 195, 0, 0.3);
    opacity: 1;
  }

  .menu-toggle:checked~.hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle:checked~.hamburger span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle:checked~.hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

main {
  flex: 1;
  padding: 2rem;
  padding-top: 7rem;
  /* Space for desktop header */
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

@media (max-width: 768px) {
  main {
    padding-top: 2rem;
    padding-bottom: 7rem;
    /* Space for mobile bottom header */
  }
}

section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--grey-mid);
}

section:last-child {
  border-bottom: none;
}

h1,
h2,
h3 {
  color: var(--grey-light);
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
  color: var(--grey-light);
  line-height: 1.6;
}

/* Forms */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem;
  border: 1px solid var(--grey-mid);
  border-radius: 4px;
}

.contact-form button {
  background-color: var(--mango);
  color: var(--navy);
  border: none;
  padding: 1rem;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.contact-form button:hover {
  background-color: #E6B000;
}

footer {
  background-color: var(--grey-dark);
  color: var(--grey-light);
  text-align: center;
  padding: 1.5rem;
  margin-top: auto;
}

footer a {
  color: var(--mango);
  text-decoration: none;
}

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

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-socials a {
  color: var(--grey-mid);
  transition: color 0.3s;
}

.footer-socials a:hover {
  color: var(--mango);
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icon a {
  padding: 0.5rem;
}

.social-icon a::before {
  display: none !important;
}

.social-icon a:hover {
  color: var(--mango) !important;
  background: transparent !important;
}

/* Scroll Spy Active State (Desktop Only) */
@media (min-width: 769px) {
  .nav-links a.active {
    color: var(--navy);
  }

  .nav-links a.active::before {
    transform: scale(1);
    opacity: 1;
  }
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* WhatsApp Chat Modal */
.whatsapp-modal {
  position: fixed;
  bottom: 6rem;
  right: 2rem;
  width: 320px;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  z-index: 999;
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.whatsapp-modal.active {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

/* ── Header ── */
.wa-header {
  background: #075E54;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  position: relative;
}

.wa-close-btn {
  position: absolute;
  top: 0.6rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  line-height: 0;
  transition: color 0.2s, background 0.2s;
}

.wa-close-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.wa-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #128C7E;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wa-header-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.wa-name {
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}

.wa-status {
  color: #a8e6cc;
  font-size: 0.75rem;
}

/* ── Chat Body ── */
.wa-chat-body {
  background-color: #ECE5DD;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.4) 0%, transparent 60%);
  padding: 0.75rem 1rem;
  min-height: 160px;
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.wa-timestamp {
  text-align: center;
  font-size: 0.7rem;
  color: #7a7a7a;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  padding: 2px 8px;
  align-self: center;
  margin-bottom: 0.25rem;
}

/* Incoming bubble */
.wa-bubble--in {
  background: #fff;
  border-radius: 0 10px 10px 10px;
  padding: 0.6rem 0.75rem 0.35rem;
  max-width: 85%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  align-self: flex-start;
  position: relative;
}

.wa-bubble--in p {
  margin: 0;
  font-size: 0.875rem;
  color: #111;
  line-height: 1.45;
}

/* Outgoing bubble */
.wa-bubble--out {
  background: #DCF8C6;
  border-radius: 10px 0 10px 10px;
  padding: 0.6rem 0.75rem 0.35rem;
  max-width: 85%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  align-self: flex-end;
}

.wa-bubble--out p {
  margin: 0;
  font-size: 0.875rem;
  color: #111;
  line-height: 1.45;
}

.wa-time {
  display: block;
  font-size: 0.65rem;
  color: #999;
  text-align: right;
  margin-top: 4px;
}

/* ── Input Area ── */
.wa-input-area {
  background: #F0F0F0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  border-top: 1px solid #ddd;
}

.wa-input {
  flex: 1;
  border: none;
  border-radius: 20px;
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
  background: #fff;
  outline: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.wa-send-btn {
  width: 38px;
  height: 38px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
}

.wa-send-btn:hover {
  background: #1DA851;
  transform: scale(1.08);
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 1.8rem;
    right: 1.5rem;
    width: 60px;
    /* Match height of navbar roughly or slightly bigger */
    height: 60px;
    font-size: 1rem;
  }
}