/* =====================================
   B4 I DO — MODERN LEGAL TECH SYSTEM
===================================== */

:root {
  --primary: #2F4765;
  --accent: #D4AF37;
  --background: #FFFFFF;
  --soft-bg: #F5F7FA;
  --text: #2F4765;
  --muted: #5f6f82;
  --border: #e6e9ee;
  --radius: 12px;
}

/* =====================================
   RESET
===================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.65;
  opacity: 0;
  animation: pageFade 0.5s ease forwards;
}

@keyframes pageFade {
  to { opacity: 1; }
}

/* =====================================
   TYPOGRAPHY
===================================== */

h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 12px;
  margin-top: 28px;
  line-height: 1.35;
  position: relative;
}

h2::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent);
  margin-top: 8px;
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}

p {
  font-size: 1rem;
  line-height: 1.7;
  text-align: justify;
  margin-bottom: 14px;
}

.terms-page h1,
.terms-page h2,
.terms-page h3 {
  text-align: left;
}

/* =====================================
   LAYOUT
===================================== */

.container {
  max-width: 1050px;
  margin: 0 auto;
  padding: 60px 40px;
}

section {
  margin-bottom: 25px;
}

/* =====================================
   HEADER
===================================== */

header {
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  background: #ffffff;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 999;
}

body {
  padding-top: 80px;
}

nav {
  max-width: 1050px;
  margin: auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 50px;
}

nav a {
  text-decoration: none;
  margin-left: 20px;
  color: var(--primary);
  font-weight: 500;
  transition: 0.3s ease;
}

nav a:hover {
  color: var(--accent);
}

/* =====================================
   BUTTONS
===================================== */

.btn {
  display: inline-block;
  padding: 10px 22px;
  background: var(--primary);
  color: #ffffff;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 8px;
  transition: all 0.25s ease;
}

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

/* =====================================
   HERO
===================================== */

.hero-modern {
  position: relative;
  height: 45vh;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-modern img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(0,0,0,0.75),
    rgba(0,0,0,0.75)
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  max-width: 750px;
  padding: 0 40px;
}
/* =====================================
   HERO TEXT FIX
===================================== */

.hero-content h1 {
  font-size: 2.4rem;
  line-height: 1.3;
  max-width: 750px;
  margin: 0 auto 20px auto;
}

.hero-content p {
  max-width: 600px;
  margin: 0 auto 30px auto;
  text-align: center;
}

.hero-break {
  display: block;
  margin-top: 6px;
}
/* =====================================
   SPLIT SECTIONS
===================================== */

.split-section {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 80px 20px;
}

.split-section.reverse {
  flex-direction: row-reverse;
}

.split-text,
.split-image {
  flex: 1;
}

.split-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* =====================================
   PACKAGE CARDS
===================================== */

.package-grid {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  align-items: stretch;
}

/* Card */

.package-card {
  flex: 1;
  background: #ffffff;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;

  display: flex;
  flex-direction: column;

  min-height: 420px;
}

/* Hidden explanation */

.package-extra {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.35s ease;
}

/* Hover */

.package-card:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
  cursor: pointer;
}

/* Expand text */

.package-card:hover .package-extra {
  max-height: 200px;
  opacity: 1;
  margin-top: 10px;
}

/* Hover text colour */

.package-card:hover h3,
.package-card:hover p,
.package-card:hover li {
  color: var(--primary);
}

/* Align button */

.package-card .btn {
  margin-top: auto;
}

/* Dim other cards */

.package-grid:hover .package-card:not(:hover) {
  transform: scale(0.96);
  opacity: 0.65;
}
/* =====================================
   MOBILE SYSTEM
===================================== */

@media (max-width: 900px) {

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

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  position: fixed;
  top: 0;
  right: 0;
  width: 75%;
  height: 100vh;
  background: #ffffff;
  flex-direction: column;
  padding: 100px 30px 30px 30px;
  z-index: 1000;
  box-shadow: -5px 0 25px rgba(0,0,0,0.15);
  transform: translateX(100%);
  transition: transform 0.35s ease;
  gap: 25px;
}

.nav-links.active {
  transform: translateX(0);
}

.hamburger {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 1100;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

/* =====================================
   HERO SECTION
===================================== */

.hero-modern {
  height: 70vh; /* allows next section to show */
  min-height: 520px;
  padding: 0 20px;
}

.hero-content {
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 1.8rem;
  line-height: 1.35;
}

.hero-content p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* =====================================
   LAYOUT
===================================== */

.container {
  padding: 40px 25px;
}

.content-section {
  max-width: 100%;
}

/* =====================================
   SPLIT SECTIONS STACK
===================================== */

.split-section {
  flex-direction: column;
  text-align: center;
  gap: 30px;
  padding: 40px 20px;
}

.split-section.reverse {
  flex-direction: column;
}

/* =====================================
   PACKAGE CARDS
===================================== */

.package-grid {
  flex-direction: column;
  gap: 18px;
}

.package-card {
  width: 100%;
}

/* =====================================
   IMAGES
===================================== */

.split-image img {
  width: 100%;
  height: auto;
}

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

.footer-container {
  flex-direction: column;
  text-align: center;
  gap: 35px;
}

.footer-col p {
  text-align: center;
}

/* =====================================
   BUTTON SPACING
===================================== */

.btn {
  margin-top: 12px;
}

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

.main-footer {
  background: var(--primary);
  color: #e8edf3;
  padding-top: 70px;
}

.footer-container {
  max-width: 1100px;
  margin: auto;
  padding: 0 40px 50px 40px;
  display: flex;
  justify-content: space-between;
  gap: 50px;
}

.footer-col {
  flex: 1;
  min-width: 220px;
}

.footer-col h3,
.footer-col h4 {
  color: #ffffff;
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col p {
  color: #d6dde5;
  text-align: left;
}

.footer-col a {
  color: #d6dde5;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  padding: 25px 40px;
  font-size: 0.85rem;
  color: #c4ccd6;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  padding: 25px;
  font-size: 0.8rem;
  color: #aab4c0;
}

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

.cta-section {
  background: var(--soft-bg);
  padding: 100px 20px;
}

.cta-section .cta-content {
  max-width: 650px;
  margin: 0 auto;
  text-align: center;
}

.cta-section .cta-content p {
  text-align: center;
}

.cta-section .cta-content h2 {
  margin-bottom: 15px;
}

.cta-section .cta-content p {
  margin-bottom: 25px;
}
/* =====================================
   HOMEPAGE CONTENT SECTIONS
===================================== */

.content-section{
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.content-section p{
  text-align: center;
}

.content-section .btn{
  margin-top: 25px;
}
/* =====================================
   HERO SCROLL INDICATOR
===================================== */

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.scroll-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.3s ease;
  animation: scrollBounce 2s infinite;
}

.scroll-circle:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.1);
}

/* subtle bounce animation */

@keyframes scrollBounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translate(-50%, 0);
  }
  40% {
    transform: translate(-50%, 8px);
  }
  60% {
    transform: translate(-50%, 4px);
  }
}