/* ===========================
   Pearl Capital — styles.css
   Place in: css/styles.css
   =========================== */

/* Root palette & global */
:root {
  --primary: #0056a3;
  --primary-2: #003d75;
  --accent: #f8a01a;
  --bg: #f5f7fa;
  --muted: #282823;
  --card: #ffffff;
  --shadow: 0 10px 40px rgba(19, 28, 38, 0.07);
  --glass: rgba(255, 255, 255, 0.65);
  --radius: 12px;
  --container: 1200px;
  --ease: cubic-bezier(0.22, 0.9, 0.26, 1);
}

/* Reset / base */
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto,
    "Helvetica Neue", Arial;
  background: var(--bg);
  color: #1f2933;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  font-size: 16px;
}
a {
  color: var(--primary);
  text-decoration: none;
}
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98),
    rgba(255, 255, 255, 0.95)
  );
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--primary);
  font-size: 27px;
  font-family: "Franklin Gothic Medium", "Arial Narrow", Arial;
}
.logo-icon {
  font-size: 1.6rem;
  color: var(--primary-2);
}
.main-nav {
  position: relative;
}
.hamburger {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.2rem;
  padding: 8px;
  cursor: pointer;
}
.nav-list {
  display: flex;
  gap: 18px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link {
  padding: 8px 6px;
  font-weight: 600;
  color: inherit;
}
.nav-link.active {
  color: var(--primary);
}
.nav-cta {
  padding: 8px 12px;
  border-radius: 8px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.28s var(--ease);
}
.btn-primary {
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 8px 26px rgba(0, 86, 163, 0.12);
}
.btn-primary:hover {
  transform: translateY(-4px);
}
.btn-outline {
  border: 2px solid var(--card);
  background: transparent;
  color: var(--card);
}

/* HERO */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  color: #fff;
  padding: 64px 0;
  background-attachment: fixed;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      135deg,
      rgba(0, 86, 163, 0.88),
      rgba(26, 43, 60, 0.82)
    ),
    url("https://images.unsplash.com/photo-1553877522-43269d4ea984?auto=format&fit=crop&w=1600&q=80")
      center/cover no-repeat;
  opacity: 1;
  z-index: 0;
  border-bottom: 6px solid rgba(255, 255, 255, 0.03);
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 36px;
  align-items: center;
}
.hero-left h1 {
  font-size: 2.6rem;
  margin: 0 0 12px;
  line-height: 1.05;
}
.lead {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 16px;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}
.hero-quick {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 600;
}
.hero-quick li {
  display: flex;
  gap: 10px;
  align-items: center;
}
.hero-quick i {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
  padding: 6px;
  border-radius: 50%;
}

/* Promo card */
.promo-card {
  background: linear-gradient(180deg, #fff, #f7fbff);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  color: #111;
}
.promo-card img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.promo-body {
  padding: 14px;
}
.stats {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
}
.stat {
  text-align: center;
}
.stat .count {
  font-weight: 800;
  color: var(--primary);
  font-size: 1.25rem;
}
.trust {
  margin-top: 12px;
  border-top: 1px solid #eef4fb;
  padding-top: 12px;
}
.trust p {
  margin: 0;
  font-size: 0.95rem;
}
.trust .link {
  display: inline-block;
  margin-top: 6px;
}

/* SECTIONS */
.section {
  padding: 64px 0;
}
.section-pattern {
  background-image: linear-gradient(
      rgba(250, 250, 250, 0.7),
      rgba(250, 250, 250, 0.7)
    ),
    url("https://images.unsplash.com/photo-1521791136064-7986c2920216?auto=format&fit=crop&w=2000&q=80");
  background-size: cover;
  background-position: center;
}
.section-head h2 {
  font-size: 1.5rem;
  margin: 4px 0;
}
.muted {
  color: var(--muted);
}

/* GRID LAYOUTS */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.cards {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.card {
  background: var(--card);
  padding: 18px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

/* SERVICE CARD */
.service-card {
  padding: 20px;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #fbfdff);
  display: flex;
  flex-direction: column;
}
.service-icon {
  font-size: 26px;
  color: var(--primary);
  margin-bottom: 10px;
}
.link-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--primary);
  font-weight: 700;
}

/* WHY US */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 28px;
}
.why-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 22px;
}
.why-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.why-list i {
  color: var(--accent);
  margin-top: 3px;
}

