/* ==========================================================================
   Rakna Skilled Services — Stylesheet
   ========================================================================== */

:root {
  --navy: #142766;
  --navy-dark: #0b1740;
  --navy-light: #21388c;
  --gold: #f0c331;
  --gold-dark: #d4a51c;
  --ink: #1c2333;
  --gray-700: #4a5164;
  --gray-500: #6d7488;
  --gray-200: #e7e9f2;
  --gray-100: #f4f5fa;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(11, 23, 64, 0.06);
  --shadow-md: 0 8px 24px rgba(11, 23, 64, 0.1);
  --shadow-lg: 0 20px 48px rgba(11, 23, 64, 0.16);
  --radius: 14px;
  --radius-sm: 8px;
  --container: 1180px;
  --transition: 0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy-dark);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 96px 0; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: rgba(240, 195, 49, 0.12);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section-head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 14px;
}

.section-head p {
  color: var(--gray-500);
  font-size: 1.05rem;
}

.section-head.align-left {
  margin: 0 0 48px;
  text-align: left;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
  box-shadow: 0 10px 24px rgba(240, 195, 49, 0.35);
}
.btn-primary:hover { background: var(--gold-dark); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--white); transform: translateY(-2px); }

.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy-light); transform: translateY(-2px); }

.btn-block { width: 100%; justify-content: center; }

/* ---------------- Header ---------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.site-header.scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--gray-200);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 52px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text .brand-name { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.08rem; color: var(--navy-dark); }
.brand-text .brand-sub { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-dark); font-weight: 600; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  padding: 10px 18px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--gray-700);
  border-radius: 999px;
  transition: background var(--transition), color var(--transition);
}
.nav-links a:hover { background: var(--gray-100); color: var(--navy); }
.nav-links a.active { background: var(--navy); color: var(--white); }
.nav-links a.nav-cta,
.nav-links a.nav-cta:hover { color: var(--white); }

.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1100;
}
.nav-toggle span {
  width: 26px; height: 2.5px;
  background: var(--navy-dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  background: radial-gradient(1100px 600px at 85% -10%, rgba(240, 195, 49, 0.16), transparent 60%),
              linear-gradient(150deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-light) 100%);
  color: var(--white);
  padding: 176px 0 120px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -140px; right: -140px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(240,195,49,0.18), transparent 70%);
  border-radius: 50%;
}
.hero .watermark {
  position: absolute;
  right: -60px;
  bottom: -80px;
  width: 460px;
  opacity: 0.08;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 720px; }
.hero-inner.center { max-width: 780px; margin: 0 auto; text-align: center; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(240, 195, 49, 0.15);
  border: 1px solid rgba(240, 195, 49, 0.35);
  color: var(--gold);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  margin-bottom: 20px;
}
.hero h1 span { color: var(--gold); }
.hero p.lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 36px;
  max-width: 620px;
}
.hero-inner.center p.lead { margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-inner.center .hero-actions { justify-content: center; }

.hero-page {
  padding: 150px 0 90px;
}
.hero-page h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
.breadcrumb {
  display: flex; gap: 8px; align-items: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.92rem;
  margin-top: 14px;
}
.breadcrumb a { color: var(--gold); font-weight: 600; }

/* Stat strip */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 64px;
  position: relative;
  z-index: 1;
}
.stat-strip .stat {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
}
.stat-strip .stat strong {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 1.9rem;
  color: var(--gold);
}
.stat-strip .stat span { font-size: 0.85rem; color: rgba(255,255,255,0.75); }

/* ---------------- Intro / About blurb on home ---------------- */
.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.intro-media {
  position: relative;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: 24px;
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  box-shadow: var(--shadow-lg);
}
.intro-media img { width: 62%; filter: drop-shadow(0 20px 30px rgba(0,0,0,0.35)); }
.intro-text .section-tag { margin-bottom: 18px; }
.intro-text h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 18px; }
.intro-text p { color: var(--gray-700); margin-bottom: 16px; }
.intro-list { margin-top: 24px; display: grid; gap: 12px; }
.intro-list li { display: flex; align-items: flex-start; gap: 12px; color: var(--gray-700); font-weight: 500; }
.intro-list li .check {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
}

/* ---------------- Cards / Grid ---------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.service-icon {
  width: 58px; height: 58px;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  color: var(--gold);
  transition: transform var(--transition);
}
.service-card:hover .service-icon { transform: scale(1.08) rotate(-4deg); }
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.service-card p { color: var(--gray-500); font-size: 0.95rem; }

.service-card.compact { padding: 26px 22px; }
.service-card.compact .service-icon { width: 48px; height: 48px; margin-bottom: 16px; border-radius: 12px; }
.service-card.compact .service-icon svg { width: 22px; height: 22px; }
.service-card.compact h3 { font-size: 1rem; }

.view-all-wrap { text-align: center; margin-top: 48px; }

/* ---------------- Why choose us ---------------- */
.why-section { background: var(--navy-dark); color: var(--white); position: relative; overflow: hidden; }
.why-section::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(900px 500px at 10% 20%, rgba(240,195,49,0.08), transparent 60%);
}
.why-section .section-head h2 { color: var(--white); }
.why-section .section-head p { color: rgba(255,255,255,0.7); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}
.why-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: background var(--transition), transform var(--transition);
}
.why-card:hover { background: rgba(255,255,255,0.09); transform: translateY(-4px); }
.why-card .num {
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}
.why-card h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 8px; }
.why-card p { color: rgba(255,255,255,0.68); font-size: 0.92rem; }

