/* ============================================================
   RESCUER EDUSKILLS — GLOBAL CSS
   Pure HTML + CSS only. No JavaScript.
   Color Scheme: Purple · Blue · Green
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --purple:       #6C3FC5;
  --purple-dark:  #4B28A0;
  --purple-light: #9B72EF;
  --blue:         #2B6CB0;
  --blue-light:   #4299E1;
  --green:        #2F855A;
  --green-light:  #48BB78;
  --teal:         #319795;

  --white:        #FFFFFF;
  --off-white:    #F7F6FF;
  --light-gray:   #EEF1F8;
  --mid-gray:     #A0A9C0;
  --dark:         #1A1433;
  --text:         #2D2850;
  --text-light:   #5A5475;

  --grad-hero:    linear-gradient(135deg, #4B28A0 0%, #2B6CB0 55%, #319795 100%);
  --grad-card:    linear-gradient(135deg, #6C3FC5 0%, #4299E1 100%);
  --grad-green:   linear-gradient(135deg, #2F855A 0%, #319795 100%);

  --shadow-sm:    0 2px 8px rgba(108,63,197,.10);
  --shadow-md:    0 6px 24px rgba(108,63,197,.15);
  --shadow-lg:    0 16px 48px rgba(108,63,197,.20);

  --font-display: 'Cormorant Garamond', serif;
  --font-body:    'Outfit', sans-serif;

  --max-width:    1200px;
  --radius:       12px;
  --radius-lg:    20px;
  --ease:         all 0.3s cubic-bezier(.4,0,.2,1);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: hidden; }
body  { font-family: var(--font-body); color: var(--text); background: var(--white); line-height: 1.7; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; width: 100%; }
img   { max-width: 100%; height: auto; display: block; }
a     { color: inherit; text-decoration: none; }
ul    { list-style: none; }
input, select, textarea, button { -webkit-appearance: none; appearance: none; font-family: var(--font-body); }

/* Basic content protection layer */
#privacy-shield {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  color: #fff;
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  pointer-events: none;
}

@media print {
  html, body {
    display: none !important;
  }
}


/* ── Container ──────────────────────────────────────────────── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ════════════════════════════════════════════════════════════
   NAVBAR  (pure CSS checkbox hamburger)
   ════════════════════════════════════════════════════════════ */

/* Hide the checkbox */
#nav-toggle { display: none; }

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.97);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(108,63,197,.10);
  box-shadow: var(--shadow-sm);
  /* iOS safe area for notch */
  padding-top: env(safe-area-inset-top, 0);
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* ── Logo ── */
.logo-area { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

.logo-area > img,
.logo-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: contain;
  background: var(--white);
  border: 1px solid rgba(108,63,197,.14);
  padding: 2px;
}

.logo-box {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--grad-card);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 800;
  color: var(--white);
  letter-spacing: -1px;
  /* ↑ Replace with <img src="logo.png" alt="Logo" width="52" height="52"> */
}

.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text .brand   { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--purple); }
.logo-text .slogan  { font-size: 0.65rem; color: var(--teal); letter-spacing: .04em; font-weight: 500; }
.navbar .logo-text .slogan:last-child { color: #000; }

/* ── Desktop nav links ── */
.nav-links { display: flex; align-items: center; gap: 4px; }

.nav-links a {
  padding: 8px 15px;
  border-radius: 8px;
  font-size: .91rem;
  font-weight: 500;
  color: var(--text-light);
  transition: var(--ease);
}
.nav-links a:hover { color: var(--purple); background: rgba(108,63,197,.08); }
.nav-links a.active { color: var(--purple); background: rgba(108,63,197,.10); font-weight: 600; }

.nav-links .nav-cta {
  background: var(--grad-card);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(108,63,197,.35);
  margin-left: 4px;
}
.nav-links .nav-cta:hover { opacity: .9; transform: translateY(-1px); }

/* ── Hamburger label (visible on mobile) ── */
.hamburger-label {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger-label span {
  display: block;
  width: 24px; height: 2px;
  background: var(--purple);
  border-radius: 2px;
  transition: var(--ease);
}

/* Hamburger animation when checked */
#nav-toggle:checked ~ .navbar .hamburger-label span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
#nav-toggle:checked ~ .navbar .hamburger-label span:nth-child(2) { opacity: 0; }
#nav-toggle:checked ~ .navbar .hamburger-label span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ── Mobile menu drawer ── */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--light-gray);
  padding: 12px 20px 20px;
  gap: 4px;
}

.mobile-menu a {
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 500;
  color: var(--text);
  transition: var(--ease);
}
.mobile-menu a:hover, .mobile-menu a.active { background: rgba(108,63,197,.09); color: var(--purple); }

/* Show mobile menu when checkbox is checked */
#nav-toggle:checked ~ .navbar .mobile-menu { display: flex; }

/* ════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════ */
footer {
  background: var(--dark);
  color: rgba(255,255,255,.75);
  padding: 56px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand .logo-text .brand  { color: var(--purple-light); }
.footer-brand .logo-text .slogan { color: var(--teal); }
.footer-brand .logo-text .slogan:last-child {
  align-self: flex-start;
  color: #000;
  background: rgba(255,255,255,.92);
  border-radius: 999px;
  padding: 3px 8px;
  margin-top: 3px;
}
.footer-brand p { margin-top: 14px; font-size: .87rem; line-height: 1.75; max-width: 250px; }

.footer-col h4 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: .95rem;
  margin-bottom: 14px;
  font-weight: 600;
}
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li a { font-size: .87rem; color: rgba(255,255,255,.6); transition: var(--ease); }
.footer-col ul li a:hover { color: var(--purple-light); padding-left: 4px; }

.footer-contact p { font-size: .87rem; margin-bottom: 10px; display: flex; align-items: flex-start; gap: 8px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .80rem;
  color: rgba(255,255,255,.38);
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom span { color: var(--purple-light); }

.developer-credit {
  color: rgba(255,255,255,.65);
}

.developer-credit a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #000;
  background: rgba(255,255,255,.92);
  font-weight: 700;
  transition: var(--ease);
}

.developer-credit a:hover {
  background: var(--white);
  transform: translateY(-1px);
}

/* ════════════════════════════════════════════════════════════
   SHARED ELEMENTS
   ════════════════════════════════════════════════════════════ */

/* Section labels */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(108,63,197,.09);
  color: var(--purple);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.7rem);
  color: var(--dark);
  line-height: 1.2;
  font-weight: 700;
}
.section-title span { color: var(--purple); }

