/* ===============================
   Rain Creek Financial – Styles
   Evergreen + River Stone Palette (Modern Tech & Professional)
   =============================== */

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

/* ---------- Color System & Tokens ---------- */
:root {
  /* Core Colors (Nature Tech) */
  --slate-deep: #0D1B2A;
  /* Very dark, rich navy/slate (modern not 80s) */
  --slate-light: #1B263B;
  /* Lighter slate for depth */
  --evergreen: #0A2218;
  /* Deep modern forest green */
  --evergreen-dark: #051610;
  --evergreen-light: #133A2B;
  --river-teal: #14B8A6;
  /* Vibrant modern teal accent (Tailwind Teal-500 equivalent) */
  --mist: #CBD5E1;
  /* Crisp slate gray for text */
  --stone: #F8FAFC;
  /* Clean white/slate background */
  --white: #FFFFFF;
  --gold: #D4A373;
  /* Warm, earthy sand/gold for premium contrast */
  --gold-hover: #C28E5A;
  /* Slightly deeper earthy gold on hover */
  --silver: #64748B;

  /* Typography */
  --font-serif: "Outfit", sans-serif;
  /* using sans-serif for modern tech feel while keeping the token */
  --font-sans: "Inter", sans-serif;

  /* Spacing & Layout */
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;

  /* Shadows & Depth (Tech meet Professional) */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px rgba(42, 157, 143, 0.2);

  /* Transitions */
  --transition-fast: 0.15s ease-out;
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Base ---------- */
body {
  font-family: var(--font-sans);
  background: var(--stone);
  color: var(--slate-deep);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  color: var(--slate-deep);
  line-height: 1.3;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

/* ---------- Layout ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

/* ---------- NAV (Glassmorphism) ---------- */
nav {
  background: rgba(13, 27, 42, 0.85);
  /* Deep slate navy with opacity */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

nav a[aria-label="Rain Creek Home"] {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  transition: background var(--transition-fast);
}

nav a[aria-label="Rain Creek Home"]:hover {
  background: rgba(255, 255, 255, 0.08);
}

.logo-img {
  height: 160px;
  /* 2x larger height for the rectangular logo */
  width: auto;
  display: block;
  border-radius: var(--radius-sm);
  /* makes the generated white background look like an intentional app icon */
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 3rem;
  align-items: center;
}

.nav-links a {
  color: var(--mist);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--river-teal);
  transition: width var(--transition-smooth);
}

/* Mobile Menu Button - Hidden on Desktop */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--white);
  margin: 5px 0;
  transition: var(--transition-smooth);
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  width: 100%;
}

.nav-links a[aria-current="page"] {
  color: var(--white);
}

/* ---------- HERO / PAGE HEADER ---------- */
.page-header,
.hero {
  position: relative;
  background: var(--slate-deep);
  color: var(--white);
  padding: 10rem 2rem 12rem;
  text-align: center;
  overflow: hidden;
}

/* Tech-inspired subtle glow overlay in hero */
.hero::before,
.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(20, 184, 166, 0.15) 0%, transparent 50%);
  opacity: 1;
  pointer-events: none;
}

.page-header h1,
.hero h1 {
  font-family: var(--font-serif);
  font-size: 4.5rem;
  /* Larger, bolder impact */
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.hero-subtitle {
  max-width: 800px;
  margin: 0 auto 3.5rem;
  font-size: 1.25rem;
  color: var(--mist);
  font-weight: 300;
  line-height: 1.8;
}

/* ---------- CTA ---------- */
.cta-btn,
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--slate-deep);
  padding: 1.125rem 3.5rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  transition: all var(--transition-bounce);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.cta-btn:hover,
.cta-button:hover {
  background: var(--gold-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(20, 184, 166, 0.4);
}

/* ---------- SECTIONS ---------- */
.services {
  background: var(--stone);
  padding: 8rem 2rem;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 6rem;
}

.section-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--slate-deep);
  position: relative;
  display: inline-block;
}

/* Small tech accent above titles */
.section-title::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--river-teal);
  border-radius: 2px;
}

/* ---------- CARDS ---------- */
.services-grid,
.grid-2 {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.card {
  background: var(--white);
  padding: 3.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--river-teal);
  transition: all var(--transition-smooth);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* Professional card hover lift */
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.entity-tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--river-teal);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  background: rgba(20, 184, 166, 0.1);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}

.card h3 {
  font-size: 2rem;
  color: var(--slate-deep);
  margin-bottom: 1.25rem;
}

.card p {
  color: #475569;
  font-size: 1.1rem;
  line-height: 1.8;
}

/* ---------- DARK CALLOUT ---------- */
.section-dark {
  background: var(--slate-deep);
  color: var(--white);
  padding: 6rem 4rem;
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.section-dark h2 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

/* ---------- FAQ ACCORDION STYLES ---------- */
.faq-accordion .card {
  cursor: pointer;
  padding: 2rem 3rem;
  margin-bottom: 1.5rem;
  border-top: 2px solid transparent;
  /* Subtle border */
  border-left: 4px solid var(--river-teal);
  /* Modern side accent */
}

.faq-accordion .card h3 {
  font-size: 1.5rem;
  margin-bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color var(--transition-fast);
}

.faq-accordion .card:hover h3 {
  color: var(--river-teal);
}

.faq-accordion .card p {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all var(--transition-smooth);
  margin-top: 0;
}

.faq-accordion .card.active p {
  max-height: 500px;
  opacity: 1;
  margin-top: 1.5rem;
}

/* Plus/Minus icon using pseudo-elements */
.faq-accordion .card h3::after {
  content: '+';
  font-family: var(--font-sans);
  font-size: 1.8rem;
  color: var(--silver);
  font-weight: 300;
  transition: transform var(--transition-smooth);
}

.faq-accordion .card.active h3::after {
  transform: rotate(45deg);
  color: var(--river-teal);
}

/* ---------- DISCLOSURE ---------- */
.disclosure {
  margin-top: 4rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  text-align: left;
  /* Better readability for legal text */
  padding: 2rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ---------- FOOTER ---------- */
footer {
  background: #060A10;
  /* Very dark, almost black for sleek finish */
  color: var(--white);
  padding: 4rem 2rem 2rem;
  text-align: center;
}

.footer-disclaimer {
  font-size: 0.85rem;
  color: var(--silver);
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  line-height: 1.7;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 992px) {

  .hero h1,
  .page-header h1 {
    font-size: 3.5rem;
  }

  .services-grid,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background: var(--slate-deep);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right var(--transition-smooth);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
  }

  .mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero {
    padding: 8rem 1.5rem 6rem;
  }

  .hero h1,
  .page-header h1 {
    font-size: 2.8rem;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .container {
    padding: 4rem 1.5rem;
  }

  .card {
    padding: 2rem;
  }

  .section-dark {
    padding: 3rem 1.5rem;
  }
}