/* design and design systems

FONT SIZE SYSTEM (px)
10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 /  52 / 62 / 74 / 86 / 98

font weight:
default: 400
500 -> medium
600-> semi-bold
700-> bold
800-> very bold

line height:
default: 1;
1.05
1.2
1.6

--02 colors
-Primary: #f06595
-Tints: #fff0f6
-Accents: #f06595
-Greys: #fff

--05 SHADOWS

-- 06 border-radius
default: 9px / 11px

-- 07 whitespace
-letter spacing: -0.5px / 0.75px

SPACING SYSTEM (px)
2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128
*/

:root {
  --color-primary: #f06595;
  --color-primary-light: #f7aac4;
  --color-tint: #fff0f6;
  --color-tint-dark: #ffd6e7;
  --color-text-dark: #2f3e46;
  --color-text-mid: #555;
  --color-white: #ffffff;
  --color-bg: #fafafa;

  --shadow-sm: 0 4px 16px rgba(240, 101, 149, 0.08);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.1);

  --radius-sm: 9px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1;
  font-weight: 400;
  color: var(--color-text-mid);
  background-color: var(--color-bg);
}

/* =========================================
   Buttons
   ========================================= */

.btn {
  display: inline-block;
  padding: 1.4rem 2.4rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

/* =========================================
   NAVIGATION
   ========================================= */

.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.6rem 3rem;
  transition:
    background-color 0.35s ease,
    box-shadow 0.35s ease,
    padding 0.35s ease;
}

.main-nav.scrolled {
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(240, 101, 149, 0.1);
  padding: 1rem 3rem;
}

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

.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.nav-logo-main {
  height: 5.6rem;
  width: auto;
  transition: opacity 0.25s ease;
}

.logo-pink {
  display: none;
}

.main-nav.scrolled .logo-white {
  display: none;
}

.main-nav.scrolled .logo-pink {
  display: block;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 3.2rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition:
    color 0.2s ease,
    opacity 0.2s ease;
  position: relative;
  padding-bottom: 0.4rem;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--color-primary);
  transition: width 0.25s ease;
}

.nav-links a:hover {
  opacity: 0.85;
}

.nav-links a:hover::after {
  width: 100%;
}

.main-nav.scrolled .nav-links a {
  color: var(--color-text-dark);
}

.main-nav.scrolled .nav-links a:hover {
  color: var(--color-primary);
  opacity: 1;
}

/* =========================================
   SECTION HEADINGS (shared pattern)
   ========================================= */

.section-heading {
  text-align: center;
  margin-bottom: 0.8rem;
}

.section-label {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 1rem;
  opacity: 0.85;
}

.header,
.search-bar-header,
.what-to-expect-header {
  font-size: 3.6rem;
  color: var(--color-text-dark);
  font-weight: 700;
  margin: 0.8rem 0 4rem;
  line-height: 1.1;
  text-align: center;
  letter-spacing: -0.02em;
}

/* =========================================
   CTA SECTION
   ========================================= */

.cta-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, #e04f82 100%);
  padding: 9rem 3rem;
  text-align: center;
}

.cta-section {
  width: 100%;
  height: 45vh;
  min-height: 600px;
  background-image: url('https://allergydoc.co.za/wp-content/uploads/Running-in-field.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Subtle right-side gradient for text legibility */
.cta-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to left,
    rgba(30, 10, 20, 0.55) 0%,
    rgba(30, 10, 20, 0.25) 50%,
    transparent 100%
  );
  pointer-events: none;
}

.cta-box {
  max-width: 680px;
  margin: 0 auto;
  background-color: #d94f7d;
  padding: 4.8rem 3.2rem;
  border-radius: 15px;
  z-index: 3;
}

.cta-heading {
  font-size: 3.6rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

.cta-description {
  font-size: 1.7rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.65;
  margin-bottom: 3.6rem;
}

.btn-cta:link,
.btn-cta:visited {
  background-color: var(--color-white);
  color: var(--color-primary);
  font-size: 1.6rem;
  padding: 1.6rem 3.6rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

.btn-cta:hover,
.btn-cta:active {
  background-color: var(--color-tint);
  color: var(--color-primary);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
}

/* =========================================
   FOOTER
   ========================================= */

.footer {
  background-color: #1e1215;
  color: rgba(255, 255, 255, 0.65);
  padding: 6rem 3rem 3rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 5rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  height: 5rem;
  width: auto;
  margin-bottom: 1.6rem;
  opacity: 0.9;
}

.footer-tagline {
  font-size: 1.45rem;
  line-height: 1.6;
  max-width: 28rem;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 1.45rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--color-primary-light);
}

.footer-contact p {
  font-size: 1.45rem;
  line-height: 1.65;
}

.footer-contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 1.45rem;
  line-height: 1.55;
}

.footer-contact-item + .footer-contact-item {
  margin-top: 1.2rem;
}

.footer-contact-item span {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.footer-contact-item a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact-item a:hover {
  color: var(--color-primary-light);
}

.footer-bottom {
  max-width: 1200px;
  margin: 2.4rem auto 0;
  text-align: center;
  font-size: 1.3rem;
  opacity: 0.45;
}

/* =========================================
   IMAGE LOADING SKELETON
   ========================================= */

.img-loading {
  position: relative;
  background-color: #f0e4ea;
  overflow: hidden;
}

.img-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 25%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 75%
  );
  background-size: 200% 100%;
  animation: img-shimmer 1.4s ease infinite;
  z-index: 1;
  pointer-events: none;
}

@keyframes img-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.img-loading img {
  opacity: 0;
}

.img-loaded img {
  opacity: 1;
  transition: opacity 0.35s ease;
}

/* =========================================
   SCROLL REVEAL
   ========================================= */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* =========================================
   HAMBURGER MENU
   ========================================= */

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.8rem;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease;
  z-index: 101;
}

.nav-hamburger:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

.main-nav.scrolled .nav-hamburger:hover {
  background-color: rgba(240, 101, 149, 0.1);
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-white);
  border-radius: 2px;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease,
    background-color 0.25s ease;
}

.main-nav.scrolled .hamburger-line {
  background-color: var(--color-text-dark);
}

.nav-hamburger.open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-hamburger.open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================================
   FLOATING BOOK BUTTON
   ========================================= */

.floating-book-btn {
  position: fixed;
  bottom: 3rem;
  right: 3rem;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.4rem 2.2rem;
  background-color: var(--color-primary);
  color: var(--color-white);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 50px;
  box-shadow: 0 8px 28px rgba(240, 101, 149, 0.42);
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    background-color 0.22s ease,
    box-shadow 0.22s ease;
  pointer-events: none;
}

.floating-book-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.floating-book-btn:hover {
  background-color: #d94f7d;
  box-shadow: 0 12px 36px rgba(240, 101, 149, 0.5);
  transform: translateY(-2px);
}

.floating-book-btn svg {
  width: 1.8rem;
  height: 1.8rem;
  flex-shrink: 0;
}