.section-subtitle {
  color: var(--text-light);
  font-size: 1.02rem;
  max-width: 560px;
  margin-top: 10px;
  line-height: 1.75;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--grad-card);
  color: var(--white);
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: .93rem;
  transition: var(--ease);
  box-shadow: 0 4px 16px rgba(108,63,197,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(108,63,197,.45); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--purple);
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: .93rem;
  border: 2px solid var(--purple);
  transition: var(--ease);
}
.btn-secondary:hover { background: var(--purple); color: var(--white); transform: translateY(-2px); }

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--purple);
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: .93rem;
  transition: var(--ease);
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,.18); }

/* ════════════════════════════════════════════════════════════
   PLACEHOLDER BOXES
   All marked with ↑ comments so you know what to replace
   ════════════════════════════════════════════════════════════ */

/* Generic banner placeholder */
.banner-ph {
  width: 100%;
  min-height: 80px;
  border: 2px dashed rgba(108,63,197,.28);
  border-radius: var(--radius);
  background: repeating-linear-gradient(-45deg, rgba(108,63,197,.04), rgba(108,63,197,.04) 10px, transparent 10px, transparent 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple);
  font-size: .85rem;
  font-weight: 500;
  /* ↑ DELETE this and place <img> or content here */
}

/* Image placeholder */
.img-ph {
  width: 100%;
  border: 2px dashed rgba(108,63,197,.25);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(108,63,197,.06), rgba(49,151,149,.06));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--purple);
  font-size: .85rem;
  font-weight: 500;
  /* ↑ Replace with <img src="..."> */
}
.img-ph .ph-icon { font-size: 3rem; opacity: .35; }

/* Map placeholder */
.map-ph {
  width: 100%; height: 340px;
  border: 2px dashed rgba(108,63,197,.22);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(108,63,197,.05), rgba(49,151,149,.05));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--purple);
  font-size: .9rem;
  font-weight: 500;
  /* ↑ Replace with Google Maps <iframe> */
}

/* ════════════════════════════════════════════════════════════
   PAGE HERO (inner pages)
   ════════════════════════════════════════════════════════════ */
.page-hero {
  background: var(--grad-hero);
  padding: 76px 0 52px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(155,114,239,.28) 0%, transparent 55%);
  pointer-events: none;
}
.page-hero-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .80rem; color: rgba(255,255,255,.60); margin-bottom: 18px; }
.breadcrumb a { color: rgba(255,255,255,.60); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb .sep { opacity: .5; }
.breadcrumb .cur { color: rgba(255,255,255,.95); }

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.3rem);
  color: var(--white);
  font-weight: 900; line-height: 1.1;
  max-width: 700px;
}
.page-hero h1 em { font-style: italic; color: #A3E4B4; }
.page-hero p { color: rgba(255,255,255,.80); font-size: 1.03rem; margin-top: 14px; max-width: 580px; line-height: 1.75; }

/* Page banner placeholder (inside hero) */
.page-banner-ph {
  margin-top: 30px;
  width: 100%; min-height: 90px;
  border: 2px dashed rgba(255,255,255,.28);
  border-radius: var(--radius);
  background: rgba(255,255,255,.09);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.65);
  font-size: .85rem; font-weight: 500;
  backdrop-filter: blur(6px);
  /* ↑ Replace with actual banner / image */
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — GLOBAL
   ════════════════════════════════════════════════════════════ */
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

@media (max-width: 1024px) {
  .nav-links a {
    padding: 8px 10px;
    font-size: .84rem;
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger-label { display: flex; }
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  /* Fix mobile-menu appearing inside navbar correctly */
  #nav-toggle:checked ~ .navbar .mobile-menu { display: flex; }
  .mobile-menu a { min-height: 44px; } /* Touch target */
}

@media (min-width: 769px) {
  .hamburger-label { display: none !important; }
  .mobile-menu { display: none !important; }
  .nav-links { display: flex; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .nav-inner { padding: 0 16px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ── Gallery mobile grid ───────────────────────────────────── */
.gallery-grid {
  display: grid;
  gap: 14px;
}
@media (min-width: 900px)  { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 899px)  { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
@media (max-width: 380px)  { .gallery-grid { grid-template-columns: 1fr; gap: 10px; } }

/* Header login entry */
.nav-links a[href="admin.html"] {
  border: 1px solid rgba(108,63,197,.25);
  color: var(--purple);
  font-weight: 600;
  background: rgba(108,63,197,.06);
}
.nav-links a[href="admin.html"]:hover {
  background: rgba(108,63,197,.12);
}
.mobile-menu a[href="admin.html"] {
  border: 1px solid rgba(108,63,197,.22);
  color: var(--purple);
  font-weight: 600;
  margin-bottom: 4px;
}