/* ---------------- CTA banner ---------------- */
.cta-banner {
  background: linear-gradient(120deg, var(--gold) 0%, var(--gold-dark) 100%);
  border-radius: 28px;
  margin: 0 24px;
  padding: 60px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  max-width: calc(var(--container) - 48px);
  margin-left: auto;
  margin-right: auto;
  box-shadow: var(--shadow-lg);
}
.cta-banner h2 { font-size: clamp(1.5rem, 3vw, 2rem); max-width: 520px; color: var(--navy-dark); }
.cta-banner p { color: rgba(11,23,64,0.75); margin-top: 8px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------------- Values (About page) ---------------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.value-card {
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.value-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.value-icon {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(20, 39, 102, 0.06);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
}
.value-icon svg { width: 26px; height: 26px; }
.value-card h3 { font-size: 1rem; }

/* ---------------- Timeline / who we are ---------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split img, .split .media-block { border-radius: 24px; }
.media-block {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);
  min-height: 420px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.media-block img { width: 55%; filter: drop-shadow(0 20px 30px rgba(0,0,0,0.35)); }
.media-block .ring {
  position: absolute;
  border: 1px solid rgba(240,195,49,0.25);
  border-radius: 50%;
}
.media-block .ring.r1 { width: 320px; height: 320px; }
.media-block .ring.r2 { width: 420px; height: 420px; }

.badge-row { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.badge-pill {
  display: flex; align-items: center; gap: 8px;
  background: var(--gray-100);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

/* ---------------- Mission / values band on About ---------------- */
.mission-band {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 40px;
  margin-top: 40px;
}
.mission-band h3 { margin-bottom: 12px; }
.mission-band p { color: var(--gray-700); }

/* ---------------- Contact page ---------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: flex-start;
}
.contact-info-card {
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 44px 36px;
}
.contact-info-card h3 { color: var(--white); margin-bottom: 10px; }
.contact-info-card > p { color: rgba(255,255,255,0.72); margin-bottom: 32px; }
.contact-item { display: flex; gap: 16px; margin-bottom: 26px; }
.contact-item:last-child { margin-bottom: 0; }
.contact-item .ic {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(240, 195, 49, 0.16);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
}
.contact-item .ic svg { width: 20px; height: 20px; }
.contact-item h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 4px; }
.contact-item p, .contact-item a { color: rgba(255,255,255,0.7); font-size: 0.92rem; }
.contact-item a:hover { color: var(--gold); }

.social-row { display: flex; gap: 10px; margin-top: 32px; }
.social-row a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.social-row a:hover { background: var(--gold); color: var(--navy-dark); }
.social-row svg { width: 17px; height: 17px; }

.contact-form-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 44px 40px;
  box-shadow: var(--shadow-sm);
}
.contact-form-card h3 { margin-bottom: 8px; }
.contact-form-card > p { color: var(--gray-500); margin-bottom: 30px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-dark);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--gray-100);
  transition: border-color var(--transition), background var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.82rem; color: var(--gray-500); margin-top: 14px; text-align: center; }

.form-success {
  display: none;
  background: #eafaf0;
  border: 1.5px solid #29b06b;
  color: #1c7a4a;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.form-success.show { display: block; }

/* Map */
.map-wrap {
  margin-top: 48px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}
.map-wrap iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ---------------- Sectors (About/Home) ---------------- */
.sector-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.sector-pill {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
}

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  padding-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-brand img { height: 46px; }
.footer-brand span { font-family: 'Poppins', sans-serif; font-weight: 700; color: var(--white); font-size: 1.05rem; }
.footer-col p { font-size: 0.92rem; line-height: 1.7; }
.footer-col h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 20px; letter-spacing: 0.02em; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { font-size: 0.92rem; transition: color var(--transition), padding-left var(--transition); }
.footer-col ul li a:hover { color: var(--gold); padding-left: 4px; }
.footer-col .foot-contact { display: flex; gap: 10px; margin-bottom: 14px; font-size: 0.92rem; align-items: flex-start; }
.footer-col .foot-contact svg { width: 16px; height: 16px; margin-top: 3px; flex-shrink: 0; color: var(--gold); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 0;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: var(--gold); }

/* ---------------- Page banner small (used for breadcrumb bg pattern) ---------------- */
.icon-inline { display: inline-flex; vertical-align: -3px; margin-right: 6px; }

/* ---------------- Back to top ---------------- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-dark);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  z-index: 999;
  border: none;
  cursor: pointer;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top svg { width: 20px; height: 20px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .intro, .split { grid-template-columns: 1fr; gap: 40px; }
  .intro-media, .media-block { order: -1; padding: 36px; min-height: 300px; }
  .contact-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-links { position: fixed; top: 0; right: -100%; width: min(320px, 85%); height: 100vh; background: var(--white); flex-direction: column; align-items: stretch; padding: 100px 28px 28px; gap: 6px; box-shadow: -10px 0 40px rgba(0,0,0,0.15); transition: right var(--transition); }
  .nav-links.open { right: 0; }
  .nav-links a { padding: 14px 16px; }
  .nav-cta { margin-left: 0; margin-top: 10px; }
  .nav-toggle { display: flex; }
  section { padding: 72px 0; }
  .cta-banner { flex-direction: column; text-align: center; padding: 44px 28px; }
  .cta-actions { justify-content: center; }
}

@media (max-width: 640px) {
  .card-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .hero { padding: 150px 0 90px; }
  .hero-page { padding: 130px 0 70px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .contact-form-card, .contact-info-card { padding: 30px 24px; }
}