/* Testimonials */
.testimonials {
  background: linear-gradient(180deg, #ffffff, #f4f9ff);
  padding: 16px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.testimonial-slider {
  min-height: 140px;
  display: block;
}
.testimonial {
  display: none;
  padding: 12px;
  font-style: italic;
}
.testimonial:first-child {
  display: block;
}
.testimonial cite {
  display: block;
  margin-top: 10px;
  font-weight: 700;
  color: var(--primary);
}

/* PROCESS */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 18px;
}
.process-step {
  background: var(--card);
  padding: 18px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  text-align: center;
}
.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  color: #fff;
  font-weight: 800;
  margin: 0 auto 12px;
}

/* NEWS CARD */
.news-card {
  background: var(--card);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.news-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.news-body {
  padding: 12px;
}
.news-body h4 {
  margin: 6px 0;
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.faq-item {
  background: var(--card);
  border-radius: 10px;
  padding: 12px;
  box-shadow: var(--shadow);
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 8px 0;
  font-weight: 700;
  cursor: pointer;
}
.faq-q i {
  transition: transform 0.28s var(--ease);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.36s var(--ease);
  color: var(--muted);
  padding-top: 6px;
}

/* CTA LARGE */
.cta-large {
  background: linear-gradient(
    90deg,
    rgba(0, 86, 163, 0.95),
    rgba(3, 47, 85, 0.95)
  );
  color: #fff;
  border-radius: 10px;
  margin: 20px 0;
  padding: 28px;
}
.cta-actions {
  display: flex;
  gap: 14px;
  margin-top: 12px;
}

/* FOOTER */
.site-footer {
  background: linear-gradient(180deg, #081621, #031022);
  color: #fff;
  padding: 40px 0 16px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 18px;
  align-items: start;
}
.footer-col h4 {
  color: #fff;
  margin-bottom: 8px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col ul li {
  margin-bottom: 8px;
}
.footer-col a {
  color: rgba(255, 255, 255, 0.9);
}
.newsletter-form {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}
.newsletter-form input {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: #fff;
}
.newsletter-form button {
  padding: 10px 12px;
  border-radius: 8px;
}
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  margin-right: 8px;
}

/* FOOTER BOTTOM */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 16px;
  margin-top: 18px;
  text-align: center;
}
.footer-bottom p {
  margin: 6px 0;
}

/* Small helpers */
.muted {
  color: rgba(169, 169, 187, 0.825);
}
.topper {
  color: rgba(1, 1, 197, 0.825);
}
.small {
  font-size: 0.9rem;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ANIMATIONS: elements have data-anim attribute initially hidden */
[data-anim] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.in-view {
  opacity: 1;
  transform: none;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .hero-inner {
    grid-template-columns: 1fr 360px;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-list {
    position: fixed;
    top: 72px;
    right: 0;
    left: 0;
    background: #fff;
    flex-direction: column;
    display: none;
    padding: 16px;
    box-shadow: var(--shadow);
  }
  .nav-list.show {
    display: flex;
  }
  .hamburger {
    display: block;
  }
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .process-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .hero-left h1 {
    font-size: 1.5rem;
  }
  .promo-card img {
    height: 150px;
  }
  .stat .count {
    font-size: 1rem;
  }
}

* {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fasdklfasdf {
  color: rgb(132, 90, 12);
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  min-width: 200px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  list-style: none;
  padding: 0.5rem 0;
  margin: 0.5rem 0 0 0;
  z-index: 1000;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 0.5rem 1rem;
  color: #333;
  text-decoration: none;
}

.dropdown-item:hover {
  background: #f5f5f5;
}

.dropdown-toggle .fa-chevron-down {
  font-size: 0.8em;
  margin-left: 0.5rem;
}